Initial commit
This commit is contained in:
commit
8c709fb52f
771 files changed
+222983
No files matched your search
@@ -0,0 +1,13 @@
|
||||
CREATE TABLE `rooms` (
|
||||
`code` text PRIMARY KEY NOT NULL,
|
||||
`state` text NOT NULL,
|
||||
`version` integer DEFAULT 0 NOT NULL,
|
||||
`updated_at` integer NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE `seats` (
|
||||
`token_hash` text PRIMARY KEY NOT NULL,
|
||||
`room_code` text NOT NULL,
|
||||
`player_id` text NOT NULL,
|
||||
FOREIGN KEY (`room_code`) REFERENCES `rooms`(`code`) ON UPDATE no action ON DELETE cascade
|
||||
);
|
||||
Reference in new issue
Block a user