feat: move perf,logs and user into sqlite
This commit is contained in:
20
drizzle/0000_dashing_sunspot.sql
Normal file
20
drizzle/0000_dashing_sunspot.sql
Normal file
@@ -0,0 +1,20 @@
|
||||
CREATE TABLE `performance` (
|
||||
`path` text NOT NULL,
|
||||
`search` text,
|
||||
`time` integer NOT NULL,
|
||||
`created_at` integer DEFAULT (current_timestamp)
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE `session` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`created_at` integer DEFAULT (current_timestamp),
|
||||
`expires_at` integer NOT NULL,
|
||||
`user_id` text NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE `user` (
|
||||
`id` text PRIMARY KEY NOT NULL,
|
||||
`created_at` integer DEFAULT (current_timestamp) NOT NULL,
|
||||
`email` text NOT NULL,
|
||||
`name` text NOT NULL
|
||||
);
|
||||
Reference in New Issue
Block a user