@adaptware/eagles-db 0.4.24 → 0.4.26

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.4.24",
3
+ "version": "0.4.26",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,6 +26,7 @@ model Application {
26
26
  expected_ctc String?
27
27
  notice_period Int?
28
28
  preferred_location String?
29
+ evaluationComment String?
29
30
  // Relations
30
31
  fit_check_status FitCheckStatus?
31
32
  status ApplicationStatus @default(PENDING)
@@ -48,6 +48,12 @@ enum EvaluationPlanType {
48
48
  DELETED
49
49
  }
50
50
 
51
+ enum EvaluationPlanShareScope {
52
+ PRIVATE
53
+ CREATOR
54
+ ORGANIZATION
55
+ }
56
+
51
57
  enum DurationUnit {
52
58
  MINUTES
53
59
  HOURS
@@ -71,6 +77,7 @@ model EvaluationPlan {
71
77
  order_no Int?
72
78
  details Json?
73
79
  plan_type EvaluationPlanType @default(GENERIC)
80
+ share_scope EvaluationPlanShareScope @default(PRIVATE)
74
81
  duration Int?
75
82
  duration_unit DurationUnit?
76
83
  deadline Int?
@@ -90,4 +97,6 @@ model EvaluationPlan {
90
97
  ongoing_evaluations OngoingEvaluation[]
91
98
 
92
99
  @@index([job_description_id])
100
+ @@index([job_description_id, plan_type, share_scope])
101
+ @@index([created_by, share_scope])
93
102
  }
@@ -0,0 +1,14 @@
1
+ CREATE TYPE "EvaluationPlanShareScope" AS ENUM (
2
+ 'PRIVATE',
3
+ 'CREATOR',
4
+ 'ORGANIZATION'
5
+ );
6
+
7
+ ALTER TABLE "EvaluationPlan"
8
+ ADD COLUMN "share_scope" "EvaluationPlanShareScope" NOT NULL DEFAULT 'PRIVATE';
9
+
10
+ CREATE INDEX "EvaluationPlan_job_description_id_plan_type_share_scope_idx"
11
+ ON "EvaluationPlan"("job_description_id", "plan_type", "share_scope");
12
+
13
+ CREATE INDEX "EvaluationPlan_created_by_share_scope_idx"
14
+ ON "EvaluationPlan"("created_by", "share_scope");
@@ -0,0 +1,2 @@
1
+ -- AlterTable
2
+ ALTER TABLE "Application" ADD COLUMN "evaluationComment" TEXT;