Initial commit

This commit is contained in:
Quintine committed 2026-09-08 07:37:52 +10:00
commit 8c709fb52f
771 files changed
+222983

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
CREATE TABLE `seat_recovery_keys` (
`room_code` text NOT NULL,
`player_id` text NOT NULL,
`recovery_hash` text NOT NULL,
PRIMARY KEY(`room_code`, `player_id`),
FOREIGN KEY (`room_code`) REFERENCES `rooms`(`code`) ON UPDATE no action ON DELETE cascade
);
--> statement-breakpoint
CREATE TABLE `seat_recovery_receipts` (
`room_code` text NOT NULL,
`player_id` text NOT NULL,
`operation_hash` text NOT NULL,
`recovery_hash` text NOT NULL,
`session_hash` text NOT NULL,
PRIMARY KEY(`room_code`, `player_id`, `operation_hash`),
FOREIGN KEY (`room_code`) REFERENCES `rooms`(`code`) ON UPDATE no action ON DELETE cascade
);