diff options
| author | Kha Nguyen <hi@khanguyen.com> | 2025-07-24 17:00:49 -0500 |
|---|---|---|
| committer | Kha Nguyen <hi@khanguyen.com> | 2025-07-24 17:00:49 -0500 |
| commit | 1ccacf6bb5db579cf6f343d9de57bce92d296f5f (patch) | |
| tree | 8f4ab02ef1c0a7420c1827607207c52629e56288 /packages/db | |
| parent | 0b7a943de30663a37aec93421cbd90dfbd673d87 (diff) | |
| download | opencut-1ccacf6bb5db579cf6f343d9de57bce92d296f5f.tar.gz | |
merge main
Diffstat (limited to 'packages/db')
| -rw-r--r-- | packages/db/migrations/meta/0000_snapshot.json | 30 | ||||
| -rw-r--r-- | packages/db/migrations/meta/_journal.json | 2 | ||||
| -rw-r--r-- | packages/db/src/schema.ts | 6 |
3 files changed, 11 insertions, 27 deletions
diff --git a/packages/db/migrations/meta/0000_snapshot.json b/packages/db/migrations/meta/0000_snapshot.json index bb0699e4..8d505274 100644 --- a/packages/db/migrations/meta/0000_snapshot.json +++ b/packages/db/migrations/meta/0000_snapshot.json @@ -93,12 +93,8 @@ "name": "accounts_user_id_users_id_fk", "tableFrom": "accounts", "tableTo": "users", - "columnsFrom": [ - "user_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["user_id"], + "columnsTo": ["id"], "onDelete": "cascade", "onUpdate": "no action" } @@ -168,12 +164,8 @@ "name": "sessions_user_id_users_id_fk", "tableFrom": "sessions", "tableTo": "users", - "columnsFrom": [ - "user_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["user_id"], + "columnsTo": ["id"], "onDelete": "cascade", "onUpdate": "no action" } @@ -183,9 +175,7 @@ "sessions_token_unique": { "name": "sessions_token_unique", "nullsNotDistinct": false, - "columns": [ - "token" - ] + "columns": ["token"] } }, "policies": {}, @@ -246,9 +236,7 @@ "users_email_unique": { "name": "users_email_unique", "nullsNotDistinct": false, - "columns": [ - "email" - ] + "columns": ["email"] } }, "policies": {}, @@ -334,9 +322,7 @@ "waitlist_email_unique": { "name": "waitlist_email_unique", "nullsNotDistinct": false, - "columns": [ - "email" - ] + "columns": ["email"] } }, "policies": {}, @@ -355,4 +341,4 @@ "schemas": {}, "tables": {} } -}
\ No newline at end of file +} diff --git a/packages/db/migrations/meta/_journal.json b/packages/db/migrations/meta/_journal.json index e8c21e9e..c7d30f16 100644 --- a/packages/db/migrations/meta/_journal.json +++ b/packages/db/migrations/meta/_journal.json @@ -10,4 +10,4 @@ "breakpoints": true } ] -}
\ No newline at end of file +} diff --git a/packages/db/src/schema.ts b/packages/db/src/schema.ts index c4af608d..bb92a14e 100644 --- a/packages/db/src/schema.ts +++ b/packages/db/src/schema.ts @@ -4,9 +4,7 @@ export const users = pgTable("users", { id: text("id").primaryKey(), name: text("name").notNull(), email: text("email").notNull().unique(), - emailVerified: boolean("email_verified") - .default(false) - .notNull(), + emailVerified: boolean("email_verified").default(false).notNull(), image: text("image"), createdAt: timestamp("created_at") .$defaultFn(() => /* @__PURE__ */ new Date()) @@ -66,4 +64,4 @@ export const waitlist = pgTable("waitlist", { createdAt: timestamp("created_at") .$defaultFn(() => /* @__PURE__ */ new Date()) .notNull(), -}).enableRLS();
\ No newline at end of file +}).enableRLS(); |
