Skip to content

Commit 603a1ec

Browse files
committed
add toggle for web scraping in account settings
1 parent 9ee8d4f commit 603a1ec

8 files changed

Lines changed: 2319 additions & 2 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
CREATE TABLE `api_keys` (
2+
`id` text PRIMARY KEY NOT NULL,
3+
`user_id` text NOT NULL,
4+
`key` text NOT NULL,
5+
`name` text NOT NULL,
6+
`last_used_at` integer,
7+
`created_at` integer NOT NULL,
8+
FOREIGN KEY (`user_id`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade
9+
);
10+
--> statement-breakpoint
11+
CREATE UNIQUE INDEX `api_keys_key_unique` ON `api_keys` (`key`);--> statement-breakpoint
12+
CREATE INDEX `api_keys_user_id_idx` ON `api_keys` (`user_id`);--> statement-breakpoint
13+
ALTER TABLE `user_settings` ADD `web_scraping_enabled` integer DEFAULT false NOT NULL;

0 commit comments

Comments
 (0)