db connect

This commit is contained in:
2026-04-17 11:16:00 +03:00
parent b675fff437
commit 5a48605c35
25 changed files with 2607 additions and 298 deletions

28
prisma/schema.prisma Normal file
View File

@@ -0,0 +1,28 @@
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
}
model Project {
id Int @id @default(autoincrement())
slug String @unique
title String
year String
location String
image String
gallery String[]
category String?
description String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Admin {
id Int @id @default(autoincrement())
username String @unique
password String
createdAt DateTime @default(now())
}