@illustrisinteractive/sentinel-nest 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/.prettierrc +4 -0
  2. package/README.md +98 -0
  3. package/config/config.json +24 -0
  4. package/dist/bin/commit.d.ts +1 -0
  5. package/dist/bin/commit.js +136 -0
  6. package/dist/bin/commit.js.map +1 -0
  7. package/dist/bin/init.d.ts +2 -0
  8. package/dist/bin/init.js +179 -0
  9. package/dist/bin/init.js.map +1 -0
  10. package/dist/bin/migrations/1-create-permission.d.ts +6 -0
  11. package/dist/bin/migrations/1-create-permission.js +30 -0
  12. package/dist/bin/migrations/1-create-permission.js.map +1 -0
  13. package/dist/bin/migrations/2-create-role.d.ts +2 -0
  14. package/dist/bin/migrations/2-create-role.js +29 -0
  15. package/dist/bin/migrations/2-create-role.js.map +1 -0
  16. package/dist/bin/migrations/3-create-rolepermissions.d.ts +2 -0
  17. package/dist/bin/migrations/3-create-rolepermissions.js +46 -0
  18. package/dist/bin/migrations/3-create-rolepermissions.js.map +1 -0
  19. package/dist/bin/migrations/4-create-model-roles.d.ts +2 -0
  20. package/dist/bin/migrations/4-create-model-roles.js +46 -0
  21. package/dist/bin/migrations/4-create-model-roles.js.map +1 -0
  22. package/dist/bin/resource.d.ts +1 -0
  23. package/dist/bin/resource.js +91 -0
  24. package/dist/bin/resource.js.map +1 -0
  25. package/dist/bin/sentinel.d.ts +2 -0
  26. package/dist/bin/sentinel.js +52 -0
  27. package/dist/bin/sentinel.js.map +1 -0
  28. package/dist/models/SecuredResource.d.ts +8 -0
  29. package/dist/models/SecuredResource.js +9 -0
  30. package/dist/models/SecuredResource.js.map +1 -0
  31. package/dist/models/SentinelConfig.d.ts +7 -0
  32. package/dist/models/SentinelConfig.js +3 -0
  33. package/dist/models/SentinelConfig.js.map +1 -0
  34. package/dist/models/sequelize/PermissionKey.d.ts +7 -0
  35. package/dist/models/sequelize/PermissionKey.js +39 -0
  36. package/dist/models/sequelize/PermissionKey.js.map +1 -0
  37. package/dist/prisma.config.d.ts +3 -0
  38. package/dist/prisma.config.js +14 -0
  39. package/dist/prisma.config.js.map +1 -0
  40. package/dist/src/can.decorator.d.ts +2 -0
  41. package/dist/src/can.decorator.js +6 -0
  42. package/dist/src/can.decorator.js.map +1 -0
  43. package/dist/src/generated/prisma/browser.d.ts +10 -0
  44. package/dist/src/generated/prisma/browser.js +44 -0
  45. package/dist/src/generated/prisma/browser.js.map +1 -0
  46. package/dist/src/generated/prisma/client.d.ts +14 -0
  47. package/dist/src/generated/prisma/client.js +46 -0
  48. package/dist/src/generated/prisma/client.js.map +1 -0
  49. package/dist/src/generated/prisma/commonInputTypes.d.ts +263 -0
  50. package/dist/src/generated/prisma/commonInputTypes.js +3 -0
  51. package/dist/src/generated/prisma/commonInputTypes.js.map +1 -0
  52. package/dist/src/generated/prisma/enums.d.ts +1 -0
  53. package/dist/src/generated/prisma/enums.js +3 -0
  54. package/dist/src/generated/prisma/enums.js.map +1 -0
  55. package/dist/src/generated/prisma/internal/class.d.ts +50 -0
  56. package/dist/src/generated/prisma/internal/class.js +75 -0
  57. package/dist/src/generated/prisma/internal/class.js.map +1 -0
  58. package/dist/src/generated/prisma/internal/prismaNamespace.d.ts +778 -0
  59. package/dist/src/generated/prisma/internal/prismaNamespace.js +128 -0
  60. package/dist/src/generated/prisma/internal/prismaNamespace.js.map +1 -0
  61. package/dist/src/generated/prisma/internal/prismaNamespaceBrowser.d.ts +88 -0
  62. package/dist/src/generated/prisma/internal/prismaNamespaceBrowser.js +112 -0
  63. package/dist/src/generated/prisma/internal/prismaNamespaceBrowser.js.map +1 -0
  64. package/dist/src/generated/prisma/models/ModelHasRoles.d.ts +691 -0
  65. package/dist/src/generated/prisma/models/ModelHasRoles.js +3 -0
  66. package/dist/src/generated/prisma/models/ModelHasRoles.js.map +1 -0
  67. package/dist/src/generated/prisma/models/PermissionKeys.d.ts +547 -0
  68. package/dist/src/generated/prisma/models/PermissionKeys.js +3 -0
  69. package/dist/src/generated/prisma/models/PermissionKeys.js.map +1 -0
  70. package/dist/src/generated/prisma/models/RoleHasPermissions.d.ts +675 -0
  71. package/dist/src/generated/prisma/models/RoleHasPermissions.js +3 -0
  72. package/dist/src/generated/prisma/models/RoleHasPermissions.js.map +1 -0
  73. package/dist/src/generated/prisma/models/Roles.d.ts +582 -0
  74. package/dist/src/generated/prisma/models/Roles.js +3 -0
  75. package/dist/src/generated/prisma/models/Roles.js.map +1 -0
  76. package/dist/src/generated/prisma/models/SequelizeMeta.d.ts +289 -0
  77. package/dist/src/generated/prisma/models/SequelizeMeta.js +3 -0
  78. package/dist/src/generated/prisma/models/SequelizeMeta.js.map +1 -0
  79. package/dist/src/generated/prisma/models/Users.d.ts +572 -0
  80. package/dist/src/generated/prisma/models/Users.js +3 -0
  81. package/dist/src/generated/prisma/models/Users.js.map +1 -0
  82. package/dist/src/generated/prisma/models.d.ts +7 -0
  83. package/dist/src/generated/prisma/models.js +3 -0
  84. package/dist/src/generated/prisma/models.js.map +1 -0
  85. package/dist/src/main.d.ts +6 -0
  86. package/dist/src/main.js +23 -0
  87. package/dist/src/main.js.map +1 -0
  88. package/dist/src/models/SecuredResource.d.ts +8 -0
  89. package/dist/src/models/SecuredResource.js +9 -0
  90. package/dist/src/models/SecuredResource.js.map +1 -0
  91. package/dist/src/models/SentinelConfig.d.ts +7 -0
  92. package/dist/src/models/SentinelConfig.js +3 -0
  93. package/dist/src/models/SentinelConfig.js.map +1 -0
  94. package/dist/src/models/SentinelModel.d.ts +35 -0
  95. package/dist/src/models/SentinelModel.js +3 -0
  96. package/dist/src/models/SentinelModel.js.map +1 -0
  97. package/dist/src/models/SentinelModuleOptions.d.ts +7 -0
  98. package/dist/src/models/SentinelModuleOptions.js +3 -0
  99. package/dist/src/models/SentinelModuleOptions.js.map +1 -0
  100. package/dist/src/prisma.service.d.ts +4 -0
  101. package/dist/src/prisma.service.js +29 -0
  102. package/dist/src/prisma.service.js.map +1 -0
  103. package/dist/src/sentinel.guard.d.ts +9 -0
  104. package/dist/src/sentinel.guard.js +73 -0
  105. package/dist/src/sentinel.guard.js.map +1 -0
  106. package/dist/src/sentinel.module-definition.d.ts +2 -0
  107. package/dist/src/sentinel.module-definition.js +7 -0
  108. package/dist/src/sentinel.module-definition.js.map +1 -0
  109. package/dist/src/sentinel.module.d.ts +3 -0
  110. package/dist/src/sentinel.module.js +40 -0
  111. package/dist/src/sentinel.module.js.map +1 -0
  112. package/dist/src/sentinel.service.d.ts +39 -0
  113. package/dist/src/sentinel.service.js +146 -0
  114. package/dist/src/sentinel.service.js.map +1 -0
  115. package/dist/tsconfig.build.tsbuildinfo +1 -0
  116. package/dist/tsconfig.tsbuildinfo +1 -0
  117. package/eslint.config.mjs +34 -0
  118. package/models/index.js +43 -0
  119. package/models/permissionkey.js +31 -0
  120. package/models/role.js +23 -0
  121. package/models/rolehaspermission.js +43 -0
  122. package/nest-cli.json +8 -0
  123. package/package.json +103 -0
  124. package/prisma/migrations/20260227023704_init/migration.sql +74 -0
  125. package/prisma/migrations/migration_lock.toml +3 -0
  126. package/prisma/schema.prisma +62 -0
  127. package/prisma.config.ts +14 -0
  128. package/src/bin/commit.ts +186 -0
  129. package/src/bin/init.ts +251 -0
  130. package/src/bin/migrations/1-create-permission.js +32 -0
  131. package/src/bin/migrations/2-create-role.js +29 -0
  132. package/src/bin/migrations/3-create-rolepermissions.js +46 -0
  133. package/src/bin/migrations/4-create-model-roles.js +46 -0
  134. package/src/bin/resource.ts +107 -0
  135. package/src/bin/sentinel.ts +115 -0
  136. package/src/bin/tsconfig.json +30 -0
  137. package/src/can.decorator.ts +4 -0
  138. package/src/generated/prisma/browser.ts +49 -0
  139. package/src/generated/prisma/client.ts +69 -0
  140. package/src/generated/prisma/commonInputTypes.ts +302 -0
  141. package/src/generated/prisma/enums.ts +15 -0
  142. package/src/generated/prisma/internal/class.ts +250 -0
  143. package/src/generated/prisma/internal/prismaNamespace.ts +1213 -0
  144. package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +163 -0
  145. package/src/generated/prisma/models/ModelHasRoles.ts +1521 -0
  146. package/src/generated/prisma/models/PermissionKeys.ts +1362 -0
  147. package/src/generated/prisma/models/RoleHasPermissions.ts +1503 -0
  148. package/src/generated/prisma/models/Roles.ts +1437 -0
  149. package/src/generated/prisma/models/SequelizeMeta.ts +1032 -0
  150. package/src/generated/prisma/models/Users.ts +1402 -0
  151. package/src/generated/prisma/models.ts +17 -0
  152. package/src/main.ts +24 -0
  153. package/src/models/SecuredResource.d.ts +8 -0
  154. package/src/models/SecuredResource.ts +9 -0
  155. package/src/models/SentinelConfig.d.ts +7 -0
  156. package/src/models/SentinelConfig.ts +8 -0
  157. package/src/models/SentinelModel.ts +39 -0
  158. package/src/models/SentinelModuleOptions.ts +11 -0
  159. package/src/models/sequelize/PermissionKey.ts +22 -0
  160. package/src/models/tsconfig.json +25 -0
  161. package/src/prisma.service.ts +13 -0
  162. package/src/sentinel.guard.ts +63 -0
  163. package/src/sentinel.module-definition.ts +5 -0
  164. package/src/sentinel.module.ts +27 -0
  165. package/src/sentinel.service.ts +188 -0
  166. package/tsconfig.build.json +11 -0
  167. package/tsconfig.json +25 -0
