@adaptware/eagles-db 0.1.42 → 0.1.44
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
CHANGED
|
@@ -8,10 +8,10 @@ model Assignment {
|
|
|
8
8
|
candidate_id String
|
|
9
9
|
assignment_library_id String
|
|
10
10
|
reviewer_id String?
|
|
11
|
-
evaluation_plan_id String
|
|
12
11
|
application_id String?
|
|
13
12
|
job_description_id String
|
|
14
13
|
organisation_id String
|
|
14
|
+
ongoing_evaluation_id String?
|
|
15
15
|
score Int?
|
|
16
16
|
ai_result String?
|
|
17
17
|
ai_reasoning String?
|
|
@@ -19,24 +19,21 @@ model Assignment {
|
|
|
19
19
|
solution_url String?
|
|
20
20
|
scheduled_start_time DateTime?
|
|
21
21
|
scheduled_end_time DateTime?
|
|
22
|
-
actual_start_time DateTime?
|
|
23
|
-
actual_end_time DateTime?
|
|
24
22
|
created_at DateTime @default(now())
|
|
25
23
|
updated_at DateTime @updatedAt
|
|
26
24
|
created_by String
|
|
27
25
|
updated_by String
|
|
28
26
|
is_active Boolean @default(true)
|
|
29
27
|
// Relations
|
|
30
|
-
candidate User? @relation("CandidateAssignments", fields: [candidate_id], references: [id], onDelete:
|
|
28
|
+
candidate User? @relation("CandidateAssignments", fields: [candidate_id], references: [id], onDelete: Cascade)
|
|
31
29
|
assignment_library AssignmentLibrary @relation(fields: [assignment_library_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
32
30
|
reviewer User? @relation("AssignmentReviewer", fields: [reviewer_id], references: [id], onDelete: SetNull)
|
|
33
31
|
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
34
32
|
job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
ongoing_evaluation OngoingEvaluation?
|
|
33
|
+
application Application? @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
34
|
+
ongoing_evaluation OngoingEvaluation? @relation(fields: [ongoing_evaluation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
38
35
|
|
|
39
|
-
@@unique([
|
|
36
|
+
@@unique([candidate_id, ongoing_evaluation_id])
|
|
40
37
|
@@index([candidate_id])
|
|
41
38
|
@@index([reviewer_id])
|
|
42
39
|
@@index([job_description_id])
|
|
@@ -74,7 +74,6 @@ model EvaluationPlan {
|
|
|
74
74
|
questions Question[] // One evaluation plan → many questions
|
|
75
75
|
panelists Panelist[]
|
|
76
76
|
interviews Interview[]
|
|
77
|
-
assignments Assignment[]
|
|
78
77
|
applications Application[]
|
|
79
78
|
// New optional one-to-one relation with AssessmentLibrary
|
|
80
79
|
assessment AssessmentLibrary? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
|
|
@@ -47,7 +47,7 @@ model OngoingEvaluation {
|
|
|
47
47
|
organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
48
48
|
evaluation_plan EvaluationPlan @relation(fields: [evaluation_plan_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
49
49
|
interview Interview? @relation(fields: [interview_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
50
|
-
assignment Assignment?
|
|
50
|
+
assignment Assignment?
|
|
51
51
|
created_at DateTime @default(now())
|
|
52
52
|
updated_at DateTime @updatedAt
|
|
53
53
|
created_by String
|