Files
planilla/api/prisma/migrations/20250530214923_init/migration.sql
josedario87 031d5c8344
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Failing after 21s
build-and-deploy / deploy (push) Has been skipped
prisma actualizado. toma en cuenta las relaciones tareas-planilla y planilla-tareas
2025-05-30 15:52:54 -06:00

19 lines
873 B
SQL

-- AlterTable
ALTER TABLE "Asistencia" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc'),
ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc'),
ALTER COLUMN "entrada" SET DEFAULT (now() AT TIME ZONE 'utc');
-- AlterTable
ALTER TABLE "Cliente" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc'),
ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');
-- AlterTable
ALTER TABLE "Planilla" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc'),
ALTER COLUMN "updated_at" SET DEFAULT (now() AT TIME ZONE 'utc');
-- AlterTable
ALTER TABLE "TareaRealizada" ALTER COLUMN "created_at" SET DEFAULT (now() AT TIME ZONE 'utc');
-- AddForeignKey
ALTER TABLE "TareaRealizada" ADD CONSTRAINT "TareaRealizada_planilla_id_fkey" FOREIGN KEY ("planilla_id") REFERENCES "Planilla"("id") ON DELETE SET NULL ON UPDATE CASCADE;