@adaptware/eagles-db 0.5.42 → 0.5.43
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
|
@@ -12,6 +12,8 @@ model AssessmentLibrary {
|
|
|
12
12
|
created_by String
|
|
13
13
|
updated_by String
|
|
14
14
|
is_active Boolean @default(true)
|
|
15
|
+
/// Frozen question plan, batch cursor, and bank-generation status (JSON).
|
|
16
|
+
generation_state Json?
|
|
15
17
|
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
16
18
|
questions Question[] // One assessment → many questions
|
|
17
19
|
assessments Assessment[]
|
|
@@ -6,12 +6,24 @@ enum Difficulty {
|
|
|
6
6
|
@@schema("public")
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
enum QuestionCategory {
|
|
10
|
+
/// Aptitude, logical reasoning, numerical, verbal — non-domain general tests.
|
|
11
|
+
GENERAL_APTITUDE
|
|
12
|
+
/// Role/domain/technical knowledge (skills from JD and competencies).
|
|
13
|
+
DOMAIN_KNOWLEDGE
|
|
14
|
+
|
|
15
|
+
@@schema("public")
|
|
16
|
+
}
|
|
17
|
+
|
|
9
18
|
model Question {
|
|
10
19
|
id String @id @default(uuid())
|
|
11
20
|
assessment_library_id String?
|
|
12
21
|
evaluation_plan_id String?
|
|
13
22
|
candidate_id String?
|
|
14
23
|
skill String?
|
|
24
|
+
category QuestionCategory?
|
|
25
|
+
/// Stable idempotency key for reusable bank rows: `{generationSeed}:{planSlot}`.
|
|
26
|
+
bank_item_key String?
|
|
15
27
|
question String
|
|
16
28
|
answer String
|
|
17
29
|
options String[] // For MCQ's
|
|
@@ -28,5 +40,6 @@ model Question {
|
|
|
28
40
|
evaluationPlan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id], onDelete: SetNull)
|
|
29
41
|
candidateResponse CandidateQuestionResponse[]
|
|
30
42
|
|
|
43
|
+
@@unique([assessment_library_id, bank_item_key])
|
|
31
44
|
@@schema("public")
|
|
32
45
|
}
|