diff options
| author | Dhravya Shah <[email protected]> | 2024-07-25 17:30:23 -0500 |
|---|---|---|
| committer | Dhravya Shah <[email protected]> | 2024-07-25 17:30:23 -0500 |
| commit | 18dd5e4fd0355631dead478ca207cad13f410d0f (patch) | |
| tree | c7bdb441375e590d9266dec36d0389c2d97677fd /apps/web/server | |
| parent | merge oopsies (diff) | |
| download | supermemory-18dd5e4fd0355631dead478ca207cad13f410d0f.tar.xz supermemory-18dd5e4fd0355631dead478ca207cad13f410d0f.zip | |
onboarding page changes and ratelimiting
Diffstat (limited to 'apps/web/server')
| -rw-r--r-- | apps/web/server/db/schema.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/web/server/db/schema.ts b/apps/web/server/db/schema.ts index 8486c788..35267eb8 100644 --- a/apps/web/server/db/schema.ts +++ b/apps/web/server/db/schema.ts @@ -1,3 +1,4 @@ +import { create } from "domain"; import { relations, sql } from "drizzle-orm"; import { index, @@ -211,6 +212,7 @@ export const chatHistory = createTable( answer: text("answerParts"), // Single answer part as string answerSources: text("answerSources"), // JSON stringified array of objects answerJustification: text("answerJustification"), + createdAt: int("createdAt", { mode: "timestamp" }).notNull().default(new Date()), }, (history) => ({ threadIdx: index("chatHistory_thread_idx").on(history.threadId), |