@adaptware/eagles-db 0.1.74 → 0.1.76

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-ea5b36a2f63e53f715ba91279c4f0e7165da62d69187a1426adb80d9fcfb0223",
2
+ "name": "prisma-client-3b13e70ea4eaaf9ad3ef0aef2e0077511335a6aca18eb9e9c60a5b8404f34c2b",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -325,7 +325,7 @@ model AuthModule {
325
325
  user User @relation("UserAuthModule", fields: [user_id], references: [id], onDelete: Cascade)
326
326
 
327
327
  provider AuthProvider
328
- provider_account_id String
328
+ provider_account_id String? @db.Text
329
329
 
330
330
  access_token String? @db.Text
331
331
  refresh_token String? @db.Text
@@ -334,7 +334,8 @@ model AuthModule {
334
334
 
335
335
  token_type String?
336
336
 
337
- scope String?
337
+ scope String?
338
+ is_active Boolean @default(true)
338
339
 
339
340
  created_at DateTime @default(now())
340
341
  updated_at DateTime @updatedAt
@@ -1194,12 +1195,24 @@ model Question {
1194
1195
  candidateResponse CandidateQuestionResponse[]
1195
1196
  }
1196
1197
 
1198
+ model RefreshToken {
1199
+ id String @id @default(uuid())
1200
+ user_id String
1201
+ token String @unique
1202
+ is_active Boolean @default(true)
1203
+ expires_at DateTime
1204
+ created_at DateTime @default(now())
1205
+ updated_at DateTime @updatedAt
1206
+ user User @relation("TokenRefresh", fields: [user_id], references: [id], onDelete: Cascade)
1207
+ }
1208
+
1197
1209
  model Resume {
1198
1210
  id String @id @default(uuid())
1199
1211
  user_id String?
1200
1212
  organisation_id String?
1201
1213
  job_description_id String?
1202
1214
  uploaded_resume_path String?
1215
+ file_hash String? @unique
1203
1216
  summary Json?
1204
1217
  created_at DateTime @default(now())
1205
1218
  updated_at DateTime @updatedAt
@@ -1221,6 +1234,7 @@ model Resume {
1221
1234
  yearsOfExperience Int?
1222
1235
 
1223
1236
  @@index([user_id])
1237
+ @@index([file_hash])
1224
1238
  }
1225
1239
 
1226
1240
  model ResumeData {
@@ -1358,6 +1372,7 @@ model User {
1358
1372
  created_job_profiles JobProfile[] @relation("ProfileCreator")
1359
1373
  assigned_job_profiles JobProfile[] @relation("ProfileAssignee")
1360
1374
  user_auth_modules AuthModule[] @relation("UserAuthModule")
1375
+ refresh_token_auth RefreshToken[] @relation("TokenRefresh")
1361
1376
 
1362
1377
  name String?
1363
1378
  phone String?
package/client/wasm.js CHANGED
@@ -300,6 +300,7 @@ exports.Prisma.AuthModuleScalarFieldEnum = {
300
300
  expires_at: 'expires_at',
301
301
  token_type: 'token_type',
302
302
  scope: 'scope',
303
+ is_active: 'is_active',
303
304
  created_at: 'created_at',
304
305
  updated_at: 'updated_at'
305
306
  };
@@ -745,12 +746,23 @@ exports.Prisma.QuestionScalarFieldEnum = {
745
746
  is_active: 'is_active'
746
747
  };
747
748
 
749
+ exports.Prisma.RefreshTokenScalarFieldEnum = {
750
+ id: 'id',
751
+ user_id: 'user_id',
752
+ token: 'token',
753
+ is_active: 'is_active',
754
+ expires_at: 'expires_at',
755
+ created_at: 'created_at',
756
+ updated_at: 'updated_at'
757
+ };
758
+
748
759
  exports.Prisma.ResumeScalarFieldEnum = {
749
760
  id: 'id',
750
761
  user_id: 'user_id',
751
762
  organisation_id: 'organisation_id',
752
763
  job_description_id: 'job_description_id',
753
764
  uploaded_resume_path: 'uploaded_resume_path',
765
+ file_hash: 'file_hash',
754
766
  summary: 'summary',
755
767
  created_at: 'created_at',
756
768
  updated_at: 'updated_at',
@@ -1146,6 +1158,7 @@ exports.Prisma.ModelName = {
1146
1158
  Permission: 'Permission',
1147
1159
  AsyncOperation: 'AsyncOperation',
1148
1160
  Question: 'Question',
1161
+ RefreshToken: 'RefreshToken',
1149
1162
  Resume: 'Resume',
1150
1163
  ResumeData: 'ResumeData',
1151
1164
  Suggestion: 'Suggestion',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.1.74",
3
+ "version": "0.1.76",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,6 +34,7 @@
34
34
  "author": "",
35
35
  "license": "MIT",
36
36
  "dependencies": {
37
+ "@adaptware/eagles-db": "/Users/ayushchakraborty/Project/eagles-db/adaptware-eagles-db-v0.1.74.tgz",
37
38
  "@prisma/client": "6.15.0",
38
39
  "prisma": "6.15.0",
39
40
  "zod": "^4.1.5"
@@ -4,26 +4,27 @@ enum AuthProvider {
4
4
  }
5
5
 
6
6
  model AuthModule {
7
- id String @id @default(uuid())
7
+ id String @id @default(uuid())
8
8
 
9
- user_id String
10
- user User @relation("UserAuthModule", fields: [user_id], references: [id], onDelete: Cascade)
9
+ user_id String
10
+ user User @relation("UserAuthModule", fields: [user_id], references: [id], onDelete: Cascade)
11
11
 
12
- provider AuthProvider
13
- provider_account_id String
12
+ provider AuthProvider
13
+ provider_account_id String? @db.Text
14
14
 
15
- access_token String? @db.Text
16
- refresh_token String? @db.Text
17
- id_token String? @db.Text
18
- expires_at DateTime?
15
+ access_token String? @db.Text
16
+ refresh_token String? @db.Text
17
+ id_token String? @db.Text
18
+ expires_at DateTime?
19
19
 
20
- token_type String?
20
+ token_type String?
21
21
 
22
- scope String?
22
+ scope String?
23
+ is_active Boolean @default(true)
23
24
 
24
- created_at DateTime @default(now())
25
- updated_at DateTime @updatedAt
25
+ created_at DateTime @default(now())
26
+ updated_at DateTime @updatedAt
26
27
 
27
28
  @@unique([provider, provider_account_id])
28
29
  @@index([user_id])
29
- }
30
+ }
@@ -0,0 +1,10 @@
1
+ model RefreshToken {
2
+ id String @id @default(uuid())
3
+ user_id String
4
+ token String @unique
5
+ is_active Boolean @default(true)
6
+ expires_at DateTime
7
+ created_at DateTime @default(now())
8
+ updated_at DateTime @updatedAt
9
+ user User @relation("TokenRefresh", fields: [user_id], references: [id], onDelete: Cascade)
10
+ }
@@ -4,6 +4,7 @@ model Resume {
4
4
  organisation_id String?
5
5
  job_description_id String?
6
6
  uploaded_resume_path String?
7
+ file_hash String? @unique
7
8
  summary Json?
8
9
  created_at DateTime @default(now())
9
10
  updated_at DateTime @updatedAt
@@ -25,4 +26,5 @@ model Resume {
25
26
  yearsOfExperience Int?
26
27
 
27
28
  @@index([user_id])
29
+ @@index([file_hash])
28
30
  }
@@ -50,9 +50,10 @@ model User {
50
50
  calendly Calendly?
51
51
  google Google?
52
52
  fitChecks FitCheck[]
53
- created_job_profiles JobProfile[] @relation("ProfileCreator")
54
- assigned_job_profiles JobProfile[] @relation("ProfileAssignee")
55
- user_auth_modules AuthModule[] @relation("UserAuthModule")
53
+ created_job_profiles JobProfile[] @relation("ProfileCreator")
54
+ assigned_job_profiles JobProfile[] @relation("ProfileAssignee")
55
+ user_auth_modules AuthModule[] @relation("UserAuthModule")
56
+ refresh_token_auth RefreshToken[] @relation("TokenRefresh")
56
57
 
57
58
  name String?
58
59
  phone String?