Files

176 lines
3.7 KiB
Plaintext
Raw Permalink Normal View History

2026-03-12 14:15:44 +05:30
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model User {
2026-03-16 10:16:27 +05:30
id Int @id @default(autoincrement())
username String @unique
password String
role String? @default("admin")
2026-03-12 14:15:44 +05:30
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Doctor {
2026-03-16 10:16:27 +05:30
id Int @id @default(autoincrement())
doctorId String @unique
2026-03-12 14:15:44 +05:30
name String
designation String?
workingStatus String?
qualification String?
2026-03-16 10:16:27 +05:30
departments DoctorDepartment[]
appointments Appointment[]
2026-03-12 14:15:44 +05:30
2026-03-16 10:16:27 +05:30
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
2026-03-12 14:15:44 +05:30
}
model Department {
2026-03-16 10:16:27 +05:30
id Int @id @default(autoincrement())
departmentId String @unique
name String
2026-03-12 14:15:44 +05:30
2026-03-16 10:16:27 +05:30
para1 String?
para2 String?
para3 String?
facilities String?
services String?
2026-03-12 14:15:44 +05:30
2026-03-16 10:16:27 +05:30
doctors DoctorDepartment[]
appointments Appointment[]
2026-03-12 14:15:44 +05:30
2026-03-16 10:16:27 +05:30
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
2026-03-12 14:15:44 +05:30
}
model DoctorDepartment {
2026-03-16 10:16:27 +05:30
id Int @id @default(autoincrement())
2026-03-12 14:15:44 +05:30
2026-03-16 10:16:27 +05:30
doctorId Int
departmentId Int
2026-03-12 14:15:44 +05:30
2026-03-16 10:16:27 +05:30
doctor Doctor @relation(fields: [doctorId], references: [id])
department Department @relation(fields: [departmentId], references: [id])
2026-03-12 14:15:44 +05:30
2026-03-16 10:16:27 +05:30
timing DoctorTiming?
2026-03-12 14:15:44 +05:30
2026-03-16 10:16:27 +05:30
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
2026-03-12 14:15:44 +05:30
@@unique([doctorId, departmentId])
}
model DoctorTiming {
2026-03-16 10:16:27 +05:30
id Int @id @default(autoincrement())
2026-03-12 14:15:44 +05:30
2026-03-16 10:16:27 +05:30
doctorDepartmentId Int @unique
doctorDepartment DoctorDepartment @relation(fields: [doctorDepartmentId], references: [id])
monday String?
tuesday String?
wednesday String?
thursday String?
friday String?
saturday String?
sunday String?
additional String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
2026-03-12 14:15:44 +05:30
model Blog {
2026-03-16 10:16:27 +05:30
id Int @id @default(autoincrement())
title String
writer String?
image String?
content Json
isActive Boolean @default(true)
2026-03-12 14:15:44 +05:30
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
2026-03-13 14:54:47 +05:30
}
model Career {
2026-03-16 10:16:27 +05:30
id Int @id @default(autoincrement())
2026-03-13 14:54:47 +05:30
post String
designation String?
qualification String?
experienceNeed String?
email String?
number String?
2026-03-16 10:16:27 +05:30
status String @default("new")
2026-03-13 14:54:47 +05:30
2026-03-16 10:16:27 +05:30
candidates Candidate[]
2026-03-13 16:26:06 +05:30
2026-03-16 10:16:27 +05:30
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
2026-03-13 16:26:06 +05:30
}
model Candidate {
2026-03-16 10:16:27 +05:30
id Int @id @default(autoincrement())
fullName String
mobile String
email String
subject String
coverLetter String
careerId Int
career Career @relation(fields: [careerId], references: [id])
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
2026-03-13 16:26:06 +05:30
}
model Appointment {
2026-03-16 10:16:27 +05:30
id Int @id @default(autoincrement())
2026-03-13 16:26:06 +05:30
2026-03-16 10:16:27 +05:30
name String
mobileNumber String
email String?
message String?
date DateTime
2026-03-13 16:26:06 +05:30
2026-03-16 10:16:27 +05:30
doctorId String
departmentId String
2026-03-13 16:26:06 +05:30
2026-03-16 10:16:27 +05:30
doctor Doctor @relation(fields: [doctorId], references: [doctorId])
department Department @relation(fields: [departmentId], references: [departmentId])
2026-03-13 16:26:06 +05:30
2026-03-16 10:16:27 +05:30
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
2026-03-16 12:39:41 +05:30
model Inquiry {
id Int @id @default(autoincrement())
fullName String
number String
emailId String?
subject String?
message String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model AcademicsResearch {
id Int @id @default(autoincrement())
fullName String
number String
emailId String?
subject String?
courseName String?
message String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}