init: init project

This commit is contained in:
2026-04-02 21:27:09 +06:00
commit 81f9801487
45 changed files with 1857 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
enum ROLE {
ADMIN
USER
}
model Account {
id String @id @default(uuid())
email String @unique
password String
role ROLE @default(USER)
lastOtp String?
lastOtpSendingTime DateTime?
isDeleted Boolean @default(false)
isAccountVerified Boolean @default(false)
createdAt DateTime @default(now())
updatedAt DateTime @default(now())
profile Profile?
}
+8
View File
@@ -0,0 +1,8 @@
model Profile {
id String @id @default(uuid())
accountId String @unique
account Account @relation(fields: [accountId], references: [id], onDelete: Cascade)
fullName String
profilePhoto String?
}
+8
View File
@@ -0,0 +1,8 @@
generator client {
provider = "prisma-client"
output = "../generated/prisma"
}
datasource db {
provider = "postgresql"
}