-- Likes independientes de las antiguas puntuaciones. Un like por cuenta y canción. CREATE TABLE "me_gusta" ( "usuario_id" text NOT NULL REFERENCES "usuario"("id") ON DELETE CASCADE, "cancion_id" text NOT NULL REFERENCES "cancion"("id") ON DELETE CASCADE, "creado_en" timestamp with time zone DEFAULT now() NOT NULL, PRIMARY KEY ("usuario_id", "cancion_id") ); --> statement-breakpoint CREATE INDEX "idx_me_gusta_cancion" ON "me_gusta" ("cancion_id");