@a_team/prisma 3.8.6-win → 3.9.0-linux

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-669edd5ba4ddedbe3566b43c10bbd0f6614b19bb491c7949c1dfcde2a2057c09",
2
+ "name": "prisma-client-49490972f7fe65334edc4ccdec4e5666769cc29e345f4c586fc622b9c9f312e3",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -12,38 +12,79 @@ type AccountsWorkspace {
12
12
  }
13
13
 
14
14
  model Account {
15
- id String @id @default(auto()) @map("_id") @db.ObjectId
16
- clientCompany String? @db.ObjectId
17
- clientCompanyModel ClientCompany? @relation(fields: [clientCompany], references: [id])
18
- companyId String? @map("company") @db.ObjectId
19
- company Company? @relation(fields: [companyId], references: [id])
20
- members AccountsMember[]
21
- workspace AccountsWorkspace?
22
- billingAccount String? @db.ObjectId
23
- createdAt DateTime? @default(now()) @db.Date
24
- updatedAt DateTime? @updatedAt @db.Date
25
- deletedAt DateTime? @db.Date
26
- migrations String[]
27
- missions Mission[]
28
- missionSpecs MissionSpec[]
29
- contracts Contract[]
15
+ id String @id @default(auto()) @map("_id") @db.ObjectId
16
+ clientCompany String? @db.ObjectId
17
+ clientCompanyModel ClientCompany? @relation(fields: [clientCompany], references: [id])
18
+ companyId String? @map("company") @db.ObjectId
19
+ company Company? @relation(fields: [companyId], references: [id])
20
+ members AccountsMember[]
21
+ workspace AccountsWorkspace?
22
+ billingAccount String? @db.ObjectId
23
+ billingAccountModel BillingAccount? @relation(fields: [billingAccount], references: [id])
24
+ createdAt DateTime? @default(now()) @db.Date
25
+ updatedAt DateTime? @updatedAt @db.Date
26
+ deletedAt DateTime? @db.Date
27
+ migrations String[]
28
+ missions Mission[]
29
+ missionSpecs MissionSpec[]
30
+ contracts Contract[]
30
31
 
31
32
  @@map("accounts")
32
33
  }
33
34
 
34
- model ClientCompany {
35
- id String @id @default(auto()) @map("_id") @db.ObjectId
36
- createdAt DateTime? @default(now()) @db.Date
37
- author String? @db.ObjectId
35
+ model BillingAccount {
36
+ id String @id @default(auto()) @map("_id") @db.ObjectId
37
+ billingInfo BillingAccountBillingInfo?
38
+ stripe BillingAccountStripeInfo?
39
+ paymentTerms BillingAccountPaymentTerms?
40
+ clientCompany String? @db.ObjectId
41
+ clientCompanyModel ClientCompany? @relation(fields: [clientCompany], references: [id])
42
+ createdAt DateTime? @default(now()) @db.Date
43
+ updatedAt DateTime? @updatedAt @db.Date
44
+ Account Account[]
45
+
46
+ @@map("billingAccounts")
47
+ }
48
+
49
+ type BillingAccountBillingInfo {
38
50
  name String
39
- slug String?
40
- product String?
41
- website String?
42
- size String?
43
- description String?
44
- logo String?
45
- accounts Account[]
46
- missionSpecs MissionSpec[]
51
+ contactName String?
52
+ contactEmail String?
53
+ tin String?
54
+ }
55
+
56
+ type BillingAccountStripeInfo {
57
+ customerId String
58
+ }
59
+
60
+ type BillingAccountPaymentTerms {
61
+ due BillingPaymentDue
62
+ }
63
+
64
+ enum BillingPaymentDue {
65
+ Net0
66
+ Net15
67
+ Net30
68
+ Net45
69
+ Net60
70
+ Net90
71
+ Net120
72
+ }
73
+
74
+ model ClientCompany {
75
+ id String @id @default(auto()) @map("_id") @db.ObjectId
76
+ createdAt DateTime? @default(now()) @db.Date
77
+ author String? @db.ObjectId
78
+ name String
79
+ slug String?
80
+ product String?
81
+ website String?
82
+ size String?
83
+ description String?
84
+ logo String?
85
+ accounts Account[]
86
+ missionSpecs MissionSpec[]
87
+ BillingAccount BillingAccount[]
47
88
 
48
89
  @@map("clientCompanies")
49
90
  }
@@ -126,6 +126,13 @@ exports.Prisma.AccountScalarFieldEnum = {
126
126
  migrations: 'migrations'
127
127
  };
128
128
 
129
+ exports.Prisma.BillingAccountScalarFieldEnum = {
130
+ id: 'id',
131
+ clientCompany: 'clientCompany',
132
+ createdAt: 'createdAt',
133
+ updatedAt: 'updatedAt'
134
+ };
135
+
129
136
  exports.Prisma.ClientCompanyScalarFieldEnum = {
130
137
  id: 'id',
131
138
  createdAt: 'createdAt',
@@ -474,6 +481,16 @@ exports.InternalOnboardingStage = exports.$Enums.InternalOnboardingStage = {
474
481
  ProfileCompleteWithPendingApplication: 'ProfileCompleteWithPendingApplication'
475
482
  };
476
483
 
484
+ exports.BillingPaymentDue = exports.$Enums.BillingPaymentDue = {
485
+ Net0: 'Net0',
486
+ Net15: 'Net15',
487
+ Net30: 'Net30',
488
+ Net45: 'Net45',
489
+ Net60: 'Net60',
490
+ Net90: 'Net90',
491
+ Net120: 'Net120'
492
+ };
493
+
477
494
  exports.ContractPartyType = exports.$Enums.ContractPartyType = {
478
495
  BillingCustomer: 'BillingCustomer',
479
496
  MissionRole: 'MissionRole',
@@ -560,6 +577,7 @@ exports.MissionRoleVisibilityStatus = exports.$Enums.MissionRoleVisibilityStatus
560
577
 
561
578
  exports.Prisma.ModelName = {
562
579
  Account: 'Account',
580
+ BillingAccount: 'BillingAccount',
563
581
  ClientCompany: 'ClientCompany',
564
582
  Company: 'Company',
565
583
  Contract: 'Contract',
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@a_team/prisma",
3
- "version": "3.8.6-win",
3
+ "version": "3.9.0-linux",
4
4
  "os": [
5
- "win32"
5
+ "linux"
6
6
  ],
7
7
  "cpu": [],
8
8
  "keywords": [],