feat: User services

This commit is contained in:
sauravdhakal12
2026-02-20 15:53:45 +05:45
parent 9561693cb4
commit f6bce78aee
39 changed files with 6509 additions and 66 deletions

24
prisma/models/user.prisma Normal file
View File

@@ -0,0 +1,24 @@
model User {
id String @id @default(uuid())
firstName String
middleName String?
lastName String
email String @unique
password String
role USER_ROLE @default(ordinary)
isVerified Boolean? @default(false) // TODO: Email using queue
refreshToken String?
profilePicture String?
isDeleted Boolean? @default(false)
deletedAt DateTime?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@map("user")
}
enum USER_ROLE {
superadmin
ordinary
}