optional auth
This commit is contained in:
parent
1680a1786e
commit
b16f2516a6
17 changed files with 13339 additions and 1297 deletions
22
drizzle/0000_exotic_zeigeist.sql
Normal file
22
drizzle/0000_exotic_zeigeist.sql
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
CREATE TABLE `auth_settings` (
|
||||
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||
`is_enabled` integer DEFAULT false NOT NULL,
|
||||
`username` text,
|
||||
`password` text
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE `chats` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`title` text NOT NULL,
|
||||
`createdAt` text NOT NULL,
|
||||
`focusMode` text NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE `messages` (
|
||||
`id` integer PRIMARY KEY NOT NULL,
|
||||
`content` text NOT NULL,
|
||||
`chatId` text NOT NULL,
|
||||
`messageId` text NOT NULL,
|
||||
`type` text,
|
||||
`metadata` text
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue