fix: don't dynamically populate document kind in schema (#769)
This commit is contained in:
parent
dfc07ce0ae
commit
01f589b603
2 changed files with 28 additions and 1 deletions
|
|
@ -73,7 +73,9 @@ export const document = pgTable(
|
|||
createdAt: timestamp('createdAt').notNull(),
|
||||
title: text('title').notNull(),
|
||||
content: text('content'),
|
||||
kind: varchar('text', { enum: blockKinds }).notNull().default('text'),
|
||||
kind: varchar('text', { enum: ['text', 'code', 'image', 'sheet'] })
|
||||
.notNull()
|
||||
.default('text'),
|
||||
userId: uuid('userId')
|
||||
.notNull()
|
||||
.references(() => user.id),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue