feat: add ability to share chats (#594)
This commit is contained in:
parent
64d1aad2bb
commit
4d901ba066
20 changed files with 877 additions and 66 deletions
|
|
@ -26,6 +26,9 @@ export const chat = pgTable('Chat', {
|
|||
userId: uuid('userId')
|
||||
.notNull()
|
||||
.references(() => user.id),
|
||||
visibility: varchar('visibility', { enum: ['public', 'private'] })
|
||||
.notNull()
|
||||
.default('private'),
|
||||
});
|
||||
|
||||
export type Chat = InferSelectModel<typeof chat>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue