CREATE TABLE `report_locks` ( `user_id` text PRIMARY KEY NOT NULL, `request_id` text NOT NULL, `started_at` integer NOT NULL, FOREIGN KEY (`user_id`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE no action );