feat: Add prisma migrations and config

This commit is contained in:
AyrisAI
2026-04-02 04:26:32 +03:00
parent aba1ae39b2
commit a89f9f1720
6 changed files with 325 additions and 13 deletions

View File

@@ -0,0 +1,13 @@
-- CreateTable
CREATE TABLE "Project" (
"id" TEXT NOT NULL,
"title" TEXT NOT NULL,
"description" TEXT NOT NULL,
"m2" INTEGER NOT NULL,
"rooms" TEXT NOT NULL,
"images" TEXT[],
"status" TEXT NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "Project_pkey" PRIMARY KEY ("id")
);

View File

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

View File

@@ -8,7 +8,6 @@ generator client {
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model Project {