feat: add audio clip annotation view for dialect rating

This commit is contained in:
smaubio
2026-03-13 14:49:46 +01:00
parent 2b6d23c406
commit a823e968a2
12 changed files with 2022 additions and 4 deletions

View File

@@ -0,0 +1,10 @@
CREATE TABLE `annotation` (
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
`dataset_entry_id` integer NOT NULL,
`user_id` text NOT NULL,
`rating` integer NOT NULL,
`created_at` integer DEFAULT (unixepoch()) NOT NULL,
FOREIGN KEY (`dataset_entry_id`) REFERENCES `dataset_entry`(`id`) ON UPDATE no action ON DELETE no action
);
--> statement-breakpoint
CREATE UNIQUE INDEX `annotation_user_entry_idx` ON `annotation` (`user_id`,`dataset_entry_id`);