Initial commit: LACA parking management system

This commit is contained in:
2025-08-13 10:05:36 +07:00
commit 8b07467b61
275 changed files with 66828 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
/*
Warnings:
- You are about to alter the column `close` on the `Slot` table. The data in that column could be lost. The data in that column will be cast from `VarChar` to `VarChar(1)`.
- You are about to alter the column `open` on the `Slot` table. The data in that column could be lost. The data in that column will be cast from `VarChar` to `VarChar(1)`.
*/
-- DropForeignKey
ALTER TABLE "Slot" DROP CONSTRAINT "Slot_tenantId_fkey";
-- AlterTable
ALTER TABLE "Slot" ADD COLUMN "userId" INTEGER,
ALTER COLUMN "tenantId" DROP NOT NULL,
ALTER COLUMN "close" SET DATA TYPE VARCHAR(5),
ALTER COLUMN "open" SET DATA TYPE VARCHAR(5);
-- AddForeignKey
ALTER TABLE "Slot" ADD CONSTRAINT "Slot_tenantId_fkey" FOREIGN KEY ("tenantId") REFERENCES "Tenant"("id") ON DELETE SET NULL ON UPDATE CASCADE;
-- AddForeignKey
ALTER TABLE "Slot" ADD CONSTRAINT "Slot_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;