@adaptware/eagles-db 0.1.38 → 0.1.40

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-5ac043c7414ca642bbc8e7b02ef3040a50e4dc0f37a86e5bea0ddb8963dd11da",
2
+ "name": "prisma-client-23c70d16b49e6790467fd4e983caca8aa8eb2e5817181f66b1b76c4cd4fbf2ff",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -84,20 +84,20 @@ enum ActivityActorType {
84
84
  }
85
85
 
86
86
  model ActivityLog {
87
- id String @id @default(uuid())
88
- candidate_id String
89
- actor_id String?
90
- actor_type ActivityActorType @default(USER)
91
- message String
92
- timestamp DateTime @default(now())
93
- metadata Json?
94
- created_at DateTime @default(now())
95
- is_active Boolean @default(true)
87
+ id String @id @default(uuid())
88
+ application_id String
89
+ actor_id String?
90
+ actor_type ActivityActorType @default(USER)
91
+ message String
92
+ timestamp DateTime @default(now())
93
+ metadata Json?
94
+ created_at DateTime @default(now())
95
+ is_active Boolean @default(true)
96
96
  // Relations
97
- candidate User @relation("CandidateActivityLogs", fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
98
- actor User? @relation("ActorActivityLogs", fields: [actor_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
97
+ actor User? @relation("ActorActivityLogs", fields: [actor_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
98
+ application Application @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
99
99
 
100
- @@index([candidate_id])
100
+ @@index([application_id])
101
101
  }
102
102
 
103
103
  // PENDING could be understood as unscreened
@@ -130,6 +130,7 @@ model Application {
130
130
  fit_check FitCheck? @relation(fields: [fit_check_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
131
131
  interviews Interview[]
132
132
  ongoing_evaluations OngoingEvaluation[]
133
+ activity_logs ActivityLog[]
133
134
  // Audit fields
134
135
  created_at DateTime @default(now())
135
136
  updated_at DateTime @updatedAt
@@ -1182,7 +1183,6 @@ model User {
1182
1183
  candidateResponses CandidateQuestionResponse[]
1183
1184
  questions Question[]
1184
1185
  ongoing_evaluations OngoingEvaluation[] // optional one-to-many
1185
- candidate_activity_logs ActivityLog[] @relation("CandidateActivityLogs")
1186
1186
  actor_activity_logs ActivityLog[] @relation("ActorActivityLogs")
1187
1187
  actions Action[]
1188
1188
  calendly Calendly?
package/client/wasm.js CHANGED
@@ -165,7 +165,7 @@ exports.Prisma.ActionScalarFieldEnum = {
165
165
 
166
166
  exports.Prisma.ActivityLogScalarFieldEnum = {
167
167
  id: 'id',
168
- candidate_id: 'candidate_id',
168
+ application_id: 'application_id',
169
169
  actor_id: 'actor_id',
170
170
  actor_type: 'actor_type',
171
171
  message: 'message',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.1.38",
3
+ "version": "0.1.40",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -5,18 +5,18 @@ enum ActivityActorType {
5
5
  }
6
6
 
7
7
  model ActivityLog {
8
- id String @id @default(uuid())
9
- candidate_id String
10
- actor_id String?
11
- actor_type ActivityActorType @default(USER)
12
- message String
13
- timestamp DateTime @default(now())
14
- metadata Json?
15
- created_at DateTime @default(now())
16
- is_active Boolean @default(true)
8
+ id String @id @default(uuid())
9
+ application_id String
10
+ actor_id String?
11
+ actor_type ActivityActorType @default(USER)
12
+ message String
13
+ timestamp DateTime @default(now())
14
+ metadata Json?
15
+ created_at DateTime @default(now())
16
+ is_active Boolean @default(true)
17
17
  // Relations
18
- candidate User @relation("CandidateActivityLogs", fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
19
- actor User? @relation("ActorActivityLogs", fields: [actor_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
18
+ actor User? @relation("ActorActivityLogs", fields: [actor_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
19
+ application Application @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
20
20
 
21
- @@index([candidate_id])
21
+ @@index([application_id])
22
22
  }
@@ -28,6 +28,7 @@ model Application {
28
28
  fit_check FitCheck? @relation(fields: [fit_check_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
29
29
  interviews Interview[]
30
30
  ongoing_evaluations OngoingEvaluation[]
31
+ activity_logs ActivityLog[]
31
32
  // Audit fields
32
33
  created_at DateTime @default(now())
33
34
  updated_at DateTime @updatedAt
@@ -43,29 +43,28 @@ model User {
43
43
  candidateResponses CandidateQuestionResponse[]
44
44
  questions Question[]
45
45
  ongoing_evaluations OngoingEvaluation[] // optional one-to-many
46
- candidate_activity_logs ActivityLog[] @relation("CandidateActivityLogs")
47
46
  actor_activity_logs ActivityLog[] @relation("ActorActivityLogs")
48
47
  actions Action[]
49
48
  calendly Calendly?
50
49
  google Google?
51
50
  fitChecks FitCheck[]
52
51
 
53
- name String?
54
- phone String?
55
- description String?
56
- date_of_birth DateTime?
57
- designation String?
58
- location String?
59
- salary String?
60
- work_experience Json?
61
- education Json?
62
- skills Json?
63
- notice_period String?
52
+ name String?
53
+ phone String?
54
+ description String?
55
+ date_of_birth DateTime?
56
+ designation String?
57
+ location String?
58
+ salary String?
59
+ work_experience Json?
60
+ education Json?
61
+ skills Json?
62
+ notice_period String?
64
63
  preferred_work_mode String?
65
- gender String?
66
- ethnicity String?
67
- veteran_status String?
68
- disability_status String?
64
+ gender String?
65
+ ethnicity String?
66
+ veteran_status String?
67
+ disability_status String?
69
68
 
70
69
  @@index([role_id])
71
70
  @@index([permission_id])