@valentine-efagene/qshelter-common 2.0.5 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/client/browser.d.ts +5 -0
- package/dist/generated/client/client.d.ts +5 -0
- package/dist/generated/client/internal/class.d.ts +11 -0
- package/dist/generated/client/internal/class.js +2 -2
- package/dist/generated/client/internal/prismaNamespace.d.ts +84 -3
- package/dist/generated/client/internal/prismaNamespace.js +15 -3
- package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +16 -2
- package/dist/generated/client/internal/prismaNamespaceBrowser.js +15 -3
- package/dist/generated/client/models/Role.d.ts +68 -74
- package/dist/generated/client/models/User.d.ts +366 -265
- package/dist/generated/client/models/UserRole.d.ts +1080 -0
- package/dist/generated/client/models/UserRole.js +1 -0
- package/dist/generated/client/models.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/prisma/user.d.ts +8 -0
- package/dist/prisma/user.js +17 -0
- package/package.json +1 -1
- package/prisma/schema.prisma +38 -26
|
@@ -71,6 +71,7 @@ export const ModelName = {
|
|
|
71
71
|
Role: 'Role',
|
|
72
72
|
Permission: 'Permission',
|
|
73
73
|
RolePermission: 'RolePermission',
|
|
74
|
+
UserRole: 'UserRole',
|
|
74
75
|
Tenant: 'Tenant',
|
|
75
76
|
RefreshToken: 'RefreshToken',
|
|
76
77
|
PasswordReset: 'PasswordReset',
|
|
@@ -115,17 +116,18 @@ export const UserScalarFieldEnum = {
|
|
|
115
116
|
id: 'id',
|
|
116
117
|
email: 'email',
|
|
117
118
|
password: 'password',
|
|
119
|
+
phone: 'phone',
|
|
118
120
|
firstName: 'firstName',
|
|
119
121
|
lastName: 'lastName',
|
|
120
122
|
isActive: 'isActive',
|
|
121
123
|
isVerified: 'isVerified',
|
|
122
124
|
googleId: 'googleId',
|
|
123
125
|
tenantId: 'tenantId',
|
|
124
|
-
roleId: 'roleId',
|
|
125
126
|
walletId: 'walletId',
|
|
126
127
|
createdAt: 'createdAt',
|
|
127
128
|
updatedAt: 'updatedAt',
|
|
128
129
|
emailVerifiedAt: 'emailVerifiedAt',
|
|
130
|
+
emailVerificationToken: 'emailVerificationToken',
|
|
129
131
|
lastLoginAt: 'lastLoginAt'
|
|
130
132
|
};
|
|
131
133
|
export const RoleScalarFieldEnum = {
|
|
@@ -149,6 +151,11 @@ export const RolePermissionScalarFieldEnum = {
|
|
|
149
151
|
permissionId: 'permissionId',
|
|
150
152
|
createdAt: 'createdAt'
|
|
151
153
|
};
|
|
154
|
+
export const UserRoleScalarFieldEnum = {
|
|
155
|
+
userId: 'userId',
|
|
156
|
+
roleId: 'roleId',
|
|
157
|
+
createdAt: 'createdAt'
|
|
158
|
+
};
|
|
152
159
|
export const TenantScalarFieldEnum = {
|
|
153
160
|
id: 'id',
|
|
154
161
|
name: 'name',
|
|
@@ -483,12 +490,13 @@ export const UserOrderByRelevanceFieldEnum = {
|
|
|
483
490
|
id: 'id',
|
|
484
491
|
email: 'email',
|
|
485
492
|
password: 'password',
|
|
493
|
+
phone: 'phone',
|
|
486
494
|
firstName: 'firstName',
|
|
487
495
|
lastName: 'lastName',
|
|
488
496
|
googleId: 'googleId',
|
|
489
497
|
tenantId: 'tenantId',
|
|
490
|
-
|
|
491
|
-
|
|
498
|
+
walletId: 'walletId',
|
|
499
|
+
emailVerificationToken: 'emailVerificationToken'
|
|
492
500
|
};
|
|
493
501
|
export const RoleOrderByRelevanceFieldEnum = {
|
|
494
502
|
id: 'id',
|
|
@@ -506,6 +514,10 @@ export const RolePermissionOrderByRelevanceFieldEnum = {
|
|
|
506
514
|
roleId: 'roleId',
|
|
507
515
|
permissionId: 'permissionId'
|
|
508
516
|
};
|
|
517
|
+
export const UserRoleOrderByRelevanceFieldEnum = {
|
|
518
|
+
userId: 'userId',
|
|
519
|
+
roleId: 'roleId'
|
|
520
|
+
};
|
|
509
521
|
export const TenantOrderByRelevanceFieldEnum = {
|
|
510
522
|
id: 'id',
|
|
511
523
|
name: 'name',
|
|
@@ -30,6 +30,7 @@ export declare const ModelName: {
|
|
|
30
30
|
readonly Role: "Role";
|
|
31
31
|
readonly Permission: "Permission";
|
|
32
32
|
readonly RolePermission: "RolePermission";
|
|
33
|
+
readonly UserRole: "UserRole";
|
|
33
34
|
readonly Tenant: "Tenant";
|
|
34
35
|
readonly RefreshToken: "RefreshToken";
|
|
35
36
|
readonly PasswordReset: "PasswordReset";
|
|
@@ -73,17 +74,18 @@ export declare const UserScalarFieldEnum: {
|
|
|
73
74
|
readonly id: "id";
|
|
74
75
|
readonly email: "email";
|
|
75
76
|
readonly password: "password";
|
|
77
|
+
readonly phone: "phone";
|
|
76
78
|
readonly firstName: "firstName";
|
|
77
79
|
readonly lastName: "lastName";
|
|
78
80
|
readonly isActive: "isActive";
|
|
79
81
|
readonly isVerified: "isVerified";
|
|
80
82
|
readonly googleId: "googleId";
|
|
81
83
|
readonly tenantId: "tenantId";
|
|
82
|
-
readonly roleId: "roleId";
|
|
83
84
|
readonly walletId: "walletId";
|
|
84
85
|
readonly createdAt: "createdAt";
|
|
85
86
|
readonly updatedAt: "updatedAt";
|
|
86
87
|
readonly emailVerifiedAt: "emailVerifiedAt";
|
|
88
|
+
readonly emailVerificationToken: "emailVerificationToken";
|
|
87
89
|
readonly lastLoginAt: "lastLoginAt";
|
|
88
90
|
};
|
|
89
91
|
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum];
|
|
@@ -111,6 +113,12 @@ export declare const RolePermissionScalarFieldEnum: {
|
|
|
111
113
|
readonly createdAt: "createdAt";
|
|
112
114
|
};
|
|
113
115
|
export type RolePermissionScalarFieldEnum = (typeof RolePermissionScalarFieldEnum)[keyof typeof RolePermissionScalarFieldEnum];
|
|
116
|
+
export declare const UserRoleScalarFieldEnum: {
|
|
117
|
+
readonly userId: "userId";
|
|
118
|
+
readonly roleId: "roleId";
|
|
119
|
+
readonly createdAt: "createdAt";
|
|
120
|
+
};
|
|
121
|
+
export type UserRoleScalarFieldEnum = (typeof UserRoleScalarFieldEnum)[keyof typeof UserRoleScalarFieldEnum];
|
|
114
122
|
export declare const TenantScalarFieldEnum: {
|
|
115
123
|
readonly id: "id";
|
|
116
124
|
readonly name: "name";
|
|
@@ -477,12 +485,13 @@ export declare const UserOrderByRelevanceFieldEnum: {
|
|
|
477
485
|
readonly id: "id";
|
|
478
486
|
readonly email: "email";
|
|
479
487
|
readonly password: "password";
|
|
488
|
+
readonly phone: "phone";
|
|
480
489
|
readonly firstName: "firstName";
|
|
481
490
|
readonly lastName: "lastName";
|
|
482
491
|
readonly googleId: "googleId";
|
|
483
492
|
readonly tenantId: "tenantId";
|
|
484
|
-
readonly roleId: "roleId";
|
|
485
493
|
readonly walletId: "walletId";
|
|
494
|
+
readonly emailVerificationToken: "emailVerificationToken";
|
|
486
495
|
};
|
|
487
496
|
export type UserOrderByRelevanceFieldEnum = (typeof UserOrderByRelevanceFieldEnum)[keyof typeof UserOrderByRelevanceFieldEnum];
|
|
488
497
|
export declare const RoleOrderByRelevanceFieldEnum: {
|
|
@@ -504,6 +513,11 @@ export declare const RolePermissionOrderByRelevanceFieldEnum: {
|
|
|
504
513
|
readonly permissionId: "permissionId";
|
|
505
514
|
};
|
|
506
515
|
export type RolePermissionOrderByRelevanceFieldEnum = (typeof RolePermissionOrderByRelevanceFieldEnum)[keyof typeof RolePermissionOrderByRelevanceFieldEnum];
|
|
516
|
+
export declare const UserRoleOrderByRelevanceFieldEnum: {
|
|
517
|
+
readonly userId: "userId";
|
|
518
|
+
readonly roleId: "roleId";
|
|
519
|
+
};
|
|
520
|
+
export type UserRoleOrderByRelevanceFieldEnum = (typeof UserRoleOrderByRelevanceFieldEnum)[keyof typeof UserRoleOrderByRelevanceFieldEnum];
|
|
507
521
|
export declare const TenantOrderByRelevanceFieldEnum: {
|
|
508
522
|
readonly id: "id";
|
|
509
523
|
readonly name: "name";
|
|
@@ -43,6 +43,7 @@ export const ModelName = {
|
|
|
43
43
|
Role: 'Role',
|
|
44
44
|
Permission: 'Permission',
|
|
45
45
|
RolePermission: 'RolePermission',
|
|
46
|
+
UserRole: 'UserRole',
|
|
46
47
|
Tenant: 'Tenant',
|
|
47
48
|
RefreshToken: 'RefreshToken',
|
|
48
49
|
PasswordReset: 'PasswordReset',
|
|
@@ -87,17 +88,18 @@ export const UserScalarFieldEnum = {
|
|
|
87
88
|
id: 'id',
|
|
88
89
|
email: 'email',
|
|
89
90
|
password: 'password',
|
|
91
|
+
phone: 'phone',
|
|
90
92
|
firstName: 'firstName',
|
|
91
93
|
lastName: 'lastName',
|
|
92
94
|
isActive: 'isActive',
|
|
93
95
|
isVerified: 'isVerified',
|
|
94
96
|
googleId: 'googleId',
|
|
95
97
|
tenantId: 'tenantId',
|
|
96
|
-
roleId: 'roleId',
|
|
97
98
|
walletId: 'walletId',
|
|
98
99
|
createdAt: 'createdAt',
|
|
99
100
|
updatedAt: 'updatedAt',
|
|
100
101
|
emailVerifiedAt: 'emailVerifiedAt',
|
|
102
|
+
emailVerificationToken: 'emailVerificationToken',
|
|
101
103
|
lastLoginAt: 'lastLoginAt'
|
|
102
104
|
};
|
|
103
105
|
export const RoleScalarFieldEnum = {
|
|
@@ -121,6 +123,11 @@ export const RolePermissionScalarFieldEnum = {
|
|
|
121
123
|
permissionId: 'permissionId',
|
|
122
124
|
createdAt: 'createdAt'
|
|
123
125
|
};
|
|
126
|
+
export const UserRoleScalarFieldEnum = {
|
|
127
|
+
userId: 'userId',
|
|
128
|
+
roleId: 'roleId',
|
|
129
|
+
createdAt: 'createdAt'
|
|
130
|
+
};
|
|
124
131
|
export const TenantScalarFieldEnum = {
|
|
125
132
|
id: 'id',
|
|
126
133
|
name: 'name',
|
|
@@ -455,12 +462,13 @@ export const UserOrderByRelevanceFieldEnum = {
|
|
|
455
462
|
id: 'id',
|
|
456
463
|
email: 'email',
|
|
457
464
|
password: 'password',
|
|
465
|
+
phone: 'phone',
|
|
458
466
|
firstName: 'firstName',
|
|
459
467
|
lastName: 'lastName',
|
|
460
468
|
googleId: 'googleId',
|
|
461
469
|
tenantId: 'tenantId',
|
|
462
|
-
|
|
463
|
-
|
|
470
|
+
walletId: 'walletId',
|
|
471
|
+
emailVerificationToken: 'emailVerificationToken'
|
|
464
472
|
};
|
|
465
473
|
export const RoleOrderByRelevanceFieldEnum = {
|
|
466
474
|
id: 'id',
|
|
@@ -478,6 +486,10 @@ export const RolePermissionOrderByRelevanceFieldEnum = {
|
|
|
478
486
|
roleId: 'roleId',
|
|
479
487
|
permissionId: 'permissionId'
|
|
480
488
|
};
|
|
489
|
+
export const UserRoleOrderByRelevanceFieldEnum = {
|
|
490
|
+
userId: 'userId',
|
|
491
|
+
roleId: 'roleId'
|
|
492
|
+
};
|
|
481
493
|
export const TenantOrderByRelevanceFieldEnum = {
|
|
482
494
|
id: 'id',
|
|
483
495
|
name: 'name',
|
|
@@ -138,7 +138,7 @@ export type RoleWhereInput = {
|
|
|
138
138
|
description?: Prisma.StringNullableFilter<"Role"> | string | null;
|
|
139
139
|
createdAt?: Prisma.DateTimeFilter<"Role"> | Date | string;
|
|
140
140
|
updatedAt?: Prisma.DateTimeFilter<"Role"> | Date | string;
|
|
141
|
-
|
|
141
|
+
userRoles?: Prisma.UserRoleListRelationFilter;
|
|
142
142
|
permissions?: Prisma.RolePermissionListRelationFilter;
|
|
143
143
|
};
|
|
144
144
|
export type RoleOrderByWithRelationInput = {
|
|
@@ -147,7 +147,7 @@ export type RoleOrderByWithRelationInput = {
|
|
|
147
147
|
description?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
148
148
|
createdAt?: Prisma.SortOrder;
|
|
149
149
|
updatedAt?: Prisma.SortOrder;
|
|
150
|
-
|
|
150
|
+
userRoles?: Prisma.UserRoleOrderByRelationAggregateInput;
|
|
151
151
|
permissions?: Prisma.RolePermissionOrderByRelationAggregateInput;
|
|
152
152
|
_relevance?: Prisma.RoleOrderByRelevanceInput;
|
|
153
153
|
};
|
|
@@ -160,7 +160,7 @@ export type RoleWhereUniqueInput = Prisma.AtLeast<{
|
|
|
160
160
|
description?: Prisma.StringNullableFilter<"Role"> | string | null;
|
|
161
161
|
createdAt?: Prisma.DateTimeFilter<"Role"> | Date | string;
|
|
162
162
|
updatedAt?: Prisma.DateTimeFilter<"Role"> | Date | string;
|
|
163
|
-
|
|
163
|
+
userRoles?: Prisma.UserRoleListRelationFilter;
|
|
164
164
|
permissions?: Prisma.RolePermissionListRelationFilter;
|
|
165
165
|
}, "id" | "name">;
|
|
166
166
|
export type RoleOrderByWithAggregationInput = {
|
|
@@ -189,7 +189,7 @@ export type RoleCreateInput = {
|
|
|
189
189
|
description?: string | null;
|
|
190
190
|
createdAt?: Date | string;
|
|
191
191
|
updatedAt?: Date | string;
|
|
192
|
-
|
|
192
|
+
userRoles?: Prisma.UserRoleCreateNestedManyWithoutRoleInput;
|
|
193
193
|
permissions?: Prisma.RolePermissionCreateNestedManyWithoutRoleInput;
|
|
194
194
|
};
|
|
195
195
|
export type RoleUncheckedCreateInput = {
|
|
@@ -198,7 +198,7 @@ export type RoleUncheckedCreateInput = {
|
|
|
198
198
|
description?: string | null;
|
|
199
199
|
createdAt?: Date | string;
|
|
200
200
|
updatedAt?: Date | string;
|
|
201
|
-
|
|
201
|
+
userRoles?: Prisma.UserRoleUncheckedCreateNestedManyWithoutRoleInput;
|
|
202
202
|
permissions?: Prisma.RolePermissionUncheckedCreateNestedManyWithoutRoleInput;
|
|
203
203
|
};
|
|
204
204
|
export type RoleUpdateInput = {
|
|
@@ -207,7 +207,7 @@ export type RoleUpdateInput = {
|
|
|
207
207
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
208
208
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
209
209
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
210
|
-
|
|
210
|
+
userRoles?: Prisma.UserRoleUpdateManyWithoutRoleNestedInput;
|
|
211
211
|
permissions?: Prisma.RolePermissionUpdateManyWithoutRoleNestedInput;
|
|
212
212
|
};
|
|
213
213
|
export type RoleUncheckedUpdateInput = {
|
|
@@ -216,7 +216,7 @@ export type RoleUncheckedUpdateInput = {
|
|
|
216
216
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
217
217
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
218
218
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
219
|
-
|
|
219
|
+
userRoles?: Prisma.UserRoleUncheckedUpdateManyWithoutRoleNestedInput;
|
|
220
220
|
permissions?: Prisma.RolePermissionUncheckedUpdateManyWithoutRoleNestedInput;
|
|
221
221
|
};
|
|
222
222
|
export type RoleCreateManyInput = {
|
|
@@ -240,10 +240,6 @@ export type RoleUncheckedUpdateManyInput = {
|
|
|
240
240
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
241
241
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
242
242
|
};
|
|
243
|
-
export type RoleNullableScalarRelationFilter = {
|
|
244
|
-
is?: Prisma.RoleWhereInput | null;
|
|
245
|
-
isNot?: Prisma.RoleWhereInput | null;
|
|
246
|
-
};
|
|
247
243
|
export type RoleOrderByRelevanceInput = {
|
|
248
244
|
fields: Prisma.RoleOrderByRelevanceFieldEnum | Prisma.RoleOrderByRelevanceFieldEnum[];
|
|
249
245
|
sort: Prisma.SortOrder;
|
|
@@ -274,20 +270,6 @@ export type RoleScalarRelationFilter = {
|
|
|
274
270
|
is?: Prisma.RoleWhereInput;
|
|
275
271
|
isNot?: Prisma.RoleWhereInput;
|
|
276
272
|
};
|
|
277
|
-
export type RoleCreateNestedOneWithoutUsersInput = {
|
|
278
|
-
create?: Prisma.XOR<Prisma.RoleCreateWithoutUsersInput, Prisma.RoleUncheckedCreateWithoutUsersInput>;
|
|
279
|
-
connectOrCreate?: Prisma.RoleCreateOrConnectWithoutUsersInput;
|
|
280
|
-
connect?: Prisma.RoleWhereUniqueInput;
|
|
281
|
-
};
|
|
282
|
-
export type RoleUpdateOneWithoutUsersNestedInput = {
|
|
283
|
-
create?: Prisma.XOR<Prisma.RoleCreateWithoutUsersInput, Prisma.RoleUncheckedCreateWithoutUsersInput>;
|
|
284
|
-
connectOrCreate?: Prisma.RoleCreateOrConnectWithoutUsersInput;
|
|
285
|
-
upsert?: Prisma.RoleUpsertWithoutUsersInput;
|
|
286
|
-
disconnect?: Prisma.RoleWhereInput | boolean;
|
|
287
|
-
delete?: Prisma.RoleWhereInput | boolean;
|
|
288
|
-
connect?: Prisma.RoleWhereUniqueInput;
|
|
289
|
-
update?: Prisma.XOR<Prisma.XOR<Prisma.RoleUpdateToOneWithWhereWithoutUsersInput, Prisma.RoleUpdateWithoutUsersInput>, Prisma.RoleUncheckedUpdateWithoutUsersInput>;
|
|
290
|
-
};
|
|
291
273
|
export type RoleCreateNestedOneWithoutPermissionsInput = {
|
|
292
274
|
create?: Prisma.XOR<Prisma.RoleCreateWithoutPermissionsInput, Prisma.RoleUncheckedCreateWithoutPermissionsInput>;
|
|
293
275
|
connectOrCreate?: Prisma.RoleCreateOrConnectWithoutPermissionsInput;
|
|
@@ -300,105 +282,117 @@ export type RoleUpdateOneRequiredWithoutPermissionsNestedInput = {
|
|
|
300
282
|
connect?: Prisma.RoleWhereUniqueInput;
|
|
301
283
|
update?: Prisma.XOR<Prisma.XOR<Prisma.RoleUpdateToOneWithWhereWithoutPermissionsInput, Prisma.RoleUpdateWithoutPermissionsInput>, Prisma.RoleUncheckedUpdateWithoutPermissionsInput>;
|
|
302
284
|
};
|
|
303
|
-
export type
|
|
285
|
+
export type RoleCreateNestedOneWithoutUserRolesInput = {
|
|
286
|
+
create?: Prisma.XOR<Prisma.RoleCreateWithoutUserRolesInput, Prisma.RoleUncheckedCreateWithoutUserRolesInput>;
|
|
287
|
+
connectOrCreate?: Prisma.RoleCreateOrConnectWithoutUserRolesInput;
|
|
288
|
+
connect?: Prisma.RoleWhereUniqueInput;
|
|
289
|
+
};
|
|
290
|
+
export type RoleUpdateOneRequiredWithoutUserRolesNestedInput = {
|
|
291
|
+
create?: Prisma.XOR<Prisma.RoleCreateWithoutUserRolesInput, Prisma.RoleUncheckedCreateWithoutUserRolesInput>;
|
|
292
|
+
connectOrCreate?: Prisma.RoleCreateOrConnectWithoutUserRolesInput;
|
|
293
|
+
upsert?: Prisma.RoleUpsertWithoutUserRolesInput;
|
|
294
|
+
connect?: Prisma.RoleWhereUniqueInput;
|
|
295
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.RoleUpdateToOneWithWhereWithoutUserRolesInput, Prisma.RoleUpdateWithoutUserRolesInput>, Prisma.RoleUncheckedUpdateWithoutUserRolesInput>;
|
|
296
|
+
};
|
|
297
|
+
export type RoleCreateWithoutPermissionsInput = {
|
|
304
298
|
id?: string;
|
|
305
299
|
name: string;
|
|
306
300
|
description?: string | null;
|
|
307
301
|
createdAt?: Date | string;
|
|
308
302
|
updatedAt?: Date | string;
|
|
309
|
-
|
|
303
|
+
userRoles?: Prisma.UserRoleCreateNestedManyWithoutRoleInput;
|
|
310
304
|
};
|
|
311
|
-
export type
|
|
305
|
+
export type RoleUncheckedCreateWithoutPermissionsInput = {
|
|
312
306
|
id?: string;
|
|
313
307
|
name: string;
|
|
314
308
|
description?: string | null;
|
|
315
309
|
createdAt?: Date | string;
|
|
316
310
|
updatedAt?: Date | string;
|
|
317
|
-
|
|
311
|
+
userRoles?: Prisma.UserRoleUncheckedCreateNestedManyWithoutRoleInput;
|
|
318
312
|
};
|
|
319
|
-
export type
|
|
313
|
+
export type RoleCreateOrConnectWithoutPermissionsInput = {
|
|
320
314
|
where: Prisma.RoleWhereUniqueInput;
|
|
321
|
-
create: Prisma.XOR<Prisma.
|
|
315
|
+
create: Prisma.XOR<Prisma.RoleCreateWithoutPermissionsInput, Prisma.RoleUncheckedCreateWithoutPermissionsInput>;
|
|
322
316
|
};
|
|
323
|
-
export type
|
|
324
|
-
update: Prisma.XOR<Prisma.
|
|
325
|
-
create: Prisma.XOR<Prisma.
|
|
317
|
+
export type RoleUpsertWithoutPermissionsInput = {
|
|
318
|
+
update: Prisma.XOR<Prisma.RoleUpdateWithoutPermissionsInput, Prisma.RoleUncheckedUpdateWithoutPermissionsInput>;
|
|
319
|
+
create: Prisma.XOR<Prisma.RoleCreateWithoutPermissionsInput, Prisma.RoleUncheckedCreateWithoutPermissionsInput>;
|
|
326
320
|
where?: Prisma.RoleWhereInput;
|
|
327
321
|
};
|
|
328
|
-
export type
|
|
322
|
+
export type RoleUpdateToOneWithWhereWithoutPermissionsInput = {
|
|
329
323
|
where?: Prisma.RoleWhereInput;
|
|
330
|
-
data: Prisma.XOR<Prisma.
|
|
324
|
+
data: Prisma.XOR<Prisma.RoleUpdateWithoutPermissionsInput, Prisma.RoleUncheckedUpdateWithoutPermissionsInput>;
|
|
331
325
|
};
|
|
332
|
-
export type
|
|
326
|
+
export type RoleUpdateWithoutPermissionsInput = {
|
|
333
327
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
334
328
|
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
335
329
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
336
330
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
337
331
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
338
|
-
|
|
332
|
+
userRoles?: Prisma.UserRoleUpdateManyWithoutRoleNestedInput;
|
|
339
333
|
};
|
|
340
|
-
export type
|
|
334
|
+
export type RoleUncheckedUpdateWithoutPermissionsInput = {
|
|
341
335
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
342
336
|
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
343
337
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
344
338
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
345
339
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
346
|
-
|
|
340
|
+
userRoles?: Prisma.UserRoleUncheckedUpdateManyWithoutRoleNestedInput;
|
|
347
341
|
};
|
|
348
|
-
export type
|
|
342
|
+
export type RoleCreateWithoutUserRolesInput = {
|
|
349
343
|
id?: string;
|
|
350
344
|
name: string;
|
|
351
345
|
description?: string | null;
|
|
352
346
|
createdAt?: Date | string;
|
|
353
347
|
updatedAt?: Date | string;
|
|
354
|
-
|
|
348
|
+
permissions?: Prisma.RolePermissionCreateNestedManyWithoutRoleInput;
|
|
355
349
|
};
|
|
356
|
-
export type
|
|
350
|
+
export type RoleUncheckedCreateWithoutUserRolesInput = {
|
|
357
351
|
id?: string;
|
|
358
352
|
name: string;
|
|
359
353
|
description?: string | null;
|
|
360
354
|
createdAt?: Date | string;
|
|
361
355
|
updatedAt?: Date | string;
|
|
362
|
-
|
|
356
|
+
permissions?: Prisma.RolePermissionUncheckedCreateNestedManyWithoutRoleInput;
|
|
363
357
|
};
|
|
364
|
-
export type
|
|
358
|
+
export type RoleCreateOrConnectWithoutUserRolesInput = {
|
|
365
359
|
where: Prisma.RoleWhereUniqueInput;
|
|
366
|
-
create: Prisma.XOR<Prisma.
|
|
360
|
+
create: Prisma.XOR<Prisma.RoleCreateWithoutUserRolesInput, Prisma.RoleUncheckedCreateWithoutUserRolesInput>;
|
|
367
361
|
};
|
|
368
|
-
export type
|
|
369
|
-
update: Prisma.XOR<Prisma.
|
|
370
|
-
create: Prisma.XOR<Prisma.
|
|
362
|
+
export type RoleUpsertWithoutUserRolesInput = {
|
|
363
|
+
update: Prisma.XOR<Prisma.RoleUpdateWithoutUserRolesInput, Prisma.RoleUncheckedUpdateWithoutUserRolesInput>;
|
|
364
|
+
create: Prisma.XOR<Prisma.RoleCreateWithoutUserRolesInput, Prisma.RoleUncheckedCreateWithoutUserRolesInput>;
|
|
371
365
|
where?: Prisma.RoleWhereInput;
|
|
372
366
|
};
|
|
373
|
-
export type
|
|
367
|
+
export type RoleUpdateToOneWithWhereWithoutUserRolesInput = {
|
|
374
368
|
where?: Prisma.RoleWhereInput;
|
|
375
|
-
data: Prisma.XOR<Prisma.
|
|
369
|
+
data: Prisma.XOR<Prisma.RoleUpdateWithoutUserRolesInput, Prisma.RoleUncheckedUpdateWithoutUserRolesInput>;
|
|
376
370
|
};
|
|
377
|
-
export type
|
|
371
|
+
export type RoleUpdateWithoutUserRolesInput = {
|
|
378
372
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
379
373
|
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
380
374
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
381
375
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
382
376
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
383
|
-
|
|
377
|
+
permissions?: Prisma.RolePermissionUpdateManyWithoutRoleNestedInput;
|
|
384
378
|
};
|
|
385
|
-
export type
|
|
379
|
+
export type RoleUncheckedUpdateWithoutUserRolesInput = {
|
|
386
380
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
387
381
|
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
388
382
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
389
383
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
390
384
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
391
|
-
|
|
385
|
+
permissions?: Prisma.RolePermissionUncheckedUpdateManyWithoutRoleNestedInput;
|
|
392
386
|
};
|
|
393
387
|
/**
|
|
394
388
|
* Count Type RoleCountOutputType
|
|
395
389
|
*/
|
|
396
390
|
export type RoleCountOutputType = {
|
|
397
|
-
|
|
391
|
+
userRoles: number;
|
|
398
392
|
permissions: number;
|
|
399
393
|
};
|
|
400
394
|
export type RoleCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
401
|
-
|
|
395
|
+
userRoles?: boolean | RoleCountOutputTypeCountUserRolesArgs;
|
|
402
396
|
permissions?: boolean | RoleCountOutputTypeCountPermissionsArgs;
|
|
403
397
|
};
|
|
404
398
|
/**
|
|
@@ -413,8 +407,8 @@ export type RoleCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensi
|
|
|
413
407
|
/**
|
|
414
408
|
* RoleCountOutputType without action
|
|
415
409
|
*/
|
|
416
|
-
export type
|
|
417
|
-
where?: Prisma.
|
|
410
|
+
export type RoleCountOutputTypeCountUserRolesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
411
|
+
where?: Prisma.UserRoleWhereInput;
|
|
418
412
|
};
|
|
419
413
|
/**
|
|
420
414
|
* RoleCountOutputType without action
|
|
@@ -428,7 +422,7 @@ export type RoleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
|
|
|
428
422
|
description?: boolean;
|
|
429
423
|
createdAt?: boolean;
|
|
430
424
|
updatedAt?: boolean;
|
|
431
|
-
|
|
425
|
+
userRoles?: boolean | Prisma.Role$userRolesArgs<ExtArgs>;
|
|
432
426
|
permissions?: boolean | Prisma.Role$permissionsArgs<ExtArgs>;
|
|
433
427
|
_count?: boolean | Prisma.RoleCountOutputTypeDefaultArgs<ExtArgs>;
|
|
434
428
|
}, ExtArgs["result"]["role"]>;
|
|
@@ -441,14 +435,14 @@ export type RoleSelectScalar = {
|
|
|
441
435
|
};
|
|
442
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"]>;
|
|
443
437
|
export type RoleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
444
|
-
|
|
438
|
+
userRoles?: boolean | Prisma.Role$userRolesArgs<ExtArgs>;
|
|
445
439
|
permissions?: boolean | Prisma.Role$permissionsArgs<ExtArgs>;
|
|
446
440
|
_count?: boolean | Prisma.RoleCountOutputTypeDefaultArgs<ExtArgs>;
|
|
447
441
|
};
|
|
448
442
|
export type $RolePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
449
443
|
name: "Role";
|
|
450
444
|
objects: {
|
|
451
|
-
|
|
445
|
+
userRoles: Prisma.$UserRolePayload<ExtArgs>[];
|
|
452
446
|
permissions: Prisma.$RolePermissionPayload<ExtArgs>[];
|
|
453
447
|
};
|
|
454
448
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
@@ -734,7 +728,7 @@ export interface RoleDelegate<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
734
728
|
*/
|
|
735
729
|
export interface Prisma__RoleClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
736
730
|
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
737
|
-
|
|
731
|
+
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>;
|
|
738
732
|
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>;
|
|
739
733
|
/**
|
|
740
734
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
@@ -1094,27 +1088,27 @@ export type RoleDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
|
|
1094
1088
|
limit?: number;
|
|
1095
1089
|
};
|
|
1096
1090
|
/**
|
|
1097
|
-
* Role.
|
|
1091
|
+
* Role.userRoles
|
|
1098
1092
|
*/
|
|
1099
|
-
export type Role$
|
|
1093
|
+
export type Role$userRolesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1100
1094
|
/**
|
|
1101
|
-
* Select specific fields to fetch from the
|
|
1095
|
+
* Select specific fields to fetch from the UserRole
|
|
1102
1096
|
*/
|
|
1103
|
-
select?: Prisma.
|
|
1097
|
+
select?: Prisma.UserRoleSelect<ExtArgs> | null;
|
|
1104
1098
|
/**
|
|
1105
|
-
* Omit specific fields from the
|
|
1099
|
+
* Omit specific fields from the UserRole
|
|
1106
1100
|
*/
|
|
1107
|
-
omit?: Prisma.
|
|
1101
|
+
omit?: Prisma.UserRoleOmit<ExtArgs> | null;
|
|
1108
1102
|
/**
|
|
1109
1103
|
* Choose, which related nodes to fetch as well
|
|
1110
1104
|
*/
|
|
1111
|
-
include?: Prisma.
|
|
1112
|
-
where?: Prisma.
|
|
1113
|
-
orderBy?: Prisma.
|
|
1114
|
-
cursor?: Prisma.
|
|
1105
|
+
include?: Prisma.UserRoleInclude<ExtArgs> | null;
|
|
1106
|
+
where?: Prisma.UserRoleWhereInput;
|
|
1107
|
+
orderBy?: Prisma.UserRoleOrderByWithRelationInput | Prisma.UserRoleOrderByWithRelationInput[];
|
|
1108
|
+
cursor?: Prisma.UserRoleWhereUniqueInput;
|
|
1115
1109
|
take?: number;
|
|
1116
1110
|
skip?: number;
|
|
1117
|
-
distinct?: Prisma.
|
|
1111
|
+
distinct?: Prisma.UserRoleScalarFieldEnum | Prisma.UserRoleScalarFieldEnum[];
|
|
1118
1112
|
};
|
|
1119
1113
|
/**
|
|
1120
1114
|
* Role.permissions
|