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.
9 lines
348 B
9 lines
348 B
|
1 month ago
|
CREATE TABLE `favorito` (
|
||
|
|
`usuario_id` text NOT NULL,
|
||
|
|
`cancion_slug` text NOT NULL,
|
||
|
|
`marcado_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_favorito_usuario` ON `favorito` (`usuario_id`);
|