feat: add Bytescale image uploads

This commit is contained in:
Kailasdevdas
2026-04-14 17:33:21 +05:30
parent 0fddd7a656
commit c282b1825e
15 changed files with 498 additions and 197 deletions
+15 -4
View File
@@ -21,6 +21,7 @@ model Doctor {
id Int @id @default(autoincrement())
doctorId String @unique
name String
image String?
designation String?
workingStatus String?
qualification String?
@@ -36,6 +37,8 @@ model Department {
id Int @id @default(autoincrement())
departmentId String @unique
name String
image String?
para1 String?
para2 String?
@@ -188,17 +191,25 @@ model EmailConfig {
}
model NewsMedia {
id Int @id @default(autoincrement())
id Int @id @default(autoincrement())
headline String
content String?
firstPara String?
secondPara String?
author String?
date DateTime?
images NewsImage[]
isActive Boolean @default(true)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
model NewsImage {
id Int @id @default(autoincrement())
url String
newsMediaId Int
newsMedia NewsMedia @relation(fields: [newsMediaId], references: [id], onDelete: Cascade)
createdAt DateTime @default(now())
}