@hirelink/database-prisma 1.1.9 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisma/schema.prisma +13 -4
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
@@ -17,7 +17,10 @@ model User {
|
|
17
17
|
created_at DateTime? @default(now())
|
18
18
|
updated_at DateTime? @updatedAt
|
19
19
|
work_experience Work_experience? @default(experience)
|
20
|
+
dob DateTime?
|
21
|
+
gender Gender?
|
20
22
|
candidate_documents CandidateDocument[]
|
23
|
+
Experience_history ExperienceHistory[]
|
21
24
|
hirelink_ids HirelinkId[]
|
22
25
|
hr_users HrUser[]
|
23
26
|
logs Log[]
|
@@ -27,7 +30,6 @@ model User {
|
|
27
30
|
password_reset_requests PasswordResetRequest[]
|
28
31
|
sessions Session[]
|
29
32
|
verification_requests VerificationRequest[]
|
30
|
-
Experience_history ExperienceHistory[]
|
31
33
|
}
|
32
34
|
|
33
35
|
model ExperienceHistory {
|
@@ -36,10 +38,10 @@ model ExperienceHistory {
|
|
36
38
|
employer String
|
37
39
|
start_date DateTime
|
38
40
|
end_date DateTime
|
39
|
-
user User @relation(fields: [userId], references: [id])
|
40
41
|
userId String
|
41
42
|
created_at DateTime @default(now())
|
42
43
|
updated_at DateTime @updatedAt
|
44
|
+
user User @relation(fields: [userId], references: [id])
|
43
45
|
}
|
44
46
|
|
45
47
|
model Organization {
|
@@ -117,10 +119,10 @@ model CandidateDocument {
|
|
117
119
|
doc_type String
|
118
120
|
uploaded_at String
|
119
121
|
user_id String
|
120
|
-
candidate_document_type CandidateDocumentType?
|
121
|
-
status CandidateDocumentStatus @default(pending)
|
122
122
|
created_at DateTime? @default(now())
|
123
123
|
updated_at DateTime? @updatedAt
|
124
|
+
candidate_document_type CandidateDocumentType?
|
125
|
+
status CandidateDocumentStatus @default(pending)
|
124
126
|
user User @relation(fields: [user_id], references: [id])
|
125
127
|
}
|
126
128
|
|
@@ -253,3 +255,10 @@ enum CandidateDocumentStatus {
|
|
253
255
|
overdue
|
254
256
|
complete
|
255
257
|
}
|
258
|
+
|
259
|
+
enum Gender {
|
260
|
+
Male
|
261
|
+
Female
|
262
|
+
Other
|
263
|
+
PreferNotToSay
|
264
|
+
}
|