feat:add candidate apis
This commit is contained in:
@@ -27,6 +27,7 @@ model Doctor {
|
||||
qualification String?
|
||||
|
||||
departments DoctorDepartment[]
|
||||
appointments Appointment[]
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
@@ -45,6 +46,7 @@ model Department {
|
||||
services String?
|
||||
|
||||
doctors DoctorDepartment[]
|
||||
appointments Appointment[]
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
@@ -109,6 +111,42 @@ model Career {
|
||||
number String?
|
||||
status String @default("new")
|
||||
|
||||
candidates Candidate[]
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
model Candidate {
|
||||
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
|
||||
}
|
||||
|
||||
model Appointment {
|
||||
id Int @id @default(autoincrement())
|
||||
|
||||
name String
|
||||
mobileNumber String
|
||||
email String?
|
||||
message String?
|
||||
date DateTime
|
||||
|
||||
doctorId Int
|
||||
departmentId Int
|
||||
|
||||
doctor Doctor @relation(fields: [doctorId], references: [id])
|
||||
department Department @relation(fields: [departmentId], references: [id])
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
Reference in New Issue
Block a user