@allbluecn/database 0.3.14 → 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,1430 @@
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
+ role?: Prisma.XOR<Prisma.CustomRoleScalarRelationFilter, Prisma.CustomRoleWhereInput>
178
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
179
+ }
180
+
181
+ export type RoleAssignmentOrderByWithRelationInput = {
182
+ id?: Prisma.SortOrder
183
+ roleId?: Prisma.SortOrder
184
+ userId?: Prisma.SortOrder
185
+ createdAt?: Prisma.SortOrder
186
+ role?: Prisma.CustomRoleOrderByWithRelationInput
187
+ user?: Prisma.UserOrderByWithRelationInput
188
+ }
189
+
190
+ export type RoleAssignmentWhereUniqueInput = Prisma.AtLeast<{
191
+ id?: string
192
+ roleId_userId?: Prisma.RoleAssignmentRoleIdUserIdCompoundUniqueInput
193
+ AND?: Prisma.RoleAssignmentWhereInput | Prisma.RoleAssignmentWhereInput[]
194
+ OR?: Prisma.RoleAssignmentWhereInput[]
195
+ NOT?: Prisma.RoleAssignmentWhereInput | Prisma.RoleAssignmentWhereInput[]
196
+ roleId?: Prisma.StringFilter<"RoleAssignment"> | string
197
+ userId?: Prisma.StringFilter<"RoleAssignment"> | string
198
+ createdAt?: Prisma.DateTimeFilter<"RoleAssignment"> | Date | string
199
+ role?: Prisma.XOR<Prisma.CustomRoleScalarRelationFilter, Prisma.CustomRoleWhereInput>
200
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
201
+ }, "id" | "roleId_userId">
202
+
203
+ export type RoleAssignmentOrderByWithAggregationInput = {
204
+ id?: Prisma.SortOrder
205
+ roleId?: Prisma.SortOrder
206
+ userId?: Prisma.SortOrder
207
+ createdAt?: Prisma.SortOrder
208
+ _count?: Prisma.RoleAssignmentCountOrderByAggregateInput
209
+ _max?: Prisma.RoleAssignmentMaxOrderByAggregateInput
210
+ _min?: Prisma.RoleAssignmentMinOrderByAggregateInput
211
+ }
212
+
213
+ export type RoleAssignmentScalarWhereWithAggregatesInput = {
214
+ AND?: Prisma.RoleAssignmentScalarWhereWithAggregatesInput | Prisma.RoleAssignmentScalarWhereWithAggregatesInput[]
215
+ OR?: Prisma.RoleAssignmentScalarWhereWithAggregatesInput[]
216
+ NOT?: Prisma.RoleAssignmentScalarWhereWithAggregatesInput | Prisma.RoleAssignmentScalarWhereWithAggregatesInput[]
217
+ id?: Prisma.StringWithAggregatesFilter<"RoleAssignment"> | string
218
+ roleId?: Prisma.StringWithAggregatesFilter<"RoleAssignment"> | string
219
+ userId?: Prisma.StringWithAggregatesFilter<"RoleAssignment"> | string
220
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"RoleAssignment"> | Date | string
221
+ }
222
+
223
+ export type RoleAssignmentCreateInput = {
224
+ id?: string
225
+ createdAt?: Date | string
226
+ role: Prisma.CustomRoleCreateNestedOneWithoutAssignmentsInput
227
+ user: Prisma.UserCreateNestedOneWithoutRoleAssignmentsInput
228
+ }
229
+
230
+ export type RoleAssignmentUncheckedCreateInput = {
231
+ id?: string
232
+ roleId: string
233
+ userId: string
234
+ createdAt?: Date | string
235
+ }
236
+
237
+ export type RoleAssignmentUpdateInput = {
238
+ id?: Prisma.StringFieldUpdateOperationsInput | string
239
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
240
+ role?: Prisma.CustomRoleUpdateOneRequiredWithoutAssignmentsNestedInput
241
+ user?: Prisma.UserUpdateOneRequiredWithoutRoleAssignmentsNestedInput
242
+ }
243
+
244
+ export type RoleAssignmentUncheckedUpdateInput = {
245
+ id?: Prisma.StringFieldUpdateOperationsInput | string
246
+ roleId?: Prisma.StringFieldUpdateOperationsInput | string
247
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
248
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
249
+ }
250
+
251
+ export type RoleAssignmentCreateManyInput = {
252
+ id?: string
253
+ roleId: string
254
+ userId: string
255
+ createdAt?: Date | string
256
+ }
257
+
258
+ export type RoleAssignmentUpdateManyMutationInput = {
259
+ id?: Prisma.StringFieldUpdateOperationsInput | string
260
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
261
+ }
262
+
263
+ export type RoleAssignmentUncheckedUpdateManyInput = {
264
+ id?: Prisma.StringFieldUpdateOperationsInput | string
265
+ roleId?: Prisma.StringFieldUpdateOperationsInput | string
266
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
267
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
268
+ }
269
+
270
+ export type RoleAssignmentListRelationFilter = {
271
+ every?: Prisma.RoleAssignmentWhereInput
272
+ some?: Prisma.RoleAssignmentWhereInput
273
+ none?: Prisma.RoleAssignmentWhereInput
274
+ }
275
+
276
+ export type RoleAssignmentOrderByRelationAggregateInput = {
277
+ _count?: Prisma.SortOrder
278
+ }
279
+
280
+ export type RoleAssignmentRoleIdUserIdCompoundUniqueInput = {
281
+ roleId: string
282
+ userId: string
283
+ }
284
+
285
+ export type RoleAssignmentCountOrderByAggregateInput = {
286
+ id?: Prisma.SortOrder
287
+ roleId?: Prisma.SortOrder
288
+ userId?: Prisma.SortOrder
289
+ createdAt?: Prisma.SortOrder
290
+ }
291
+
292
+ export type RoleAssignmentMaxOrderByAggregateInput = {
293
+ id?: Prisma.SortOrder
294
+ roleId?: Prisma.SortOrder
295
+ userId?: Prisma.SortOrder
296
+ createdAt?: Prisma.SortOrder
297
+ }
298
+
299
+ export type RoleAssignmentMinOrderByAggregateInput = {
300
+ id?: Prisma.SortOrder
301
+ roleId?: Prisma.SortOrder
302
+ userId?: Prisma.SortOrder
303
+ createdAt?: Prisma.SortOrder
304
+ }
305
+
306
+ export type RoleAssignmentCreateNestedManyWithoutUserInput = {
307
+ create?: Prisma.XOR<Prisma.RoleAssignmentCreateWithoutUserInput, Prisma.RoleAssignmentUncheckedCreateWithoutUserInput> | Prisma.RoleAssignmentCreateWithoutUserInput[] | Prisma.RoleAssignmentUncheckedCreateWithoutUserInput[]
308
+ connectOrCreate?: Prisma.RoleAssignmentCreateOrConnectWithoutUserInput | Prisma.RoleAssignmentCreateOrConnectWithoutUserInput[]
309
+ createMany?: Prisma.RoleAssignmentCreateManyUserInputEnvelope
310
+ connect?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
311
+ }
312
+
313
+ export type RoleAssignmentUncheckedCreateNestedManyWithoutUserInput = {
314
+ create?: Prisma.XOR<Prisma.RoleAssignmentCreateWithoutUserInput, Prisma.RoleAssignmentUncheckedCreateWithoutUserInput> | Prisma.RoleAssignmentCreateWithoutUserInput[] | Prisma.RoleAssignmentUncheckedCreateWithoutUserInput[]
315
+ connectOrCreate?: Prisma.RoleAssignmentCreateOrConnectWithoutUserInput | Prisma.RoleAssignmentCreateOrConnectWithoutUserInput[]
316
+ createMany?: Prisma.RoleAssignmentCreateManyUserInputEnvelope
317
+ connect?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
318
+ }
319
+
320
+ export type RoleAssignmentUpdateManyWithoutUserNestedInput = {
321
+ create?: Prisma.XOR<Prisma.RoleAssignmentCreateWithoutUserInput, Prisma.RoleAssignmentUncheckedCreateWithoutUserInput> | Prisma.RoleAssignmentCreateWithoutUserInput[] | Prisma.RoleAssignmentUncheckedCreateWithoutUserInput[]
322
+ connectOrCreate?: Prisma.RoleAssignmentCreateOrConnectWithoutUserInput | Prisma.RoleAssignmentCreateOrConnectWithoutUserInput[]
323
+ upsert?: Prisma.RoleAssignmentUpsertWithWhereUniqueWithoutUserInput | Prisma.RoleAssignmentUpsertWithWhereUniqueWithoutUserInput[]
324
+ createMany?: Prisma.RoleAssignmentCreateManyUserInputEnvelope
325
+ set?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
326
+ disconnect?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
327
+ delete?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
328
+ connect?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
329
+ update?: Prisma.RoleAssignmentUpdateWithWhereUniqueWithoutUserInput | Prisma.RoleAssignmentUpdateWithWhereUniqueWithoutUserInput[]
330
+ updateMany?: Prisma.RoleAssignmentUpdateManyWithWhereWithoutUserInput | Prisma.RoleAssignmentUpdateManyWithWhereWithoutUserInput[]
331
+ deleteMany?: Prisma.RoleAssignmentScalarWhereInput | Prisma.RoleAssignmentScalarWhereInput[]
332
+ }
333
+
334
+ export type RoleAssignmentUncheckedUpdateManyWithoutUserNestedInput = {
335
+ create?: Prisma.XOR<Prisma.RoleAssignmentCreateWithoutUserInput, Prisma.RoleAssignmentUncheckedCreateWithoutUserInput> | Prisma.RoleAssignmentCreateWithoutUserInput[] | Prisma.RoleAssignmentUncheckedCreateWithoutUserInput[]
336
+ connectOrCreate?: Prisma.RoleAssignmentCreateOrConnectWithoutUserInput | Prisma.RoleAssignmentCreateOrConnectWithoutUserInput[]
337
+ upsert?: Prisma.RoleAssignmentUpsertWithWhereUniqueWithoutUserInput | Prisma.RoleAssignmentUpsertWithWhereUniqueWithoutUserInput[]
338
+ createMany?: Prisma.RoleAssignmentCreateManyUserInputEnvelope
339
+ set?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
340
+ disconnect?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
341
+ delete?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
342
+ connect?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
343
+ update?: Prisma.RoleAssignmentUpdateWithWhereUniqueWithoutUserInput | Prisma.RoleAssignmentUpdateWithWhereUniqueWithoutUserInput[]
344
+ updateMany?: Prisma.RoleAssignmentUpdateManyWithWhereWithoutUserInput | Prisma.RoleAssignmentUpdateManyWithWhereWithoutUserInput[]
345
+ deleteMany?: Prisma.RoleAssignmentScalarWhereInput | Prisma.RoleAssignmentScalarWhereInput[]
346
+ }
347
+
348
+ export type RoleAssignmentCreateNestedManyWithoutRoleInput = {
349
+ create?: Prisma.XOR<Prisma.RoleAssignmentCreateWithoutRoleInput, Prisma.RoleAssignmentUncheckedCreateWithoutRoleInput> | Prisma.RoleAssignmentCreateWithoutRoleInput[] | Prisma.RoleAssignmentUncheckedCreateWithoutRoleInput[]
350
+ connectOrCreate?: Prisma.RoleAssignmentCreateOrConnectWithoutRoleInput | Prisma.RoleAssignmentCreateOrConnectWithoutRoleInput[]
351
+ createMany?: Prisma.RoleAssignmentCreateManyRoleInputEnvelope
352
+ connect?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
353
+ }
354
+
355
+ export type RoleAssignmentUncheckedCreateNestedManyWithoutRoleInput = {
356
+ create?: Prisma.XOR<Prisma.RoleAssignmentCreateWithoutRoleInput, Prisma.RoleAssignmentUncheckedCreateWithoutRoleInput> | Prisma.RoleAssignmentCreateWithoutRoleInput[] | Prisma.RoleAssignmentUncheckedCreateWithoutRoleInput[]
357
+ connectOrCreate?: Prisma.RoleAssignmentCreateOrConnectWithoutRoleInput | Prisma.RoleAssignmentCreateOrConnectWithoutRoleInput[]
358
+ createMany?: Prisma.RoleAssignmentCreateManyRoleInputEnvelope
359
+ connect?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
360
+ }
361
+
362
+ export type RoleAssignmentUpdateManyWithoutRoleNestedInput = {
363
+ create?: Prisma.XOR<Prisma.RoleAssignmentCreateWithoutRoleInput, Prisma.RoleAssignmentUncheckedCreateWithoutRoleInput> | Prisma.RoleAssignmentCreateWithoutRoleInput[] | Prisma.RoleAssignmentUncheckedCreateWithoutRoleInput[]
364
+ connectOrCreate?: Prisma.RoleAssignmentCreateOrConnectWithoutRoleInput | Prisma.RoleAssignmentCreateOrConnectWithoutRoleInput[]
365
+ upsert?: Prisma.RoleAssignmentUpsertWithWhereUniqueWithoutRoleInput | Prisma.RoleAssignmentUpsertWithWhereUniqueWithoutRoleInput[]
366
+ createMany?: Prisma.RoleAssignmentCreateManyRoleInputEnvelope
367
+ set?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
368
+ disconnect?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
369
+ delete?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
370
+ connect?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
371
+ update?: Prisma.RoleAssignmentUpdateWithWhereUniqueWithoutRoleInput | Prisma.RoleAssignmentUpdateWithWhereUniqueWithoutRoleInput[]
372
+ updateMany?: Prisma.RoleAssignmentUpdateManyWithWhereWithoutRoleInput | Prisma.RoleAssignmentUpdateManyWithWhereWithoutRoleInput[]
373
+ deleteMany?: Prisma.RoleAssignmentScalarWhereInput | Prisma.RoleAssignmentScalarWhereInput[]
374
+ }
375
+
376
+ export type RoleAssignmentUncheckedUpdateManyWithoutRoleNestedInput = {
377
+ create?: Prisma.XOR<Prisma.RoleAssignmentCreateWithoutRoleInput, Prisma.RoleAssignmentUncheckedCreateWithoutRoleInput> | Prisma.RoleAssignmentCreateWithoutRoleInput[] | Prisma.RoleAssignmentUncheckedCreateWithoutRoleInput[]
378
+ connectOrCreate?: Prisma.RoleAssignmentCreateOrConnectWithoutRoleInput | Prisma.RoleAssignmentCreateOrConnectWithoutRoleInput[]
379
+ upsert?: Prisma.RoleAssignmentUpsertWithWhereUniqueWithoutRoleInput | Prisma.RoleAssignmentUpsertWithWhereUniqueWithoutRoleInput[]
380
+ createMany?: Prisma.RoleAssignmentCreateManyRoleInputEnvelope
381
+ set?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
382
+ disconnect?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
383
+ delete?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
384
+ connect?: Prisma.RoleAssignmentWhereUniqueInput | Prisma.RoleAssignmentWhereUniqueInput[]
385
+ update?: Prisma.RoleAssignmentUpdateWithWhereUniqueWithoutRoleInput | Prisma.RoleAssignmentUpdateWithWhereUniqueWithoutRoleInput[]
386
+ updateMany?: Prisma.RoleAssignmentUpdateManyWithWhereWithoutRoleInput | Prisma.RoleAssignmentUpdateManyWithWhereWithoutRoleInput[]
387
+ deleteMany?: Prisma.RoleAssignmentScalarWhereInput | Prisma.RoleAssignmentScalarWhereInput[]
388
+ }
389
+
390
+ export type RoleAssignmentCreateWithoutUserInput = {
391
+ id?: string
392
+ createdAt?: Date | string
393
+ role: Prisma.CustomRoleCreateNestedOneWithoutAssignmentsInput
394
+ }
395
+
396
+ export type RoleAssignmentUncheckedCreateWithoutUserInput = {
397
+ id?: string
398
+ roleId: string
399
+ createdAt?: Date | string
400
+ }
401
+
402
+ export type RoleAssignmentCreateOrConnectWithoutUserInput = {
403
+ where: Prisma.RoleAssignmentWhereUniqueInput
404
+ create: Prisma.XOR<Prisma.RoleAssignmentCreateWithoutUserInput, Prisma.RoleAssignmentUncheckedCreateWithoutUserInput>
405
+ }
406
+
407
+ export type RoleAssignmentCreateManyUserInputEnvelope = {
408
+ data: Prisma.RoleAssignmentCreateManyUserInput | Prisma.RoleAssignmentCreateManyUserInput[]
409
+ skipDuplicates?: boolean
410
+ }
411
+
412
+ export type RoleAssignmentUpsertWithWhereUniqueWithoutUserInput = {
413
+ where: Prisma.RoleAssignmentWhereUniqueInput
414
+ update: Prisma.XOR<Prisma.RoleAssignmentUpdateWithoutUserInput, Prisma.RoleAssignmentUncheckedUpdateWithoutUserInput>
415
+ create: Prisma.XOR<Prisma.RoleAssignmentCreateWithoutUserInput, Prisma.RoleAssignmentUncheckedCreateWithoutUserInput>
416
+ }
417
+
418
+ export type RoleAssignmentUpdateWithWhereUniqueWithoutUserInput = {
419
+ where: Prisma.RoleAssignmentWhereUniqueInput
420
+ data: Prisma.XOR<Prisma.RoleAssignmentUpdateWithoutUserInput, Prisma.RoleAssignmentUncheckedUpdateWithoutUserInput>
421
+ }
422
+
423
+ export type RoleAssignmentUpdateManyWithWhereWithoutUserInput = {
424
+ where: Prisma.RoleAssignmentScalarWhereInput
425
+ data: Prisma.XOR<Prisma.RoleAssignmentUpdateManyMutationInput, Prisma.RoleAssignmentUncheckedUpdateManyWithoutUserInput>
426
+ }
427
+
428
+ export type RoleAssignmentScalarWhereInput = {
429
+ AND?: Prisma.RoleAssignmentScalarWhereInput | Prisma.RoleAssignmentScalarWhereInput[]
430
+ OR?: Prisma.RoleAssignmentScalarWhereInput[]
431
+ NOT?: Prisma.RoleAssignmentScalarWhereInput | Prisma.RoleAssignmentScalarWhereInput[]
432
+ id?: Prisma.StringFilter<"RoleAssignment"> | string
433
+ roleId?: Prisma.StringFilter<"RoleAssignment"> | string
434
+ userId?: Prisma.StringFilter<"RoleAssignment"> | string
435
+ createdAt?: Prisma.DateTimeFilter<"RoleAssignment"> | Date | string
436
+ }
437
+
438
+ export type RoleAssignmentCreateWithoutRoleInput = {
439
+ id?: string
440
+ createdAt?: Date | string
441
+ user: Prisma.UserCreateNestedOneWithoutRoleAssignmentsInput
442
+ }
443
+
444
+ export type RoleAssignmentUncheckedCreateWithoutRoleInput = {
445
+ id?: string
446
+ userId: string
447
+ createdAt?: Date | string
448
+ }
449
+
450
+ export type RoleAssignmentCreateOrConnectWithoutRoleInput = {
451
+ where: Prisma.RoleAssignmentWhereUniqueInput
452
+ create: Prisma.XOR<Prisma.RoleAssignmentCreateWithoutRoleInput, Prisma.RoleAssignmentUncheckedCreateWithoutRoleInput>
453
+ }
454
+
455
+ export type RoleAssignmentCreateManyRoleInputEnvelope = {
456
+ data: Prisma.RoleAssignmentCreateManyRoleInput | Prisma.RoleAssignmentCreateManyRoleInput[]
457
+ skipDuplicates?: boolean
458
+ }
459
+
460
+ export type RoleAssignmentUpsertWithWhereUniqueWithoutRoleInput = {
461
+ where: Prisma.RoleAssignmentWhereUniqueInput
462
+ update: Prisma.XOR<Prisma.RoleAssignmentUpdateWithoutRoleInput, Prisma.RoleAssignmentUncheckedUpdateWithoutRoleInput>
463
+ create: Prisma.XOR<Prisma.RoleAssignmentCreateWithoutRoleInput, Prisma.RoleAssignmentUncheckedCreateWithoutRoleInput>
464
+ }
465
+
466
+ export type RoleAssignmentUpdateWithWhereUniqueWithoutRoleInput = {
467
+ where: Prisma.RoleAssignmentWhereUniqueInput
468
+ data: Prisma.XOR<Prisma.RoleAssignmentUpdateWithoutRoleInput, Prisma.RoleAssignmentUncheckedUpdateWithoutRoleInput>
469
+ }
470
+
471
+ export type RoleAssignmentUpdateManyWithWhereWithoutRoleInput = {
472
+ where: Prisma.RoleAssignmentScalarWhereInput
473
+ data: Prisma.XOR<Prisma.RoleAssignmentUpdateManyMutationInput, Prisma.RoleAssignmentUncheckedUpdateManyWithoutRoleInput>
474
+ }
475
+
476
+ export type RoleAssignmentCreateManyUserInput = {
477
+ id?: string
478
+ roleId: string
479
+ createdAt?: Date | string
480
+ }
481
+
482
+ export type RoleAssignmentUpdateWithoutUserInput = {
483
+ id?: Prisma.StringFieldUpdateOperationsInput | string
484
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
485
+ role?: Prisma.CustomRoleUpdateOneRequiredWithoutAssignmentsNestedInput
486
+ }
487
+
488
+ export type RoleAssignmentUncheckedUpdateWithoutUserInput = {
489
+ id?: Prisma.StringFieldUpdateOperationsInput | string
490
+ roleId?: Prisma.StringFieldUpdateOperationsInput | string
491
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
492
+ }
493
+
494
+ export type RoleAssignmentUncheckedUpdateManyWithoutUserInput = {
495
+ id?: Prisma.StringFieldUpdateOperationsInput | string
496
+ roleId?: Prisma.StringFieldUpdateOperationsInput | string
497
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
498
+ }
499
+
500
+ export type RoleAssignmentCreateManyRoleInput = {
501
+ id?: string
502
+ userId: string
503
+ createdAt?: Date | string
504
+ }
505
+
506
+ export type RoleAssignmentUpdateWithoutRoleInput = {
507
+ id?: Prisma.StringFieldUpdateOperationsInput | string
508
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
509
+ user?: Prisma.UserUpdateOneRequiredWithoutRoleAssignmentsNestedInput
510
+ }
511
+
512
+ export type RoleAssignmentUncheckedUpdateWithoutRoleInput = {
513
+ id?: Prisma.StringFieldUpdateOperationsInput | string
514
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
515
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
516
+ }
517
+
518
+ export type RoleAssignmentUncheckedUpdateManyWithoutRoleInput = {
519
+ id?: Prisma.StringFieldUpdateOperationsInput | string
520
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
521
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
522
+ }
523
+
524
+
525
+
526
+ export type RoleAssignmentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
527
+ id?: boolean
528
+ roleId?: boolean
529
+ userId?: boolean
530
+ createdAt?: boolean
531
+ role?: boolean | Prisma.CustomRoleDefaultArgs<ExtArgs>
532
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
533
+ }, ExtArgs["result"]["roleAssignment"]>
534
+
535
+ export type RoleAssignmentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
536
+ id?: boolean
537
+ roleId?: boolean
538
+ userId?: boolean
539
+ createdAt?: boolean
540
+ role?: boolean | Prisma.CustomRoleDefaultArgs<ExtArgs>
541
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
542
+ }, ExtArgs["result"]["roleAssignment"]>
543
+
544
+ export type RoleAssignmentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
545
+ id?: boolean
546
+ roleId?: boolean
547
+ userId?: boolean
548
+ createdAt?: boolean
549
+ role?: boolean | Prisma.CustomRoleDefaultArgs<ExtArgs>
550
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
551
+ }, ExtArgs["result"]["roleAssignment"]>
552
+
553
+ export type RoleAssignmentSelectScalar = {
554
+ id?: boolean
555
+ roleId?: boolean
556
+ userId?: boolean
557
+ createdAt?: boolean
558
+ }
559
+
560
+ export type RoleAssignmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "roleId" | "userId" | "createdAt", ExtArgs["result"]["roleAssignment"]>
561
+ export type RoleAssignmentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
562
+ role?: boolean | Prisma.CustomRoleDefaultArgs<ExtArgs>
563
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
564
+ }
565
+ export type RoleAssignmentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
566
+ role?: boolean | Prisma.CustomRoleDefaultArgs<ExtArgs>
567
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
568
+ }
569
+ export type RoleAssignmentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
570
+ role?: boolean | Prisma.CustomRoleDefaultArgs<ExtArgs>
571
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
572
+ }
573
+
574
+ export type $RoleAssignmentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
575
+ name: "RoleAssignment"
576
+ objects: {
577
+ role: Prisma.$CustomRolePayload<ExtArgs>
578
+ user: Prisma.$UserPayload<ExtArgs>
579
+ }
580
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
581
+ id: string
582
+ roleId: string
583
+ userId: string
584
+ createdAt: Date
585
+ }, ExtArgs["result"]["roleAssignment"]>
586
+ composites: {}
587
+ }
588
+
589
+ export type RoleAssignmentGetPayload<S extends boolean | null | undefined | RoleAssignmentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RoleAssignmentPayload, S>
590
+
591
+ export type RoleAssignmentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
592
+ Omit<RoleAssignmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
593
+ select?: RoleAssignmentCountAggregateInputType | true
594
+ }
595
+
596
+ export interface RoleAssignmentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
597
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['RoleAssignment'], meta: { name: 'RoleAssignment' } }
598
+ /**
599
+ * Find zero or one RoleAssignment that matches the filter.
600
+ * @param {RoleAssignmentFindUniqueArgs} args - Arguments to find a RoleAssignment
601
+ * @example
602
+ * // Get one RoleAssignment
603
+ * const roleAssignment = await prisma.roleAssignment.findUnique({
604
+ * where: {
605
+ * // ... provide filter here
606
+ * }
607
+ * })
608
+ */
609
+ 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>
610
+
611
+ /**
612
+ * Find one RoleAssignment that matches the filter or throw an error with `error.code='P2025'`
613
+ * if no matches were found.
614
+ * @param {RoleAssignmentFindUniqueOrThrowArgs} args - Arguments to find a RoleAssignment
615
+ * @example
616
+ * // Get one RoleAssignment
617
+ * const roleAssignment = await prisma.roleAssignment.findUniqueOrThrow({
618
+ * where: {
619
+ * // ... provide filter here
620
+ * }
621
+ * })
622
+ */
623
+ 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>
624
+
625
+ /**
626
+ * Find the first RoleAssignment that matches the filter.
627
+ * Note, that providing `undefined` is treated as the value not being there.
628
+ * Read more here: https://pris.ly/d/null-undefined
629
+ * @param {RoleAssignmentFindFirstArgs} args - Arguments to find a RoleAssignment
630
+ * @example
631
+ * // Get one RoleAssignment
632
+ * const roleAssignment = await prisma.roleAssignment.findFirst({
633
+ * where: {
634
+ * // ... provide filter here
635
+ * }
636
+ * })
637
+ */
638
+ 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>
639
+
640
+ /**
641
+ * Find the first RoleAssignment that matches the filter or
642
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
643
+ * Note, that providing `undefined` is treated as the value not being there.
644
+ * Read more here: https://pris.ly/d/null-undefined
645
+ * @param {RoleAssignmentFindFirstOrThrowArgs} args - Arguments to find a RoleAssignment
646
+ * @example
647
+ * // Get one RoleAssignment
648
+ * const roleAssignment = await prisma.roleAssignment.findFirstOrThrow({
649
+ * where: {
650
+ * // ... provide filter here
651
+ * }
652
+ * })
653
+ */
654
+ 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>
655
+
656
+ /**
657
+ * Find zero or more RoleAssignments that matches the filter.
658
+ * Note, that providing `undefined` is treated as the value not being there.
659
+ * Read more here: https://pris.ly/d/null-undefined
660
+ * @param {RoleAssignmentFindManyArgs} args - Arguments to filter and select certain fields only.
661
+ * @example
662
+ * // Get all RoleAssignments
663
+ * const roleAssignments = await prisma.roleAssignment.findMany()
664
+ *
665
+ * // Get first 10 RoleAssignments
666
+ * const roleAssignments = await prisma.roleAssignment.findMany({ take: 10 })
667
+ *
668
+ * // Only select the `id`
669
+ * const roleAssignmentWithIdOnly = await prisma.roleAssignment.findMany({ select: { id: true } })
670
+ *
671
+ */
672
+ findMany<T extends RoleAssignmentFindManyArgs>(args?: Prisma.SelectSubset<T, RoleAssignmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RoleAssignmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
673
+
674
+ /**
675
+ * Create a RoleAssignment.
676
+ * @param {RoleAssignmentCreateArgs} args - Arguments to create a RoleAssignment.
677
+ * @example
678
+ * // Create one RoleAssignment
679
+ * const RoleAssignment = await prisma.roleAssignment.create({
680
+ * data: {
681
+ * // ... data to create a RoleAssignment
682
+ * }
683
+ * })
684
+ *
685
+ */
686
+ 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>
687
+
688
+ /**
689
+ * Create many RoleAssignments.
690
+ * @param {RoleAssignmentCreateManyArgs} args - Arguments to create many RoleAssignments.
691
+ * @example
692
+ * // Create many RoleAssignments
693
+ * const roleAssignment = await prisma.roleAssignment.createMany({
694
+ * data: [
695
+ * // ... provide data here
696
+ * ]
697
+ * })
698
+ *
699
+ */
700
+ createMany<T extends RoleAssignmentCreateManyArgs>(args?: Prisma.SelectSubset<T, RoleAssignmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
701
+
702
+ /**
703
+ * Create many RoleAssignments and returns the data saved in the database.
704
+ * @param {RoleAssignmentCreateManyAndReturnArgs} args - Arguments to create many RoleAssignments.
705
+ * @example
706
+ * // Create many RoleAssignments
707
+ * const roleAssignment = await prisma.roleAssignment.createManyAndReturn({
708
+ * data: [
709
+ * // ... provide data here
710
+ * ]
711
+ * })
712
+ *
713
+ * // Create many RoleAssignments and only return the `id`
714
+ * const roleAssignmentWithIdOnly = await prisma.roleAssignment.createManyAndReturn({
715
+ * select: { id: true },
716
+ * data: [
717
+ * // ... provide data here
718
+ * ]
719
+ * })
720
+ * Note, that providing `undefined` is treated as the value not being there.
721
+ * Read more here: https://pris.ly/d/null-undefined
722
+ *
723
+ */
724
+ createManyAndReturn<T extends RoleAssignmentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RoleAssignmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RoleAssignmentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
725
+
726
+ /**
727
+ * Delete a RoleAssignment.
728
+ * @param {RoleAssignmentDeleteArgs} args - Arguments to delete one RoleAssignment.
729
+ * @example
730
+ * // Delete one RoleAssignment
731
+ * const RoleAssignment = await prisma.roleAssignment.delete({
732
+ * where: {
733
+ * // ... filter to delete one RoleAssignment
734
+ * }
735
+ * })
736
+ *
737
+ */
738
+ 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>
739
+
740
+ /**
741
+ * Update one RoleAssignment.
742
+ * @param {RoleAssignmentUpdateArgs} args - Arguments to update one RoleAssignment.
743
+ * @example
744
+ * // Update one RoleAssignment
745
+ * const roleAssignment = await prisma.roleAssignment.update({
746
+ * where: {
747
+ * // ... provide filter here
748
+ * },
749
+ * data: {
750
+ * // ... provide data here
751
+ * }
752
+ * })
753
+ *
754
+ */
755
+ 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>
756
+
757
+ /**
758
+ * Delete zero or more RoleAssignments.
759
+ * @param {RoleAssignmentDeleteManyArgs} args - Arguments to filter RoleAssignments to delete.
760
+ * @example
761
+ * // Delete a few RoleAssignments
762
+ * const { count } = await prisma.roleAssignment.deleteMany({
763
+ * where: {
764
+ * // ... provide filter here
765
+ * }
766
+ * })
767
+ *
768
+ */
769
+ deleteMany<T extends RoleAssignmentDeleteManyArgs>(args?: Prisma.SelectSubset<T, RoleAssignmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
770
+
771
+ /**
772
+ * Update zero or more RoleAssignments.
773
+ * Note, that providing `undefined` is treated as the value not being there.
774
+ * Read more here: https://pris.ly/d/null-undefined
775
+ * @param {RoleAssignmentUpdateManyArgs} args - Arguments to update one or more rows.
776
+ * @example
777
+ * // Update many RoleAssignments
778
+ * const roleAssignment = await prisma.roleAssignment.updateMany({
779
+ * where: {
780
+ * // ... provide filter here
781
+ * },
782
+ * data: {
783
+ * // ... provide data here
784
+ * }
785
+ * })
786
+ *
787
+ */
788
+ updateMany<T extends RoleAssignmentUpdateManyArgs>(args: Prisma.SelectSubset<T, RoleAssignmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
789
+
790
+ /**
791
+ * Update zero or more RoleAssignments and returns the data updated in the database.
792
+ * @param {RoleAssignmentUpdateManyAndReturnArgs} args - Arguments to update many RoleAssignments.
793
+ * @example
794
+ * // Update many RoleAssignments
795
+ * const roleAssignment = await prisma.roleAssignment.updateManyAndReturn({
796
+ * where: {
797
+ * // ... provide filter here
798
+ * },
799
+ * data: [
800
+ * // ... provide data here
801
+ * ]
802
+ * })
803
+ *
804
+ * // Update zero or more RoleAssignments and only return the `id`
805
+ * const roleAssignmentWithIdOnly = await prisma.roleAssignment.updateManyAndReturn({
806
+ * select: { id: true },
807
+ * where: {
808
+ * // ... provide filter here
809
+ * },
810
+ * data: [
811
+ * // ... provide data here
812
+ * ]
813
+ * })
814
+ * Note, that providing `undefined` is treated as the value not being there.
815
+ * Read more here: https://pris.ly/d/null-undefined
816
+ *
817
+ */
818
+ updateManyAndReturn<T extends RoleAssignmentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RoleAssignmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RoleAssignmentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
819
+
820
+ /**
821
+ * Create or update one RoleAssignment.
822
+ * @param {RoleAssignmentUpsertArgs} args - Arguments to update or create a RoleAssignment.
823
+ * @example
824
+ * // Update or create a RoleAssignment
825
+ * const roleAssignment = await prisma.roleAssignment.upsert({
826
+ * create: {
827
+ * // ... data to create a RoleAssignment
828
+ * },
829
+ * update: {
830
+ * // ... in case it already exists, update
831
+ * },
832
+ * where: {
833
+ * // ... the filter for the RoleAssignment we want to update
834
+ * }
835
+ * })
836
+ */
837
+ 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>
838
+
839
+
840
+ /**
841
+ * Count the number of RoleAssignments.
842
+ * Note, that providing `undefined` is treated as the value not being there.
843
+ * Read more here: https://pris.ly/d/null-undefined
844
+ * @param {RoleAssignmentCountArgs} args - Arguments to filter RoleAssignments to count.
845
+ * @example
846
+ * // Count the number of RoleAssignments
847
+ * const count = await prisma.roleAssignment.count({
848
+ * where: {
849
+ * // ... the filter for the RoleAssignments we want to count
850
+ * }
851
+ * })
852
+ **/
853
+ count<T extends RoleAssignmentCountArgs>(
854
+ args?: Prisma.Subset<T, RoleAssignmentCountArgs>,
855
+ ): Prisma.PrismaPromise<
856
+ T extends runtime.Types.Utils.Record<'select', any>
857
+ ? T['select'] extends true
858
+ ? number
859
+ : Prisma.GetScalarType<T['select'], RoleAssignmentCountAggregateOutputType>
860
+ : number
861
+ >
862
+
863
+ /**
864
+ * Allows you to perform aggregations operations on a RoleAssignment.
865
+ * Note, that providing `undefined` is treated as the value not being there.
866
+ * Read more here: https://pris.ly/d/null-undefined
867
+ * @param {RoleAssignmentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
868
+ * @example
869
+ * // Ordered by age ascending
870
+ * // Where email contains prisma.io
871
+ * // Limited to the 10 users
872
+ * const aggregations = await prisma.user.aggregate({
873
+ * _avg: {
874
+ * age: true,
875
+ * },
876
+ * where: {
877
+ * email: {
878
+ * contains: "prisma.io",
879
+ * },
880
+ * },
881
+ * orderBy: {
882
+ * age: "asc",
883
+ * },
884
+ * take: 10,
885
+ * })
886
+ **/
887
+ aggregate<T extends RoleAssignmentAggregateArgs>(args: Prisma.Subset<T, RoleAssignmentAggregateArgs>): Prisma.PrismaPromise<GetRoleAssignmentAggregateType<T>>
888
+
889
+ /**
890
+ * Group by RoleAssignment.
891
+ * Note, that providing `undefined` is treated as the value not being there.
892
+ * Read more here: https://pris.ly/d/null-undefined
893
+ * @param {RoleAssignmentGroupByArgs} args - Group by arguments.
894
+ * @example
895
+ * // Group by city, order by createdAt, get count
896
+ * const result = await prisma.user.groupBy({
897
+ * by: ['city', 'createdAt'],
898
+ * orderBy: {
899
+ * createdAt: true
900
+ * },
901
+ * _count: {
902
+ * _all: true
903
+ * },
904
+ * })
905
+ *
906
+ **/
907
+ groupBy<
908
+ T extends RoleAssignmentGroupByArgs,
909
+ HasSelectOrTake extends Prisma.Or<
910
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
911
+ Prisma.Extends<'take', Prisma.Keys<T>>
912
+ >,
913
+ OrderByArg extends Prisma.True extends HasSelectOrTake
914
+ ? { orderBy: RoleAssignmentGroupByArgs['orderBy'] }
915
+ : { orderBy?: RoleAssignmentGroupByArgs['orderBy'] },
916
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
917
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
918
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
919
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
920
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
921
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
922
+ InputErrors extends ByEmpty extends Prisma.True
923
+ ? `Error: "by" must not be empty.`
924
+ : HavingValid extends Prisma.False
925
+ ? {
926
+ [P in HavingFields]: P extends ByFields
927
+ ? never
928
+ : P extends string
929
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
930
+ : [
931
+ Error,
932
+ 'Field ',
933
+ P,
934
+ ` in "having" needs to be provided in "by"`,
935
+ ]
936
+ }[HavingFields]
937
+ : 'take' extends Prisma.Keys<T>
938
+ ? 'orderBy' extends Prisma.Keys<T>
939
+ ? ByValid extends Prisma.True
940
+ ? {}
941
+ : {
942
+ [P in OrderFields]: P extends ByFields
943
+ ? never
944
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
945
+ }[OrderFields]
946
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
947
+ : 'skip' extends Prisma.Keys<T>
948
+ ? 'orderBy' extends Prisma.Keys<T>
949
+ ? ByValid extends Prisma.True
950
+ ? {}
951
+ : {
952
+ [P in OrderFields]: P extends ByFields
953
+ ? never
954
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
955
+ }[OrderFields]
956
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
957
+ : ByValid extends Prisma.True
958
+ ? {}
959
+ : {
960
+ [P in OrderFields]: P extends ByFields
961
+ ? never
962
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
963
+ }[OrderFields]
964
+ >(args: Prisma.SubsetIntersection<T, RoleAssignmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRoleAssignmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
965
+ /**
966
+ * Fields of the RoleAssignment model
967
+ */
968
+ readonly fields: RoleAssignmentFieldRefs;
969
+ }
970
+
971
+ /**
972
+ * The delegate class that acts as a "Promise-like" for RoleAssignment.
973
+ * Why is this prefixed with `Prisma__`?
974
+ * Because we want to prevent naming conflicts as mentioned in
975
+ * https://github.com/prisma/prisma-client-js/issues/707
976
+ */
977
+ export interface Prisma__RoleAssignmentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
978
+ readonly [Symbol.toStringTag]: "PrismaPromise"
979
+ role<T extends Prisma.CustomRoleDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CustomRoleDefaultArgs<ExtArgs>>): Prisma.Prisma__CustomRoleClient<runtime.Types.Result.GetResult<Prisma.$CustomRolePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
980
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
981
+ /**
982
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
983
+ * @param onfulfilled The callback to execute when the Promise is resolved.
984
+ * @param onrejected The callback to execute when the Promise is rejected.
985
+ * @returns A Promise for the completion of which ever callback is executed.
986
+ */
987
+ 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>
988
+ /**
989
+ * Attaches a callback for only the rejection of the Promise.
990
+ * @param onrejected The callback to execute when the Promise is rejected.
991
+ * @returns A Promise for the completion of the callback.
992
+ */
993
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
994
+ /**
995
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
996
+ * resolved value cannot be modified from the callback.
997
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
998
+ * @returns A Promise for the completion of the callback.
999
+ */
1000
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1001
+ }
1002
+
1003
+
1004
+
1005
+
1006
+ /**
1007
+ * Fields of the RoleAssignment model
1008
+ */
1009
+ export interface RoleAssignmentFieldRefs {
1010
+ readonly id: Prisma.FieldRef<"RoleAssignment", 'String'>
1011
+ readonly roleId: Prisma.FieldRef<"RoleAssignment", 'String'>
1012
+ readonly userId: Prisma.FieldRef<"RoleAssignment", 'String'>
1013
+ readonly createdAt: Prisma.FieldRef<"RoleAssignment", 'DateTime'>
1014
+ }
1015
+
1016
+
1017
+ // Custom InputTypes
1018
+ /**
1019
+ * RoleAssignment findUnique
1020
+ */
1021
+ export type RoleAssignmentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1022
+ /**
1023
+ * Select specific fields to fetch from the RoleAssignment
1024
+ */
1025
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
1026
+ /**
1027
+ * Omit specific fields from the RoleAssignment
1028
+ */
1029
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
1030
+ /**
1031
+ * Choose, which related nodes to fetch as well
1032
+ */
1033
+ include?: Prisma.RoleAssignmentInclude<ExtArgs> | null
1034
+ /**
1035
+ * Filter, which RoleAssignment to fetch.
1036
+ */
1037
+ where: Prisma.RoleAssignmentWhereUniqueInput
1038
+ }
1039
+
1040
+ /**
1041
+ * RoleAssignment findUniqueOrThrow
1042
+ */
1043
+ export type RoleAssignmentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1044
+ /**
1045
+ * Select specific fields to fetch from the RoleAssignment
1046
+ */
1047
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
1048
+ /**
1049
+ * Omit specific fields from the RoleAssignment
1050
+ */
1051
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
1052
+ /**
1053
+ * Choose, which related nodes to fetch as well
1054
+ */
1055
+ include?: Prisma.RoleAssignmentInclude<ExtArgs> | null
1056
+ /**
1057
+ * Filter, which RoleAssignment to fetch.
1058
+ */
1059
+ where: Prisma.RoleAssignmentWhereUniqueInput
1060
+ }
1061
+
1062
+ /**
1063
+ * RoleAssignment findFirst
1064
+ */
1065
+ export type RoleAssignmentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1066
+ /**
1067
+ * Select specific fields to fetch from the RoleAssignment
1068
+ */
1069
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
1070
+ /**
1071
+ * Omit specific fields from the RoleAssignment
1072
+ */
1073
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
1074
+ /**
1075
+ * Choose, which related nodes to fetch as well
1076
+ */
1077
+ include?: Prisma.RoleAssignmentInclude<ExtArgs> | null
1078
+ /**
1079
+ * Filter, which RoleAssignment to fetch.
1080
+ */
1081
+ where?: Prisma.RoleAssignmentWhereInput
1082
+ /**
1083
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1084
+ *
1085
+ * Determine the order of RoleAssignments to fetch.
1086
+ */
1087
+ orderBy?: Prisma.RoleAssignmentOrderByWithRelationInput | Prisma.RoleAssignmentOrderByWithRelationInput[]
1088
+ /**
1089
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1090
+ *
1091
+ * Sets the position for searching for RoleAssignments.
1092
+ */
1093
+ cursor?: Prisma.RoleAssignmentWhereUniqueInput
1094
+ /**
1095
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1096
+ *
1097
+ * Take `±n` RoleAssignments from the position of the cursor.
1098
+ */
1099
+ take?: number
1100
+ /**
1101
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1102
+ *
1103
+ * Skip the first `n` RoleAssignments.
1104
+ */
1105
+ skip?: number
1106
+ /**
1107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1108
+ *
1109
+ * Filter by unique combinations of RoleAssignments.
1110
+ */
1111
+ distinct?: Prisma.RoleAssignmentScalarFieldEnum | Prisma.RoleAssignmentScalarFieldEnum[]
1112
+ }
1113
+
1114
+ /**
1115
+ * RoleAssignment findFirstOrThrow
1116
+ */
1117
+ export type RoleAssignmentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1118
+ /**
1119
+ * Select specific fields to fetch from the RoleAssignment
1120
+ */
1121
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
1122
+ /**
1123
+ * Omit specific fields from the RoleAssignment
1124
+ */
1125
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
1126
+ /**
1127
+ * Choose, which related nodes to fetch as well
1128
+ */
1129
+ include?: Prisma.RoleAssignmentInclude<ExtArgs> | null
1130
+ /**
1131
+ * Filter, which RoleAssignment to fetch.
1132
+ */
1133
+ where?: Prisma.RoleAssignmentWhereInput
1134
+ /**
1135
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1136
+ *
1137
+ * Determine the order of RoleAssignments to fetch.
1138
+ */
1139
+ orderBy?: Prisma.RoleAssignmentOrderByWithRelationInput | Prisma.RoleAssignmentOrderByWithRelationInput[]
1140
+ /**
1141
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1142
+ *
1143
+ * Sets the position for searching for RoleAssignments.
1144
+ */
1145
+ cursor?: Prisma.RoleAssignmentWhereUniqueInput
1146
+ /**
1147
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1148
+ *
1149
+ * Take `±n` RoleAssignments from the position of the cursor.
1150
+ */
1151
+ take?: number
1152
+ /**
1153
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1154
+ *
1155
+ * Skip the first `n` RoleAssignments.
1156
+ */
1157
+ skip?: number
1158
+ /**
1159
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1160
+ *
1161
+ * Filter by unique combinations of RoleAssignments.
1162
+ */
1163
+ distinct?: Prisma.RoleAssignmentScalarFieldEnum | Prisma.RoleAssignmentScalarFieldEnum[]
1164
+ }
1165
+
1166
+ /**
1167
+ * RoleAssignment findMany
1168
+ */
1169
+ export type RoleAssignmentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1170
+ /**
1171
+ * Select specific fields to fetch from the RoleAssignment
1172
+ */
1173
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
1174
+ /**
1175
+ * Omit specific fields from the RoleAssignment
1176
+ */
1177
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
1178
+ /**
1179
+ * Choose, which related nodes to fetch as well
1180
+ */
1181
+ include?: Prisma.RoleAssignmentInclude<ExtArgs> | null
1182
+ /**
1183
+ * Filter, which RoleAssignments to fetch.
1184
+ */
1185
+ where?: Prisma.RoleAssignmentWhereInput
1186
+ /**
1187
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1188
+ *
1189
+ * Determine the order of RoleAssignments to fetch.
1190
+ */
1191
+ orderBy?: Prisma.RoleAssignmentOrderByWithRelationInput | Prisma.RoleAssignmentOrderByWithRelationInput[]
1192
+ /**
1193
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1194
+ *
1195
+ * Sets the position for listing RoleAssignments.
1196
+ */
1197
+ cursor?: Prisma.RoleAssignmentWhereUniqueInput
1198
+ /**
1199
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1200
+ *
1201
+ * Take `±n` RoleAssignments from the position of the cursor.
1202
+ */
1203
+ take?: number
1204
+ /**
1205
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1206
+ *
1207
+ * Skip the first `n` RoleAssignments.
1208
+ */
1209
+ skip?: number
1210
+ /**
1211
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1212
+ *
1213
+ * Filter by unique combinations of RoleAssignments.
1214
+ */
1215
+ distinct?: Prisma.RoleAssignmentScalarFieldEnum | Prisma.RoleAssignmentScalarFieldEnum[]
1216
+ }
1217
+
1218
+ /**
1219
+ * RoleAssignment create
1220
+ */
1221
+ export type RoleAssignmentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1222
+ /**
1223
+ * Select specific fields to fetch from the RoleAssignment
1224
+ */
1225
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
1226
+ /**
1227
+ * Omit specific fields from the RoleAssignment
1228
+ */
1229
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
1230
+ /**
1231
+ * Choose, which related nodes to fetch as well
1232
+ */
1233
+ include?: Prisma.RoleAssignmentInclude<ExtArgs> | null
1234
+ /**
1235
+ * The data needed to create a RoleAssignment.
1236
+ */
1237
+ data: Prisma.XOR<Prisma.RoleAssignmentCreateInput, Prisma.RoleAssignmentUncheckedCreateInput>
1238
+ }
1239
+
1240
+ /**
1241
+ * RoleAssignment createMany
1242
+ */
1243
+ export type RoleAssignmentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1244
+ /**
1245
+ * The data used to create many RoleAssignments.
1246
+ */
1247
+ data: Prisma.RoleAssignmentCreateManyInput | Prisma.RoleAssignmentCreateManyInput[]
1248
+ skipDuplicates?: boolean
1249
+ }
1250
+
1251
+ /**
1252
+ * RoleAssignment createManyAndReturn
1253
+ */
1254
+ export type RoleAssignmentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1255
+ /**
1256
+ * Select specific fields to fetch from the RoleAssignment
1257
+ */
1258
+ select?: Prisma.RoleAssignmentSelectCreateManyAndReturn<ExtArgs> | null
1259
+ /**
1260
+ * Omit specific fields from the RoleAssignment
1261
+ */
1262
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
1263
+ /**
1264
+ * The data used to create many RoleAssignments.
1265
+ */
1266
+ data: Prisma.RoleAssignmentCreateManyInput | Prisma.RoleAssignmentCreateManyInput[]
1267
+ skipDuplicates?: boolean
1268
+ /**
1269
+ * Choose, which related nodes to fetch as well
1270
+ */
1271
+ include?: Prisma.RoleAssignmentIncludeCreateManyAndReturn<ExtArgs> | null
1272
+ }
1273
+
1274
+ /**
1275
+ * RoleAssignment update
1276
+ */
1277
+ export type RoleAssignmentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1278
+ /**
1279
+ * Select specific fields to fetch from the RoleAssignment
1280
+ */
1281
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
1282
+ /**
1283
+ * Omit specific fields from the RoleAssignment
1284
+ */
1285
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
1286
+ /**
1287
+ * Choose, which related nodes to fetch as well
1288
+ */
1289
+ include?: Prisma.RoleAssignmentInclude<ExtArgs> | null
1290
+ /**
1291
+ * The data needed to update a RoleAssignment.
1292
+ */
1293
+ data: Prisma.XOR<Prisma.RoleAssignmentUpdateInput, Prisma.RoleAssignmentUncheckedUpdateInput>
1294
+ /**
1295
+ * Choose, which RoleAssignment to update.
1296
+ */
1297
+ where: Prisma.RoleAssignmentWhereUniqueInput
1298
+ }
1299
+
1300
+ /**
1301
+ * RoleAssignment updateMany
1302
+ */
1303
+ export type RoleAssignmentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1304
+ /**
1305
+ * The data used to update RoleAssignments.
1306
+ */
1307
+ data: Prisma.XOR<Prisma.RoleAssignmentUpdateManyMutationInput, Prisma.RoleAssignmentUncheckedUpdateManyInput>
1308
+ /**
1309
+ * Filter which RoleAssignments to update
1310
+ */
1311
+ where?: Prisma.RoleAssignmentWhereInput
1312
+ /**
1313
+ * Limit how many RoleAssignments to update.
1314
+ */
1315
+ limit?: number
1316
+ }
1317
+
1318
+ /**
1319
+ * RoleAssignment updateManyAndReturn
1320
+ */
1321
+ export type RoleAssignmentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1322
+ /**
1323
+ * Select specific fields to fetch from the RoleAssignment
1324
+ */
1325
+ select?: Prisma.RoleAssignmentSelectUpdateManyAndReturn<ExtArgs> | null
1326
+ /**
1327
+ * Omit specific fields from the RoleAssignment
1328
+ */
1329
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
1330
+ /**
1331
+ * The data used to update RoleAssignments.
1332
+ */
1333
+ data: Prisma.XOR<Prisma.RoleAssignmentUpdateManyMutationInput, Prisma.RoleAssignmentUncheckedUpdateManyInput>
1334
+ /**
1335
+ * Filter which RoleAssignments to update
1336
+ */
1337
+ where?: Prisma.RoleAssignmentWhereInput
1338
+ /**
1339
+ * Limit how many RoleAssignments to update.
1340
+ */
1341
+ limit?: number
1342
+ /**
1343
+ * Choose, which related nodes to fetch as well
1344
+ */
1345
+ include?: Prisma.RoleAssignmentIncludeUpdateManyAndReturn<ExtArgs> | null
1346
+ }
1347
+
1348
+ /**
1349
+ * RoleAssignment upsert
1350
+ */
1351
+ export type RoleAssignmentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1352
+ /**
1353
+ * Select specific fields to fetch from the RoleAssignment
1354
+ */
1355
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
1356
+ /**
1357
+ * Omit specific fields from the RoleAssignment
1358
+ */
1359
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
1360
+ /**
1361
+ * Choose, which related nodes to fetch as well
1362
+ */
1363
+ include?: Prisma.RoleAssignmentInclude<ExtArgs> | null
1364
+ /**
1365
+ * The filter to search for the RoleAssignment to update in case it exists.
1366
+ */
1367
+ where: Prisma.RoleAssignmentWhereUniqueInput
1368
+ /**
1369
+ * In case the RoleAssignment found by the `where` argument doesn't exist, create a new RoleAssignment with this data.
1370
+ */
1371
+ create: Prisma.XOR<Prisma.RoleAssignmentCreateInput, Prisma.RoleAssignmentUncheckedCreateInput>
1372
+ /**
1373
+ * In case the RoleAssignment was found with the provided `where` argument, update it with this data.
1374
+ */
1375
+ update: Prisma.XOR<Prisma.RoleAssignmentUpdateInput, Prisma.RoleAssignmentUncheckedUpdateInput>
1376
+ }
1377
+
1378
+ /**
1379
+ * RoleAssignment delete
1380
+ */
1381
+ export type RoleAssignmentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1382
+ /**
1383
+ * Select specific fields to fetch from the RoleAssignment
1384
+ */
1385
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
1386
+ /**
1387
+ * Omit specific fields from the RoleAssignment
1388
+ */
1389
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
1390
+ /**
1391
+ * Choose, which related nodes to fetch as well
1392
+ */
1393
+ include?: Prisma.RoleAssignmentInclude<ExtArgs> | null
1394
+ /**
1395
+ * Filter which RoleAssignment to delete.
1396
+ */
1397
+ where: Prisma.RoleAssignmentWhereUniqueInput
1398
+ }
1399
+
1400
+ /**
1401
+ * RoleAssignment deleteMany
1402
+ */
1403
+ export type RoleAssignmentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1404
+ /**
1405
+ * Filter which RoleAssignments to delete
1406
+ */
1407
+ where?: Prisma.RoleAssignmentWhereInput
1408
+ /**
1409
+ * Limit how many RoleAssignments to delete.
1410
+ */
1411
+ limit?: number
1412
+ }
1413
+
1414
+ /**
1415
+ * RoleAssignment without action
1416
+ */
1417
+ export type RoleAssignmentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1418
+ /**
1419
+ * Select specific fields to fetch from the RoleAssignment
1420
+ */
1421
+ select?: Prisma.RoleAssignmentSelect<ExtArgs> | null
1422
+ /**
1423
+ * Omit specific fields from the RoleAssignment
1424
+ */
1425
+ omit?: Prisma.RoleAssignmentOmit<ExtArgs> | null
1426
+ /**
1427
+ * Choose, which related nodes to fetch as well
1428
+ */
1429
+ include?: Prisma.RoleAssignmentInclude<ExtArgs> | null
1430
+ }