Files
ayristech_new/prisma/schema.prisma
T
2026-05-30 18:23:21 +03:00

68 lines
1.4 KiB
Plaintext

// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
}
model Project {
id Int @id @default(autoincrement())
num String @unique
slug String @unique
title String
tag String
desc String
spec String
year String
client String
duration String
tech String[]
challenge String
solution String
results String[]
image String @default("")
gallery String[] @default([])
website String @default("")
}
model BlogPost {
id Int @id @default(autoincrement())
slug String @unique
date String
author String
authorRole String
image String
trTitle String
trExcerpt String
trReadingTime String
trCategory String
trTags String[]
trContent String
enTitle String
enExcerpt String
enReadingTime String
enCategory String
enTags String[]
enContent String
}
model Partner {
id Int @id @default(autoincrement())
name String @unique
tag String
mono String
year String
desc String
}
model User {
id Int @id @default(autoincrement())
username String @unique
password String // Salty pbkdf2 hashed password
createdAt DateTime @default(now())
}