1+ CREATE TABLE `roblox_credentials ` (
2+ ` id` text PRIMARY KEY NOT NULL ,
3+ ` team_id` text NOT NULL ,
4+ ` name` text NOT NULL ,
5+ ` status` text DEFAULT ' healthy' NOT NULL ,
6+ ` error_message` text ,
7+ ` key_ciphertext` text NOT NULL ,
8+ ` key_iv` text NOT NULL ,
9+ ` key_tag` text NOT NULL ,
10+ ` key_owner_roblox_id` integer NOT NULL ,
11+ ` expiration_date` integer ,
12+ ` last_used` integer DEFAULT (cast(unixepoch(' subsecond' ) * 1000 as integer )) NOT NULL ,
13+ ` last_refreshed_at` integer DEFAULT (cast(unixepoch(' subsecond' ) * 1000 as integer )) NOT NULL ,
14+ ` created_at` integer DEFAULT (cast(unixepoch(' subsecond' ) * 1000 as integer )) NOT NULL ,
15+ ` created_by` text ,
16+ FOREIGN KEY (` team_id` ) REFERENCES ` team` (` id` ) ON UPDATE no action ON DELETE cascade ,
17+ FOREIGN KEY (` created_by` ) REFERENCES ` user` (` id` ) ON UPDATE no action ON DELETE set null
18+ );
19+ -- > statement-breakpoint
20+ ALTER TABLE ` database` ADD ` status` text DEFAULT ' healthy' NOT NULL ;-- > statement-breakpoint
21+ ALTER TABLE ` database` ADD ` error_message` text ;-- > statement-breakpoint
22+ ALTER TABLE ` database` ADD ` last_used` integer DEFAULT (cast(unixepoch(' subsecond' ) * 1000 as integer )) NOT NULL ;-- > statement-breakpoint
23+ ALTER TABLE ` database` ADD ` last_refreshed_at` integer DEFAULT (cast(unixepoch(' subsecond' ) * 1000 as integer )) NOT NULL ;
0 commit comments