@allbluecn/database 0.4.0 → 0.4.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.
Files changed (190) hide show
  1. package/desktop-init.ts +128 -0
  2. package/generated/browser.ts +494 -0
  3. package/generated/client.ts +518 -0
  4. package/generated/commonInputTypes.ts +1056 -0
  5. package/generated/enums.ts +93 -0
  6. package/generated/internal/class.ts +1144 -0
  7. package/generated/internal/prismaNamespace.ts +9603 -0
  8. package/generated/internal/prismaNamespaceBrowser.ts +1695 -0
  9. package/generated/models/Account.ts +1648 -0
  10. package/generated/models/AgentConversation.ts +1651 -0
  11. package/generated/models/AgentMessage.ts +1409 -0
  12. package/generated/models/AiProvider.ts +1607 -0
  13. package/generated/models/AiProviderConfig.ts +1514 -0
  14. package/generated/models/AiUsageLog.ts +1863 -0
  15. package/generated/models/AnyHubApp.ts +1911 -0
  16. package/generated/models/AnyHubMarketApp.ts +2008 -0
  17. package/generated/models/AnyHubPermission.ts +1422 -0
  18. package/generated/models/AnyHubRecommendation.ts +1870 -0
  19. package/generated/models/AnyHubRecommender.ts +1471 -0
  20. package/generated/models/Artboard.ts +1811 -0
  21. package/generated/models/ArtboardExport.ts +1548 -0
  22. package/generated/models/ArticleFavorite.ts +1352 -0
  23. package/generated/models/AuditLog.ts +1533 -0
  24. package/generated/models/Block.ts +1650 -0
  25. package/generated/models/BlockComponent.ts +1734 -0
  26. package/generated/models/BlockInstance.ts +2043 -0
  27. package/generated/models/BookmarkCategory.ts +1670 -0
  28. package/generated/models/ChatInterrupt.ts +1699 -0
  29. package/generated/models/ChatMessage.ts +1438 -0
  30. package/generated/models/ChatRun.ts +1632 -0
  31. package/generated/models/ChatThread.ts +2133 -0
  32. package/generated/models/Comment.ts +2206 -0
  33. package/generated/models/CommentIgnore.ts +1430 -0
  34. package/generated/models/CommentReaction.ts +1472 -0
  35. package/generated/models/ComplianceExport.ts +1345 -0
  36. package/generated/models/Component.ts +2345 -0
  37. package/generated/models/ComponentInstance.ts +2102 -0
  38. package/generated/models/ComponentTag.ts +1281 -0
  39. package/generated/models/CustomRole.ts +1560 -0
  40. package/generated/models/DesignProject.ts +1643 -0
  41. package/generated/models/DictionaryTerm.ts +1642 -0
  42. package/generated/models/GenerationRun.ts +1543 -0
  43. package/generated/models/IndustryCompliance.ts +1797 -0
  44. package/generated/models/InvitationCode.ts +1417 -0
  45. package/generated/models/InvitationUse.ts +1424 -0
  46. package/generated/models/Invoice.ts +1710 -0
  47. package/generated/models/KnowledgeBase.ts +1671 -0
  48. package/generated/models/KnowledgeDocument.ts +2458 -0
  49. package/generated/models/KnowledgeShareRecord.ts +1352 -0
  50. package/generated/models/Label.ts +1482 -0
  51. package/generated/models/LegalRegulation.ts +1873 -0
  52. package/generated/models/LicenseActivation.ts +1415 -0
  53. package/generated/models/LicenseKey.ts +1884 -0
  54. package/generated/models/LoginLog.ts +1450 -0
  55. package/generated/models/MonitoringErrorReport.ts +1299 -0
  56. package/generated/models/MonitoringHealthSnapshot.ts +1249 -0
  57. package/generated/models/MonitoringMetricsSnapshot.ts +1369 -0
  58. package/generated/models/MonitoringRequestLog.ts +1283 -0
  59. package/generated/models/PRD.ts +2805 -0
  60. package/generated/models/PRDPage.ts +2402 -0
  61. package/generated/models/PRDTag.ts +1430 -0
  62. package/generated/models/PRDVersion.ts +2121 -0
  63. package/generated/models/PageVersion.ts +1523 -0
  64. package/generated/models/PasswordResetToken.ts +1380 -0
  65. package/generated/models/Plan.ts +2069 -0
  66. package/generated/models/Project.ts +2148 -0
  67. package/generated/models/ProjectActivity.ts +1582 -0
  68. package/generated/models/ProjectMember.ts +1512 -0
  69. package/generated/models/ProviderEvent.ts +1227 -0
  70. package/generated/models/Reference.ts +1177 -0
  71. package/generated/models/Review.ts +1912 -0
  72. package/generated/models/ReviewComment.ts +1904 -0
  73. package/generated/models/RoleAssignment.ts +1430 -0
  74. package/generated/models/SequenceCounter.ts +1137 -0
  75. package/generated/models/Share.ts +1681 -0
  76. package/generated/models/ShareVersion.ts +1389 -0
  77. package/generated/models/SsoMapping.ts +1512 -0
  78. package/generated/models/SsoProvider.ts +1639 -0
  79. package/generated/models/Story.ts +5234 -0
  80. package/generated/models/StoryActivity.ts +1664 -0
  81. package/generated/models/StoryAttachment.ts +1467 -0
  82. package/generated/models/StoryComment.ts +1992 -0
  83. package/generated/models/StoryDependency.ts +1517 -0
  84. package/generated/models/StoryDocLink.ts +1430 -0
  85. package/generated/models/StoryFilterView.ts +1587 -0
  86. package/generated/models/StoryLabel.ts +1349 -0
  87. package/generated/models/StoryLink.ts +1415 -0
  88. package/generated/models/StoryPrdLink.ts +1430 -0
  89. package/generated/models/StoryReaction.ts +1472 -0
  90. package/generated/models/Subscription.ts +2147 -0
  91. package/generated/models/SystemSetting.ts +1217 -0
  92. package/generated/models/Tag.ts +1655 -0
  93. package/generated/models/TeamInvitation.ts +1526 -0
  94. package/generated/models/TeamMembership.ts +1436 -0
  95. package/generated/models/Template.ts +1391 -0
  96. package/generated/models/TemplateBlock.ts +1664 -0
  97. package/generated/models/ThirdPartyDependency.ts +1473 -0
  98. package/generated/models/UsageRecord.ts +1505 -0
  99. package/generated/models/User.ts +20998 -0
  100. package/generated/models/UserAgent.ts +1900 -0
  101. package/generated/models/UserSkill.ts +1456 -0
  102. package/generated/models/WebsiteBookmark.ts +2219 -0
  103. package/generated/models/Workspace.ts +2279 -0
  104. package/generated/models.ts +106 -0
  105. package/generated-sqlite/browser.ts +399 -0
  106. package/generated-sqlite/client.ts +423 -0
  107. package/generated-sqlite/commonInputTypes.ts +608 -0
  108. package/generated-sqlite/enums.ts +15 -0
  109. package/generated-sqlite/internal/class.ts +954 -0
  110. package/generated-sqlite/internal/prismaNamespace.ts +7716 -0
  111. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +1415 -0
  112. package/generated-sqlite/models/AgentConversation.ts +1647 -0
  113. package/generated-sqlite/models/AgentMessage.ts +1406 -0
  114. package/generated-sqlite/models/AiProvider.ts +1605 -0
  115. package/generated-sqlite/models/AiProviderConfig.ts +1511 -0
  116. package/generated-sqlite/models/AiUsageLog.ts +1845 -0
  117. package/generated-sqlite/models/AnyHubApp.ts +1908 -0
  118. package/generated-sqlite/models/AnyHubMarketApp.ts +1997 -0
  119. package/generated-sqlite/models/AnyHubPermission.ts +1419 -0
  120. package/generated-sqlite/models/AnyHubRecommendation.ts +1867 -0
  121. package/generated-sqlite/models/AnyHubRecommender.ts +1467 -0
  122. package/generated-sqlite/models/Artboard.ts +1808 -0
  123. package/generated-sqlite/models/ArtboardExport.ts +1545 -0
  124. package/generated-sqlite/models/ArticleFavorite.ts +1349 -0
  125. package/generated-sqlite/models/AuditLog.ts +1287 -0
  126. package/generated-sqlite/models/Block.ts +1648 -0
  127. package/generated-sqlite/models/BlockComponent.ts +1730 -0
  128. package/generated-sqlite/models/BlockInstance.ts +2039 -0
  129. package/generated-sqlite/models/BookmarkCategory.ts +1667 -0
  130. package/generated-sqlite/models/ChatInterrupt.ts +1695 -0
  131. package/generated-sqlite/models/ChatMessage.ts +1435 -0
  132. package/generated-sqlite/models/ChatRun.ts +1629 -0
  133. package/generated-sqlite/models/ChatThread.ts +2129 -0
  134. package/generated-sqlite/models/Comment.ts +2201 -0
  135. package/generated-sqlite/models/CommentIgnore.ts +1426 -0
  136. package/generated-sqlite/models/ComplianceExport.ts +1343 -0
  137. package/generated-sqlite/models/Component.ts +2326 -0
  138. package/generated-sqlite/models/ComponentInstance.ts +2097 -0
  139. package/generated-sqlite/models/ComponentTag.ts +1278 -0
  140. package/generated-sqlite/models/CustomRole.ts +1209 -0
  141. package/generated-sqlite/models/DesignProject.ts +1640 -0
  142. package/generated-sqlite/models/DictionaryTerm.ts +1639 -0
  143. package/generated-sqlite/models/GenerationRun.ts +1540 -0
  144. package/generated-sqlite/models/IndustryCompliance.ts +1794 -0
  145. package/generated-sqlite/models/InvitationCode.ts +1415 -0
  146. package/generated-sqlite/models/InvitationUse.ts +1420 -0
  147. package/generated-sqlite/models/Invoice.ts +1707 -0
  148. package/generated-sqlite/models/KnowledgeBase.ts +1668 -0
  149. package/generated-sqlite/models/KnowledgeDocument.ts +2282 -0
  150. package/generated-sqlite/models/KnowledgeShareRecord.ts +1349 -0
  151. package/generated-sqlite/models/LegalRegulation.ts +1870 -0
  152. package/generated-sqlite/models/LicenseActivation.ts +1203 -0
  153. package/generated-sqlite/models/LicenseKey.ts +1443 -0
  154. package/generated-sqlite/models/LoginLog.ts +1447 -0
  155. package/generated-sqlite/models/PRD.ts +2616 -0
  156. package/generated-sqlite/models/PRDPage.ts +2398 -0
  157. package/generated-sqlite/models/PRDTag.ts +1426 -0
  158. package/generated-sqlite/models/PRDVersion.ts +2117 -0
  159. package/generated-sqlite/models/PageVersion.ts +1528 -0
  160. package/generated-sqlite/models/PasswordResetToken.ts +1377 -0
  161. package/generated-sqlite/models/Plan.ts +2060 -0
  162. package/generated-sqlite/models/Project.ts +1994 -0
  163. package/generated-sqlite/models/ProjectActivity.ts +1578 -0
  164. package/generated-sqlite/models/ProjectMember.ts +1508 -0
  165. package/generated-sqlite/models/ProviderEvent.ts +1225 -0
  166. package/generated-sqlite/models/Reference.ts +1175 -0
  167. package/generated-sqlite/models/Review.ts +1903 -0
  168. package/generated-sqlite/models/ReviewComment.ts +1899 -0
  169. package/generated-sqlite/models/RoleAssignment.ts +1125 -0
  170. package/generated-sqlite/models/Share.ts +1674 -0
  171. package/generated-sqlite/models/ShareVersion.ts +1385 -0
  172. package/generated-sqlite/models/SsoMapping.ts +1181 -0
  173. package/generated-sqlite/models/SsoProvider.ts +1266 -0
  174. package/generated-sqlite/models/Subscription.ts +2137 -0
  175. package/generated-sqlite/models/SystemSetting.ts +1215 -0
  176. package/generated-sqlite/models/Tag.ts +1652 -0
  177. package/generated-sqlite/models/TeamInvitation.ts +1523 -0
  178. package/generated-sqlite/models/TeamMembership.ts +1433 -0
  179. package/generated-sqlite/models/Template.ts +1389 -0
  180. package/generated-sqlite/models/TemplateBlock.ts +1660 -0
  181. package/generated-sqlite/models/ThirdPartyDependency.ts +1471 -0
  182. package/generated-sqlite/models/UsageRecord.ts +1498 -0
  183. package/generated-sqlite/models/User.ts +13558 -0
  184. package/generated-sqlite/models/UserAgent.ts +1897 -0
  185. package/generated-sqlite/models/UserSkill.ts +1453 -0
  186. package/generated-sqlite/models/WebsiteBookmark.ts +2215 -0
  187. package/generated-sqlite/models/Workspace.ts +1824 -0
  188. package/generated-sqlite/models.ts +87 -0
  189. package/package.json +7 -3
  190. package/LICENSE +0 -661
