aboutsummaryrefslogtreecommitdiffstats
path: root/packages/db/schema.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/db/schema.ts')
-rw-r--r--packages/db/schema.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/db/schema.ts b/packages/db/schema.ts
index ed9d586c..4375b201 100644
--- a/packages/db/schema.ts
+++ b/packages/db/schema.ts
@@ -161,8 +161,8 @@ export const bookmarkLinks = sqliteTable(
dateModified: integer("dateModified", { mode: "timestamp" }),
imageUrl: text("imageUrl"),
favicon: text("favicon"),
- content: text("content"),
htmlContent: text("htmlContent"),
+ contentAssetId: text("contentAssetId"),
crawledAt: integer("crawledAt", { mode: "timestamp" }),
crawlStatus: text("crawlStatus", {
enum: ["pending", "failure", "success"],
@@ -179,6 +179,7 @@ export const enum AssetTypes {
LINK_FULL_PAGE_ARCHIVE = "linkFullPageArchive",
LINK_PRECRAWLED_ARCHIVE = "linkPrecrawledArchive",
LINK_VIDEO = "linkVideo",
+ LINK_HTML_CONTENT = "linkHtmlContent",
BOOKMARK_ASSET = "bookmarkAsset",
UNKNOWN = "unknown",
}
@@ -196,6 +197,7 @@ export const assets = sqliteTable(
AssetTypes.LINK_FULL_PAGE_ARCHIVE,
AssetTypes.LINK_PRECRAWLED_ARCHIVE,
AssetTypes.LINK_VIDEO,
+ AssetTypes.LINK_HTML_CONTENT,
AssetTypes.BOOKMARK_ASSET,
AssetTypes.UNKNOWN,
],