@adaptware/eagles-db 0.1.78 → 0.1.80
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
|
@@ -7,40 +7,43 @@ enum ApplicationStatus {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
model Application {
|
|
10
|
-
id
|
|
11
|
-
candidate_id
|
|
12
|
-
resume_id
|
|
13
|
-
organisation_id
|
|
14
|
-
job_description_id
|
|
15
|
-
fit_check_score
|
|
16
|
-
applied_at
|
|
17
|
-
evaluation_plan_id
|
|
18
|
-
fit_check_id
|
|
19
|
-
round_no
|
|
10
|
+
id String @id @default(uuid())
|
|
11
|
+
candidate_id String
|
|
12
|
+
resume_id String
|
|
13
|
+
organisation_id String
|
|
14
|
+
job_description_id String
|
|
15
|
+
fit_check_score Float?
|
|
16
|
+
applied_at DateTime @default(now())
|
|
17
|
+
evaluation_plan_id String?
|
|
18
|
+
fit_check_id String? @unique
|
|
19
|
+
round_no Int @default(0)
|
|
20
20
|
//Screening fields
|
|
21
|
-
on_notice_period
|
|
21
|
+
on_notice_period Boolean @default(false)
|
|
22
22
|
expected_joining_date DateTime?
|
|
23
23
|
current_ctc String?
|
|
24
|
-
|
|
24
|
+
expected_ctc String?
|
|
25
|
+
notice_period String?
|
|
26
|
+
preferred_location String?
|
|
25
27
|
// Relations
|
|
26
|
-
fit_check_status
|
|
27
|
-
status
|
|
28
|
-
evaluation_plan
|
|
29
|
-
candidate
|
|
30
|
-
organisation
|
|
31
|
-
resume
|
|
32
|
-
job_description
|
|
33
|
-
fit_check
|
|
34
|
-
interviews
|
|
35
|
-
assignments
|
|
36
|
-
ongoing_evaluations
|
|
37
|
-
activity_logs
|
|
28
|
+
fit_check_status FitCheckStatus?
|
|
29
|
+
status ApplicationStatus @default(PENDING)
|
|
30
|
+
evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id])
|
|
31
|
+
candidate User @relation(fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
32
|
+
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
33
|
+
resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
34
|
+
job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
35
|
+
fit_check FitCheck? @relation(fields: [fit_check_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
36
|
+
interviews Interview[]
|
|
37
|
+
assignments Assignment[]
|
|
38
|
+
ongoing_evaluations OngoingEvaluation[]
|
|
39
|
+
activity_logs ActivityLog[]
|
|
40
|
+
notes Notes[]
|
|
38
41
|
// Audit fields
|
|
39
|
-
created_at
|
|
40
|
-
updated_at
|
|
41
|
-
created_by
|
|
42
|
-
updated_by
|
|
43
|
-
is_active
|
|
42
|
+
created_at DateTime @default(now())
|
|
43
|
+
updated_at DateTime @updatedAt
|
|
44
|
+
created_by String
|
|
45
|
+
updated_by String
|
|
46
|
+
is_active Boolean @default(true)
|
|
44
47
|
|
|
45
48
|
@@unique([candidate_id, job_description_id]) // Ensures candidate applies only once per job
|
|
46
49
|
@@index([candidate_id])
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
model Notes {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
application_id String
|
|
4
|
+
user_id String
|
|
5
|
+
note String
|
|
6
|
+
pinned Boolean @default(false)
|
|
7
|
+
created_at DateTime @default(now())
|
|
8
|
+
updated_at DateTime @updatedAt
|
|
9
|
+
created_by String
|
|
10
|
+
updated_by String
|
|
11
|
+
is_active Boolean @default(true)
|
|
12
|
+
|
|
13
|
+
// Relations
|
|
14
|
+
application Application @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
15
|
+
user User @relation(fields: [user_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
16
|
+
|
|
17
|
+
@@index([application_id, created_at])
|
|
18
|
+
@@index([user_id, created_at])
|
|
19
|
+
}
|