@adaptware/eagles-db 0.1.73 → 0.1.74

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-88a5287d6d2b4747b23e998603ab2b5c0065cff82858cb3475eb1ffb1d9557ec",
2
+ "name": "prisma-client-ea5b36a2f63e53f715ba91279c4f0e7165da62d69187a1426adb80d9fcfb0223",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -313,6 +313,36 @@ model AssignmentLibrary {
313
313
  @@index([job_description_id])
314
314
  }
315
315
 
316
+ enum AuthProvider {
317
+ GOOGLE
318
+ MICROSOFT
319
+ }
320
+
321
+ model AuthModule {
322
+ id String @id @default(uuid())
323
+
324
+ user_id String
325
+ user User @relation("UserAuthModule", fields: [user_id], references: [id], onDelete: Cascade)
326
+
327
+ provider AuthProvider
328
+ provider_account_id String
329
+
330
+ access_token String? @db.Text
331
+ refresh_token String? @db.Text
332
+ id_token String? @db.Text
333
+ expires_at DateTime?
334
+
335
+ token_type String?
336
+
337
+ scope String?
338
+
339
+ created_at DateTime @default(now())
340
+ updated_at DateTime @updatedAt
341
+
342
+ @@unique([provider, provider_account_id])
343
+ @@index([user_id])
344
+ }
345
+
316
346
  enum JobType {
317
347
  Full_time
318
348
  Part_time
@@ -1327,6 +1357,7 @@ model User {
1327
1357
  fitChecks FitCheck[]
1328
1358
  created_job_profiles JobProfile[] @relation("ProfileCreator")
1329
1359
  assigned_job_profiles JobProfile[] @relation("ProfileAssignee")
1360
+ user_auth_modules AuthModule[] @relation("UserAuthModule")
1330
1361
 
1331
1362
  name String?
1332
1363
  phone String?
package/client/wasm.js CHANGED
@@ -289,6 +289,21 @@ exports.Prisma.AssignmentLibraryScalarFieldEnum = {
289
289
  is_active: 'is_active'
290
290
  };
291
291
 
292
+ exports.Prisma.AuthModuleScalarFieldEnum = {
293
+ id: 'id',
294
+ user_id: 'user_id',
295
+ provider: 'provider',
296
+ provider_account_id: 'provider_account_id',
297
+ access_token: 'access_token',
298
+ refresh_token: 'refresh_token',
299
+ id_token: 'id_token',
300
+ expires_at: 'expires_at',
301
+ token_type: 'token_type',
302
+ scope: 'scope',
303
+ created_at: 'created_at',
304
+ updated_at: 'updated_at'
305
+ };
306
+
292
307
  exports.Prisma.BudgetScalarFieldEnum = {
293
308
  id: 'id',
294
309
  job_type: 'job_type',
@@ -912,6 +927,11 @@ exports.AssignmentStatus = exports.$Enums.AssignmentStatus = {
912
927
  CANCELLED: 'CANCELLED'
913
928
  };
914
929
 
930
+ exports.AuthProvider = exports.$Enums.AuthProvider = {
931
+ GOOGLE: 'GOOGLE',
932
+ MICROSOFT: 'MICROSOFT'
933
+ };
934
+
915
935
  exports.JobType = exports.$Enums.JobType = {
916
936
  Full_time: 'Full_time',
917
937
  Part_time: 'Part_time',
@@ -1102,6 +1122,7 @@ exports.Prisma.ModelName = {
1102
1122
  AssessmentQuestion: 'AssessmentQuestion',
1103
1123
  Assignment: 'Assignment',
1104
1124
  AssignmentLibrary: 'AssignmentLibrary',
1125
+ AuthModule: 'AuthModule',
1105
1126
  Budget: 'Budget',
1106
1127
  Calendly: 'Calendly',
1107
1128
  CandidateProfile: 'CandidateProfile',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.1.73",
3
+ "version": "0.1.74",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,29 @@
1
+ enum AuthProvider {
2
+ GOOGLE
3
+ MICROSOFT
4
+ }
5
+
6
+ model AuthModule {
7
+ id String @id @default(uuid())
8
+
9
+ user_id String
10
+ user User @relation("UserAuthModule", fields: [user_id], references: [id], onDelete: Cascade)
11
+
12
+ provider AuthProvider
13
+ provider_account_id String
14
+
15
+ access_token String? @db.Text
16
+ refresh_token String? @db.Text
17
+ id_token String? @db.Text
18
+ expires_at DateTime?
19
+
20
+ token_type String?
21
+
22
+ scope String?
23
+
24
+ created_at DateTime @default(now())
25
+ updated_at DateTime @updatedAt
26
+
27
+ @@unique([provider, provider_account_id])
28
+ @@index([user_id])
29
+ }
@@ -52,6 +52,7 @@ model User {
52
52
  fitChecks FitCheck[]
53
53
  created_job_profiles JobProfile[] @relation("ProfileCreator")
54
54
  assigned_job_profiles JobProfile[] @relation("ProfileAssignee")
55
+ user_auth_modules AuthModule[] @relation("UserAuthModule")
55
56
 
56
57
  name String?
57
58
  phone String?
package/prisma/.DS_Store DELETED
Binary file
@@ -1,2 +0,0 @@
1
- -- AlterTable
2
- ALTER TABLE "JobProfile" DROP COLUMN IF EXISTS "current_phase";
@@ -1,3 +0,0 @@
1
- # Please do not edit this file manually
2
- # It should be added in your version-control system (e.g. Git)
3
- provider = "postgresql"