@adaptware/eagles-db 0.5.3 → 0.5.4

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "prisma-client-9cf4644c23ca38a4d545286e5b8e8a46022dec5ef60dab0b679be3afe8489cc9",
2
+ "name": "prisma-client-836ab6748a4ca166a515129cae623c9214f588907f326605157e10f26edf3c89",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "default.js",
@@ -50,6 +50,12 @@ enum ActionType {
50
50
  TAKE_INTERVIEW
51
51
  PROVIDE_FEEDBACK
52
52
  SCHEDULE_INTERVIEW
53
+ /// Dept head is asked to submit their department's hiring requirements.
54
+ SUBMIT_DEPARTMENT_HIRING_REQUIREMENTS
55
+ /// CHRO must review a department's submitted hiring requirements.
56
+ REVIEW_DEPARTMENT_HIRING_REQUIREMENTS
57
+ /// Dept head must update requirements after CHRO requested changes.
58
+ UPDATE_DEPARTMENT_HIRING_REQUIREMENTS
53
59
 
54
60
  @@schema("public")
55
61
  }
@@ -1145,13 +1151,21 @@ model ContactUs {
1145
1151
  }
1146
1152
 
1147
1153
  /// Section-level status for a department's slice of the hiring plan.
1148
- /// DRAFT department head is editing
1149
- /// SUBMITTED head submitted; awaiting CHRO
1150
- /// APPROVED — CHRO locked; line writes rejected until reopened to DRAFT
1154
+ /// DRAFT legacy pre-request state (heads had free edit); still used
1155
+ /// when a section row exists before CHRO has "requested input".
1156
+ /// REQUESTED — CHRO has requested input; head may edit.
1157
+ /// SUBMITTED — head submitted; awaiting CHRO review; head is frozen.
1158
+ /// CHANGES_REQUESTED — CHRO sent back with a note; head may edit again.
1159
+ /// APPROVED — CHRO approved; heads frozen. CHRO may still edit
1160
+ /// (product default). Reopen returns to CHANGES_REQUESTED.
1161
+ /// SKIPPED — CHRO opted out of collecting input for this dept.
1151
1162
  enum HiringPlanSectionStatus {
1152
1163
  DRAFT
1164
+ REQUESTED
1153
1165
  SUBMITTED
1166
+ CHANGES_REQUESTED
1154
1167
  APPROVED
1168
+ SKIPPED
1155
1169
 
1156
1170
  @@schema("public")
1157
1171
  }
@@ -1208,16 +1222,24 @@ model DepartmentMember {
1208
1222
  @@schema("public")
1209
1223
  }
1210
1224
 
1211
- /// Per-department status for a specific hiring plan (submit → approve/lock).
1225
+ /// Per-department status for a specific hiring plan (request → submit → approve/lock).
1212
1226
  model HiringPlanSection {
1213
1227
  id String @id @default(uuid())
1214
1228
  hiring_plan_id String
1215
1229
  department_id String
1216
1230
  status HiringPlanSectionStatus @default(DRAFT)
1231
+ /// CHRO/Exec who invoked "Request input" for this dept.
1232
+ requested_by String?
1233
+ requested_at DateTime?
1217
1234
  submitted_by String?
1218
1235
  submitted_at DateTime?
1219
1236
  approved_by String?
1220
1237
  approved_at DateTime?
1238
+ /// CHRO/Exec who opted to skip this dept (or the dept-head request lifecycle).
1239
+ skipped_by String?
1240
+ skipped_at DateTime?
1241
+ /// Latest CHRO note attached to Request Changes / Reopen.
1242
+ review_note String?
1221
1243
  created_at DateTime @default(now())
1222
1244
  updated_at DateTime @updatedAt
1223
1245
  created_by String
@@ -1636,6 +1658,10 @@ model HiringPlanLine {
1636
1658
  start_month Int @default(1)
1637
1659
  /// Optional staggered starts: { "1": 2, "4": 2 } (fiscal-month → count).
1638
1660
  hire_schedule Json?
1661
+ /// Free-form requirement details captured by dept heads: priority, skills,
1662
+ /// justification, salary_range, etc. Kept as JSON to avoid wide migrations
1663
+ /// while the workflow settles.
1664
+ details Json?
1639
1665
  /// Display order within a business unit (lower first).
1640
1666
  sort_order Int @default(0)
1641
1667
  /// Reference/template JD for this role (definition).
@@ -1682,7 +1708,9 @@ model Employee {
1682
1708
  starting_salary Decimal? @db.Decimal(18, 2)
1683
1709
  /// Comp immediately before the latest raise (or prior cycle). Optional.
1684
1710
  previous_salary Decimal? @db.Decimal(18, 2)
1685
- current_comp Decimal @db.Decimal(18, 2)
1711
+ /// Current fully-loaded comp. Optional — workforce roster may be captured
1712
+ /// before salary details are collected.
1713
+ current_comp Decimal? @db.Decimal(18, 2)
1686
1714
  currency String @default("INR")
1687
1715
  last_increment_date DateTime?
1688
1716
  last_increment_amount Decimal? @db.Decimal(18, 2)