You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
423 B
11 lines
423 B
CREATE TABLE `valoracion` (
|
|
`usuario_id` text NOT NULL,
|
|
`cancion_slug` text NOT NULL,
|
|
`puntuacion` integer NOT NULL,
|
|
`creada_en` integer NOT NULL,
|
|
`actualizada_en` integer NOT NULL,
|
|
PRIMARY KEY(`usuario_id`, `cancion_slug`),
|
|
FOREIGN KEY (`usuario_id`) REFERENCES `usuario`(`id`) ON UPDATE no action ON DELETE cascade
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE INDEX `idx_valoracion_cancion` ON `valoracion` (`cancion_slug`); |