Update:PROFILE API's and create get users api's with pagination

This commit is contained in:
sharafat
2026-05-24 00:17:16 +06:00
parent d2b320f3b1
commit 1abecc9b8f
13 changed files with 327 additions and 8 deletions
+11 -6
View File
@@ -1,14 +1,19 @@
enum ShopStatus {
ACTIVE
SUSPENDED
DELETED
INACTIVE
}
model Profile {
id String @id @default(uuid())
accountId String @unique
account Account @relation(fields: [accountId], references: [id], onDelete: Cascade)
id String @id @default(uuid())
accountId String @unique
account Account @relation(fields: [accountId], references: [id], onDelete: Cascade)
shopName String
shopLogo String?
contactNumber String?
shopAddress String?
shopMapLocation String?
shopCategory String?
status ShopStatus @default(ACTIVE)
}
+7
View File
@@ -0,0 +1,7 @@
model Users {
id String @id @default(uuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}