Skip to content

Commit 75729e2

Browse files
remove redundant notNulls
1 parent 04e4450 commit 75729e2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/lib/db/migrations/schema.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ export const sessionsTable = pgTable('nextauth_sessions', {
113113
export const bookmarksTable = pgTable('bookmarks', {
114114
id: text()
115115
.primaryKey()
116-
.notNull()
117-
.notNull()
118116
.$defaultFn(() => crypto.randomUUID()),
119117
userId: text('user_id').references(() => usersTable.id, {
120118
onDelete: 'cascade'
@@ -134,7 +132,6 @@ export const bookmarksTable = pgTable('bookmarks', {
134132
export const reportsTable = pgTable('reports', {
135133
id: text()
136134
.primaryKey()
137-
.notNull()
138135
.$defaultFn(() => crypto.randomUUID()),
139136
repoId: integer().unique(),
140137
repoAuthor: varchar({ length: 255 }),

0 commit comments

Comments
 (0)