@a_team/prisma 1.0.1

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.
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ v20.15.1
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "@a_team/prisma",
3
+ "version": "1.0.1",
4
+ "main": "index.js",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/A-Teams-Network/prisma.git"
8
+ },
9
+ "author": "A.Team",
10
+ "license": "ISC"
11
+ }
@@ -0,0 +1,29 @@
1
+ type AccountsMember {
2
+ user String @db.ObjectId
3
+ accessLevel String?
4
+ invitedAt DateTime? @db.Date
5
+ }
6
+
7
+ type AccountsWorkspace {
8
+ name String
9
+ description String?
10
+ logo String?
11
+ website String?
12
+ }
13
+
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
+ company EnrichableCompany[]
19
+ members AccountsMember[]
20
+ workspace AccountsWorkspace?
21
+ billingAccount String? @db.ObjectId
22
+ createdAt DateTime? @db.Date
23
+ updatedAt DateTime? @db.Date
24
+ deletedAt DateTime? @db.Date
25
+ migrations String[]
26
+ missions Mission[]
27
+
28
+ @@map("accounts")
29
+ }
@@ -0,0 +1,15 @@
1
+ model ClientCompany {
2
+ id String @id @default(auto()) @map("_id") @db.ObjectId
3
+ createdAt DateTime? @db.Date
4
+ author String? @db.ObjectId
5
+ name String
6
+ slug String?
7
+ product String?
8
+ website String?
9
+ size String?
10
+ description String?
11
+ logo String?
12
+ accounts Account[]
13
+
14
+ @@map("clientCompanies")
15
+ }
@@ -0,0 +1,8 @@
1
+ model EnrichableCompany {
2
+ id String @id @default(auto()) @map("_id") @db.ObjectId
3
+ name String
4
+ accountId String? @db.ObjectId
5
+ accountModel Account? @relation(fields: [accountId], references: [id])
6
+
7
+ @@map("companiesV2")
8
+ }
@@ -0,0 +1,190 @@
1
+ type MissionRoleAvailability {
2
+ date DateTime? @db.Date
3
+ scheduledEndDate DateTime? @db.Date
4
+ weeklyHoursAvailable Float
5
+ }
6
+
7
+ type MissionRoleCustomQuestion {
8
+ id String @map("_id") @db.ObjectId
9
+ createdAt DateTime? @db.Date
10
+ isRequired Boolean?
11
+ isVisible Boolean
12
+ text String
13
+ updatedAt DateTime? @db.Date
14
+ }
15
+
16
+ type MissionRolePreferredSkill {
17
+ rating Int?
18
+ talentSkillId String @db.ObjectId
19
+ }
20
+
21
+ type MissionRoleRequiredSkill {
22
+ rating Int?
23
+ talentSkillId String @db.ObjectId
24
+ }
25
+
26
+ type MissionRoleUtcOffsetRange {
27
+ from TimezoneObject?
28
+ to TimezoneObject?
29
+ }
30
+
31
+ type TimezoneObject {
32
+ name String
33
+ utcOffset Int
34
+ }
35
+
36
+ type MissionRoleVisibility {
37
+ visibilityStatus String
38
+ }
39
+
40
+ type MissionRoleWorkingHours {
41
+ id String? @map("_id") @db.ObjectId
42
+ daily LocalHourRange[]
43
+ name String?
44
+ numberOfMinutesOverlap Int?
45
+ utcDaylightHours LocalHourRange[]
46
+ utcOffset Int?
47
+ utcStandardHours LocalHourRange[]
48
+ }
49
+
50
+ type LocalHourRange {
51
+ endTime Int?
52
+ startTime Int?
53
+ }
54
+
55
+ type MissionRole {
56
+ id String @map("_id") @db.ObjectId
57
+ availability MissionRoleAvailability?
58
+ builderRateMax Float?
59
+ builderRateMin Float?
60
+ category String @db.ObjectId
61
+ createdAt DateTime? @db.Date
62
+ customQuestions MissionRoleCustomQuestion[]
63
+ description String?
64
+ fullName String?
65
+ hasPerformanceIssue Boolean?
66
+ headline String?
67
+ hourlyRate Float?
68
+ monthlyRate Float?
69
+ isBadPerformance Boolean?
70
+ isLead Boolean?
71
+ locations String[]
72
+ lookingForApplications Boolean?
73
+ marginVAT Float?
74
+ preferredSkills MissionRolePreferredSkill[]
75
+ requiredSkills MissionRoleRequiredSkill[]
76
+ setAsScheduledToEndAt DateTime? @db.Date
77
+ showRateRangeToBuilders Boolean?
78
+ status String?
79
+ updatedAt DateTime? @db.Date
80
+ user String? @db.ObjectId
81
+ userAssignedAt DateTime? @db.Date
82
+ utcOffsetRange MissionRoleUtcOffsetRange?
83
+ visibility MissionRoleVisibility?
84
+ workingHours MissionRoleWorkingHours?
85
+ builderMonthlyRateMin Float?
86
+ builderMonthlyRateMax Float?
87
+ collectMonthlyRate Boolean?
88
+ isFullTimeRetainer Boolean?
89
+ }
90
+
91
+ type MissionsManager {
92
+ id String @map("_id") @db.ObjectId
93
+ accessMode String
94
+ excludeFromInvoiceEmails Boolean?
95
+ excludeFromTeamPulseEmails Boolean?
96
+ }
97
+
98
+ type MissionsAttachedLink {
99
+ URL String
100
+ title String
101
+ }
102
+
103
+ type MissionsCompanyRequest {
104
+ companyName String
105
+ description String
106
+ email String
107
+ fullName String
108
+ notes String?
109
+ phoneNumber String
110
+ role String
111
+ websiteURL String
112
+ }
113
+
114
+ type MissionsInvoicing {
115
+ purchaseOrderNumber String?
116
+ }
117
+
118
+ type MissionsTesting {
119
+ expiresAt DateTime @db.Date
120
+ type String
121
+ }
122
+
123
+ type WorkingHoursSchema {
124
+ name String
125
+ utcOffset Int
126
+ daily LocalHourRange[]
127
+ utcStandardHours LocalHourRange[]
128
+ utcDaylightHours LocalHourRange[]
129
+ }
130
+
131
+ model TalentIndustry {
132
+ id String @id @default(auto()) @map("_id") @db.ObjectId
133
+ description String
134
+ name String
135
+ textId String @unique(map: "textId_1")
136
+
137
+ @@map("talentIndustries")
138
+ }
139
+
140
+ model Mission {
141
+ mid String @id @default(auto()) @map("_id") @db.ObjectId
142
+ accountId String? @db.ObjectId
143
+ accountModel Account? @relation(fields: [accountId], references: [id])
144
+ applyStatus String?
145
+ attachedLinks MissionsAttachedLink[]
146
+ automatedStatusesDisabled Boolean?
147
+ automaticInvoicingPeriod String?
148
+ bdOwners String[]
149
+ billingPeriod String?
150
+ clientMargin Float?
151
+ companyRequest MissionsCompanyRequest?
152
+ companyStory String?
153
+ createdAt DateTime? @db.Date
154
+ creatorUser String? @db.ObjectId
155
+ creatorModel User? @relation("creator", fields: [creatorUser], references: [id])
156
+ description String?
157
+ expectedDurationMonths Int?
158
+ hidden Boolean?
159
+ hubspotDealId String?
160
+ internalDescription String?
161
+ internalMission Boolean?
162
+ invoiceEmailGreeting String?
163
+ invoicing MissionsInvoicing?
164
+ lastDeployedAt DateTime? @db.Date
165
+ logoURL String?
166
+ mainManagerUserId String?
167
+ managers MissionsManager[]
168
+ migrations String[]
169
+ missionSpecId String? @db.ObjectId
170
+ owner String? @db.ObjectId
171
+ ownerModel User? @relation("ownerModel", fields: [owner], references: [id])
172
+ promotedTags String[]
173
+ publishedAt DateTime? @db.Date
174
+ publisherUser String? @db.ObjectId
175
+ roles MissionRole[]
176
+ rolesMargin Float?
177
+ setAsScheduledToEndAt DateTime? @db.Date
178
+ shortCompanyDescription String?
179
+ skipContracts Boolean?
180
+ status String
181
+ talentIndustries String[]
182
+ testing MissionsTesting?
183
+ title String
184
+ updatedAt DateTime? @db.Date
185
+ videoURL String?
186
+ website String?
187
+
188
+ @@unique([roles.id], map: "roles._id_1")
189
+ @@map("missions")
190
+ }
@@ -0,0 +1,10 @@
1
+ model RoleCategory {
2
+ id String @id @default(auto()) @map("_id") @db.ObjectId
3
+ anchors String[]
4
+ title String @unique(map: "title_1")
5
+ deletedAt DateTime? @db.Date
6
+ group String?
7
+ talentCategoryIds String[]
8
+
9
+ @@map("roleCategories")
10
+ }
@@ -0,0 +1,10 @@
1
+ datasource db {
2
+ provider = "mongodb"
3
+ url = env("MONGODB_URL")
4
+ }
5
+
6
+ generator client {
7
+ provider = "prisma-client-js"
8
+ binaryTargets = ["native", "darwin"]
9
+ previewFeatures = ["prismaSchemaFolder"]
10
+ }
@@ -0,0 +1,13 @@
1
+ model TalentCategory {
2
+ id String @id @default(auto()) @map("_id") @db.ObjectId
3
+ textId String
4
+ name String
5
+ nodeType String
6
+ parentTalentCategoryIds String[]
7
+ aliases String[]
8
+ isProgrammingLanguage Boolean?
9
+ isVettingEligible Boolean?
10
+ deletedAt DateTime?
11
+
12
+ @@map("talentCategories")
13
+ }
@@ -0,0 +1,17 @@
1
+ model User {
2
+ id String @id @default(auto()) @map("_id") @db.ObjectId
3
+ firstName String?
4
+ lastName String?
5
+ username String? @unique(map: "username_1")
6
+ email String? @unique(map: "email_1")
7
+ createdMissionsModels Mission[] @relation("creator")
8
+ ownedMissionsModels Mission[] @relation("ownerModel")
9
+ type String
10
+ pictureURL String?
11
+ status String
12
+ createdAt DateTime
13
+ titles String[]
14
+ scrubbed String?
15
+
16
+ @@map("users")
17
+ }