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.
senzapaura_es/drizzle/0003_dark_mad_thinker.sql

9 lines
348 B

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`);

Powered by TurnKey Linux.