@valentine-efagene/qshelter-common 2.0.88 → 2.0.89

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.
@@ -14,6 +14,9 @@ export type RoleMinAggregateOutputType = {
14
14
  id: string | null;
15
15
  name: string | null;
16
16
  description: string | null;
17
+ tenantId: string | null;
18
+ isSystem: boolean | null;
19
+ isActive: boolean | null;
17
20
  createdAt: Date | null;
18
21
  updatedAt: Date | null;
19
22
  };
@@ -21,6 +24,9 @@ export type RoleMaxAggregateOutputType = {
21
24
  id: string | null;
22
25
  name: string | null;
23
26
  description: string | null;
27
+ tenantId: string | null;
28
+ isSystem: boolean | null;
29
+ isActive: boolean | null;
24
30
  createdAt: Date | null;
25
31
  updatedAt: Date | null;
26
32
  };
@@ -28,6 +34,9 @@ export type RoleCountAggregateOutputType = {
28
34
  id: number;
29
35
  name: number;
30
36
  description: number;
37
+ tenantId: number;
38
+ isSystem: number;
39
+ isActive: number;
31
40
  createdAt: number;
32
41
  updatedAt: number;
33
42
  _all: number;
@@ -36,6 +45,9 @@ export type RoleMinAggregateInputType = {
36
45
  id?: true;
37
46
  name?: true;
38
47
  description?: true;
48
+ tenantId?: true;
49
+ isSystem?: true;
50
+ isActive?: true;
39
51
  createdAt?: true;
40
52
  updatedAt?: true;
41
53
  };
@@ -43,6 +55,9 @@ export type RoleMaxAggregateInputType = {
43
55
  id?: true;
44
56
  name?: true;
45
57
  description?: true;
58
+ tenantId?: true;
59
+ isSystem?: true;
60
+ isActive?: true;
46
61
  createdAt?: true;
47
62
  updatedAt?: true;
48
63
  };
@@ -50,6 +65,9 @@ export type RoleCountAggregateInputType = {
50
65
  id?: true;
51
66
  name?: true;
52
67
  description?: true;
68
+ tenantId?: true;
69
+ isSystem?: true;
70
+ isActive?: true;
53
71
  createdAt?: true;
54
72
  updatedAt?: true;
55
73
  _all?: true;
@@ -120,6 +138,9 @@ export type RoleGroupByOutputType = {
120
138
  id: string;
121
139
  name: string;
122
140
  description: string | null;
141
+ tenantId: string | null;
142
+ isSystem: boolean;
143
+ isActive: boolean;
123
144
  createdAt: Date;
124
145
  updatedAt: Date;
125
146
  _count: RoleCountAggregateOutputType | null;
@@ -136,37 +157,56 @@ export type RoleWhereInput = {
136
157
  id?: Prisma.StringFilter<"Role"> | string;
137
158
  name?: Prisma.StringFilter<"Role"> | string;
138
159
  description?: Prisma.StringNullableFilter<"Role"> | string | null;
160
+ tenantId?: Prisma.StringNullableFilter<"Role"> | string | null;
161
+ isSystem?: Prisma.BoolFilter<"Role"> | boolean;
162
+ isActive?: Prisma.BoolFilter<"Role"> | boolean;
139
163
  createdAt?: Prisma.DateTimeFilter<"Role"> | Date | string;
140
164
  updatedAt?: Prisma.DateTimeFilter<"Role"> | Date | string;
165
+ tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null;
141
166
  userRoles?: Prisma.UserRoleListRelationFilter;
167
+ memberships?: Prisma.TenantMembershipListRelationFilter;
142
168
  permissions?: Prisma.RolePermissionListRelationFilter;
143
169
  };
144
170
  export type RoleOrderByWithRelationInput = {
145
171
  id?: Prisma.SortOrder;
146
172
  name?: Prisma.SortOrder;
147
173
  description?: Prisma.SortOrderInput | Prisma.SortOrder;
174
+ tenantId?: Prisma.SortOrderInput | Prisma.SortOrder;
175
+ isSystem?: Prisma.SortOrder;
176
+ isActive?: Prisma.SortOrder;
148
177
  createdAt?: Prisma.SortOrder;
149
178
  updatedAt?: Prisma.SortOrder;
179
+ tenant?: Prisma.TenantOrderByWithRelationInput;
150
180
  userRoles?: Prisma.UserRoleOrderByRelationAggregateInput;
181
+ memberships?: Prisma.TenantMembershipOrderByRelationAggregateInput;
151
182
  permissions?: Prisma.RolePermissionOrderByRelationAggregateInput;
152
183
  _relevance?: Prisma.RoleOrderByRelevanceInput;
153
184
  };
154
185
  export type RoleWhereUniqueInput = Prisma.AtLeast<{
155
186
  id?: string;
156
- name?: string;
187
+ name_tenantId?: Prisma.RoleNameTenantIdCompoundUniqueInput;
157
188
  AND?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[];
158
189
  OR?: Prisma.RoleWhereInput[];
159
190
  NOT?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[];
191
+ name?: Prisma.StringFilter<"Role"> | string;
160
192
  description?: Prisma.StringNullableFilter<"Role"> | string | null;
193
+ tenantId?: Prisma.StringNullableFilter<"Role"> | string | null;
194
+ isSystem?: Prisma.BoolFilter<"Role"> | boolean;
195
+ isActive?: Prisma.BoolFilter<"Role"> | boolean;
161
196
  createdAt?: Prisma.DateTimeFilter<"Role"> | Date | string;
162
197
  updatedAt?: Prisma.DateTimeFilter<"Role"> | Date | string;
198
+ tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null;
163
199
  userRoles?: Prisma.UserRoleListRelationFilter;
200
+ memberships?: Prisma.TenantMembershipListRelationFilter;
164
201
  permissions?: Prisma.RolePermissionListRelationFilter;
165
- }, "id" | "name">;
202
+ }, "id" | "name_tenantId">;
166
203
  export type RoleOrderByWithAggregationInput = {
167
204
  id?: Prisma.SortOrder;
168
205
  name?: Prisma.SortOrder;
169
206
  description?: Prisma.SortOrderInput | Prisma.SortOrder;
207
+ tenantId?: Prisma.SortOrderInput | Prisma.SortOrder;
208
+ isSystem?: Prisma.SortOrder;
209
+ isActive?: Prisma.SortOrder;
170
210
  createdAt?: Prisma.SortOrder;
171
211
  updatedAt?: Prisma.SortOrder;
172
212
  _count?: Prisma.RoleCountOrderByAggregateInput;
@@ -180,6 +220,9 @@ export type RoleScalarWhereWithAggregatesInput = {
180
220
  id?: Prisma.StringWithAggregatesFilter<"Role"> | string;
181
221
  name?: Prisma.StringWithAggregatesFilter<"Role"> | string;
182
222
  description?: Prisma.StringNullableWithAggregatesFilter<"Role"> | string | null;
223
+ tenantId?: Prisma.StringNullableWithAggregatesFilter<"Role"> | string | null;
224
+ isSystem?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean;
225
+ isActive?: Prisma.BoolWithAggregatesFilter<"Role"> | boolean;
183
226
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Role"> | Date | string;
184
227
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Role"> | Date | string;
185
228
  };
@@ -187,42 +230,61 @@ export type RoleCreateInput = {
187
230
  id?: string;
188
231
  name: string;
189
232
  description?: string | null;
233
+ isSystem?: boolean;
234
+ isActive?: boolean;
190
235
  createdAt?: Date | string;
191
236
  updatedAt?: Date | string;
237
+ tenant?: Prisma.TenantCreateNestedOneWithoutRolesInput;
192
238
  userRoles?: Prisma.UserRoleCreateNestedManyWithoutRoleInput;
239
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutRoleInput;
193
240
  permissions?: Prisma.RolePermissionCreateNestedManyWithoutRoleInput;
194
241
  };
195
242
  export type RoleUncheckedCreateInput = {
196
243
  id?: string;
197
244
  name: string;
198
245
  description?: string | null;
246
+ tenantId?: string | null;
247
+ isSystem?: boolean;
248
+ isActive?: boolean;
199
249
  createdAt?: Date | string;
200
250
  updatedAt?: Date | string;
201
251
  userRoles?: Prisma.UserRoleUncheckedCreateNestedManyWithoutRoleInput;
252
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutRoleInput;
202
253
  permissions?: Prisma.RolePermissionUncheckedCreateNestedManyWithoutRoleInput;
203
254
  };
204
255
  export type RoleUpdateInput = {
205
256
  id?: Prisma.StringFieldUpdateOperationsInput | string;
206
257
  name?: Prisma.StringFieldUpdateOperationsInput | string;
207
258
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
259
+ isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean;
260
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
208
261
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
209
262
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
263
+ tenant?: Prisma.TenantUpdateOneWithoutRolesNestedInput;
210
264
  userRoles?: Prisma.UserRoleUpdateManyWithoutRoleNestedInput;
265
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutRoleNestedInput;
211
266
  permissions?: Prisma.RolePermissionUpdateManyWithoutRoleNestedInput;
212
267
  };
213
268
  export type RoleUncheckedUpdateInput = {
214
269
  id?: Prisma.StringFieldUpdateOperationsInput | string;
215
270
  name?: Prisma.StringFieldUpdateOperationsInput | string;
216
271
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
272
+ tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
273
+ isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean;
274
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
217
275
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
218
276
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
219
277
  userRoles?: Prisma.UserRoleUncheckedUpdateManyWithoutRoleNestedInput;
278
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutRoleNestedInput;
220
279
  permissions?: Prisma.RolePermissionUncheckedUpdateManyWithoutRoleNestedInput;
221
280
  };
222
281
  export type RoleCreateManyInput = {
223
282
  id?: string;
224
283
  name: string;
225
284
  description?: string | null;
285
+ tenantId?: string | null;
286
+ isSystem?: boolean;
287
+ isActive?: boolean;
226
288
  createdAt?: Date | string;
227
289
  updatedAt?: Date | string;
228
290
  };
@@ -230,6 +292,8 @@ export type RoleUpdateManyMutationInput = {
230
292
  id?: Prisma.StringFieldUpdateOperationsInput | string;
231
293
  name?: Prisma.StringFieldUpdateOperationsInput | string;
232
294
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
295
+ isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean;
296
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
233
297
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
234
298
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
235
299
  };
@@ -237,6 +301,9 @@ export type RoleUncheckedUpdateManyInput = {
237
301
  id?: Prisma.StringFieldUpdateOperationsInput | string;
238
302
  name?: Prisma.StringFieldUpdateOperationsInput | string;
239
303
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
304
+ tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
305
+ isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean;
306
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
240
307
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
241
308
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
242
309
  };
@@ -245,10 +312,17 @@ export type RoleOrderByRelevanceInput = {
245
312
  sort: Prisma.SortOrder;
246
313
  search: string;
247
314
  };
315
+ export type RoleNameTenantIdCompoundUniqueInput = {
316
+ name: string;
317
+ tenantId: string;
318
+ };
248
319
  export type RoleCountOrderByAggregateInput = {
249
320
  id?: Prisma.SortOrder;
250
321
  name?: Prisma.SortOrder;
251
322
  description?: Prisma.SortOrder;
323
+ tenantId?: Prisma.SortOrder;
324
+ isSystem?: Prisma.SortOrder;
325
+ isActive?: Prisma.SortOrder;
252
326
  createdAt?: Prisma.SortOrder;
253
327
  updatedAt?: Prisma.SortOrder;
254
328
  };
@@ -256,6 +330,9 @@ export type RoleMaxOrderByAggregateInput = {
256
330
  id?: Prisma.SortOrder;
257
331
  name?: Prisma.SortOrder;
258
332
  description?: Prisma.SortOrder;
333
+ tenantId?: Prisma.SortOrder;
334
+ isSystem?: Prisma.SortOrder;
335
+ isActive?: Prisma.SortOrder;
259
336
  createdAt?: Prisma.SortOrder;
260
337
  updatedAt?: Prisma.SortOrder;
261
338
  };
@@ -263,6 +340,9 @@ export type RoleMinOrderByAggregateInput = {
263
340
  id?: Prisma.SortOrder;
264
341
  name?: Prisma.SortOrder;
265
342
  description?: Prisma.SortOrder;
343
+ tenantId?: Prisma.SortOrder;
344
+ isSystem?: Prisma.SortOrder;
345
+ isActive?: Prisma.SortOrder;
266
346
  createdAt?: Prisma.SortOrder;
267
347
  updatedAt?: Prisma.SortOrder;
268
348
  };
@@ -270,6 +350,14 @@ export type RoleScalarRelationFilter = {
270
350
  is?: Prisma.RoleWhereInput;
271
351
  isNot?: Prisma.RoleWhereInput;
272
352
  };
353
+ export type RoleListRelationFilter = {
354
+ every?: Prisma.RoleWhereInput;
355
+ some?: Prisma.RoleWhereInput;
356
+ none?: Prisma.RoleWhereInput;
357
+ };
358
+ export type RoleOrderByRelationAggregateInput = {
359
+ _count?: Prisma.SortOrder;
360
+ };
273
361
  export type RoleCreateNestedOneWithoutPermissionsInput = {
274
362
  create?: Prisma.XOR<Prisma.RoleCreateWithoutPermissionsInput, Prisma.RoleUncheckedCreateWithoutPermissionsInput>;
275
363
  connectOrCreate?: Prisma.RoleCreateOrConnectWithoutPermissionsInput;
@@ -294,21 +382,79 @@ export type RoleUpdateOneRequiredWithoutUserRolesNestedInput = {
294
382
  connect?: Prisma.RoleWhereUniqueInput;
295
383
  update?: Prisma.XOR<Prisma.XOR<Prisma.RoleUpdateToOneWithWhereWithoutUserRolesInput, Prisma.RoleUpdateWithoutUserRolesInput>, Prisma.RoleUncheckedUpdateWithoutUserRolesInput>;
296
384
  };
385
+ export type RoleCreateNestedOneWithoutMembershipsInput = {
386
+ create?: Prisma.XOR<Prisma.RoleCreateWithoutMembershipsInput, Prisma.RoleUncheckedCreateWithoutMembershipsInput>;
387
+ connectOrCreate?: Prisma.RoleCreateOrConnectWithoutMembershipsInput;
388
+ connect?: Prisma.RoleWhereUniqueInput;
389
+ };
390
+ export type RoleUpdateOneRequiredWithoutMembershipsNestedInput = {
391
+ create?: Prisma.XOR<Prisma.RoleCreateWithoutMembershipsInput, Prisma.RoleUncheckedCreateWithoutMembershipsInput>;
392
+ connectOrCreate?: Prisma.RoleCreateOrConnectWithoutMembershipsInput;
393
+ upsert?: Prisma.RoleUpsertWithoutMembershipsInput;
394
+ connect?: Prisma.RoleWhereUniqueInput;
395
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RoleUpdateToOneWithWhereWithoutMembershipsInput, Prisma.RoleUpdateWithoutMembershipsInput>, Prisma.RoleUncheckedUpdateWithoutMembershipsInput>;
396
+ };
397
+ export type RoleCreateNestedManyWithoutTenantInput = {
398
+ create?: Prisma.XOR<Prisma.RoleCreateWithoutTenantInput, Prisma.RoleUncheckedCreateWithoutTenantInput> | Prisma.RoleCreateWithoutTenantInput[] | Prisma.RoleUncheckedCreateWithoutTenantInput[];
399
+ connectOrCreate?: Prisma.RoleCreateOrConnectWithoutTenantInput | Prisma.RoleCreateOrConnectWithoutTenantInput[];
400
+ createMany?: Prisma.RoleCreateManyTenantInputEnvelope;
401
+ connect?: Prisma.RoleWhereUniqueInput | Prisma.RoleWhereUniqueInput[];
402
+ };
403
+ export type RoleUncheckedCreateNestedManyWithoutTenantInput = {
404
+ create?: Prisma.XOR<Prisma.RoleCreateWithoutTenantInput, Prisma.RoleUncheckedCreateWithoutTenantInput> | Prisma.RoleCreateWithoutTenantInput[] | Prisma.RoleUncheckedCreateWithoutTenantInput[];
405
+ connectOrCreate?: Prisma.RoleCreateOrConnectWithoutTenantInput | Prisma.RoleCreateOrConnectWithoutTenantInput[];
406
+ createMany?: Prisma.RoleCreateManyTenantInputEnvelope;
407
+ connect?: Prisma.RoleWhereUniqueInput | Prisma.RoleWhereUniqueInput[];
408
+ };
409
+ export type RoleUpdateManyWithoutTenantNestedInput = {
410
+ create?: Prisma.XOR<Prisma.RoleCreateWithoutTenantInput, Prisma.RoleUncheckedCreateWithoutTenantInput> | Prisma.RoleCreateWithoutTenantInput[] | Prisma.RoleUncheckedCreateWithoutTenantInput[];
411
+ connectOrCreate?: Prisma.RoleCreateOrConnectWithoutTenantInput | Prisma.RoleCreateOrConnectWithoutTenantInput[];
412
+ upsert?: Prisma.RoleUpsertWithWhereUniqueWithoutTenantInput | Prisma.RoleUpsertWithWhereUniqueWithoutTenantInput[];
413
+ createMany?: Prisma.RoleCreateManyTenantInputEnvelope;
414
+ set?: Prisma.RoleWhereUniqueInput | Prisma.RoleWhereUniqueInput[];
415
+ disconnect?: Prisma.RoleWhereUniqueInput | Prisma.RoleWhereUniqueInput[];
416
+ delete?: Prisma.RoleWhereUniqueInput | Prisma.RoleWhereUniqueInput[];
417
+ connect?: Prisma.RoleWhereUniqueInput | Prisma.RoleWhereUniqueInput[];
418
+ update?: Prisma.RoleUpdateWithWhereUniqueWithoutTenantInput | Prisma.RoleUpdateWithWhereUniqueWithoutTenantInput[];
419
+ updateMany?: Prisma.RoleUpdateManyWithWhereWithoutTenantInput | Prisma.RoleUpdateManyWithWhereWithoutTenantInput[];
420
+ deleteMany?: Prisma.RoleScalarWhereInput | Prisma.RoleScalarWhereInput[];
421
+ };
422
+ export type RoleUncheckedUpdateManyWithoutTenantNestedInput = {
423
+ create?: Prisma.XOR<Prisma.RoleCreateWithoutTenantInput, Prisma.RoleUncheckedCreateWithoutTenantInput> | Prisma.RoleCreateWithoutTenantInput[] | Prisma.RoleUncheckedCreateWithoutTenantInput[];
424
+ connectOrCreate?: Prisma.RoleCreateOrConnectWithoutTenantInput | Prisma.RoleCreateOrConnectWithoutTenantInput[];
425
+ upsert?: Prisma.RoleUpsertWithWhereUniqueWithoutTenantInput | Prisma.RoleUpsertWithWhereUniqueWithoutTenantInput[];
426
+ createMany?: Prisma.RoleCreateManyTenantInputEnvelope;
427
+ set?: Prisma.RoleWhereUniqueInput | Prisma.RoleWhereUniqueInput[];
428
+ disconnect?: Prisma.RoleWhereUniqueInput | Prisma.RoleWhereUniqueInput[];
429
+ delete?: Prisma.RoleWhereUniqueInput | Prisma.RoleWhereUniqueInput[];
430
+ connect?: Prisma.RoleWhereUniqueInput | Prisma.RoleWhereUniqueInput[];
431
+ update?: Prisma.RoleUpdateWithWhereUniqueWithoutTenantInput | Prisma.RoleUpdateWithWhereUniqueWithoutTenantInput[];
432
+ updateMany?: Prisma.RoleUpdateManyWithWhereWithoutTenantInput | Prisma.RoleUpdateManyWithWhereWithoutTenantInput[];
433
+ deleteMany?: Prisma.RoleScalarWhereInput | Prisma.RoleScalarWhereInput[];
434
+ };
297
435
  export type RoleCreateWithoutPermissionsInput = {
298
436
  id?: string;
299
437
  name: string;
300
438
  description?: string | null;
439
+ isSystem?: boolean;
440
+ isActive?: boolean;
301
441
  createdAt?: Date | string;
302
442
  updatedAt?: Date | string;
443
+ tenant?: Prisma.TenantCreateNestedOneWithoutRolesInput;
303
444
  userRoles?: Prisma.UserRoleCreateNestedManyWithoutRoleInput;
445
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutRoleInput;
304
446
  };
305
447
  export type RoleUncheckedCreateWithoutPermissionsInput = {
306
448
  id?: string;
307
449
  name: string;
308
450
  description?: string | null;
451
+ tenantId?: string | null;
452
+ isSystem?: boolean;
453
+ isActive?: boolean;
309
454
  createdAt?: Date | string;
310
455
  updatedAt?: Date | string;
311
456
  userRoles?: Prisma.UserRoleUncheckedCreateNestedManyWithoutRoleInput;
457
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutRoleInput;
312
458
  };
313
459
  export type RoleCreateOrConnectWithoutPermissionsInput = {
314
460
  where: Prisma.RoleWhereUniqueInput;
@@ -327,32 +473,48 @@ export type RoleUpdateWithoutPermissionsInput = {
327
473
  id?: Prisma.StringFieldUpdateOperationsInput | string;
328
474
  name?: Prisma.StringFieldUpdateOperationsInput | string;
329
475
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
476
+ isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean;
477
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
330
478
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
331
479
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
480
+ tenant?: Prisma.TenantUpdateOneWithoutRolesNestedInput;
332
481
  userRoles?: Prisma.UserRoleUpdateManyWithoutRoleNestedInput;
482
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutRoleNestedInput;
333
483
  };
334
484
  export type RoleUncheckedUpdateWithoutPermissionsInput = {
335
485
  id?: Prisma.StringFieldUpdateOperationsInput | string;
336
486
  name?: Prisma.StringFieldUpdateOperationsInput | string;
337
487
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
488
+ tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
489
+ isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean;
490
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
338
491
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
339
492
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
340
493
  userRoles?: Prisma.UserRoleUncheckedUpdateManyWithoutRoleNestedInput;
494
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutRoleNestedInput;
341
495
  };
342
496
  export type RoleCreateWithoutUserRolesInput = {
343
497
  id?: string;
344
498
  name: string;
345
499
  description?: string | null;
500
+ isSystem?: boolean;
501
+ isActive?: boolean;
346
502
  createdAt?: Date | string;
347
503
  updatedAt?: Date | string;
504
+ tenant?: Prisma.TenantCreateNestedOneWithoutRolesInput;
505
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutRoleInput;
348
506
  permissions?: Prisma.RolePermissionCreateNestedManyWithoutRoleInput;
349
507
  };
350
508
  export type RoleUncheckedCreateWithoutUserRolesInput = {
351
509
  id?: string;
352
510
  name: string;
353
511
  description?: string | null;
512
+ tenantId?: string | null;
513
+ isSystem?: boolean;
514
+ isActive?: boolean;
354
515
  createdAt?: Date | string;
355
516
  updatedAt?: Date | string;
517
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutRoleInput;
356
518
  permissions?: Prisma.RolePermissionUncheckedCreateNestedManyWithoutRoleInput;
357
519
  };
358
520
  export type RoleCreateOrConnectWithoutUserRolesInput = {
@@ -372,27 +534,198 @@ export type RoleUpdateWithoutUserRolesInput = {
372
534
  id?: Prisma.StringFieldUpdateOperationsInput | string;
373
535
  name?: Prisma.StringFieldUpdateOperationsInput | string;
374
536
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
537
+ isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean;
538
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
375
539
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
376
540
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
541
+ tenant?: Prisma.TenantUpdateOneWithoutRolesNestedInput;
542
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutRoleNestedInput;
377
543
  permissions?: Prisma.RolePermissionUpdateManyWithoutRoleNestedInput;
378
544
  };
379
545
  export type RoleUncheckedUpdateWithoutUserRolesInput = {
380
546
  id?: Prisma.StringFieldUpdateOperationsInput | string;
381
547
  name?: Prisma.StringFieldUpdateOperationsInput | string;
382
548
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
549
+ tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
550
+ isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean;
551
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
552
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
553
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
554
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutRoleNestedInput;
555
+ permissions?: Prisma.RolePermissionUncheckedUpdateManyWithoutRoleNestedInput;
556
+ };
557
+ export type RoleCreateWithoutMembershipsInput = {
558
+ id?: string;
559
+ name: string;
560
+ description?: string | null;
561
+ isSystem?: boolean;
562
+ isActive?: boolean;
563
+ createdAt?: Date | string;
564
+ updatedAt?: Date | string;
565
+ tenant?: Prisma.TenantCreateNestedOneWithoutRolesInput;
566
+ userRoles?: Prisma.UserRoleCreateNestedManyWithoutRoleInput;
567
+ permissions?: Prisma.RolePermissionCreateNestedManyWithoutRoleInput;
568
+ };
569
+ export type RoleUncheckedCreateWithoutMembershipsInput = {
570
+ id?: string;
571
+ name: string;
572
+ description?: string | null;
573
+ tenantId?: string | null;
574
+ isSystem?: boolean;
575
+ isActive?: boolean;
576
+ createdAt?: Date | string;
577
+ updatedAt?: Date | string;
578
+ userRoles?: Prisma.UserRoleUncheckedCreateNestedManyWithoutRoleInput;
579
+ permissions?: Prisma.RolePermissionUncheckedCreateNestedManyWithoutRoleInput;
580
+ };
581
+ export type RoleCreateOrConnectWithoutMembershipsInput = {
582
+ where: Prisma.RoleWhereUniqueInput;
583
+ create: Prisma.XOR<Prisma.RoleCreateWithoutMembershipsInput, Prisma.RoleUncheckedCreateWithoutMembershipsInput>;
584
+ };
585
+ export type RoleUpsertWithoutMembershipsInput = {
586
+ update: Prisma.XOR<Prisma.RoleUpdateWithoutMembershipsInput, Prisma.RoleUncheckedUpdateWithoutMembershipsInput>;
587
+ create: Prisma.XOR<Prisma.RoleCreateWithoutMembershipsInput, Prisma.RoleUncheckedCreateWithoutMembershipsInput>;
588
+ where?: Prisma.RoleWhereInput;
589
+ };
590
+ export type RoleUpdateToOneWithWhereWithoutMembershipsInput = {
591
+ where?: Prisma.RoleWhereInput;
592
+ data: Prisma.XOR<Prisma.RoleUpdateWithoutMembershipsInput, Prisma.RoleUncheckedUpdateWithoutMembershipsInput>;
593
+ };
594
+ export type RoleUpdateWithoutMembershipsInput = {
595
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
596
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
597
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
598
+ isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean;
599
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
600
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
601
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
602
+ tenant?: Prisma.TenantUpdateOneWithoutRolesNestedInput;
603
+ userRoles?: Prisma.UserRoleUpdateManyWithoutRoleNestedInput;
604
+ permissions?: Prisma.RolePermissionUpdateManyWithoutRoleNestedInput;
605
+ };
606
+ export type RoleUncheckedUpdateWithoutMembershipsInput = {
607
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
608
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
609
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
610
+ tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
611
+ isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean;
612
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
613
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
614
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
615
+ userRoles?: Prisma.UserRoleUncheckedUpdateManyWithoutRoleNestedInput;
616
+ permissions?: Prisma.RolePermissionUncheckedUpdateManyWithoutRoleNestedInput;
617
+ };
618
+ export type RoleCreateWithoutTenantInput = {
619
+ id?: string;
620
+ name: string;
621
+ description?: string | null;
622
+ isSystem?: boolean;
623
+ isActive?: boolean;
624
+ createdAt?: Date | string;
625
+ updatedAt?: Date | string;
626
+ userRoles?: Prisma.UserRoleCreateNestedManyWithoutRoleInput;
627
+ memberships?: Prisma.TenantMembershipCreateNestedManyWithoutRoleInput;
628
+ permissions?: Prisma.RolePermissionCreateNestedManyWithoutRoleInput;
629
+ };
630
+ export type RoleUncheckedCreateWithoutTenantInput = {
631
+ id?: string;
632
+ name: string;
633
+ description?: string | null;
634
+ isSystem?: boolean;
635
+ isActive?: boolean;
636
+ createdAt?: Date | string;
637
+ updatedAt?: Date | string;
638
+ userRoles?: Prisma.UserRoleUncheckedCreateNestedManyWithoutRoleInput;
639
+ memberships?: Prisma.TenantMembershipUncheckedCreateNestedManyWithoutRoleInput;
640
+ permissions?: Prisma.RolePermissionUncheckedCreateNestedManyWithoutRoleInput;
641
+ };
642
+ export type RoleCreateOrConnectWithoutTenantInput = {
643
+ where: Prisma.RoleWhereUniqueInput;
644
+ create: Prisma.XOR<Prisma.RoleCreateWithoutTenantInput, Prisma.RoleUncheckedCreateWithoutTenantInput>;
645
+ };
646
+ export type RoleCreateManyTenantInputEnvelope = {
647
+ data: Prisma.RoleCreateManyTenantInput | Prisma.RoleCreateManyTenantInput[];
648
+ skipDuplicates?: boolean;
649
+ };
650
+ export type RoleUpsertWithWhereUniqueWithoutTenantInput = {
651
+ where: Prisma.RoleWhereUniqueInput;
652
+ update: Prisma.XOR<Prisma.RoleUpdateWithoutTenantInput, Prisma.RoleUncheckedUpdateWithoutTenantInput>;
653
+ create: Prisma.XOR<Prisma.RoleCreateWithoutTenantInput, Prisma.RoleUncheckedCreateWithoutTenantInput>;
654
+ };
655
+ export type RoleUpdateWithWhereUniqueWithoutTenantInput = {
656
+ where: Prisma.RoleWhereUniqueInput;
657
+ data: Prisma.XOR<Prisma.RoleUpdateWithoutTenantInput, Prisma.RoleUncheckedUpdateWithoutTenantInput>;
658
+ };
659
+ export type RoleUpdateManyWithWhereWithoutTenantInput = {
660
+ where: Prisma.RoleScalarWhereInput;
661
+ data: Prisma.XOR<Prisma.RoleUpdateManyMutationInput, Prisma.RoleUncheckedUpdateManyWithoutTenantInput>;
662
+ };
663
+ export type RoleScalarWhereInput = {
664
+ AND?: Prisma.RoleScalarWhereInput | Prisma.RoleScalarWhereInput[];
665
+ OR?: Prisma.RoleScalarWhereInput[];
666
+ NOT?: Prisma.RoleScalarWhereInput | Prisma.RoleScalarWhereInput[];
667
+ id?: Prisma.StringFilter<"Role"> | string;
668
+ name?: Prisma.StringFilter<"Role"> | string;
669
+ description?: Prisma.StringNullableFilter<"Role"> | string | null;
670
+ tenantId?: Prisma.StringNullableFilter<"Role"> | string | null;
671
+ isSystem?: Prisma.BoolFilter<"Role"> | boolean;
672
+ isActive?: Prisma.BoolFilter<"Role"> | boolean;
673
+ createdAt?: Prisma.DateTimeFilter<"Role"> | Date | string;
674
+ updatedAt?: Prisma.DateTimeFilter<"Role"> | Date | string;
675
+ };
676
+ export type RoleCreateManyTenantInput = {
677
+ id?: string;
678
+ name: string;
679
+ description?: string | null;
680
+ isSystem?: boolean;
681
+ isActive?: boolean;
682
+ createdAt?: Date | string;
683
+ updatedAt?: Date | string;
684
+ };
685
+ export type RoleUpdateWithoutTenantInput = {
686
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
687
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
688
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
689
+ isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean;
690
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
691
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
692
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
693
+ userRoles?: Prisma.UserRoleUpdateManyWithoutRoleNestedInput;
694
+ memberships?: Prisma.TenantMembershipUpdateManyWithoutRoleNestedInput;
695
+ permissions?: Prisma.RolePermissionUpdateManyWithoutRoleNestedInput;
696
+ };
697
+ export type RoleUncheckedUpdateWithoutTenantInput = {
698
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
699
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
700
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
701
+ isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean;
702
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
383
703
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
384
704
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
705
+ userRoles?: Prisma.UserRoleUncheckedUpdateManyWithoutRoleNestedInput;
706
+ memberships?: Prisma.TenantMembershipUncheckedUpdateManyWithoutRoleNestedInput;
385
707
  permissions?: Prisma.RolePermissionUncheckedUpdateManyWithoutRoleNestedInput;
386
708
  };
709
+ export type RoleUncheckedUpdateManyWithoutTenantInput = {
710
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
711
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
712
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
713
+ isSystem?: Prisma.BoolFieldUpdateOperationsInput | boolean;
714
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
715
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
716
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
717
+ };
387
718
  /**
388
719
  * Count Type RoleCountOutputType
389
720
  */
390
721
  export type RoleCountOutputType = {
391
722
  userRoles: number;
723
+ memberships: number;
392
724
  permissions: number;
393
725
  };
394
726
  export type RoleCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
395
727
  userRoles?: boolean | RoleCountOutputTypeCountUserRolesArgs;
728
+ memberships?: boolean | RoleCountOutputTypeCountMembershipsArgs;
396
729
  permissions?: boolean | RoleCountOutputTypeCountPermissionsArgs;
397
730
  };
398
731
  /**
@@ -410,6 +743,12 @@ export type RoleCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensi
410
743
  export type RoleCountOutputTypeCountUserRolesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
411
744
  where?: Prisma.UserRoleWhereInput;
412
745
  };
746
+ /**
747
+ * RoleCountOutputType without action
748
+ */
749
+ export type RoleCountOutputTypeCountMembershipsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
750
+ where?: Prisma.TenantMembershipWhereInput;
751
+ };
413
752
  /**
414
753
  * RoleCountOutputType without action
415
754
  */
@@ -420,9 +759,14 @@ export type RoleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
420
759
  id?: boolean;
421
760
  name?: boolean;
422
761
  description?: boolean;
762
+ tenantId?: boolean;
763
+ isSystem?: boolean;
764
+ isActive?: boolean;
423
765
  createdAt?: boolean;
424
766
  updatedAt?: boolean;
767
+ tenant?: boolean | Prisma.Role$tenantArgs<ExtArgs>;
425
768
  userRoles?: boolean | Prisma.Role$userRolesArgs<ExtArgs>;
769
+ memberships?: boolean | Prisma.Role$membershipsArgs<ExtArgs>;
426
770
  permissions?: boolean | Prisma.Role$permissionsArgs<ExtArgs>;
427
771
  _count?: boolean | Prisma.RoleCountOutputTypeDefaultArgs<ExtArgs>;
428
772
  }, ExtArgs["result"]["role"]>;
@@ -430,25 +774,35 @@ export type RoleSelectScalar = {
430
774
  id?: boolean;
431
775
  name?: boolean;
432
776
  description?: boolean;
777
+ tenantId?: boolean;
778
+ isSystem?: boolean;
779
+ isActive?: boolean;
433
780
  createdAt?: boolean;
434
781
  updatedAt?: boolean;
435
782
  };
436
- export type RoleOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "createdAt" | "updatedAt", ExtArgs["result"]["role"]>;
783
+ export type RoleOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "tenantId" | "isSystem" | "isActive" | "createdAt" | "updatedAt", ExtArgs["result"]["role"]>;
437
784
  export type RoleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
785
+ tenant?: boolean | Prisma.Role$tenantArgs<ExtArgs>;
438
786
  userRoles?: boolean | Prisma.Role$userRolesArgs<ExtArgs>;
787
+ memberships?: boolean | Prisma.Role$membershipsArgs<ExtArgs>;
439
788
  permissions?: boolean | Prisma.Role$permissionsArgs<ExtArgs>;
440
789
  _count?: boolean | Prisma.RoleCountOutputTypeDefaultArgs<ExtArgs>;
441
790
  };
442
791
  export type $RolePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
443
792
  name: "Role";
444
793
  objects: {
794
+ tenant: Prisma.$TenantPayload<ExtArgs> | null;
445
795
  userRoles: Prisma.$UserRolePayload<ExtArgs>[];
796
+ memberships: Prisma.$TenantMembershipPayload<ExtArgs>[];
446
797
  permissions: Prisma.$RolePermissionPayload<ExtArgs>[];
447
798
  };
448
799
  scalars: runtime.Types.Extensions.GetPayloadResult<{
449
800
  id: string;
450
801
  name: string;
451
802
  description: string | null;
803
+ tenantId: string | null;
804
+ isSystem: boolean;
805
+ isActive: boolean;
452
806
  createdAt: Date;
453
807
  updatedAt: Date;
454
808
  }, ExtArgs["result"]["role"]>;
@@ -728,7 +1082,9 @@ export interface RoleDelegate<ExtArgs extends runtime.Types.Extensions.InternalA
728
1082
  */
729
1083
  export interface Prisma__RoleClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
730
1084
  readonly [Symbol.toStringTag]: "PrismaPromise";
1085
+ tenant<T extends Prisma.Role$tenantArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Role$tenantArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
731
1086
  userRoles<T extends Prisma.Role$userRolesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Role$userRolesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1087
+ memberships<T extends Prisma.Role$membershipsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Role$membershipsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TenantMembershipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
732
1088
  permissions<T extends Prisma.Role$permissionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Role$permissionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolePermissionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
733
1089
  /**
734
1090
  * Attaches callbacks for the resolution and/or rejection of the Promise.
@@ -758,6 +1114,9 @@ export interface RoleFieldRefs {
758
1114
  readonly id: Prisma.FieldRef<"Role", 'String'>;
759
1115
  readonly name: Prisma.FieldRef<"Role", 'String'>;
760
1116
  readonly description: Prisma.FieldRef<"Role", 'String'>;
1117
+ readonly tenantId: Prisma.FieldRef<"Role", 'String'>;
1118
+ readonly isSystem: Prisma.FieldRef<"Role", 'Boolean'>;
1119
+ readonly isActive: Prisma.FieldRef<"Role", 'Boolean'>;
761
1120
  readonly createdAt: Prisma.FieldRef<"Role", 'DateTime'>;
762
1121
  readonly updatedAt: Prisma.FieldRef<"Role", 'DateTime'>;
763
1122
  }
@@ -1087,6 +1446,24 @@ export type RoleDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Internal
1087
1446
  */
1088
1447
  limit?: number;
1089
1448
  };
1449
+ /**
1450
+ * Role.tenant
1451
+ */
1452
+ export type Role$tenantArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1453
+ /**
1454
+ * Select specific fields to fetch from the Tenant
1455
+ */
1456
+ select?: Prisma.TenantSelect<ExtArgs> | null;
1457
+ /**
1458
+ * Omit specific fields from the Tenant
1459
+ */
1460
+ omit?: Prisma.TenantOmit<ExtArgs> | null;
1461
+ /**
1462
+ * Choose, which related nodes to fetch as well
1463
+ */
1464
+ include?: Prisma.TenantInclude<ExtArgs> | null;
1465
+ where?: Prisma.TenantWhereInput;
1466
+ };
1090
1467
  /**
1091
1468
  * Role.userRoles
1092
1469
  */
