diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-04-15 19:36:51 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-04-15 19:36:51 +0000 |
| commit | 7e39afa29f1674df4cac51c7894181f55f66aa12 (patch) | |
| tree | 55caff2f4d14e222a2d9c2b63157d28a438a96e7 /packages/db/schema.ts | |
| parent | d7244978e9e99ca20b99a9f751b1bfef77810e94 (diff) | |
| download | karakeep-7e39afa29f1674df4cac51c7894181f55f66aa12.tar.zst | |
fix: Add password salt to the user table
Diffstat (limited to 'packages/db/schema.ts')
| -rw-r--r-- | packages/db/schema.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/db/schema.ts b/packages/db/schema.ts index d3e97098..dd65370b 100644 --- a/packages/db/schema.ts +++ b/packages/db/schema.ts @@ -35,6 +35,7 @@ export const users = sqliteTable("user", { emailVerified: integer("emailVerified", { mode: "timestamp_ms" }), image: text("image"), password: text("password"), + salt: text("salt").notNull().default(""), role: text("role", { enum: ["admin", "user"] }).default("user"), }); |
