first commit

This commit is contained in:
2025-12-22 22:40:38 -03:00
commit 309d9eefba
25 changed files with 902 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
-- CreateTable
CREATE TABLE "Plate" (
"id" SERIAL NOT NULL,
"number" TEXT NOT NULL,
"owner" TEXT,
"status" TEXT NOT NULL DEFAULT 'ALLOWED',
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "Plate_pkey" PRIMARY KEY ("id")
);
-- CreateTable
CREATE TABLE "AccessLog" (
"id" SERIAL NOT NULL,
"plateNumber" TEXT NOT NULL,
"accessStatus" TEXT NOT NULL,
"timestamp" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "AccessLog_pkey" PRIMARY KEY ("id")
);
-- CreateIndex
CREATE UNIQUE INDEX "Plate_number_key" ON "Plate"("number");

View File

@@ -0,0 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "postgresql"