@@ -1110,6 +1487,29 @@ export type Role$userRolesArgs<ExtArgs extends runtime.Types.Extensions.Internal
1110
1487
  skip?: number;
1111
1488
  distinct?: Prisma.UserRoleScalarFieldEnum | Prisma.UserRoleScalarFieldEnum[];
1112
1489
  };
1490
+ /**
1491
+ * Role.memberships
1492
+ */
1493
+ export type Role$membershipsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1494
+ /**
1495
+ * Select specific fields to fetch from the TenantMembership
1496
+ */
1497
+ select?: Prisma.TenantMembershipSelect<ExtArgs> | null;
1498
+ /**
1499
+ * Omit specific fields from the TenantMembership
1500
+ */
1501
+ omit?: Prisma.TenantMembershipOmit<ExtArgs> | null;
1502
+ /**
1503
+ * Choose, which related nodes to fetch as well
1504
+ */
1505
+ include?: Prisma.TenantMembershipInclude<ExtArgs> | null;
1506
+ where?: Prisma.TenantMembershipWhereInput;
1507
+ orderBy?: Prisma.TenantMembershipOrderByWithRelationInput | Prisma.TenantMembershipOrderByWithRelationInput[];
1508
+ cursor?: Prisma.TenantMembershipWhereUniqueInput;
1509
+ take?: number;
1510
+ skip?: number;
1511
+ distinct?: Prisma.TenantMembershipScalarFieldEnum | Prisma.TenantMembershipScalarFieldEnum[];
1512
+ };
1113
1513
  /**
1114
1514
  * Role.permissions
1115
1515
  */