diff options
| author | Yash <[email protected]> | 2024-04-11 06:24:56 +0000 |
|---|---|---|
| committer | Yash <[email protected]> | 2024-04-11 06:24:56 +0000 |
| commit | 257e355ae3b47e9de37f9686b400fa598904c6cb (patch) | |
| tree | 44830a4b49ee3c3376054bdcd4cd20e9ddac5e14 /apps/web/src/server | |
| parent | add modal (diff) | |
| download | supermemory-257e355ae3b47e9de37f9686b400fa598904c6cb.tar.xz supermemory-257e355ae3b47e9de37f9686b400fa598904c6cb.zip | |
new schema
Diffstat (limited to 'apps/web/src/server')
| -rw-r--r-- | apps/web/src/server/db/schema.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/web/src/server/db/schema.ts b/apps/web/src/server/db/schema.ts index e0ddbdbc..d78c0a89 100644 --- a/apps/web/src/server/db/schema.ts +++ b/apps/web/src/server/db/schema.ts @@ -88,6 +88,9 @@ export const storedContent = createTable( url: text("url").notNull(), savedAt: int("savedAt", { mode: "timestamp" }).notNull(), baseUrl: text("baseUrl", { length: 255 }), + type: text("type", { enum: ["note", "page", "twitter-bookmark"] }).default( + "page", + ), image: text("image", { length: 255 }), user: text("user", { length: 255 }).references(() => users.id), }, |