@@ -0,0 +1,1125 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `RoleAssignment` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums"
13
+ import type * as Prisma from "../internal/prismaNamespace"
14
+
15
+ /**
16
+ * Model RoleAssignment
17
+ *
18
+ */
19
+ export type RoleAssignmentModel = runtime.Types.Result.DefaultSelection<Prisma.$RoleAssignmentPayload>
20
+
21
+ export type AggregateRoleAssignment = {
22
+ _count: RoleAssignmentCountAggregateOutputType | null
23
+ _min: RoleAssignmentMinAggregateOutputType | null
24
+ _max: RoleAssignmentMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type RoleAssignmentMinAggregateOutputType = {
28
+ id: string | null
29
+ roleId: string | null
30
+ userId: string | null
31
+ createdAt: Date | null
32
+ }
33
+
34
+ export type RoleAssignmentMaxAggregateOutputType = {
35
+ id: string | null
36
+ roleId: string | null
37
+ userId: string | null
38
+ createdAt: Date | null
39
+ }
40
+
41
+ export type RoleAssignmentCountAggregateOutputType = {
42
+ id: number
43
+ roleId: number
44
+ userId: number
45
+ createdAt: number
46
+ _all: number
47
+ }
48
+
49
+
50
+ export type RoleAssignmentMinAggregateInputType = {
51
+ id?: true
52
+ roleId?: true
53
+ userId?: true
54
+ createdAt?: true
55
+ }
56
+
57
+ export type RoleAssignmentMaxAggregateInputType = {
58
+ id?: true
59
+ roleId?: true
60
+ userId?: true
61
+ createdAt?: true
62
+ }
63
+
64
+ export type RoleAssignmentCountAggregateInputType = {
65
+ id?: true
66
+ roleId?: true
67
+ userId?: true
68
+ createdAt?: true
69
+ _all?: true
70
+ }
71
+
72
+ export type RoleAssignmentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
73
+ /**
74
+ * Filter which RoleAssignment to aggregate.
75
+ */
76
+ where?: Prisma.RoleAssignmentWhereInput
77
+ /**
78
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
79
+ *
80
+ * Determine the order of RoleAssignments to fetch.
81
+ */
82
+ orderBy?: Prisma.RoleAssignmentOrderByWithRelationInput | Prisma.RoleAssignmentOrderByWithRelationInput[]
83
+ /**
84
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
85
+ *
86
+ * Sets the start position
87
+ */
88
+ cursor?: Prisma.RoleAssignmentWhereUniqueInput
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
91
+ *
92
+ * Take `±n` RoleAssignments from the position of the cursor.
93
+ */
94
+ take?: number
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
97
+ *
98
+ * Skip the first `n` RoleAssignments.
99
+ */
100
+ skip?: number
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
103
+ *
104
+ * Count returned RoleAssignments
105
+ **/
106
+ _count?: true | RoleAssignmentCountAggregateInputType
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
109
+ *
110
+ * Select which fields to find the minimum value
111
+ **/
112
+ _min?: RoleAssignmentMinAggregateInputType
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
115
+ *
116
+ * Select which fields to find the maximum value
117
+ **/
118
+ _max?: RoleAssignmentMaxAggregateInputType
119
+ }
120
+
121
+ export type GetRoleAssignmentAggregateType<T extends RoleAssignmentAggregateArgs> = {
122
+ [P in keyof T & keyof AggregateRoleAssignment]: P extends '_count' | 'count'
123
+ ? T[P] extends true
124
+ ? number
125
+ : Prisma.GetScalarType<T[P], AggregateRoleAssignment[P]>
126
+ : Prisma.GetScalarType<T[P], AggregateRoleAssignment[P]>
127
+ }
128
+
129
+
130
+
131
+
132
+ export type RoleAssignmentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
133
+ where?: Prisma.RoleAssignmentWhereInput
134
+ orderBy?: Prisma.RoleAssignmentOrderByWithAggregationInput | Prisma.RoleAssignmentOrderByWithAggregationInput[]
135
+ by: Prisma.RoleAssignmentScalarFieldEnum[] | Prisma.RoleAssignmentScalarFieldEnum
136
+ having?: Prisma.RoleAssignmentScalarWhereWithAggregatesInput
137
+ take?: number
138
+ skip?: number
139
+ _count?: RoleAssignmentCountAggregateInputType | true
140
+ _min?: RoleAssignmentMinAggregateInputType
141
+ _max?: RoleAssignmentMaxAggregateInputType
142
+ }
143
+
144
+ export type RoleAssignmentGroupByOutputType = {
145
+ id: string
146
+ roleId: string
147
+ userId: string
148
+ createdAt: Date
149
+ _count: RoleAssignmentCountAggregateOutputType | null
150
+ _min: RoleAssignmentMinAggregateOutputType | null
151
+ _max: RoleAssignmentMaxAggregateOutputType | null
152
+ }
153
+
154
+ export type GetRoleAssignmentGroupByPayload<T extends RoleAssignmentGroupByArgs> = Prisma.PrismaPromise<
155
+ Array<
156
+ Prisma.PickEnumerable<RoleAssignmentGroupByOutputType, T['by']> &
157
+ {
158
+ [P in ((keyof T) & (keyof RoleAssignmentGroupByOutputType))]: P extends '_count'
159
+ ? T[P] extends boolean
160
+ ? number
161
+ : Prisma.GetScalarType<T[P], RoleAssignmentGroupByOutputType[P]>
162
+ : Prisma.GetScalarType<T[P], RoleAssignmentGroupByOutputType[P]>
163
+ }
164
+ >
165
+ >
166
+
167
+
168
+
169
+ export type RoleAssignmentWhereInput = {
170
+ AND?: Prisma.RoleAssignmentWhereInput | Prisma.RoleAssignmentWhereInput[]
171
+ OR?: Prisma.RoleAssignmentWhereInput[]
172
+ NOT?: Prisma.RoleAssignmentWhereInput | Prisma.RoleAssignmentWhereInput[]
173
+ id?: Prisma.StringFilter<"RoleAssignment"> | string
174
+ roleId?: Prisma.StringFilter<"RoleAssignment"> | string
175
+ userId?: Prisma.StringFilter<"RoleAssignment"> | string
176
+ createdAt?: Prisma.DateTimeFilter<"RoleAssignment"> | Date | string
177
+ }
178
+
179
+ export type RoleAssignmentOrderByWithRelationInput = {
180
+ id?: Prisma.SortOrder
181
+ roleId?: Prisma.SortOrder
182
+ userId?: Prisma.SortOrder
183
+ createdAt?: Prisma.SortOrder
184
+ }
185
+
186
+ export type RoleAssignmentWhereUniqueInput = Prisma.AtLeast<{
187
+ id?: string
188
+ roleId_userId?: Prisma.RoleAssignmentRoleIdUserIdCompoundUniqueInput
189
+ AND?: Prisma.RoleAssignmentWhereInput | Prisma.RoleAssignmentWhereInput[]
190
+ OR?: Prisma.RoleAssignmentWhereInput[]
191
+ NOT?: Prisma.RoleAssignmentWhereInput | Prisma.RoleAssignmentWhereInput[]
192
+ roleId?: Prisma.StringFilter<"RoleAssignment"> | string
193
+ userId?: Prisma.StringFilter<"RoleAssignment"> | string
194
+ createdAt?: Prisma.DateTimeFilter<"RoleAssignment"> | Date | string
195
+ }, "id" | "roleId_userId">
196
+
197
+ export type RoleAssignmentOrderByWithAggregationInput = {
198
+ id?: Prisma.SortOrder
199
+ roleId?: Prisma.SortOrder
200
+ userId?: Prisma.SortOrder
201
+ createdAt?: Prisma.SortOrder
202
+ _count?: Prisma.RoleAssignmentCountOrderByAggregateInput
203
+ _max?: Prisma.RoleAssignmentMaxOrderByAggregateInput
204
+ _min?: Prisma.RoleAssignmentMinOrderByAggregateInput
205
+ }
206
+
207
+ export type RoleAssignmentScalarWhereWithAggregatesInput = {
208
+ AND?: Prisma.RoleAssignmentScalarWhereWithAggregatesInput | Prisma.RoleAssignmentScalarWhereWithAggregatesInput[]
209
+ OR?: Prisma.RoleAssignmentScalarWhereWithAggregatesInput[]
210
+ NOT?: Prisma.RoleAssignmentScalarWhereWithAggregatesInput | Prisma.RoleAssignmentScalarWhereWithAggregatesInput[]
211
+ id?: Prisma.StringWithAggregatesFilter<"RoleAssignment"> | string
212
+ roleId?: Prisma.StringWithAggregatesFilter<"RoleAssignment"> | string
213
+ userId?: Prisma.StringWithAggregatesFilter<"RoleAssignment"> | string
214
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"RoleAssignment"> | Date | string
215
+ }
216
+
217
+ export type RoleAssignmentCreateInput = {
218
+ id?: string
219
+ roleId: string
220
+ userId: string
221
+ createdAt?: Date | string
222
+ }
223
+
224
+ export type RoleAssignmentUncheckedCreateInput = {
225
+ id?: string
226
+ roleId: string
227
+ userId: string
228
+ createdAt?: Date | string
229
+ }
230
+
231
+ export type RoleAssignmentUpdateInput = {
232
+ id?: Prisma.StringFieldUpdateOperationsInput | string
233
+ roleId?: Prisma.StringFieldUpdateOperationsInput | string
234
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
235
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
236
+ }
237
+
238
+ export type RoleAssignmentUncheckedUpdateInput = {
239
+ id?: Prisma.StringFieldUpdateOperationsInput | string
240
+ roleId?: Prisma.StringFieldUpdateOperationsInput | string
241
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
242
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
243
+ }
244
+
245
+ export type RoleAssignmentCreateManyInput = {
246
+ id?: string
247
+ roleId: string
248
+ userId: string
249
+ createdAt?: Date | string
250
+ }
251
+
252
+ export type RoleAssignmentUpdateManyMutationInput = {
253
+ id?: Prisma.StringFieldUpdateOperationsInput | string
254
+ roleId?: Prisma.StringFieldUpdateOperationsInput | string
255
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
256
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
257
+ }
258
+
259
+ export type RoleAssignmentUncheckedUpdateManyInput = {
260
+ id?: Prisma.StringFieldUpdateOperationsInput | string
261
+ roleId?: Prisma.StringFieldUpdateOperationsInput | string
262
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
263
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
264
+ }
265
+
266
+ export type RoleAssignmentRoleIdUserIdCompoundUniqueInput = {
267
+ roleId: string
268
+ userId: string
269
+ }
270
+
271
+ export type RoleAssignmentCountOrderByAggregateInput = {
272
+ id?: Prisma.SortOrder
273
+ roleId?: Prisma.SortOrder
274
+ userId?: Prisma.SortOrder
275
+ createdAt?: Prisma.SortOrder
276
+ }
277
+
278
+ export type RoleAssignmentMaxOrderByAggregateInput = {
279
+ id?: Prisma.SortOrder
280
+ roleId?: Prisma.SortOrder
281
+ userId?: Prisma.SortOrder
282
+ createdAt?: Prisma.SortOrder
283
+ }
284
+
285
+ export type RoleAssignmentMinOrderByAggregateInput = {
286
+ id?: Prisma.SortOrder
287
+ roleId?: Prisma.SortOrder
288
+ userId?: Prisma.SortOrder
289
+ createdAt?: Prisma.SortOrder
290
+ }
291
+
292
+
293
+
294
+ export type RoleAssignmentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
295
+ id?: boolean
296
+ roleId?: boolean
297
+ userId?: boolean
298
+ createdAt?: boolean
299
+ }, ExtArgs["result"]["roleAssignment"]>
300
+
301
+ export type RoleAssignmentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
302
+ id?: boolean
303
+ roleId?: boolean
304
+ userId?: boolean
305
+ createdAt?: boolean
306
+ }, ExtArgs["result"]["roleAssignment"]>
307
+
308
+ export type RoleAssignmentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
309
+ id?: boolean
310
+ roleId?: boolean
311
+ userId?: boolean
312
+ createdAt?: boolean
313
+ }, ExtArgs["result"]["roleAssignment"]>
314
+
315
+ export type RoleAssignmentSelectScalar = {
316
+ id?: boolean
317
+ roleId?: boolean
318
+ userId?: boolean
319
+ createdAt?: boolean
320
+ }
321
+
322
+ export type RoleAssignmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "roleId" | "userId" | "createdAt", ExtArgs["result"]["roleAssignment"]>
323
+
324
+ export type $RoleAssignmentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
325
+ name: "RoleAssignment"
326
+ objects: {}
327
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
328
+ id: string
329
+ roleId: string
330
+ userId: string
331
+ createdAt: Date
332
+ }, ExtArgs["result"]["roleAssignment"]>
333
+ composites: {}
334
+ }
335
+
336
+ export type RoleAssignmentGetPayload<S extends boolean | null | undefined | RoleAssignmentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RoleAssignmentPayload, S>
337
+
338
+ export type RoleAssignmentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
339
+ Omit<RoleAssignmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
340
+ select?: RoleAssignmentCountAggregateInputType | true
341
+ }
342
+
343
+ export interface RoleAssignmentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
344
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['RoleAssignment'], meta: { name: 'RoleAssignment' } }
345
+ /**
346
+ * Find zero or one RoleAssignment that matches the filter.
347
+ * @param {RoleAssignmentFindUniqueArgs} args - Arguments to find a RoleAssignment
348
+ * @example
349
+ * // Get one RoleAssignment
350
+ * const roleAssignment = await prisma.roleAssignment.findUnique({
351
+ * where: {
352
+ * // ... provide filter here
353
+ * }
354
+ * })
355
+ */
356
+ findUnique<T extends RoleAssignmentFindUniqueArgs>(args: Prisma.SelectSubset<T, RoleAssignmentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RoleAssignmentClient<runtime.Types.Result.GetResult<Prisma.$RoleAssignmentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
357
+
358
+ /**
359
+ * Find one RoleAssignment that matches the filter or throw an error with `error.code='P2025'`
360
+ * if no matches were found.
361
+ * @param {RoleAssignmentFindUniqueOrThrowArgs} args - Arguments to find a RoleAssignment
362
+ * @example
363
+ * // Get one RoleAssignment
364
+ * const roleAssignment = await prisma.roleAssignment.findUniqueOrThrow({
365
+ * where: {
366
+ * // ... provide filter here
367
+ * }
368
+ * })
369
+ */
370
+ findUniqueOrThrow<T extends RoleAssignmentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RoleAssignmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RoleAssignmentClient<runtime.Types.Result.GetResult<Prisma.$RoleAssignmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
371
+
372
+ /**
373
+ * Find the first RoleAssignment that matches the filter.
374
+ * Note, that providing `undefined` is treated as the value not being there.
375
+ * Read more here: https://pris.ly/d/null-undefined
376
+ * @param {RoleAssignmentFindFirstArgs} args - Arguments to find a RoleAssignment
377
+ * @example
378
+ * // Get one RoleAssignment
379
+ * const roleAssignment = await prisma.roleAssignment.findFirst({
380
+ * where: {
381
+ * // ... provide filter here
382
+ * }
383
+ * })
384
+ */
385
+ findFirst<T extends RoleAssignmentFindFirstArgs>(args?: Prisma.SelectSubset<T, RoleAssignmentFindFirstArgs<ExtArgs>>): Prisma.Prisma__RoleAssignmentClient<runtime.Types.Result.GetResult<Prisma.$RoleAssignmentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
386
+
387
+ /**
388
+ * Find the first RoleAssignment that matches the filter or
389
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
390
+ * Note, that providing `undefined` is treated as the value not being there.
391
+ * Read more here: https://pris.ly/d/null-undefined
392
+ * @param {RoleAssignmentFindFirstOrThrowArgs} args - Arguments to find a RoleAssignment
393
+ * @example
394
+ * // Get one RoleAssignment
395
+ * const roleAssignment = await prisma.roleAssignment.findFirstOrThrow({
396
+ * where: {
397
+ * // ... provide filter here
398
+ * }
399
+ * })
400
+ */
401
+ findFirstOrThrow<T extends RoleAssignmentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RoleAssignmentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RoleAssignmentClient<runtime.Types.Result.GetResult<Prisma.$RoleAssignmentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
402
+
403
+ /**
404
+ * Find zero or more RoleAssignments that matches the filter.
405
+ * Note, that providing `undefined` is treated as the value not being there.
406
+ * Read more here: https://pris.ly/d/null-undefined
407
+ * @param {RoleAssignmentFindManyArgs} args - Arguments to filter and select certain fields only.
408
+ * @example
409
+ * // Get all RoleAssignments
410
+ * const roleAssignments = await prisma.roleAssignment.findMany()
411
+ *
412
+ * // Get first 10 RoleAssignments
413
+ * const roleAssignments = await prisma.roleAssignment.findMany({ take: 10 })
414
+ *
415
+ * // Only select the `id`
416
+ * const roleAssignmentWithIdOnly = await prisma.roleAssignment.findMany({ select: { id: true } })
417
+ *
418
+ */
419
+ findMany<T extends RoleAssignmentFindManyArgs>(args?: Prisma.SelectSubset<T, RoleAssignmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RoleAssignmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
420
+
421
+ /**
422
+ * Create a RoleAssignment.
423
+ * @param {RoleAssignmentCreateArgs} args - Arguments to create a RoleAssignment.
424
+ * @example
425
+ * // Create one RoleAssignment
426
+ * const RoleAssignment = await prisma.roleAssignment.create({
427
+ * data: {
428
+ * // ... data to create a RoleAssignment
429
+ * }
430
+ * })
431
+ *
432
+ */
433
+ create<T extends RoleAssignmentCreateArgs>(args: Prisma.SelectSubset<T, RoleAssignmentCreateArgs<ExtArgs>>): Prisma.Prisma__RoleAssignmentClient<runtime.Types.Result.GetResult<Prisma.$RoleAssignmentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
434
+
435
+ /**
436
+ * Create many RoleAssignments.
437
+ * @param {RoleAssignmentCreateManyArgs} args - Arguments to create many RoleAssignments.
438
+ * @example
439
+ * // Create many RoleAssignments
440
+ * const roleAssignment = await prisma.roleAssignment.createMany({
441
+ * data: [
442
+ * // ... provide data here
443
+ * ]
444
+ * })
445
+ *
446
+ */
447
+ createMany<T extends RoleAssignmentCreateManyArgs>(args?: Prisma.SelectSubset<T, RoleAssignmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
448
+
449
+ /**
450
+ * Create many RoleAssignments and returns the data saved in the database.
451
+ * @param {RoleAssignmentCreateManyAndReturnArgs} args - Arguments to create many RoleAssignments.
452
+ * @example
453
+ * // Create many RoleAssignments
454
+ * const roleAssignment = await prisma.roleAssignment.createManyAndReturn({
455
+ * data: [
456
+ * // ... provide data here
457
+ * ]
458
+ * })
459
+ *
460
+ * // Create many RoleAssignments and only return the `id`
461
+ * const roleAssignmentWithIdOnly = await prisma.roleAssignment.createManyAndReturn({
462
+ * select: { id: true },
463
+ * data: [
464
+ * // ... provide data here
465
+ * ]
466
+ * })
467
+ * Note, that providing `undefined` is treated as the value not being there.
468
+ * Read more here: https://pris.ly/d/null-undefined
469
+ *
470
+ */
471
+ createManyAndReturn<T extends RoleAssignmentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RoleAssignmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RoleAssignmentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
472
+
473
+ /**
474
+ * Delete a RoleAssignment.
475
+ * @param {RoleAssignmentDeleteArgs} args - Arguments to delete one RoleAssignment.
476
+ * @example
477
+ * // Delete one RoleAssignment
478
+ * const RoleAssignment = await prisma.roleAssignment.delete({
479
+ * where: {
480
+ * // ... filter to delete one RoleAssignment
481
+ * }
482
+ * })
483
+ *
484
+ */
485
+ delete<T extends RoleAssignmentDeleteArgs>(args: Prisma.SelectSubset<T, RoleAssignmentDeleteArgs<ExtArgs>>): Prisma.Prisma__RoleAssignmentClient<runtime.Types.Result.GetResult<Prisma.$RoleAssignmentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
486
+
487
+ /**
488
+ * Update one RoleAssignment.
489
+ * @param {RoleAssignmentUpdateArgs} args - Arguments to update one RoleAssignment.
490
+ * @example
491
+ * // Update one RoleAssignment
492
+ * const roleAssignment = await prisma.roleAssignment.update({
493
+ * where: {
494
+ * // ... provide filter here
495
+ * },
496
+ * data: {
497
+ * // ... provide data here
498
+ * }
499
+ * })
500
+ *
501
+ */
502
+ update<T extends RoleAssignmentUpdateArgs>(args: Prisma.SelectSubset<T, RoleAssignmentUpdateArgs<ExtArgs>>): Prisma.Prisma__RoleAssignmentClient<runtime.Types.Result.GetResult<Prisma.$RoleAssignmentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
503
+
504
+ /**
505
+ * Delete zero or more RoleAssignments.
506
+ * @param {RoleAssignmentDeleteManyArgs} args - Arguments to filter RoleAssignments to delete.
507
+ * @example
508
+ * // Delete a few RoleAssignments
509
+ * const { count } = await prisma.roleAssignment.deleteMany({
510
+ * where: {
511
+ * // ... provide filter here
512
+ * }
513
+ * })
514
+ *
515
+ */
516
+ deleteMany<T extends RoleAssignmentDeleteManyArgs>(args?: Prisma.SelectSubset<T, RoleAssignmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
517
+
518
+ /**
519
+ * Update zero or more RoleAssignments.
520
+ * Note, that providing `undefined` is treated as the value not being there.
521
+ * Read more here: https://pris.ly/d/null-undefined
522
+ * @param {RoleAssignmentUpdateManyArgs} args - Arguments to update one or more rows.
523
+ * @example
524
+ * // Update many RoleAssignments
525
+ * const roleAssignment = await prisma.roleAssignment.updateMany({
526
+ * where: {
527
+ * // ... provide filter here
528
+ * },
529
+ * data: {
530
+ * // ... provide data here
531
+ * }
532
+ * })
533
+ *
534
+ */
535
+ updateMany<T extends RoleAssignmentUpdateManyArgs>(args: Prisma.SelectSubset<T, RoleAssignmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
536
+
537
+ /**
538
+ * Update zero or more RoleAssignments and returns the data updated in the database.
539
+ * @param {RoleAssignmentUpdateManyAndReturnArgs} args - Arguments to update many RoleAssignments.
540
+ * @example
541
+ * // Update many RoleAssignments
542
+ * const roleAssignment = await prisma.roleAssignment.updateManyAndReturn({
543
+ * where: {
544
+ * // ... provide filter here
545
+ * },
546
+ * data: [
547
+ * // ... provide data here
548
+ * ]
549
+ * })
550
+ *
551
+ * // Update zero or more RoleAssignments and only return the `id`
552
+ * const roleAssignmentWithIdOnly = await prisma.roleAssignment.updateManyAndReturn({
553
+ * select: { id: true },
554
+ * where: {
555
+ * // ... provide filter here
556
+ * },
557
+ * data: [
558
+ * // ... provide data here
559
+ * ]
560
+ * })
561
+ * Note, that providing `undefined` is treated as the value not being there.
562
+ * Read more here: https://pris.ly/d/null-undefined
563
+ *
564
+ */
565
+ updateManyAndReturn<T extends RoleAssignmentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RoleAssignmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RoleAssignmentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
566
+
567
+ /**
568
+ * Create or update one RoleAssignment.
569
+ * @param {RoleAssignmentUpsertArgs} args - Arguments to update or create a RoleAssignment.
570
+ * @example
571
+ * // Update or create a RoleAssignment
572
+ * const roleAssignment = await prisma.roleAssignment.upsert({
573
+ * create: {
574
+ * // ... data to create a RoleAssignment
575
+ * },
576
+ * update: {
577
+ * // ... in case it already exists, update
578
+ * },
579
+ * where: {
580
+ * // ... the filter for the RoleAssignment we want to update
581
+ * }
582
+ * })
583
+ */
584
+ upsert<T extends RoleAssignmentUpsertArgs>(args: Prisma.SelectSubset<T, RoleAssignmentUpsertArgs<ExtArgs>>): Prisma.Prisma__RoleAssignmentClient<runtime.Types.Result.GetResult<Prisma.$RoleAssignmentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
585
+
586
+
587
+ /**
588
+ * Count the number of RoleAssignments.
589
+ * Note, that providing `undefined` is treated as the value not being there.
590
+ * Read more here: https://pris.ly/d/null-undefined
591
+ * @param {RoleAssignmentCountArgs} args - Arguments to filter RoleAssignments to count.
592
+ * @example
593
+ * // Count the number of RoleAssignments
594
+ * const count = await prisma.roleAssignment.count({
595
+ * where: {
596
+ * // ... the filter for the RoleAssignments we want to count
597
+ * }
598
+ * })
599
+ **/
600
+ count<T extends RoleAssignmentCountArgs>(
601
+ args?: Prisma.Subset<T, RoleAssignmentCountArgs>,
602
+ ): Prisma.PrismaPromise<
603
+ T extends runtime.Types.Utils.Record<'select', any>
604
+ ? T['select'] extends true
605
+ ? number
606
+ : Prisma.GetScalarType<T['select'], RoleAssignmentCountAggregateOutputType>
607
+ : number
608
+ >
609
+
610
+ /**
611
+ * Allows you to perform aggregations operations on a RoleAssignment.
612
+ * Note, that providing `undefined` is treated as the value not being there.
613
+ * Read more here: https://pris.ly/d/null-undefined
614
+ * @param {RoleAssignmentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
615
+ * @example
616
+ * // Ordered by age ascending
617
+ * // Where email contains prisma.io
618
+ * // Limited to the 10 users
619
+ * const aggregations = await prisma.user.aggregate({
620
+ * _avg: {
621
+ * age: true,
622
+ * },
623
+ * where: {
624
+ * email: {
625
+ * contains: "prisma.io",
626
+ * },
627
+ * },
628
+ * orderBy: {
629
+ * age: "asc",
630
+ * },
631
+ * take: 10,
632
+ * })
633
+ **/
634
+ aggregate<T extends RoleAssignmentAggregateArgs>(args: Prisma.Subset<T, RoleAssignmentAggregateArgs>): Prisma.PrismaPromise<GetRoleAssignmentAggregateType<T>>
635
+
636
+ /**
637
+ * Group by RoleAssignment.
638
+ * Note, that providing `undefined` is treated as the value not being there.
639
+ * Read more here: https://pris.ly/d/null-undefined
640
+ * @param {RoleAssignmentGroupByArgs} args - Group by arguments.
641
+ * @example
642
+ * // Group by city, order by createdAt, get count
643
+ * const result = await prisma.user.groupBy({
644
+ * by: ['city', 'createdAt'],
645
+ * orderBy: {
646
+ * createdAt: true
647
+ * },
648
+ * _count: {
649
+ * _all: true
650
+ * },
651
+ * })
652
+ *
653
+ **/
654
+ groupBy<
655
+ T extends RoleAssignmentGroupByArgs,
656
+ HasSelectOrTake extends Prisma.Or<
657
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
658
+ Prisma.Extends<'take', Prisma.Keys<T>>
659
+ >,
660
+ OrderByArg extends Prisma.True extends HasSelectOrTake
661
+ ? { orderBy: RoleAssignmentGroupByArgs['orderBy'] }
662
+ : { orderBy?: RoleAssignmentGroupByArgs['orderBy'] },
663
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
664
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
665
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
666
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
667
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
668
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
669
+ InputErrors extends ByEmpty extends Prisma.True
670
+ ? `Error: "by" must not be empty.`
671
+ : HavingValid extends Prisma.False
672
+ ? {
673
+ [P in HavingFields]: P extends ByFields
674
+ ? never
675
+ : P extends string
676
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
677
+ : [
678
+ Error,
679
+ 'Field ',
680
+ P,
681
+ ` in "having" needs to be provided in "by"`,
682
+ ]
683
+ }[HavingFields]
684
+ : 'take' extends Prisma.Keys<T>
685
+ ? 'orderBy' extends Prisma.Keys<T>
686
+ ? ByValid extends Prisma.True
687
+ ? {}
688
+ : {
689
+ [P in OrderFields]: P extends ByFields
690
+ ? never
691
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
692
+ }[OrderFields]
693
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
694
+ : 'skip' extends Prisma.Keys<T>
695
+ ? 'orderBy' extends Prisma.Keys<T>
696
+ ? ByValid extends Prisma.True
697
+ ? {}
698
+ : {
699
+ [P in OrderFields]: P extends ByFields
700
+ ? never
701
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
702
+ }[OrderFields]
703
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
704
+ : ByValid extends Prisma.True
705
+ ? {}
706
+ : {
707
+ [P in OrderFields]: P extends ByFields
708
+ ? never
709
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
710
+ }[OrderFields]
711
+ >(args: Prisma.SubsetIntersection<T, RoleAssignmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRoleAssignmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
712
+ /**
713
+ * Fields of the RoleAssignment model
714
+ */
715
+ readonly fields: RoleAssignmentFieldRefs;
716
+ }
717
+
718
+ /**
719
+ * The delegate class that acts as a "Promise-like" for RoleAssignment.
720
+ * Why is this prefixed with `Prisma__`?
721
+ * Because we want to prevent naming conflicts as mentioned in
722
+ * https://github.com/prisma/prisma-client-js/issues/707
723
+ */
724
+ export interface Prisma__RoleAssignmentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
725
+ readonly [Symbol.toStringTag]: "PrismaPromise"
726
+ /**
727
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
728
+ * @param onfulfilled The callback to execute when the Promise is resolved.
729
+ * @param onrejected The callback to execute when the Promise is rejected.
730
+ * @returns A Promise for the completion of which ever callback is executed.
731
+ */
732
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
733
+ /**
734
+ * Attaches a callback for only the rejection of the Promise.
735
+ * @param onrejected The callback to execute when the Promise is rejected.
736
+ * @returns A Promise for the completion of the callback.
737
+ */
738
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
739
+ /**
740
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
741
+ * resolved value cannot be modified from the callback.
742
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
743
+ * @returns A Promise for the completion of the callback.
744
+ */
745
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
746
+ }
747
+
748
+
749
+
750
+
751
+ /**
752
+ * Fields of the RoleAssignment model
753
+ */
754
+ export interface RoleAssignmentFieldRefs {
755
+ readonly id: Prisma.FieldRef<"RoleAssignment", 'String'>
756
+ readonly roleId: Prisma.FieldRef<"RoleAssignment", 'String'>
757
+ readonly userId: Prisma.FieldRef<"RoleAssignment", 'String'>
758
+ readonly createdAt: Prisma.FieldRef<"RoleAssignment", 'DateTime'>
759
+ }
760
+
761
+
762
+ // Custom InputTypes
763
+ /**
764
+ * RoleAssignment findUnique
765
+ */
766
+ export type RoleAssignmentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
767
+ /**
768
+ * Select specific fields to fetch from the RoleAssignment
769
+ */
770
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
771
+ /**
772
+ * Omit specific fields from the RoleAssignment
773
+ */
774
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
775
+ /**
776
+ * Filter, which RoleAssignment to fetch.
777
+ */
778
+ where: Prisma.RoleAssignmentWhereUniqueInput
779
+ }
780
+
781
+ /**
782
+ * RoleAssignment findUniqueOrThrow
783
+ */
784
+ export type RoleAssignmentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
785
+ /**
786
+ * Select specific fields to fetch from the RoleAssignment
787
+ */
788
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
789
+ /**
790
+ * Omit specific fields from the RoleAssignment
791
+ */
792
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
793
+ /**
794
+ * Filter, which RoleAssignment to fetch.
795
+ */
796
+ where: Prisma.RoleAssignmentWhereUniqueInput
797
+ }
798
+
799
+ /**
800
+ * RoleAssignment findFirst
801
+ */
802
+ export type RoleAssignmentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
803
+ /**
804
+ * Select specific fields to fetch from the RoleAssignment
805
+ */
806
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
807
+ /**
808
+ * Omit specific fields from the RoleAssignment
809
+ */
810
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
811
+ /**
812
+ * Filter, which RoleAssignment to fetch.
813
+ */
814
+ where?: Prisma.RoleAssignmentWhereInput
815
+ /**
816
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
817
+ *
818
+ * Determine the order of RoleAssignments to fetch.
819
+ */
820
+ orderBy?: Prisma.RoleAssignmentOrderByWithRelationInput | Prisma.RoleAssignmentOrderByWithRelationInput[]
821
+ /**
822
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
823
+ *
824
+ * Sets the position for searching for RoleAssignments.
825
+ */
826
+ cursor?: Prisma.RoleAssignmentWhereUniqueInput
827
+ /**
828
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
829
+ *
830
+ * Take `±n` RoleAssignments from the position of the cursor.
831
+ */
832
+ take?: number
833
+ /**
834
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
835
+ *
836
+ * Skip the first `n` RoleAssignments.
837
+ */
838
+ skip?: number
839
+ /**
840
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
841
+ *
842
+ * Filter by unique combinations of RoleAssignments.
843
+ */
844
+ distinct?: Prisma.RoleAssignmentScalarFieldEnum | Prisma.RoleAssignmentScalarFieldEnum[]
845
+ }
846
+
847
+ /**
848
+ * RoleAssignment findFirstOrThrow
849
+ */
850
+ export type RoleAssignmentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
851
+ /**
852
+ * Select specific fields to fetch from the RoleAssignment
853
+ */
854
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
855
+ /**
856
+ * Omit specific fields from the RoleAssignment
857
+ */
858
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
859
+ /**
860
+ * Filter, which RoleAssignment to fetch.
861
+ */
862
+ where?: Prisma.RoleAssignmentWhereInput
863
+ /**
864
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
865
+ *
866
+ * Determine the order of RoleAssignments to fetch.
867
+ */
868
+ orderBy?: Prisma.RoleAssignmentOrderByWithRelationInput | Prisma.RoleAssignmentOrderByWithRelationInput[]
869
+ /**
870
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
871
+ *
872
+ * Sets the position for searching for RoleAssignments.
873
+ */
874
+ cursor?: Prisma.RoleAssignmentWhereUniqueInput
875
+ /**
876
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
877
+ *
878
+ * Take `±n` RoleAssignments from the position of the cursor.
879
+ */
880
+ take?: number
881
+ /**
882
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
883
+ *
884
+ * Skip the first `n` RoleAssignments.
885
+ */
886
+ skip?: number
887
+ /**
888
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
889
+ *
890
+ * Filter by unique combinations of RoleAssignments.
891
+ */
892
+ distinct?: Prisma.RoleAssignmentScalarFieldEnum | Prisma.RoleAssignmentScalarFieldEnum[]
893
+ }
894
+
895
+ /**
896
+ * RoleAssignment findMany
897
+ */
898
+ export type RoleAssignmentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
899
+ /**
900
+ * Select specific fields to fetch from the RoleAssignment
901
+ */
902
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
903
+ /**
904
+ * Omit specific fields from the RoleAssignment
905
+ */
906
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
907
+ /**
908
+ * Filter, which RoleAssignments to fetch.
909
+ */
910
+ where?: Prisma.RoleAssignmentWhereInput
911
+ /**
912
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
913
+ *
914
+ * Determine the order of RoleAssignments to fetch.
915
+ */
916
+ orderBy?: Prisma.RoleAssignmentOrderByWithRelationInput | Prisma.RoleAssignmentOrderByWithRelationInput[]
917
+ /**
918
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
919
+ *
920
+ * Sets the position for listing RoleAssignments.
921
+ */
922
+ cursor?: Prisma.RoleAssignmentWhereUniqueInput
923
+ /**
924
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
925
+ *
926
+ * Take `±n` RoleAssignments from the position of the cursor.
927
+ */
928
+ take?: number
929
+ /**
930
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
931
+ *
932
+ * Skip the first `n` RoleAssignments.
933
+ */
934
+ skip?: number
935
+ /**
936
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
937
+ *
938
+ * Filter by unique combinations of RoleAssignments.
939
+ */
940
+ distinct?: Prisma.RoleAssignmentScalarFieldEnum | Prisma.RoleAssignmentScalarFieldEnum[]
941
+ }
942
+
943
+ /**
944
+ * RoleAssignment create
945
+ */
946
+ export type RoleAssignmentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
947
+ /**
948
+ * Select specific fields to fetch from the RoleAssignment
949
+ */
950
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
951
+ /**
952
+ * Omit specific fields from the RoleAssignment
953
+ */
954
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
955
+ /**
956
+ * The data needed to create a RoleAssignment.
957
+ */
958
+ data: Prisma.XOR<Prisma.RoleAssignmentCreateInput, Prisma.RoleAssignmentUncheckedCreateInput>
959
+ }
960
+
961
+ /**
962
+ * RoleAssignment createMany
963
+ */
964
+ export type RoleAssignmentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
965
+ /**
966
+ * The data used to create many RoleAssignments.
967
+ */
968
+ data: Prisma.RoleAssignmentCreateManyInput | Prisma.RoleAssignmentCreateManyInput[]
969
+ }
970
+
971
+ /**
972
+ * RoleAssignment createManyAndReturn
973
+ */
974
+ export type RoleAssignmentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
975
+ /**
976
+ * Select specific fields to fetch from the RoleAssignment
977
+ */
978
+ select?: Prisma.RoleAssignmentSelectCreateManyAndReturn<ExtArgs> | null
979
+ /**
980
+ * Omit specific fields from the RoleAssignment
981
+ */
982
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
983
+ /**
984
+ * The data used to create many RoleAssignments.
985
+ */
986
+ data: Prisma.RoleAssignmentCreateManyInput | Prisma.RoleAssignmentCreateManyInput[]
987
+ }
988
+
989
+ /**
990
+ * RoleAssignment update
991
+ */
992
+ export type RoleAssignmentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
993
+ /**
994
+ * Select specific fields to fetch from the RoleAssignment
995
+ */
996
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
997
+ /**
998
+ * Omit specific fields from the RoleAssignment
999
+ */
1000
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
1001
+ /**
1002
+ * The data needed to update a RoleAssignment.
1003
+ */
1004
+ data: Prisma.XOR<Prisma.RoleAssignmentUpdateInput, Prisma.RoleAssignmentUncheckedUpdateInput>
1005
+ /**
1006
+ * Choose, which RoleAssignment to update.
1007
+ */
1008
+ where: Prisma.RoleAssignmentWhereUniqueInput
1009
+ }
1010
+
1011
+ /**
1012
+ * RoleAssignment updateMany
1013
+ */
1014
+ export type RoleAssignmentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1015
+ /**
1016
+ * The data used to update RoleAssignments.
1017
+ */
1018
+ data: Prisma.XOR<Prisma.RoleAssignmentUpdateManyMutationInput, Prisma.RoleAssignmentUncheckedUpdateManyInput>
1019
+ /**
1020
+ * Filter which RoleAssignments to update
1021
+ */
1022
+ where?: Prisma.RoleAssignmentWhereInput
1023
+ /**
1024
+ * Limit how many RoleAssignments to update.
1025
+ */
1026
+ limit?: number
1027
+ }
1028
+
1029
+ /**
1030
+ * RoleAssignment updateManyAndReturn
1031
+ */
1032
+ export type RoleAssignmentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1033
+ /**
1034
+ * Select specific fields to fetch from the RoleAssignment
1035
+ */
1036
+ select?: Prisma.RoleAssignmentSelectUpdateManyAndReturn<ExtArgs> | null
1037
+ /**
1038
+ * Omit specific fields from the RoleAssignment
1039
+ */
1040
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
1041
+ /**
1042
+ * The data used to update RoleAssignments.
1043
+ */
1044
+ data: Prisma.XOR<Prisma.RoleAssignmentUpdateManyMutationInput, Prisma.RoleAssignmentUncheckedUpdateManyInput>
1045
+ /**
1046
+ * Filter which RoleAssignments to update
1047
+ */
1048
+ where?: Prisma.RoleAssignmentWhereInput
1049
+ /**
1050
+ * Limit how many RoleAssignments to update.
1051
+ */
1052
+ limit?: number
1053
+ }
1054
+
1055
+ /**
1056
+ * RoleAssignment upsert
1057
+ */
1058
+ export type RoleAssignmentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1059
+ /**
1060
+ * Select specific fields to fetch from the RoleAssignment
1061
+ */
1062
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
1063
+ /**
1064
+ * Omit specific fields from the RoleAssignment
1065
+ */
1066
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
1067
+ /**
1068
+ * The filter to search for the RoleAssignment to update in case it exists.
1069
+ */
1070
+ where: Prisma.RoleAssignmentWhereUniqueInput
1071
+ /**
1072
+ * In case the RoleAssignment found by the `where` argument doesn't exist, create a new RoleAssignment with this data.
1073
+ */
1074
+ create: Prisma.XOR<Prisma.RoleAssignmentCreateInput, Prisma.RoleAssignmentUncheckedCreateInput>
1075
+ /**
1076
+ * In case the RoleAssignment was found with the provided `where` argument, update it with this data.
1077
+ */
1078
+ update: Prisma.XOR<Prisma.RoleAssignmentUpdateInput, Prisma.RoleAssignmentUncheckedUpdateInput>
1079
+ }
1080
+
1081
+ /**
1082
+ * RoleAssignment delete
1083
+ */
1084
+ export type RoleAssignmentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1085
+ /**
1086
+ * Select specific fields to fetch from the RoleAssignment
1087
+ */
1088
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
1089
+ /**
1090
+ * Omit specific fields from the RoleAssignment
1091
+ */
1092
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
1093
+ /**
1094
+ * Filter which RoleAssignment to delete.
1095
+ */
1096
+ where: Prisma.RoleAssignmentWhereUniqueInput
1097
+ }
1098
+
1099
+ /**
1100
+ * RoleAssignment deleteMany
1101
+ */
1102
+ export type RoleAssignmentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1103
+ /**
1104
+ * Filter which RoleAssignments to delete
1105
+ */
1106
+ where?: Prisma.RoleAssignmentWhereInput
1107
+ /**
1108
+ * Limit how many RoleAssignments to delete.
1109
+ */
1110
+ limit?: number
1111
+ }
1112
+
1113
+ /**
1114
+ * RoleAssignment without action
1115
+ */
1116
+ export type RoleAssignmentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1117
+ /**
1118
+ * Select specific fields to fetch from the RoleAssignment
1119
+ */
1120
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
1121
+ /**
1122
+ * Omit specific fields from the RoleAssignment
1123
+ */
1124
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
1125
+ }