aboutsummaryrefslogtreecommitdiffstats
path: root/packages/db/schema.ts
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-02-26 12:47:36 +0000
committerMohamedBassem <me@mbassem.com>2024-02-26 12:47:36 +0000
commit3fe20dda157cbae282f55d6afb8e8f99e795945a (patch)
tree59a8ef1e5ab98d75d83c5cd23ea6c12af9615ca0 /packages/db/schema.ts
parente234d3535c363664902dffe89a2c61ddbc037da4 (diff)
downloadkarakeep-3fe20dda157cbae282f55d6afb8e8f99e795945a.tar.zst
feature: Add support for adding/removing tags
Diffstat (limited to 'packages/db/schema.ts')
-rw-r--r--packages/db/schema.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/db/schema.ts b/packages/db/schema.ts
index 0a30cf59..94467c56 100644
--- a/packages/db/schema.ts
+++ b/packages/db/schema.ts
@@ -156,7 +156,7 @@ export const tagsOnBookmarks = sqliteTable(
attachedAt: integer("attachedAt", { mode: "timestamp" }).$defaultFn(
() => new Date(),
),
- attachedBy: text("attachedBy", { enum: ["ai", "human"] }),
+ attachedBy: text("attachedBy", { enum: ["ai", "human"] }).notNull(),
},
(tb) => ({
pk: primaryKey({ columns: [tb.bookmarkId, tb.tagId] }),