@@ -0,0 +1,1437 @@
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 `Roles` 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.js"
13
+ import type * as Prisma from "../internal/prismaNamespace.js"
14
+
15
+ /**
16
+ * Model Roles
17
+ *
18
+ */
19
+ export type RolesModel = runtime.Types.Result.DefaultSelection<Prisma.$RolesPayload>
20
+
21
+ export type AggregateRoles = {
22
+ _count: RolesCountAggregateOutputType | null
23
+ _avg: RolesAvgAggregateOutputType | null
24
+ _sum: RolesSumAggregateOutputType | null
25
+ _min: RolesMinAggregateOutputType | null
26
+ _max: RolesMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type RolesAvgAggregateOutputType = {
30
+ id: number | null
31
+ }
32
+
33
+ export type RolesSumAggregateOutputType = {
34
+ id: number | null
35
+ }
36
+
37
+ export type RolesMinAggregateOutputType = {
38
+ id: number | null
39
+ name: string | null
40
+ createdAt: Date | null
41
+ updatedAt: Date | null
42
+ }
43
+
44
+ export type RolesMaxAggregateOutputType = {
45
+ id: number | null
46
+ name: string | null
47
+ createdAt: Date | null
48
+ updatedAt: Date | null
49
+ }
50
+
51
+ export type RolesCountAggregateOutputType = {
52
+ id: number
53
+ name: number
54
+ createdAt: number
55
+ updatedAt: number
56
+ _all: number
57
+ }
58
+
59
+
60
+ export type RolesAvgAggregateInputType = {
61
+ id?: true
62
+ }
63
+
64
+ export type RolesSumAggregateInputType = {
65
+ id?: true
66
+ }
67
+
68
+ export type RolesMinAggregateInputType = {
69
+ id?: true
70
+ name?: true
71
+ createdAt?: true
72
+ updatedAt?: true
73
+ }
74
+
75
+ export type RolesMaxAggregateInputType = {
76
+ id?: true
77
+ name?: true
78
+ createdAt?: true
79
+ updatedAt?: true
80
+ }
81
+
82
+ export type RolesCountAggregateInputType = {
83
+ id?: true
84
+ name?: true
85
+ createdAt?: true
86
+ updatedAt?: true
87
+ _all?: true
88
+ }
89
+
90
+ export type RolesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
91
+ /**
92
+ * Filter which Roles to aggregate.
93
+ */
94
+ where?: Prisma.RolesWhereInput
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
97
+ *
98
+ * Determine the order of Roles to fetch.
99
+ */
100
+ orderBy?: Prisma.RolesOrderByWithRelationInput | Prisma.RolesOrderByWithRelationInput[]
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
103
+ *
104
+ * Sets the start position
105
+ */
106
+ cursor?: Prisma.RolesWhereUniqueInput
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
109
+ *
110
+ * Take `±n` Roles from the position of the cursor.
111
+ */
112
+ take?: number
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
115
+ *
116
+ * Skip the first `n` Roles.
117
+ */
118
+ skip?: number
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
121
+ *
122
+ * Count returned Roles
123
+ **/
124
+ _count?: true | RolesCountAggregateInputType
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
127
+ *
128
+ * Select which fields to average
129
+ **/
130
+ _avg?: RolesAvgAggregateInputType
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
133
+ *
134
+ * Select which fields to sum
135
+ **/
136
+ _sum?: RolesSumAggregateInputType
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
139
+ *
140
+ * Select which fields to find the minimum value
141
+ **/
142
+ _min?: RolesMinAggregateInputType
143
+ /**
144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
145
+ *
146
+ * Select which fields to find the maximum value
147
+ **/
148
+ _max?: RolesMaxAggregateInputType
149
+ }
150
+
151
+ export type GetRolesAggregateType<T extends RolesAggregateArgs> = {
152
+ [P in keyof T & keyof AggregateRoles]: P extends '_count' | 'count'
153
+ ? T[P] extends true
154
+ ? number
155
+ : Prisma.GetScalarType<T[P], AggregateRoles[P]>
156
+ : Prisma.GetScalarType<T[P], AggregateRoles[P]>
157
+ }
158
+
159
+
160
+
161
+
162
+ export type RolesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
163
+ where?: Prisma.RolesWhereInput
164
+ orderBy?: Prisma.RolesOrderByWithAggregationInput | Prisma.RolesOrderByWithAggregationInput[]
165
+ by: Prisma.RolesScalarFieldEnum[] | Prisma.RolesScalarFieldEnum
166
+ having?: Prisma.RolesScalarWhereWithAggregatesInput
167
+ take?: number
168
+ skip?: number
169
+ _count?: RolesCountAggregateInputType | true
170
+ _avg?: RolesAvgAggregateInputType
171
+ _sum?: RolesSumAggregateInputType
172
+ _min?: RolesMinAggregateInputType
173
+ _max?: RolesMaxAggregateInputType
174
+ }
175
+
176
+ export type RolesGroupByOutputType = {
177
+ id: number
178
+ name: string | null
179
+ createdAt: Date
180
+ updatedAt: Date
181
+ _count: RolesCountAggregateOutputType | null
182
+ _avg: RolesAvgAggregateOutputType | null
183
+ _sum: RolesSumAggregateOutputType | null
184
+ _min: RolesMinAggregateOutputType | null
185
+ _max: RolesMaxAggregateOutputType | null
186
+ }
187
+
188
+ type GetRolesGroupByPayload<T extends RolesGroupByArgs> = Prisma.PrismaPromise<
189
+ Array<
190
+ Prisma.PickEnumerable<RolesGroupByOutputType, T['by']> &
191
+ {
192
+ [P in ((keyof T) & (keyof RolesGroupByOutputType))]: P extends '_count'
193
+ ? T[P] extends boolean
194
+ ? number
195
+ : Prisma.GetScalarType<T[P], RolesGroupByOutputType[P]>
196
+ : Prisma.GetScalarType<T[P], RolesGroupByOutputType[P]>
197
+ }
198
+ >
199
+ >
200
+
201
+
202
+
203
+ export type RolesWhereInput = {
204
+ AND?: Prisma.RolesWhereInput | Prisma.RolesWhereInput[]
205
+ OR?: Prisma.RolesWhereInput[]
206
+ NOT?: Prisma.RolesWhereInput | Prisma.RolesWhereInput[]
207
+ id?: Prisma.IntFilter<"Roles"> | number
208
+ name?: Prisma.StringNullableFilter<"Roles"> | string | null
209
+ createdAt?: Prisma.DateTimeFilter<"Roles"> | Date | string
210
+ updatedAt?: Prisma.DateTimeFilter<"Roles"> | Date | string
211
+ ModelHasRoles?: Prisma.ModelHasRolesListRelationFilter
212
+ RoleHasPermissions?: Prisma.RoleHasPermissionsListRelationFilter
213
+ }
214
+
215
+ export type RolesOrderByWithRelationInput = {
216
+ id?: Prisma.SortOrder
217
+ name?: Prisma.SortOrderInput | Prisma.SortOrder
218
+ createdAt?: Prisma.SortOrder
219
+ updatedAt?: Prisma.SortOrder
220
+ ModelHasRoles?: Prisma.ModelHasRolesOrderByRelationAggregateInput
221
+ RoleHasPermissions?: Prisma.RoleHasPermissionsOrderByRelationAggregateInput
222
+ }
223
+
224
+ export type RolesWhereUniqueInput = Prisma.AtLeast<{
225
+ id?: number
226
+ AND?: Prisma.RolesWhereInput | Prisma.RolesWhereInput[]
227
+ OR?: Prisma.RolesWhereInput[]
228
+ NOT?: Prisma.RolesWhereInput | Prisma.RolesWhereInput[]
229
+ name?: Prisma.StringNullableFilter<"Roles"> | string | null
230
+ createdAt?: Prisma.DateTimeFilter<"Roles"> | Date | string
231
+ updatedAt?: Prisma.DateTimeFilter<"Roles"> | Date | string
232
+ ModelHasRoles?: Prisma.ModelHasRolesListRelationFilter
233
+ RoleHasPermissions?: Prisma.RoleHasPermissionsListRelationFilter
234
+ }, "id">
235
+
236
+ export type RolesOrderByWithAggregationInput = {
237
+ id?: Prisma.SortOrder
238
+ name?: Prisma.SortOrderInput | Prisma.SortOrder
239
+ createdAt?: Prisma.SortOrder
240
+ updatedAt?: Prisma.SortOrder
241
+ _count?: Prisma.RolesCountOrderByAggregateInput
242
+ _avg?: Prisma.RolesAvgOrderByAggregateInput
243
+ _max?: Prisma.RolesMaxOrderByAggregateInput
244
+ _min?: Prisma.RolesMinOrderByAggregateInput
245
+ _sum?: Prisma.RolesSumOrderByAggregateInput
246
+ }
247
+
248
+ export type RolesScalarWhereWithAggregatesInput = {
249
+ AND?: Prisma.RolesScalarWhereWithAggregatesInput | Prisma.RolesScalarWhereWithAggregatesInput[]
250
+ OR?: Prisma.RolesScalarWhereWithAggregatesInput[]
251
+ NOT?: Prisma.RolesScalarWhereWithAggregatesInput | Prisma.RolesScalarWhereWithAggregatesInput[]
252
+ id?: Prisma.IntWithAggregatesFilter<"Roles"> | number
253
+ name?: Prisma.StringNullableWithAggregatesFilter<"Roles"> | string | null
254
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Roles"> | Date | string
255
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Roles"> | Date | string
256
+ }
257
+
258
+ export type RolesCreateInput = {
259
+ name?: string | null
260
+ createdAt: Date | string
261
+ updatedAt: Date | string
262
+ ModelHasRoles?: Prisma.ModelHasRolesCreateNestedManyWithoutRolesInput
263
+ RoleHasPermissions?: Prisma.RoleHasPermissionsCreateNestedManyWithoutRolesInput
264
+ }
265
+
266
+ export type RolesUncheckedCreateInput = {
267
+ id?: number
268
+ name?: string | null
269
+ createdAt: Date | string
270
+ updatedAt: Date | string
271
+ ModelHasRoles?: Prisma.ModelHasRolesUncheckedCreateNestedManyWithoutRolesInput
272
+ RoleHasPermissions?: Prisma.RoleHasPermissionsUncheckedCreateNestedManyWithoutRolesInput
273
+ }
274
+
275
+ export type RolesUpdateInput = {
276
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
277
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
278
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
279
+ ModelHasRoles?: Prisma.ModelHasRolesUpdateManyWithoutRolesNestedInput
280
+ RoleHasPermissions?: Prisma.RoleHasPermissionsUpdateManyWithoutRolesNestedInput
281
+ }
282
+
283
+ export type RolesUncheckedUpdateInput = {
284
+ id?: Prisma.IntFieldUpdateOperationsInput | number
285
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
286
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
287
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
288
+ ModelHasRoles?: Prisma.ModelHasRolesUncheckedUpdateManyWithoutRolesNestedInput
289
+ RoleHasPermissions?: Prisma.RoleHasPermissionsUncheckedUpdateManyWithoutRolesNestedInput
290
+ }
291
+
292
+ export type RolesCreateManyInput = {
293
+ id?: number
294
+ name?: string | null
295
+ createdAt: Date | string
296
+ updatedAt: Date | string
297
+ }
298
+
299
+ export type RolesUpdateManyMutationInput = {
300
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
301
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
302
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
303
+ }
304
+
305
+ export type RolesUncheckedUpdateManyInput = {
306
+ id?: Prisma.IntFieldUpdateOperationsInput | number
307
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
308
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
309
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
310
+ }
311
+
312
+ export type RolesScalarRelationFilter = {
313
+ is?: Prisma.RolesWhereInput
314
+ isNot?: Prisma.RolesWhereInput
315
+ }
316
+
317
+ export type RolesCountOrderByAggregateInput = {
318
+ id?: Prisma.SortOrder
319
+ name?: Prisma.SortOrder
320
+ createdAt?: Prisma.SortOrder
321
+ updatedAt?: Prisma.SortOrder
322
+ }
323
+
324
+ export type RolesAvgOrderByAggregateInput = {
325
+ id?: Prisma.SortOrder
326
+ }
327
+
328
+ export type RolesMaxOrderByAggregateInput = {
329
+ id?: Prisma.SortOrder
330
+ name?: Prisma.SortOrder
331
+ createdAt?: Prisma.SortOrder
332
+ updatedAt?: Prisma.SortOrder
333
+ }
334
+
335
+ export type RolesMinOrderByAggregateInput = {
336
+ id?: Prisma.SortOrder
337
+ name?: Prisma.SortOrder
338
+ createdAt?: Prisma.SortOrder
339
+ updatedAt?: Prisma.SortOrder
340
+ }
341
+
342
+ export type RolesSumOrderByAggregateInput = {
343
+ id?: Prisma.SortOrder
344
+ }
345
+
346
+ export type RolesCreateNestedOneWithoutModelHasRolesInput = {
347
+ create?: Prisma.XOR<Prisma.RolesCreateWithoutModelHasRolesInput, Prisma.RolesUncheckedCreateWithoutModelHasRolesInput>
348
+ connectOrCreate?: Prisma.RolesCreateOrConnectWithoutModelHasRolesInput
349
+ connect?: Prisma.RolesWhereUniqueInput
350
+ }
351
+
352
+ export type RolesUpdateOneRequiredWithoutModelHasRolesNestedInput = {
353
+ create?: Prisma.XOR<Prisma.RolesCreateWithoutModelHasRolesInput, Prisma.RolesUncheckedCreateWithoutModelHasRolesInput>
354
+ connectOrCreate?: Prisma.RolesCreateOrConnectWithoutModelHasRolesInput
355
+ upsert?: Prisma.RolesUpsertWithoutModelHasRolesInput
356
+ connect?: Prisma.RolesWhereUniqueInput
357
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RolesUpdateToOneWithWhereWithoutModelHasRolesInput, Prisma.RolesUpdateWithoutModelHasRolesInput>, Prisma.RolesUncheckedUpdateWithoutModelHasRolesInput>
358
+ }
359
+
360
+ export type RolesCreateNestedOneWithoutRoleHasPermissionsInput = {
361
+ create?: Prisma.XOR<Prisma.RolesCreateWithoutRoleHasPermissionsInput, Prisma.RolesUncheckedCreateWithoutRoleHasPermissionsInput>
362
+ connectOrCreate?: Prisma.RolesCreateOrConnectWithoutRoleHasPermissionsInput
363
+ connect?: Prisma.RolesWhereUniqueInput
364
+ }
365
+
366
+ export type RolesUpdateOneRequiredWithoutRoleHasPermissionsNestedInput = {
367
+ create?: Prisma.XOR<Prisma.RolesCreateWithoutRoleHasPermissionsInput, Prisma.RolesUncheckedCreateWithoutRoleHasPermissionsInput>
368
+ connectOrCreate?: Prisma.RolesCreateOrConnectWithoutRoleHasPermissionsInput
369
+ upsert?: Prisma.RolesUpsertWithoutRoleHasPermissionsInput
370
+ connect?: Prisma.RolesWhereUniqueInput
371
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RolesUpdateToOneWithWhereWithoutRoleHasPermissionsInput, Prisma.RolesUpdateWithoutRoleHasPermissionsInput>, Prisma.RolesUncheckedUpdateWithoutRoleHasPermissionsInput>
372
+ }
373
+
374
+ export type RolesCreateWithoutModelHasRolesInput = {
375
+ name?: string | null
376
+ createdAt: Date | string
377
+ updatedAt: Date | string
378
+ RoleHasPermissions?: Prisma.RoleHasPermissionsCreateNestedManyWithoutRolesInput
379
+ }
380
+
381
+ export type RolesUncheckedCreateWithoutModelHasRolesInput = {
382
+ id?: number
383
+ name?: string | null
384
+ createdAt: Date | string
385
+ updatedAt: Date | string
386
+ RoleHasPermissions?: Prisma.RoleHasPermissionsUncheckedCreateNestedManyWithoutRolesInput
387
+ }
388
+
389
+ export type RolesCreateOrConnectWithoutModelHasRolesInput = {
390
+ where: Prisma.RolesWhereUniqueInput
391
+ create: Prisma.XOR<Prisma.RolesCreateWithoutModelHasRolesInput, Prisma.RolesUncheckedCreateWithoutModelHasRolesInput>
392
+ }
393
+
394
+ export type RolesUpsertWithoutModelHasRolesInput = {
395
+ update: Prisma.XOR<Prisma.RolesUpdateWithoutModelHasRolesInput, Prisma.RolesUncheckedUpdateWithoutModelHasRolesInput>
396
+ create: Prisma.XOR<Prisma.RolesCreateWithoutModelHasRolesInput, Prisma.RolesUncheckedCreateWithoutModelHasRolesInput>
397
+ where?: Prisma.RolesWhereInput
398
+ }
399
+
400
+ export type RolesUpdateToOneWithWhereWithoutModelHasRolesInput = {
401
+ where?: Prisma.RolesWhereInput
402
+ data: Prisma.XOR<Prisma.RolesUpdateWithoutModelHasRolesInput, Prisma.RolesUncheckedUpdateWithoutModelHasRolesInput>
403
+ }
404
+
405
+ export type RolesUpdateWithoutModelHasRolesInput = {
406
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
407
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
408
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
409
+ RoleHasPermissions?: Prisma.RoleHasPermissionsUpdateManyWithoutRolesNestedInput
410
+ }
411
+
412
+ export type RolesUncheckedUpdateWithoutModelHasRolesInput = {
413
+ id?: Prisma.IntFieldUpdateOperationsInput | number
414
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
415
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
416
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
417
+ RoleHasPermissions?: Prisma.RoleHasPermissionsUncheckedUpdateManyWithoutRolesNestedInput
418
+ }
419
+
420
+ export type RolesCreateWithoutRoleHasPermissionsInput = {
421
+ name?: string | null
422
+ createdAt: Date | string
423
+ updatedAt: Date | string
424
+ ModelHasRoles?: Prisma.ModelHasRolesCreateNestedManyWithoutRolesInput
425
+ }
426
+
427
+ export type RolesUncheckedCreateWithoutRoleHasPermissionsInput = {
428
+ id?: number
429
+ name?: string | null
430
+ createdAt: Date | string
431
+ updatedAt: Date | string
432
+ ModelHasRoles?: Prisma.ModelHasRolesUncheckedCreateNestedManyWithoutRolesInput
433
+ }
434
+
435
+ export type RolesCreateOrConnectWithoutRoleHasPermissionsInput = {
436
+ where: Prisma.RolesWhereUniqueInput
437
+ create: Prisma.XOR<Prisma.RolesCreateWithoutRoleHasPermissionsInput, Prisma.RolesUncheckedCreateWithoutRoleHasPermissionsInput>
438
+ }
439
+
440
+ export type RolesUpsertWithoutRoleHasPermissionsInput = {
441
+ update: Prisma.XOR<Prisma.RolesUpdateWithoutRoleHasPermissionsInput, Prisma.RolesUncheckedUpdateWithoutRoleHasPermissionsInput>
442
+ create: Prisma.XOR<Prisma.RolesCreateWithoutRoleHasPermissionsInput, Prisma.RolesUncheckedCreateWithoutRoleHasPermissionsInput>
443
+ where?: Prisma.RolesWhereInput
444
+ }
445
+
446
+ export type RolesUpdateToOneWithWhereWithoutRoleHasPermissionsInput = {
447
+ where?: Prisma.RolesWhereInput
448
+ data: Prisma.XOR<Prisma.RolesUpdateWithoutRoleHasPermissionsInput, Prisma.RolesUncheckedUpdateWithoutRoleHasPermissionsInput>
449
+ }
450
+
451
+ export type RolesUpdateWithoutRoleHasPermissionsInput = {
452
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
453
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
454
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
455
+ ModelHasRoles?: Prisma.ModelHasRolesUpdateManyWithoutRolesNestedInput
456
+ }
457
+
458
+ export type RolesUncheckedUpdateWithoutRoleHasPermissionsInput = {
459
+ id?: Prisma.IntFieldUpdateOperationsInput | number
460
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
461
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
462
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
463
+ ModelHasRoles?: Prisma.ModelHasRolesUncheckedUpdateManyWithoutRolesNestedInput
464
+ }
465
+
466
+
467
+ /**
468
+ * Count Type RolesCountOutputType
469
+ */
470
+
471
+ export type RolesCountOutputType = {
472
+ ModelHasRoles: number
473
+ RoleHasPermissions: number
474
+ }
475
+
476
+ export type RolesCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
477
+ ModelHasRoles?: boolean | RolesCountOutputTypeCountModelHasRolesArgs
478
+ RoleHasPermissions?: boolean | RolesCountOutputTypeCountRoleHasPermissionsArgs
479
+ }
480
+
481
+ /**
482
+ * RolesCountOutputType without action
483
+ */
484
+ export type RolesCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
485
+ /**
486
+ * Select specific fields to fetch from the RolesCountOutputType
487
+ */
488
+ select?: Prisma.RolesCountOutputTypeSelect<ExtArgs> | null
489
+ }
490
+
491
+ /**
492
+ * RolesCountOutputType without action
493
+ */
494
+ export type RolesCountOutputTypeCountModelHasRolesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
495
+ where?: Prisma.ModelHasRolesWhereInput
496
+ }
497
+
498
+ /**
499
+ * RolesCountOutputType without action
500
+ */
501
+ export type RolesCountOutputTypeCountRoleHasPermissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
502
+ where?: Prisma.RoleHasPermissionsWhereInput
503
+ }
504
+
505
+
506
+ export type RolesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
507
+ id?: boolean
508
+ name?: boolean
509
+ createdAt?: boolean
510
+ updatedAt?: boolean
511
+ ModelHasRoles?: boolean | Prisma.Roles$ModelHasRolesArgs<ExtArgs>
512
+ RoleHasPermissions?: boolean | Prisma.Roles$RoleHasPermissionsArgs<ExtArgs>
513
+ _count?: boolean | Prisma.RolesCountOutputTypeDefaultArgs<ExtArgs>
514
+ }, ExtArgs["result"]["roles"]>
515
+
516
+ export type RolesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
517
+ id?: boolean
518
+ name?: boolean
519
+ createdAt?: boolean
520
+ updatedAt?: boolean
521
+ }, ExtArgs["result"]["roles"]>
522
+
523
+ export type RolesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
524
+ id?: boolean
525
+ name?: boolean
526
+ createdAt?: boolean
527
+ updatedAt?: boolean
528
+ }, ExtArgs["result"]["roles"]>
529
+
530
+ export type RolesSelectScalar = {
531
+ id?: boolean
532
+ name?: boolean
533
+ createdAt?: boolean
534
+ updatedAt?: boolean
535
+ }
536
+
537
+ export type RolesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "createdAt" | "updatedAt", ExtArgs["result"]["roles"]>
538
+ export type RolesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
539
+ ModelHasRoles?: boolean | Prisma.Roles$ModelHasRolesArgs<ExtArgs>
540
+ RoleHasPermissions?: boolean | Prisma.Roles$RoleHasPermissionsArgs<ExtArgs>
541
+ _count?: boolean | Prisma.RolesCountOutputTypeDefaultArgs<ExtArgs>
542
+ }
543
+ export type RolesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
544
+ export type RolesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
545
+
546
+ export type $RolesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
547
+ name: "Roles"
548
+ objects: {
549
+ ModelHasRoles: Prisma.$ModelHasRolesPayload<ExtArgs>[]
550
+ RoleHasPermissions: Prisma.$RoleHasPermissionsPayload<ExtArgs>[]
551
+ }
552
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
553
+ id: number
554
+ name: string | null
555
+ createdAt: Date
556
+ updatedAt: Date
557
+ }, ExtArgs["result"]["roles"]>
558
+ composites: {}
559
+ }
560
+
561
+ export type RolesGetPayload<S extends boolean | null | undefined | RolesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RolesPayload, S>
562
+
563
+ export type RolesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
564
+ Omit<RolesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
565
+ select?: RolesCountAggregateInputType | true
566
+ }
567
+
568
+ export interface RolesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
569
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Roles'], meta: { name: 'Roles' } }
570
+ /**
571
+ * Find zero or one Roles that matches the filter.
572
+ * @param {RolesFindUniqueArgs} args - Arguments to find a Roles
573
+ * @example
574
+ * // Get one Roles
575
+ * const roles = await prisma.roles.findUnique({
576
+ * where: {
577
+ * // ... provide filter here
578
+ * }
579
+ * })
580
+ */
581
+ findUnique<T extends RolesFindUniqueArgs>(args: Prisma.SelectSubset<T, RolesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RolesClient<runtime.Types.Result.GetResult<Prisma.$RolesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
582
+
583
+ /**
584
+ * Find one Roles that matches the filter or throw an error with `error.code='P2025'`
585
+ * if no matches were found.
586
+ * @param {RolesFindUniqueOrThrowArgs} args - Arguments to find a Roles
587
+ * @example
588
+ * // Get one Roles
589
+ * const roles = await prisma.roles.findUniqueOrThrow({
590
+ * where: {
591
+ * // ... provide filter here
592
+ * }
593
+ * })
594
+ */
595
+ findUniqueOrThrow<T extends RolesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RolesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RolesClient<runtime.Types.Result.GetResult<Prisma.$RolesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
596
+
597
+ /**
598
+ * Find the first Roles that matches the filter.
599
+ * Note, that providing `undefined` is treated as the value not being there.
600
+ * Read more here: https://pris.ly/d/null-undefined
601
+ * @param {RolesFindFirstArgs} args - Arguments to find a Roles
602
+ * @example
603
+ * // Get one Roles
604
+ * const roles = await prisma.roles.findFirst({
605
+ * where: {
606
+ * // ... provide filter here
607
+ * }
608
+ * })
609
+ */
610
+ findFirst<T extends RolesFindFirstArgs>(args?: Prisma.SelectSubset<T, RolesFindFirstArgs<ExtArgs>>): Prisma.Prisma__RolesClient<runtime.Types.Result.GetResult<Prisma.$RolesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
611
+
612
+ /**
613
+ * Find the first Roles that matches the filter or
614
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
615
+ * Note, that providing `undefined` is treated as the value not being there.
616
+ * Read more here: https://pris.ly/d/null-undefined
617
+ * @param {RolesFindFirstOrThrowArgs} args - Arguments to find a Roles
618
+ * @example
619
+ * // Get one Roles
620
+ * const roles = await prisma.roles.findFirstOrThrow({
621
+ * where: {
622
+ * // ... provide filter here
623
+ * }
624
+ * })
625
+ */
626
+ findFirstOrThrow<T extends RolesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RolesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RolesClient<runtime.Types.Result.GetResult<Prisma.$RolesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
627
+
628
+ /**
629
+ * Find zero or more Roles that matches the filter.
630
+ * Note, that providing `undefined` is treated as the value not being there.
631
+ * Read more here: https://pris.ly/d/null-undefined
632
+ * @param {RolesFindManyArgs} args - Arguments to filter and select certain fields only.
633
+ * @example
634
+ * // Get all Roles
635
+ * const roles = await prisma.roles.findMany()
636
+ *
637
+ * // Get first 10 Roles
638
+ * const roles = await prisma.roles.findMany({ take: 10 })
639
+ *
640
+ * // Only select the `id`
641
+ * const rolesWithIdOnly = await prisma.roles.findMany({ select: { id: true } })
642
+ *
643
+ */
644
+ findMany<T extends RolesFindManyArgs>(args?: Prisma.SelectSubset<T, RolesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
645
+
646
+ /**
647
+ * Create a Roles.
648
+ * @param {RolesCreateArgs} args - Arguments to create a Roles.
649
+ * @example
650
+ * // Create one Roles
651
+ * const Roles = await prisma.roles.create({
652
+ * data: {
653
+ * // ... data to create a Roles
654
+ * }
655
+ * })
656
+ *
657
+ */
658
+ create<T extends RolesCreateArgs>(args: Prisma.SelectSubset<T, RolesCreateArgs<ExtArgs>>): Prisma.Prisma__RolesClient<runtime.Types.Result.GetResult<Prisma.$RolesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
659
+
660
+ /**
661
+ * Create many Roles.
662
+ * @param {RolesCreateManyArgs} args - Arguments to create many Roles.
663
+ * @example
664
+ * // Create many Roles
665
+ * const roles = await prisma.roles.createMany({
666
+ * data: [
667
+ * // ... provide data here
668
+ * ]
669
+ * })
670
+ *
671
+ */
672
+ createMany<T extends RolesCreateManyArgs>(args?: Prisma.SelectSubset<T, RolesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
673
+
674
+ /**
675
+ * Create many Roles and returns the data saved in the database.
676
+ * @param {RolesCreateManyAndReturnArgs} args - Arguments to create many Roles.
677
+ * @example
678
+ * // Create many Roles
679
+ * const roles = await prisma.roles.createManyAndReturn({
680
+ * data: [
681
+ * // ... provide data here
682
+ * ]
683
+ * })
684
+ *
685
+ * // Create many Roles and only return the `id`
686
+ * const rolesWithIdOnly = await prisma.roles.createManyAndReturn({
687
+ * select: { id: true },
688
+ * data: [
689
+ * // ... provide data here
690
+ * ]
691
+ * })
692
+ * Note, that providing `undefined` is treated as the value not being there.
693
+ * Read more here: https://pris.ly/d/null-undefined
694
+ *
695
+ */
696
+ createManyAndReturn<T extends RolesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RolesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
697
+
698
+ /**
699
+ * Delete a Roles.
700
+ * @param {RolesDeleteArgs} args - Arguments to delete one Roles.
701
+ * @example
702
+ * // Delete one Roles
703
+ * const Roles = await prisma.roles.delete({
704
+ * where: {
705
+ * // ... filter to delete one Roles
706
+ * }
707
+ * })
708
+ *
709
+ */
710
+ delete<T extends RolesDeleteArgs>(args: Prisma.SelectSubset<T, RolesDeleteArgs<ExtArgs>>): Prisma.Prisma__RolesClient<runtime.Types.Result.GetResult<Prisma.$RolesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
711
+
712
+ /**
713
+ * Update one Roles.
714
+ * @param {RolesUpdateArgs} args - Arguments to update one Roles.
715
+ * @example
716
+ * // Update one Roles
717
+ * const roles = await prisma.roles.update({
718
+ * where: {
719
+ * // ... provide filter here
720
+ * },
721
+ * data: {
722
+ * // ... provide data here
723
+ * }
724
+ * })
725
+ *
726
+ */
727
+ update<T extends RolesUpdateArgs>(args: Prisma.SelectSubset<T, RolesUpdateArgs<ExtArgs>>): Prisma.Prisma__RolesClient<runtime.Types.Result.GetResult<Prisma.$RolesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
728
+
729
+ /**
730
+ * Delete zero or more Roles.
731
+ * @param {RolesDeleteManyArgs} args - Arguments to filter Roles to delete.
732
+ * @example
733
+ * // Delete a few Roles
734
+ * const { count } = await prisma.roles.deleteMany({
735
+ * where: {
736
+ * // ... provide filter here
737
+ * }
738
+ * })
739
+ *
740
+ */
741
+ deleteMany<T extends RolesDeleteManyArgs>(args?: Prisma.SelectSubset<T, RolesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
742
+
743
+ /**
744
+ * Update zero or more Roles.
745
+ * Note, that providing `undefined` is treated as the value not being there.
746
+ * Read more here: https://pris.ly/d/null-undefined
747
+ * @param {RolesUpdateManyArgs} args - Arguments to update one or more rows.
748
+ * @example
749
+ * // Update many Roles
750
+ * const roles = await prisma.roles.updateMany({
751
+ * where: {
752
+ * // ... provide filter here
753
+ * },
754
+ * data: {
755
+ * // ... provide data here
756
+ * }
757
+ * })
758
+ *
759
+ */
760
+ updateMany<T extends RolesUpdateManyArgs>(args: Prisma.SelectSubset<T, RolesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
761
+
762
+ /**
763
+ * Update zero or more Roles and returns the data updated in the database.
764
+ * @param {RolesUpdateManyAndReturnArgs} args - Arguments to update many Roles.
765
+ * @example
766
+ * // Update many Roles
767
+ * const roles = await prisma.roles.updateManyAndReturn({
768
+ * where: {
769
+ * // ... provide filter here
770
+ * },
771
+ * data: [
772
+ * // ... provide data here
773
+ * ]
774
+ * })
775
+ *
776
+ * // Update zero or more Roles and only return the `id`
777
+ * const rolesWithIdOnly = await prisma.roles.updateManyAndReturn({
778
+ * select: { id: true },
779
+ * where: {
780
+ * // ... provide filter here
781
+ * },
782
+ * data: [
783
+ * // ... provide data here
784
+ * ]
785
+ * })
786
+ * Note, that providing `undefined` is treated as the value not being there.
787
+ * Read more here: https://pris.ly/d/null-undefined
788
+ *
789
+ */
790
+ updateManyAndReturn<T extends RolesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RolesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
791
+
792
+ /**
793
+ * Create or update one Roles.
794
+ * @param {RolesUpsertArgs} args - Arguments to update or create a Roles.
795
+ * @example
796
+ * // Update or create a Roles
797
+ * const roles = await prisma.roles.upsert({
798
+ * create: {
799
+ * // ... data to create a Roles
800
+ * },
801
+ * update: {
802
+ * // ... in case it already exists, update
803
+ * },
804
+ * where: {
805
+ * // ... the filter for the Roles we want to update
806
+ * }
807
+ * })
808
+ */
809
+ upsert<T extends RolesUpsertArgs>(args: Prisma.SelectSubset<T, RolesUpsertArgs<ExtArgs>>): Prisma.Prisma__RolesClient<runtime.Types.Result.GetResult<Prisma.$RolesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
810
+
811
+
812
+ /**
813
+ * Count the number of Roles.
814
+ * Note, that providing `undefined` is treated as the value not being there.
815
+ * Read more here: https://pris.ly/d/null-undefined
816
+ * @param {RolesCountArgs} args - Arguments to filter Roles to count.
817
+ * @example
818
+ * // Count the number of Roles
819
+ * const count = await prisma.roles.count({
820
+ * where: {
821
+ * // ... the filter for the Roles we want to count
822
+ * }
823
+ * })
824
+ **/
825
+ count<T extends RolesCountArgs>(
826
+ args?: Prisma.Subset<T, RolesCountArgs>,
827
+ ): Prisma.PrismaPromise<
828
+ T extends runtime.Types.Utils.Record<'select', any>
829
+ ? T['select'] extends true
830
+ ? number
831
+ : Prisma.GetScalarType<T['select'], RolesCountAggregateOutputType>
832
+ : number
833
+ >
834
+
835
+ /**
836
+ * Allows you to perform aggregations operations on a Roles.
837
+ * Note, that providing `undefined` is treated as the value not being there.
838
+ * Read more here: https://pris.ly/d/null-undefined
839
+ * @param {RolesAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
840
+ * @example
841
+ * // Ordered by age ascending
842
+ * // Where email contains prisma.io
843
+ * // Limited to the 10 users
844
+ * const aggregations = await prisma.user.aggregate({
845
+ * _avg: {
846
+ * age: true,
847
+ * },
848
+ * where: {
849
+ * email: {
850
+ * contains: "prisma.io",
851
+ * },
852
+ * },
853
+ * orderBy: {
854
+ * age: "asc",
855
+ * },
856
+ * take: 10,
857
+ * })
858
+ **/
859
+ aggregate<T extends RolesAggregateArgs>(args: Prisma.Subset<T, RolesAggregateArgs>): Prisma.PrismaPromise<GetRolesAggregateType<T>>
860
+
861
+ /**
862
+ * Group by Roles.
863
+ * Note, that providing `undefined` is treated as the value not being there.
864
+ * Read more here: https://pris.ly/d/null-undefined
865
+ * @param {RolesGroupByArgs} args - Group by arguments.
866
+ * @example
867
+ * // Group by city, order by createdAt, get count
868
+ * const result = await prisma.user.groupBy({
869
+ * by: ['city', 'createdAt'],
870
+ * orderBy: {
871
+ * createdAt: true
872
+ * },
873
+ * _count: {
874
+ * _all: true
875
+ * },
876
+ * })
877
+ *
878
+ **/
879
+ groupBy<
880
+ T extends RolesGroupByArgs,
881
+ HasSelectOrTake extends Prisma.Or<
882
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
883
+ Prisma.Extends<'take', Prisma.Keys<T>>
884
+ >,
885
+ OrderByArg extends Prisma.True extends HasSelectOrTake
886
+ ? { orderBy: RolesGroupByArgs['orderBy'] }
887
+ : { orderBy?: RolesGroupByArgs['orderBy'] },
888
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
889
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
890
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
891
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
892
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
893
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
894
+ InputErrors extends ByEmpty extends Prisma.True
895
+ ? `Error: "by" must not be empty.`
896
+ : HavingValid extends Prisma.False
897
+ ? {
898
+ [P in HavingFields]: P extends ByFields
899
+ ? never
900
+ : P extends string
901
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
902
+ : [
903
+ Error,
904
+ 'Field ',
905
+ P,
906
+ ` in "having" needs to be provided in "by"`,
907
+ ]
908
+ }[HavingFields]
909
+ : 'take' extends Prisma.Keys<T>
910
+ ? 'orderBy' extends Prisma.Keys<T>
911
+ ? ByValid extends Prisma.True
912
+ ? {}
913
+ : {
914
+ [P in OrderFields]: P extends ByFields
915
+ ? never
916
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
917
+ }[OrderFields]
918
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
919
+ : 'skip' extends Prisma.Keys<T>
920
+ ? 'orderBy' extends Prisma.Keys<T>
921
+ ? ByValid extends Prisma.True
922
+ ? {}
923
+ : {
924
+ [P in OrderFields]: P extends ByFields
925
+ ? never
926
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
927
+ }[OrderFields]
928
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
929
+ : ByValid extends Prisma.True
930
+ ? {}
931
+ : {
932
+ [P in OrderFields]: P extends ByFields
933
+ ? never
934
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
935
+ }[OrderFields]
936
+ >(args: Prisma.SubsetIntersection<T, RolesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRolesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
937
+ /**
938
+ * Fields of the Roles model
939
+ */
940
+ readonly fields: RolesFieldRefs;
941
+ }
942
+
943
+ /**
944
+ * The delegate class that acts as a "Promise-like" for Roles.
945
+ * Why is this prefixed with `Prisma__`?
946
+ * Because we want to prevent naming conflicts as mentioned in
947
+ * https://github.com/prisma/prisma-client-js/issues/707
948
+ */
949
+ export interface Prisma__RolesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
950
+ readonly [Symbol.toStringTag]: "PrismaPromise"
951
+ ModelHasRoles<T extends Prisma.Roles$ModelHasRolesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Roles$ModelHasRolesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ModelHasRolesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
952
+ RoleHasPermissions<T extends Prisma.Roles$RoleHasPermissionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Roles$RoleHasPermissionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RoleHasPermissionsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
953
+ /**
954
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
955
+ * @param onfulfilled The callback to execute when the Promise is resolved.
956
+ * @param onrejected The callback to execute when the Promise is rejected.
957
+ * @returns A Promise for the completion of which ever callback is executed.
958
+ */
959
+ 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>
960
+ /**
961
+ * Attaches a callback for only the rejection of the Promise.
962
+ * @param onrejected The callback to execute when the Promise is rejected.
963
+ * @returns A Promise for the completion of the callback.
964
+ */
965
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
966
+ /**
967
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
968
+ * resolved value cannot be modified from the callback.
969
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
970
+ * @returns A Promise for the completion of the callback.
971
+ */
972
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
973
+ }
974
+
975
+
976
+
977
+
978
+ /**
979
+ * Fields of the Roles model
980
+ */
981
+ export interface RolesFieldRefs {
982
+ readonly id: Prisma.FieldRef<"Roles", 'Int'>
983
+ readonly name: Prisma.FieldRef<"Roles", 'String'>
984
+ readonly createdAt: Prisma.FieldRef<"Roles", 'DateTime'>
985
+ readonly updatedAt: Prisma.FieldRef<"Roles", 'DateTime'>
986
+ }
987
+
988
+
989
+ // Custom InputTypes
990
+ /**
991
+ * Roles findUnique
992
+ */
993
+ export type RolesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
994
+ /**
995
+ * Select specific fields to fetch from the Roles
996
+ */
997
+ select?: Prisma.RolesSelect<ExtArgs> | null
998
+ /**
999
+ * Omit specific fields from the Roles
1000
+ */
1001
+ omit?: Prisma.RolesOmit<ExtArgs> | null
1002
+ /**
1003
+ * Choose, which related nodes to fetch as well
1004
+ */
1005
+ include?: Prisma.RolesInclude<ExtArgs> | null
1006
+ /**
1007
+ * Filter, which Roles to fetch.
1008
+ */
1009
+ where: Prisma.RolesWhereUniqueInput
1010
+ }
1011
+
1012
+ /**
1013
+ * Roles findUniqueOrThrow
1014
+ */
1015
+ export type RolesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1016
+ /**
1017
+ * Select specific fields to fetch from the Roles
1018
+ */
1019
+ select?: Prisma.RolesSelect<ExtArgs> | null
1020
+ /**
1021
+ * Omit specific fields from the Roles
1022
+ */
1023
+ omit?: Prisma.RolesOmit<ExtArgs> | null
1024
+ /**
1025
+ * Choose, which related nodes to fetch as well
1026
+ */
1027
+ include?: Prisma.RolesInclude<ExtArgs> | null
1028
+ /**
1029
+ * Filter, which Roles to fetch.
1030
+ */
1031
+ where: Prisma.RolesWhereUniqueInput
1032
+ }
1033
+
1034
+ /**
1035
+ * Roles findFirst
1036
+ */
1037
+ export type RolesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1038
+ /**
1039
+ * Select specific fields to fetch from the Roles
1040
+ */
1041
+ select?: Prisma.RolesSelect<ExtArgs> | null
1042
+ /**
1043
+ * Omit specific fields from the Roles
1044
+ */
1045
+ omit?: Prisma.RolesOmit<ExtArgs> | null
1046
+ /**
1047
+ * Choose, which related nodes to fetch as well
1048
+ */
1049
+ include?: Prisma.RolesInclude<ExtArgs> | null
1050
+ /**
1051
+ * Filter, which Roles to fetch.
1052
+ */
1053
+ where?: Prisma.RolesWhereInput
1054
+ /**
1055
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1056
+ *
1057
+ * Determine the order of Roles to fetch.
1058
+ */
1059
+ orderBy?: Prisma.RolesOrderByWithRelationInput | Prisma.RolesOrderByWithRelationInput[]
1060
+ /**
1061
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1062
+ *
1063
+ * Sets the position for searching for Roles.
1064
+ */
1065
+ cursor?: Prisma.RolesWhereUniqueInput
1066
+ /**
1067
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1068
+ *
1069
+ * Take `±n` Roles from the position of the cursor.
1070
+ */
1071
+ take?: number
1072
+ /**
1073
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1074
+ *
1075
+ * Skip the first `n` Roles.
1076
+ */
1077
+ skip?: number
1078
+ /**
1079
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1080
+ *
1081
+ * Filter by unique combinations of Roles.
1082
+ */
1083
+ distinct?: Prisma.RolesScalarFieldEnum | Prisma.RolesScalarFieldEnum[]
1084
+ }
1085
+
1086
+ /**
1087
+ * Roles findFirstOrThrow
1088
+ */
1089
+ export type RolesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1090
+ /**
1091
+ * Select specific fields to fetch from the Roles
1092
+ */
1093
+ select?: Prisma.RolesSelect<ExtArgs> | null
1094
+ /**
1095
+ * Omit specific fields from the Roles
1096
+ */
1097
+ omit?: Prisma.RolesOmit<ExtArgs> | null
1098
+ /**
1099
+ * Choose, which related nodes to fetch as well
1100
+ */
1101
+ include?: Prisma.RolesInclude<ExtArgs> | null
1102
+ /**
1103
+ * Filter, which Roles to fetch.
1104
+ */
1105
+ where?: Prisma.RolesWhereInput
1106
+ /**
1107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1108
+ *
1109
+ * Determine the order of Roles to fetch.
1110
+ */
1111
+ orderBy?: Prisma.RolesOrderByWithRelationInput | Prisma.RolesOrderByWithRelationInput[]
1112
+ /**
1113
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1114
+ *
1115
+ * Sets the position for searching for Roles.
1116
+ */
1117
+ cursor?: Prisma.RolesWhereUniqueInput
1118
+ /**
1119
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1120
+ *
1121
+ * Take `±n` Roles from the position of the cursor.
1122
+ */
1123
+ take?: number
1124
+ /**
1125
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1126
+ *
1127
+ * Skip the first `n` Roles.
1128
+ */
1129
+ skip?: number
1130
+ /**
1131
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1132
+ *
1133
+ * Filter by unique combinations of Roles.
1134
+ */
1135
+ distinct?: Prisma.RolesScalarFieldEnum | Prisma.RolesScalarFieldEnum[]
1136
+ }
1137
+
1138
+ /**
1139
+ * Roles findMany
1140
+ */
1141
+ export type RolesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1142
+ /**
1143
+ * Select specific fields to fetch from the Roles
1144
+ */
1145
+ select?: Prisma.RolesSelect<ExtArgs> | null
1146
+ /**
1147
+ * Omit specific fields from the Roles
1148
+ */
1149
+ omit?: Prisma.RolesOmit<ExtArgs> | null
1150
+ /**
1151
+ * Choose, which related nodes to fetch as well
1152
+ */
1153
+ include?: Prisma.RolesInclude<ExtArgs> | null
1154
+ /**
1155
+ * Filter, which Roles to fetch.
1156
+ */
1157
+ where?: Prisma.RolesWhereInput
1158
+ /**
1159
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1160
+ *
1161
+ * Determine the order of Roles to fetch.
1162
+ */
1163
+ orderBy?: Prisma.RolesOrderByWithRelationInput | Prisma.RolesOrderByWithRelationInput[]
1164
+ /**
1165
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1166
+ *
1167
+ * Sets the position for listing Roles.
1168
+ */
1169
+ cursor?: Prisma.RolesWhereUniqueInput
1170
+ /**
1171
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1172
+ *
1173
+ * Take `±n` Roles from the position of the cursor.
1174
+ */
1175
+ take?: number
1176
+ /**
1177
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1178
+ *
1179
+ * Skip the first `n` Roles.
1180
+ */
1181
+ skip?: number
1182
+ distinct?: Prisma.RolesScalarFieldEnum | Prisma.RolesScalarFieldEnum[]
1183
+ }
1184
+
1185
+ /**
1186
+ * Roles create
1187
+ */
1188
+ export type RolesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1189
+ /**
1190
+ * Select specific fields to fetch from the Roles
1191
+ */
1192
+ select?: Prisma.RolesSelect<ExtArgs> | null
1193
+ /**
1194
+ * Omit specific fields from the Roles
1195
+ */
1196
+ omit?: Prisma.RolesOmit<ExtArgs> | null
1197
+ /**
1198
+ * Choose, which related nodes to fetch as well
1199
+ */
1200
+ include?: Prisma.RolesInclude<ExtArgs> | null
1201
+ /**
1202
+ * The data needed to create a Roles.
1203
+ */
1204
+ data: Prisma.XOR<Prisma.RolesCreateInput, Prisma.RolesUncheckedCreateInput>
1205
+ }
1206
+
1207
+ /**
1208
+ * Roles createMany
1209
+ */
1210
+ export type RolesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1211
+ /**
1212
+ * The data used to create many Roles.
1213
+ */
1214
+ data: Prisma.RolesCreateManyInput | Prisma.RolesCreateManyInput[]
1215
+ skipDuplicates?: boolean
1216
+ }
1217
+
1218
+ /**
1219
+ * Roles createManyAndReturn
1220
+ */
1221
+ export type RolesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1222
+ /**
1223
+ * Select specific fields to fetch from the Roles
1224
+ */
1225
+ select?: Prisma.RolesSelectCreateManyAndReturn<ExtArgs> | null
1226
+ /**
1227
+ * Omit specific fields from the Roles
1228
+ */
1229
+ omit?: Prisma.RolesOmit<ExtArgs> | null
1230
+ /**
1231
+ * The data used to create many Roles.
1232
+ */
1233
+ data: Prisma.RolesCreateManyInput | Prisma.RolesCreateManyInput[]
1234
+ skipDuplicates?: boolean
1235
+ }
1236
+
1237
+ /**
1238
+ * Roles update
1239
+ */
1240
+ export type RolesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1241
+ /**
1242
+ * Select specific fields to fetch from the Roles
1243
+ */
1244
+ select?: Prisma.RolesSelect<ExtArgs> | null
1245
+ /**
1246
+ * Omit specific fields from the Roles
1247
+ */
1248
+ omit?: Prisma.RolesOmit<ExtArgs> | null
1249
+ /**
1250
+ * Choose, which related nodes to fetch as well
1251
+ */
1252
+ include?: Prisma.RolesInclude<ExtArgs> | null
1253
+ /**
1254
+ * The data needed to update a Roles.
1255
+ */
1256
+ data: Prisma.XOR<Prisma.RolesUpdateInput, Prisma.RolesUncheckedUpdateInput>
1257
+ /**
1258
+ * Choose, which Roles to update.
1259
+ */
1260
+ where: Prisma.RolesWhereUniqueInput
1261
+ }
1262
+
1263
+ /**
1264
+ * Roles updateMany
1265
+ */
1266
+ export type RolesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1267
+ /**
1268
+ * The data used to update Roles.
1269
+ */
1270
+ data: Prisma.XOR<Prisma.RolesUpdateManyMutationInput, Prisma.RolesUncheckedUpdateManyInput>
1271
+ /**
1272
+ * Filter which Roles to update
1273
+ */
1274
+ where?: Prisma.RolesWhereInput
1275
+ /**
1276
+ * Limit how many Roles to update.
1277
+ */
1278
+ limit?: number
1279
+ }
1280
+
1281
+ /**
1282
+ * Roles updateManyAndReturn
1283
+ */
1284
+ export type RolesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1285
+ /**
1286
+ * Select specific fields to fetch from the Roles
1287
+ */
1288
+ select?: Prisma.RolesSelectUpdateManyAndReturn<ExtArgs> | null
1289
+ /**
1290
+ * Omit specific fields from the Roles
1291
+ */
1292
+ omit?: Prisma.RolesOmit<ExtArgs> | null
1293
+ /**
1294
+ * The data used to update Roles.
1295
+ */
1296
+ data: Prisma.XOR<Prisma.RolesUpdateManyMutationInput, Prisma.RolesUncheckedUpdateManyInput>
1297
+ /**
1298
+ * Filter which Roles to update
1299
+ */
1300
+ where?: Prisma.RolesWhereInput
1301
+ /**
1302
+ * Limit how many Roles to update.
1303
+ */
1304
+ limit?: number
1305
+ }
1306
+
1307
+ /**
1308
+ * Roles upsert
1309
+ */
1310
+ export type RolesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1311
+ /**
1312
+ * Select specific fields to fetch from the Roles
1313
+ */
1314
+ select?: Prisma.RolesSelect<ExtArgs> | null
1315
+ /**
1316
+ * Omit specific fields from the Roles
1317
+ */
1318
+ omit?: Prisma.RolesOmit<ExtArgs> | null
1319
+ /**
1320
+ * Choose, which related nodes to fetch as well
1321
+ */
1322
+ include?: Prisma.RolesInclude<ExtArgs> | null
1323
+ /**
1324
+ * The filter to search for the Roles to update in case it exists.
1325
+ */
1326
+ where: Prisma.RolesWhereUniqueInput
1327
+ /**
1328
+ * In case the Roles found by the `where` argument doesn't exist, create a new Roles with this data.
1329
+ */
1330
+ create: Prisma.XOR<Prisma.RolesCreateInput, Prisma.RolesUncheckedCreateInput>
1331
+ /**
1332
+ * In case the Roles was found with the provided `where` argument, update it with this data.
1333
+ */
1334
+ update: Prisma.XOR<Prisma.RolesUpdateInput, Prisma.RolesUncheckedUpdateInput>
1335
+ }
1336
+
1337
+ /**
1338
+ * Roles delete
1339
+ */
1340
+ export type RolesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1341
+ /**
1342
+ * Select specific fields to fetch from the Roles
1343
+ */
1344
+ select?: Prisma.RolesSelect<ExtArgs> | null
1345
+ /**
1346
+ * Omit specific fields from the Roles
1347
+ */
1348
+ omit?: Prisma.RolesOmit<ExtArgs> | null
1349
+ /**
1350
+ * Choose, which related nodes to fetch as well
1351
+ */
1352
+ include?: Prisma.RolesInclude<ExtArgs> | null
1353
+ /**
1354
+ * Filter which Roles to delete.
1355
+ */
1356
+ where: Prisma.RolesWhereUniqueInput
1357
+ }
1358
+
1359
+ /**
1360
+ * Roles deleteMany
1361
+ */
1362
+ export type RolesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1363
+ /**
1364
+ * Filter which Roles to delete
1365
+ */
1366
+ where?: Prisma.RolesWhereInput
1367
+ /**
1368
+ * Limit how many Roles to delete.
1369
+ */
1370
+ limit?: number
1371
+ }
1372
+
1373
+ /**
1374
+ * Roles.ModelHasRoles
1375
+ */
1376
+ export type Roles$ModelHasRolesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1377
+ /**
1378
+ * Select specific fields to fetch from the ModelHasRoles
1379
+ */
1380
+ select?: Prisma.ModelHasRolesSelect<ExtArgs> | null
1381
+ /**
1382
+ * Omit specific fields from the ModelHasRoles
1383
+ */
1384
+ omit?: Prisma.ModelHasRolesOmit<ExtArgs> | null
1385
+ /**
1386
+ * Choose, which related nodes to fetch as well
1387
+ */
1388
+ include?: Prisma.ModelHasRolesInclude<ExtArgs> | null
1389
+ where?: Prisma.ModelHasRolesWhereInput
1390
+ orderBy?: Prisma.ModelHasRolesOrderByWithRelationInput | Prisma.ModelHasRolesOrderByWithRelationInput[]
1391
+ cursor?: Prisma.ModelHasRolesWhereUniqueInput
1392
+ take?: number
1393
+ skip?: number
1394
+ distinct?: Prisma.ModelHasRolesScalarFieldEnum | Prisma.ModelHasRolesScalarFieldEnum[]
1395
+ }
1396
+
1397
+ /**
1398
+ * Roles.RoleHasPermissions
1399
+ */
1400
+ export type Roles$RoleHasPermissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1401
+ /**
1402
+ * Select specific fields to fetch from the RoleHasPermissions
1403
+ */
1404
+ select?: Prisma.RoleHasPermissionsSelect<ExtArgs> | null
1405
+ /**
1406
+ * Omit specific fields from the RoleHasPermissions
1407
+ */
1408
+ omit?: Prisma.RoleHasPermissionsOmit<ExtArgs> | null
1409
+ /**
1410
+ * Choose, which related nodes to fetch as well
1411
+ */
1412
+ include?: Prisma.RoleHasPermissionsInclude<ExtArgs> | null
1413
+ where?: Prisma.RoleHasPermissionsWhereInput
1414
+ orderBy?: Prisma.RoleHasPermissionsOrderByWithRelationInput | Prisma.RoleHasPermissionsOrderByWithRelationInput[]
1415
+ cursor?: Prisma.RoleHasPermissionsWhereUniqueInput
1416
+ take?: number
1417
+ skip?: number
1418
+ distinct?: Prisma.RoleHasPermissionsScalarFieldEnum | Prisma.RoleHasPermissionsScalarFieldEnum[]
1419
+ }
1420
+
1421
+ /**
1422
+ * Roles without action
1423
+ */
1424
+ export type RolesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1425
+ /**
1426
+ * Select specific fields to fetch from the Roles
1427
+ */
1428
+ select?: Prisma.RolesSelect<ExtArgs> | null
1429
+ /**
1430
+ * Omit specific fields from the Roles
1431
+ */
1432
+ omit?: Prisma.RolesOmit<ExtArgs> | null
1433
+ /**
1434
+ * Choose, which related nodes to fetch as well
1435
+ */
1436
+ include?: Prisma.RolesInclude<ExtArgs> | null
1437
+ }