aboutsummaryrefslogtreecommitdiffstats
path: root/packages/db/schema.ts
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-01-02 13:00:58 +0200
committerGitHub <noreply@github.com>2025-01-02 13:00:58 +0200
commit5ecdc36b7d60aa66b49e01e9fec8ba61ad537376 (patch)
tree57577822bb104b95900ba577a265fb4f8cf70b78 /packages/db/schema.ts
parent5df0258b2cd884347eabfa866d7e7fbc7225cdb3 (diff)
downloadkarakeep-5ecdc36b7d60aa66b49e01e9fec8ba61ad537376.tar.zst
feat: Add support for smart lists (#802)
* feat: Add support for smart lists * i18n * Fix update list endpoint * Add a test for smart lists * Add header to the query explainer * Hide remove from lists in the smart context list * Add proper validation to list form --------- Co-authored-by: Deepak Kapoor <41769111+orthdron@users.noreply.github.com>
Diffstat (limited to 'packages/db/schema.ts')
-rw-r--r--packages/db/schema.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/db/schema.ts b/packages/db/schema.ts
index 722d57cf..19bf6db5 100644
--- a/packages/db/schema.ts
+++ b/packages/db/schema.ts
@@ -307,6 +307,9 @@ export const bookmarkLists = sqliteTable(
userId: text("userId")
.notNull()
.references(() => users.id, { onDelete: "cascade" }),
+ type: text("type", { enum: ["manual", "smart"] }).notNull(),
+ // Only applicable for smart lists
+ query: text("query"),
parentId: text("parentId").references(
(): AnySQLiteColumn => bookmarkLists.id,
{ onDelete: "set null" },