···11+CREATE TABLE `frames` (
22+ `hash` text PRIMARY KEY NOT NULL,
33+ `frame` text NOT NULL
44+);
55+--> statement-breakpoint
16CREATE TABLE `report_frames` (
27 `report_id` text NOT NULL,
38 `frame_index` integer NOT NULL,
44- `frame` text NOT NULL,
99+ `frame_hash` text NOT NULL,
510 PRIMARY KEY(`report_id`, `frame_index`),
66- FOREIGN KEY (`report_id`) REFERENCES `reports`(`id`) ON UPDATE no action ON DELETE cascade
1111+ FOREIGN KEY (`report_id`) REFERENCES `reports`(`id`) ON UPDATE no action ON DELETE cascade,
1212+ FOREIGN KEY (`frame_hash`) REFERENCES `frames`(`hash`) ON UPDATE no action ON DELETE restrict
713);
814--> statement-breakpoint
915CREATE TABLE `reports` (