diff options
| author | MohamedBassem <me@mbassem.com> | 2024-02-26 12:47:36 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-02-26 12:47:36 +0000 |
| commit | 3fe20dda157cbae282f55d6afb8e8f99e795945a (patch) | |
| tree | 59a8ef1e5ab98d75d83c5cd23ea6c12af9615ca0 /packages/db | |
| parent | e234d3535c363664902dffe89a2c61ddbc037da4 (diff) | |
| download | karakeep-3fe20dda157cbae282f55d6afb8e8f99e795945a.tar.zst | |
feature: Add support for adding/removing tags
Diffstat (limited to 'packages/db')
| -rw-r--r-- | packages/db/schema.ts | 2 |
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] }), |
