@valentine-efagene/qshelter-common 2.0.52 → 2.0.54
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/enums.d.ts +2 -0
- package/dist/generated/client/enums.js +3 -1
- package/dist/generated/client/internal/class.js +2 -2
- package/dist/generated/client/internal/prismaNamespace.d.ts +12 -0
- package/dist/generated/client/internal/prismaNamespace.js +12 -0
- package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +12 -0
- package/dist/generated/client/internal/prismaNamespaceBrowser.js +12 -0
- package/dist/generated/client/models/Contract.d.ts +484 -1
- package/dist/generated/client/models/DocumentationStep.d.ts +242 -1
- package/dist/src/middleware/tenant.js +3 -3
- package/package.json +1 -1
- package/prisma/migrations/20260105004059_add_superseded_phase_status/migration.sql +2 -0
- package/prisma/migrations/20260105074701_add_underwriting_step_types/migration.sql +17 -0
- package/prisma/schema.prisma +18 -0
- package/dist/generated/client/models/ContractPhaseStep.d.ts +0 -1819
- package/dist/generated/client/models/ContractPhaseStep.js +0 -1
- package/dist/generated/client/models/ContractPhaseStepApproval.d.ts +0 -1253
- package/dist/generated/client/models/ContractPhaseStepApproval.js +0 -1
- package/dist/generated/client/models/ContractPhaseStepDocument.d.ts +0 -1052
- package/dist/generated/client/models/ContractPhaseStepDocument.js +0 -1
- package/dist/generated/client/models/Mortgage.d.ts +0 -2777
- package/dist/generated/client/models/Mortgage.js +0 -1
- package/dist/generated/client/models/MortgageDocument.d.ts +0 -1118
- package/dist/generated/client/models/MortgageDocument.js +0 -1
- package/dist/generated/client/models/MortgageDownpaymentInstallment.d.ts +0 -1189
- package/dist/generated/client/models/MortgageDownpaymentInstallment.js +0 -1
- package/dist/generated/client/models/MortgageDownpaymentPayment.d.ts +0 -1189
- package/dist/generated/client/models/MortgageDownpaymentPayment.js +0 -1
- package/dist/generated/client/models/MortgageDownpaymentPlan.d.ts +0 -1428
- package/dist/generated/client/models/MortgageDownpaymentPlan.js +0 -1
- package/dist/generated/client/models/MortgageStep.d.ts +0 -1222
- package/dist/generated/client/models/MortgageStep.js +0 -1
- package/dist/generated/client/models/MortgageTransition.d.ts +0 -1118
- package/dist/generated/client/models/MortgageTransition.js +0 -1
- package/dist/generated/client/models/MortgageTransitionEvent.d.ts +0 -1052
- package/dist/generated/client/models/MortgageTransitionEvent.js +0 -1
- package/dist/generated/client/models/MortgageType.d.ts +0 -1052
- package/dist/generated/client/models/MortgageType.js +0 -1
- package/dist/generated/client/models/Payment.d.ts +0 -2026
- package/dist/generated/client/models/Payment.js +0 -1
- package/dist/generated/client/models/PaymentInstallment.d.ts +0 -1539
- package/dist/generated/client/models/PaymentInstallment.js +0 -1
- package/dist/generated/client/models/PaymentSchedule.d.ts +0 -1450
- package/dist/generated/client/models/PaymentSchedule.js +0 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -6
- package/dist/src/generated/client/client.d.ts +0 -201
- package/dist/src/generated/client/client.js +0 -32
- package/dist/src/generated/client/commonInputTypes.d.ts +0 -403
- package/dist/src/generated/client/commonInputTypes.js +0 -10
- package/dist/src/generated/client/enums.d.ts +0 -1
- package/dist/src/generated/client/enums.js +0 -10
- package/dist/src/generated/client/internal/class.d.ts +0 -511
- package/dist/src/generated/client/internal/class.js +0 -40
- package/dist/src/generated/client/internal/prismaNamespace.d.ts +0 -3571
- package/dist/src/generated/client/internal/prismaNamespace.js +0 -739
- package/dist/src/generated/client/models/Amenity.d.ts +0 -1020
- package/dist/src/generated/client/models/Amenity.js +0 -1
- package/dist/src/generated/client/models/Contract.d.ts +0 -2099
- package/dist/src/generated/client/models/Contract.js +0 -1
- package/dist/src/generated/client/models/ContractDocument.d.ts +0 -1118
- package/dist/src/generated/client/models/ContractDocument.js +0 -1
- package/dist/src/generated/client/models/DeviceEndpoint.d.ts +0 -1118
- package/dist/src/generated/client/models/DeviceEndpoint.js +0 -1
- package/dist/src/generated/client/models/EmailPreference.d.ts +0 -1151
- package/dist/src/generated/client/models/EmailPreference.js +0 -1
- package/dist/src/generated/client/models/Mortgage.d.ts +0 -2777
- package/dist/src/generated/client/models/Mortgage.js +0 -1
- package/dist/src/generated/client/models/MortgageDocument.d.ts +0 -1118
- package/dist/src/generated/client/models/MortgageDocument.js +0 -1
- package/dist/src/generated/client/models/MortgageDownpaymentInstallment.d.ts +0 -1189
- package/dist/src/generated/client/models/MortgageDownpaymentInstallment.js +0 -1
- package/dist/src/generated/client/models/MortgageDownpaymentPayment.d.ts +0 -1189
- package/dist/src/generated/client/models/MortgageDownpaymentPayment.js +0 -1
- package/dist/src/generated/client/models/MortgageDownpaymentPlan.d.ts +0 -1428
- package/dist/src/generated/client/models/MortgageDownpaymentPlan.js +0 -1
- package/dist/src/generated/client/models/MortgageStep.d.ts +0 -1222
- package/dist/src/generated/client/models/MortgageStep.js +0 -1
- package/dist/src/generated/client/models/MortgageTransition.d.ts +0 -1118
- package/dist/src/generated/client/models/MortgageTransition.js +0 -1
- package/dist/src/generated/client/models/MortgageTransitionEvent.d.ts +0 -1052
- package/dist/src/generated/client/models/MortgageTransitionEvent.js +0 -1
- package/dist/src/generated/client/models/MortgageType.d.ts +0 -1052
- package/dist/src/generated/client/models/MortgageType.js +0 -1
- package/dist/src/generated/client/models/OAuthState.d.ts +0 -864
- package/dist/src/generated/client/models/OAuthState.js +0 -1
- package/dist/src/generated/client/models/PasswordReset.d.ts +0 -1085
- package/dist/src/generated/client/models/PasswordReset.js +0 -1
- package/dist/src/generated/client/models/Payment.d.ts +0 -2026
- package/dist/src/generated/client/models/Payment.js +0 -1
- package/dist/src/generated/client/models/PaymentInstallment.d.ts +0 -1539
- package/dist/src/generated/client/models/PaymentInstallment.js +0 -1
- package/dist/src/generated/client/models/PaymentPlan.d.ts +0 -2148
- package/dist/src/generated/client/models/PaymentPlan.js +0 -1
- package/dist/src/generated/client/models/PaymentSchedule.d.ts +0 -1450
- package/dist/src/generated/client/models/PaymentSchedule.js +0 -1
- package/dist/src/generated/client/models/Permission.d.ts +0 -1115
- package/dist/src/generated/client/models/Permission.js +0 -1
- package/dist/src/generated/client/models/Property.d.ts +0 -3254
- package/dist/src/generated/client/models/Property.js +0 -1
- package/dist/src/generated/client/models/PropertyAmenity.d.ts +0 -1080
- package/dist/src/generated/client/models/PropertyAmenity.js +0 -1
- package/dist/src/generated/client/models/PropertyDocument.d.ts +0 -1118
- package/dist/src/generated/client/models/PropertyDocument.js +0 -1
- package/dist/src/generated/client/models/PropertyMedia.d.ts +0 -1331
- package/dist/src/generated/client/models/PropertyMedia.js +0 -1
- package/dist/src/generated/client/models/RefreshToken.d.ts +0 -1085
- package/dist/src/generated/client/models/RefreshToken.js +0 -1
- package/dist/src/generated/client/models/Role.d.ts +0 -1153
- package/dist/src/generated/client/models/Role.js +0 -1
- package/dist/src/generated/client/models/RolePermission.d.ts +0 -1080
- package/dist/src/generated/client/models/RolePermission.js +0 -1
- package/dist/src/generated/client/models/Settings.d.ts +0 -916
- package/dist/src/generated/client/models/Settings.js +0 -1
- package/dist/src/generated/client/models/Social.d.ts +0 -1090
- package/dist/src/generated/client/models/Social.js +0 -1
- package/dist/src/generated/client/models/Tenant.d.ts +0 -1082
- package/dist/src/generated/client/models/Tenant.js +0 -1
- package/dist/src/generated/client/models/Transaction.d.ts +0 -1222
- package/dist/src/generated/client/models/Transaction.js +0 -1
- package/dist/src/generated/client/models/User.d.ts +0 -4239
- package/dist/src/generated/client/models/User.js +0 -1
- package/dist/src/generated/client/models/UserRole.d.ts +0 -1080
- package/dist/src/generated/client/models/UserRole.js +0 -1
- package/dist/src/generated/client/models/UserSuspension.d.ts +0 -1085
- package/dist/src/generated/client/models/UserSuspension.js +0 -1
- package/dist/src/generated/client/models/Wallet.d.ts +0 -1191
- package/dist/src/generated/client/models/Wallet.js +0 -1
- package/dist/src/generated/client/models.d.ts +0 -37
- package/dist/src/generated/client/models.js +0 -1
|
@@ -1,1080 +0,0 @@
|
|
|
1
|
-
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
-
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
-
/**
|
|
4
|
-
* Model UserRole
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
export type UserRoleModel = runtime.Types.Result.DefaultSelection<Prisma.$UserRolePayload>;
|
|
8
|
-
export type AggregateUserRole = {
|
|
9
|
-
_count: UserRoleCountAggregateOutputType | null;
|
|
10
|
-
_min: UserRoleMinAggregateOutputType | null;
|
|
11
|
-
_max: UserRoleMaxAggregateOutputType | null;
|
|
12
|
-
};
|
|
13
|
-
export type UserRoleMinAggregateOutputType = {
|
|
14
|
-
userId: string | null;
|
|
15
|
-
roleId: string | null;
|
|
16
|
-
createdAt: Date | null;
|
|
17
|
-
};
|
|
18
|
-
export type UserRoleMaxAggregateOutputType = {
|
|
19
|
-
userId: string | null;
|
|
20
|
-
roleId: string | null;
|
|
21
|
-
createdAt: Date | null;
|
|
22
|
-
};
|
|
23
|
-
export type UserRoleCountAggregateOutputType = {
|
|
24
|
-
userId: number;
|
|
25
|
-
roleId: number;
|
|
26
|
-
createdAt: number;
|
|
27
|
-
_all: number;
|
|
28
|
-
};
|
|
29
|
-
export type UserRoleMinAggregateInputType = {
|
|
30
|
-
userId?: true;
|
|
31
|
-
roleId?: true;
|
|
32
|
-
createdAt?: true;
|
|
33
|
-
};
|
|
34
|
-
export type UserRoleMaxAggregateInputType = {
|
|
35
|
-
userId?: true;
|
|
36
|
-
roleId?: true;
|
|
37
|
-
createdAt?: true;
|
|
38
|
-
};
|
|
39
|
-
export type UserRoleCountAggregateInputType = {
|
|
40
|
-
userId?: true;
|
|
41
|
-
roleId?: true;
|
|
42
|
-
createdAt?: true;
|
|
43
|
-
_all?: true;
|
|
44
|
-
};
|
|
45
|
-
export type UserRoleAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
46
|
-
/**
|
|
47
|
-
* Filter which UserRole to aggregate.
|
|
48
|
-
*/
|
|
49
|
-
where?: Prisma.UserRoleWhereInput;
|
|
50
|
-
/**
|
|
51
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
52
|
-
*
|
|
53
|
-
* Determine the order of UserRoles to fetch.
|
|
54
|
-
*/
|
|
55
|
-
orderBy?: Prisma.UserRoleOrderByWithRelationInput | Prisma.UserRoleOrderByWithRelationInput[];
|
|
56
|
-
/**
|
|
57
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
58
|
-
*
|
|
59
|
-
* Sets the start position
|
|
60
|
-
*/
|
|
61
|
-
cursor?: Prisma.UserRoleWhereUniqueInput;
|
|
62
|
-
/**
|
|
63
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
64
|
-
*
|
|
65
|
-
* Take `±n` UserRoles from the position of the cursor.
|
|
66
|
-
*/
|
|
67
|
-
take?: number;
|
|
68
|
-
/**
|
|
69
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
70
|
-
*
|
|
71
|
-
* Skip the first `n` UserRoles.
|
|
72
|
-
*/
|
|
73
|
-
skip?: number;
|
|
74
|
-
/**
|
|
75
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
76
|
-
*
|
|
77
|
-
* Count returned UserRoles
|
|
78
|
-
**/
|
|
79
|
-
_count?: true | UserRoleCountAggregateInputType;
|
|
80
|
-
/**
|
|
81
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
82
|
-
*
|
|
83
|
-
* Select which fields to find the minimum value
|
|
84
|
-
**/
|
|
85
|
-
_min?: UserRoleMinAggregateInputType;
|
|
86
|
-
/**
|
|
87
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
88
|
-
*
|
|
89
|
-
* Select which fields to find the maximum value
|
|
90
|
-
**/
|
|
91
|
-
_max?: UserRoleMaxAggregateInputType;
|
|
92
|
-
};
|
|
93
|
-
export type GetUserRoleAggregateType<T extends UserRoleAggregateArgs> = {
|
|
94
|
-
[P in keyof T & keyof AggregateUserRole]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateUserRole[P]> : Prisma.GetScalarType<T[P], AggregateUserRole[P]>;
|
|
95
|
-
};
|
|
96
|
-
export type UserRoleGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
97
|
-
where?: Prisma.UserRoleWhereInput;
|
|
98
|
-
orderBy?: Prisma.UserRoleOrderByWithAggregationInput | Prisma.UserRoleOrderByWithAggregationInput[];
|
|
99
|
-
by: Prisma.UserRoleScalarFieldEnum[] | Prisma.UserRoleScalarFieldEnum;
|
|
100
|
-
having?: Prisma.UserRoleScalarWhereWithAggregatesInput;
|
|
101
|
-
take?: number;
|
|
102
|
-
skip?: number;
|
|
103
|
-
_count?: UserRoleCountAggregateInputType | true;
|
|
104
|
-
_min?: UserRoleMinAggregateInputType;
|
|
105
|
-
_max?: UserRoleMaxAggregateInputType;
|
|
106
|
-
};
|
|
107
|
-
export type UserRoleGroupByOutputType = {
|
|
108
|
-
userId: string;
|
|
109
|
-
roleId: string;
|
|
110
|
-
createdAt: Date;
|
|
111
|
-
_count: UserRoleCountAggregateOutputType | null;
|
|
112
|
-
_min: UserRoleMinAggregateOutputType | null;
|
|
113
|
-
_max: UserRoleMaxAggregateOutputType | null;
|
|
114
|
-
};
|
|
115
|
-
type GetUserRoleGroupByPayload<T extends UserRoleGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<UserRoleGroupByOutputType, T['by']> & {
|
|
116
|
-
[P in ((keyof T) & (keyof UserRoleGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], UserRoleGroupByOutputType[P]> : Prisma.GetScalarType<T[P], UserRoleGroupByOutputType[P]>;
|
|
117
|
-
}>>;
|
|
118
|
-
export type UserRoleWhereInput = {
|
|
119
|
-
AND?: Prisma.UserRoleWhereInput | Prisma.UserRoleWhereInput[];
|
|
120
|
-
OR?: Prisma.UserRoleWhereInput[];
|
|
121
|
-
NOT?: Prisma.UserRoleWhereInput | Prisma.UserRoleWhereInput[];
|
|
122
|
-
userId?: Prisma.StringFilter<"UserRole"> | string;
|
|
123
|
-
roleId?: Prisma.StringFilter<"UserRole"> | string;
|
|
124
|
-
createdAt?: Prisma.DateTimeFilter<"UserRole"> | Date | string;
|
|
125
|
-
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
|
|
126
|
-
role?: Prisma.XOR<Prisma.RoleScalarRelationFilter, Prisma.RoleWhereInput>;
|
|
127
|
-
};
|
|
128
|
-
export type UserRoleOrderByWithRelationInput = {
|
|
129
|
-
userId?: Prisma.SortOrder;
|
|
130
|
-
roleId?: Prisma.SortOrder;
|
|
131
|
-
createdAt?: Prisma.SortOrder;
|
|
132
|
-
user?: Prisma.UserOrderByWithRelationInput;
|
|
133
|
-
role?: Prisma.RoleOrderByWithRelationInput;
|
|
134
|
-
_relevance?: Prisma.UserRoleOrderByRelevanceInput;
|
|
135
|
-
};
|
|
136
|
-
export type UserRoleWhereUniqueInput = Prisma.AtLeast<{
|
|
137
|
-
userId_roleId?: Prisma.UserRoleUserIdRoleIdCompoundUniqueInput;
|
|
138
|
-
AND?: Prisma.UserRoleWhereInput | Prisma.UserRoleWhereInput[];
|
|
139
|
-
OR?: Prisma.UserRoleWhereInput[];
|
|
140
|
-
NOT?: Prisma.UserRoleWhereInput | Prisma.UserRoleWhereInput[];
|
|
141
|
-
userId?: Prisma.StringFilter<"UserRole"> | string;
|
|
142
|
-
roleId?: Prisma.StringFilter<"UserRole"> | string;
|
|
143
|
-
createdAt?: Prisma.DateTimeFilter<"UserRole"> | Date | string;
|
|
144
|
-
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
|
|
145
|
-
role?: Prisma.XOR<Prisma.RoleScalarRelationFilter, Prisma.RoleWhereInput>;
|
|
146
|
-
}, "userId_roleId">;
|
|
147
|
-
export type UserRoleOrderByWithAggregationInput = {
|
|
148
|
-
userId?: Prisma.SortOrder;
|
|
149
|
-
roleId?: Prisma.SortOrder;
|
|
150
|
-
createdAt?: Prisma.SortOrder;
|
|
151
|
-
_count?: Prisma.UserRoleCountOrderByAggregateInput;
|
|
152
|
-
_max?: Prisma.UserRoleMaxOrderByAggregateInput;
|
|
153
|
-
_min?: Prisma.UserRoleMinOrderByAggregateInput;
|
|
154
|
-
};
|
|
155
|
-
export type UserRoleScalarWhereWithAggregatesInput = {
|
|
156
|
-
AND?: Prisma.UserRoleScalarWhereWithAggregatesInput | Prisma.UserRoleScalarWhereWithAggregatesInput[];
|
|
157
|
-
OR?: Prisma.UserRoleScalarWhereWithAggregatesInput[];
|
|
158
|
-
NOT?: Prisma.UserRoleScalarWhereWithAggregatesInput | Prisma.UserRoleScalarWhereWithAggregatesInput[];
|
|
159
|
-
userId?: Prisma.StringWithAggregatesFilter<"UserRole"> | string;
|
|
160
|
-
roleId?: Prisma.StringWithAggregatesFilter<"UserRole"> | string;
|
|
161
|
-
createdAt?: Prisma.DateTimeWithAggregatesFilter<"UserRole"> | Date | string;
|
|
162
|
-
};
|
|
163
|
-
export type UserRoleCreateInput = {
|
|
164
|
-
createdAt?: Date | string;
|
|
165
|
-
user: Prisma.UserCreateNestedOneWithoutUserRolesInput;
|
|
166
|
-
role: Prisma.RoleCreateNestedOneWithoutUserRolesInput;
|
|
167
|
-
};
|
|
168
|
-
export type UserRoleUncheckedCreateInput = {
|
|
169
|
-
userId: string;
|
|
170
|
-
roleId: string;
|
|
171
|
-
createdAt?: Date | string;
|
|
172
|
-
};
|
|
173
|
-
export type UserRoleUpdateInput = {
|
|
174
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
175
|
-
user?: Prisma.UserUpdateOneRequiredWithoutUserRolesNestedInput;
|
|
176
|
-
role?: Prisma.RoleUpdateOneRequiredWithoutUserRolesNestedInput;
|
|
177
|
-
};
|
|
178
|
-
export type UserRoleUncheckedUpdateInput = {
|
|
179
|
-
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
180
|
-
roleId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
181
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
182
|
-
};
|
|
183
|
-
export type UserRoleCreateManyInput = {
|
|
184
|
-
userId: string;
|
|
185
|
-
roleId: string;
|
|
186
|
-
createdAt?: Date | string;
|
|
187
|
-
};
|
|
188
|
-
export type UserRoleUpdateManyMutationInput = {
|
|
189
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
190
|
-
};
|
|
191
|
-
export type UserRoleUncheckedUpdateManyInput = {
|
|
192
|
-
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
193
|
-
roleId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
194
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
195
|
-
};
|
|
196
|
-
export type UserRoleListRelationFilter = {
|
|
197
|
-
every?: Prisma.UserRoleWhereInput;
|
|
198
|
-
some?: Prisma.UserRoleWhereInput;
|
|
199
|
-
none?: Prisma.UserRoleWhereInput;
|
|
200
|
-
};
|
|
201
|
-
export type UserRoleOrderByRelationAggregateInput = {
|
|
202
|
-
_count?: Prisma.SortOrder;
|
|
203
|
-
};
|
|
204
|
-
export type UserRoleOrderByRelevanceInput = {
|
|
205
|
-
fields: Prisma.UserRoleOrderByRelevanceFieldEnum | Prisma.UserRoleOrderByRelevanceFieldEnum[];
|
|
206
|
-
sort: Prisma.SortOrder;
|
|
207
|
-
search: string;
|
|
208
|
-
};
|
|
209
|
-
export type UserRoleUserIdRoleIdCompoundUniqueInput = {
|
|
210
|
-
userId: string;
|
|
211
|
-
roleId: string;
|
|
212
|
-
};
|
|
213
|
-
export type UserRoleCountOrderByAggregateInput = {
|
|
214
|
-
userId?: Prisma.SortOrder;
|
|
215
|
-
roleId?: Prisma.SortOrder;
|
|
216
|
-
createdAt?: Prisma.SortOrder;
|
|
217
|
-
};
|
|
218
|
-
export type UserRoleMaxOrderByAggregateInput = {
|
|
219
|
-
userId?: Prisma.SortOrder;
|
|
220
|
-
roleId?: Prisma.SortOrder;
|
|
221
|
-
createdAt?: Prisma.SortOrder;
|
|
222
|
-
};
|
|
223
|
-
export type UserRoleMinOrderByAggregateInput = {
|
|
224
|
-
userId?: Prisma.SortOrder;
|
|
225
|
-
roleId?: Prisma.SortOrder;
|
|
226
|
-
createdAt?: Prisma.SortOrder;
|
|
227
|
-
};
|
|
228
|
-
export type UserRoleCreateNestedManyWithoutUserInput = {
|
|
229
|
-
create?: Prisma.XOR<Prisma.UserRoleCreateWithoutUserInput, Prisma.UserRoleUncheckedCreateWithoutUserInput> | Prisma.UserRoleCreateWithoutUserInput[] | Prisma.UserRoleUncheckedCreateWithoutUserInput[];
|
|
230
|
-
connectOrCreate?: Prisma.UserRoleCreateOrConnectWithoutUserInput | Prisma.UserRoleCreateOrConnectWithoutUserInput[];
|
|
231
|
-
createMany?: Prisma.UserRoleCreateManyUserInputEnvelope;
|
|
232
|
-
connect?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
233
|
-
};
|
|
234
|
-
export type UserRoleUncheckedCreateNestedManyWithoutUserInput = {
|
|
235
|
-
create?: Prisma.XOR<Prisma.UserRoleCreateWithoutUserInput, Prisma.UserRoleUncheckedCreateWithoutUserInput> | Prisma.UserRoleCreateWithoutUserInput[] | Prisma.UserRoleUncheckedCreateWithoutUserInput[];
|
|
236
|
-
connectOrCreate?: Prisma.UserRoleCreateOrConnectWithoutUserInput | Prisma.UserRoleCreateOrConnectWithoutUserInput[];
|
|
237
|
-
createMany?: Prisma.UserRoleCreateManyUserInputEnvelope;
|
|
238
|
-
connect?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
239
|
-
};
|
|
240
|
-
export type UserRoleUpdateManyWithoutUserNestedInput = {
|
|
241
|
-
create?: Prisma.XOR<Prisma.UserRoleCreateWithoutUserInput, Prisma.UserRoleUncheckedCreateWithoutUserInput> | Prisma.UserRoleCreateWithoutUserInput[] | Prisma.UserRoleUncheckedCreateWithoutUserInput[];
|
|
242
|
-
connectOrCreate?: Prisma.UserRoleCreateOrConnectWithoutUserInput | Prisma.UserRoleCreateOrConnectWithoutUserInput[];
|
|
243
|
-
upsert?: Prisma.UserRoleUpsertWithWhereUniqueWithoutUserInput | Prisma.UserRoleUpsertWithWhereUniqueWithoutUserInput[];
|
|
244
|
-
createMany?: Prisma.UserRoleCreateManyUserInputEnvelope;
|
|
245
|
-
set?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
246
|
-
disconnect?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
247
|
-
delete?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
248
|
-
connect?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
249
|
-
update?: Prisma.UserRoleUpdateWithWhereUniqueWithoutUserInput | Prisma.UserRoleUpdateWithWhereUniqueWithoutUserInput[];
|
|
250
|
-
updateMany?: Prisma.UserRoleUpdateManyWithWhereWithoutUserInput | Prisma.UserRoleUpdateManyWithWhereWithoutUserInput[];
|
|
251
|
-
deleteMany?: Prisma.UserRoleScalarWhereInput | Prisma.UserRoleScalarWhereInput[];
|
|
252
|
-
};
|
|
253
|
-
export type UserRoleUncheckedUpdateManyWithoutUserNestedInput = {
|
|
254
|
-
create?: Prisma.XOR<Prisma.UserRoleCreateWithoutUserInput, Prisma.UserRoleUncheckedCreateWithoutUserInput> | Prisma.UserRoleCreateWithoutUserInput[] | Prisma.UserRoleUncheckedCreateWithoutUserInput[];
|
|
255
|
-
connectOrCreate?: Prisma.UserRoleCreateOrConnectWithoutUserInput | Prisma.UserRoleCreateOrConnectWithoutUserInput[];
|
|
256
|
-
upsert?: Prisma.UserRoleUpsertWithWhereUniqueWithoutUserInput | Prisma.UserRoleUpsertWithWhereUniqueWithoutUserInput[];
|
|
257
|
-
createMany?: Prisma.UserRoleCreateManyUserInputEnvelope;
|
|
258
|
-
set?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
259
|
-
disconnect?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
260
|
-
delete?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
261
|
-
connect?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
262
|
-
update?: Prisma.UserRoleUpdateWithWhereUniqueWithoutUserInput | Prisma.UserRoleUpdateWithWhereUniqueWithoutUserInput[];
|
|
263
|
-
updateMany?: Prisma.UserRoleUpdateManyWithWhereWithoutUserInput | Prisma.UserRoleUpdateManyWithWhereWithoutUserInput[];
|
|
264
|
-
deleteMany?: Prisma.UserRoleScalarWhereInput | Prisma.UserRoleScalarWhereInput[];
|
|
265
|
-
};
|
|
266
|
-
export type UserRoleCreateNestedManyWithoutRoleInput = {
|
|
267
|
-
create?: Prisma.XOR<Prisma.UserRoleCreateWithoutRoleInput, Prisma.UserRoleUncheckedCreateWithoutRoleInput> | Prisma.UserRoleCreateWithoutRoleInput[] | Prisma.UserRoleUncheckedCreateWithoutRoleInput[];
|
|
268
|
-
connectOrCreate?: Prisma.UserRoleCreateOrConnectWithoutRoleInput | Prisma.UserRoleCreateOrConnectWithoutRoleInput[];
|
|
269
|
-
createMany?: Prisma.UserRoleCreateManyRoleInputEnvelope;
|
|
270
|
-
connect?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
271
|
-
};
|
|
272
|
-
export type UserRoleUncheckedCreateNestedManyWithoutRoleInput = {
|
|
273
|
-
create?: Prisma.XOR<Prisma.UserRoleCreateWithoutRoleInput, Prisma.UserRoleUncheckedCreateWithoutRoleInput> | Prisma.UserRoleCreateWithoutRoleInput[] | Prisma.UserRoleUncheckedCreateWithoutRoleInput[];
|
|
274
|
-
connectOrCreate?: Prisma.UserRoleCreateOrConnectWithoutRoleInput | Prisma.UserRoleCreateOrConnectWithoutRoleInput[];
|
|
275
|
-
createMany?: Prisma.UserRoleCreateManyRoleInputEnvelope;
|
|
276
|
-
connect?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
277
|
-
};
|
|
278
|
-
export type UserRoleUpdateManyWithoutRoleNestedInput = {
|
|
279
|
-
create?: Prisma.XOR<Prisma.UserRoleCreateWithoutRoleInput, Prisma.UserRoleUncheckedCreateWithoutRoleInput> | Prisma.UserRoleCreateWithoutRoleInput[] | Prisma.UserRoleUncheckedCreateWithoutRoleInput[];
|
|
280
|
-
connectOrCreate?: Prisma.UserRoleCreateOrConnectWithoutRoleInput | Prisma.UserRoleCreateOrConnectWithoutRoleInput[];
|
|
281
|
-
upsert?: Prisma.UserRoleUpsertWithWhereUniqueWithoutRoleInput | Prisma.UserRoleUpsertWithWhereUniqueWithoutRoleInput[];
|
|
282
|
-
createMany?: Prisma.UserRoleCreateManyRoleInputEnvelope;
|
|
283
|
-
set?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
284
|
-
disconnect?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
285
|
-
delete?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
286
|
-
connect?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
287
|
-
update?: Prisma.UserRoleUpdateWithWhereUniqueWithoutRoleInput | Prisma.UserRoleUpdateWithWhereUniqueWithoutRoleInput[];
|
|
288
|
-
updateMany?: Prisma.UserRoleUpdateManyWithWhereWithoutRoleInput | Prisma.UserRoleUpdateManyWithWhereWithoutRoleInput[];
|
|
289
|
-
deleteMany?: Prisma.UserRoleScalarWhereInput | Prisma.UserRoleScalarWhereInput[];
|
|
290
|
-
};
|
|
291
|
-
export type UserRoleUncheckedUpdateManyWithoutRoleNestedInput = {
|
|
292
|
-
create?: Prisma.XOR<Prisma.UserRoleCreateWithoutRoleInput, Prisma.UserRoleUncheckedCreateWithoutRoleInput> | Prisma.UserRoleCreateWithoutRoleInput[] | Prisma.UserRoleUncheckedCreateWithoutRoleInput[];
|
|
293
|
-
connectOrCreate?: Prisma.UserRoleCreateOrConnectWithoutRoleInput | Prisma.UserRoleCreateOrConnectWithoutRoleInput[];
|
|
294
|
-
upsert?: Prisma.UserRoleUpsertWithWhereUniqueWithoutRoleInput | Prisma.UserRoleUpsertWithWhereUniqueWithoutRoleInput[];
|
|
295
|
-
createMany?: Prisma.UserRoleCreateManyRoleInputEnvelope;
|
|
296
|
-
set?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
297
|
-
disconnect?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
298
|
-
delete?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
299
|
-
connect?: Prisma.UserRoleWhereUniqueInput | Prisma.UserRoleWhereUniqueInput[];
|
|
300
|
-
update?: Prisma.UserRoleUpdateWithWhereUniqueWithoutRoleInput | Prisma.UserRoleUpdateWithWhereUniqueWithoutRoleInput[];
|
|
301
|
-
updateMany?: Prisma.UserRoleUpdateManyWithWhereWithoutRoleInput | Prisma.UserRoleUpdateManyWithWhereWithoutRoleInput[];
|
|
302
|
-
deleteMany?: Prisma.UserRoleScalarWhereInput | Prisma.UserRoleScalarWhereInput[];
|
|
303
|
-
};
|
|
304
|
-
export type UserRoleCreateWithoutUserInput = {
|
|
305
|
-
createdAt?: Date | string;
|
|
306
|
-
role: Prisma.RoleCreateNestedOneWithoutUserRolesInput;
|
|
307
|
-
};
|
|
308
|
-
export type UserRoleUncheckedCreateWithoutUserInput = {
|
|
309
|
-
roleId: string;
|
|
310
|
-
createdAt?: Date | string;
|
|
311
|
-
};
|
|
312
|
-
export type UserRoleCreateOrConnectWithoutUserInput = {
|
|
313
|
-
where: Prisma.UserRoleWhereUniqueInput;
|
|
314
|
-
create: Prisma.XOR<Prisma.UserRoleCreateWithoutUserInput, Prisma.UserRoleUncheckedCreateWithoutUserInput>;
|
|
315
|
-
};
|
|
316
|
-
export type UserRoleCreateManyUserInputEnvelope = {
|
|
317
|
-
data: Prisma.UserRoleCreateManyUserInput | Prisma.UserRoleCreateManyUserInput[];
|
|
318
|
-
skipDuplicates?: boolean;
|
|
319
|
-
};
|
|
320
|
-
export type UserRoleUpsertWithWhereUniqueWithoutUserInput = {
|
|
321
|
-
where: Prisma.UserRoleWhereUniqueInput;
|
|
322
|
-
update: Prisma.XOR<Prisma.UserRoleUpdateWithoutUserInput, Prisma.UserRoleUncheckedUpdateWithoutUserInput>;
|
|
323
|
-
create: Prisma.XOR<Prisma.UserRoleCreateWithoutUserInput, Prisma.UserRoleUncheckedCreateWithoutUserInput>;
|
|
324
|
-
};
|
|
325
|
-
export type UserRoleUpdateWithWhereUniqueWithoutUserInput = {
|
|
326
|
-
where: Prisma.UserRoleWhereUniqueInput;
|
|
327
|
-
data: Prisma.XOR<Prisma.UserRoleUpdateWithoutUserInput, Prisma.UserRoleUncheckedUpdateWithoutUserInput>;
|
|
328
|
-
};
|
|
329
|
-
export type UserRoleUpdateManyWithWhereWithoutUserInput = {
|
|
330
|
-
where: Prisma.UserRoleScalarWhereInput;
|
|
331
|
-
data: Prisma.XOR<Prisma.UserRoleUpdateManyMutationInput, Prisma.UserRoleUncheckedUpdateManyWithoutUserInput>;
|
|
332
|
-
};
|
|
333
|
-
export type UserRoleScalarWhereInput = {
|
|
334
|
-
AND?: Prisma.UserRoleScalarWhereInput | Prisma.UserRoleScalarWhereInput[];
|
|
335
|
-
OR?: Prisma.UserRoleScalarWhereInput[];
|
|
336
|
-
NOT?: Prisma.UserRoleScalarWhereInput | Prisma.UserRoleScalarWhereInput[];
|
|
337
|
-
userId?: Prisma.StringFilter<"UserRole"> | string;
|
|
338
|
-
roleId?: Prisma.StringFilter<"UserRole"> | string;
|
|
339
|
-
createdAt?: Prisma.DateTimeFilter<"UserRole"> | Date | string;
|
|
340
|
-
};
|
|
341
|
-
export type UserRoleCreateWithoutRoleInput = {
|
|
342
|
-
createdAt?: Date | string;
|
|
343
|
-
user: Prisma.UserCreateNestedOneWithoutUserRolesInput;
|
|
344
|
-
};
|
|
345
|
-
export type UserRoleUncheckedCreateWithoutRoleInput = {
|
|
346
|
-
userId: string;
|
|
347
|
-
createdAt?: Date | string;
|
|
348
|
-
};
|
|
349
|
-
export type UserRoleCreateOrConnectWithoutRoleInput = {
|
|
350
|
-
where: Prisma.UserRoleWhereUniqueInput;
|
|
351
|
-
create: Prisma.XOR<Prisma.UserRoleCreateWithoutRoleInput, Prisma.UserRoleUncheckedCreateWithoutRoleInput>;
|
|
352
|
-
};
|
|
353
|
-
export type UserRoleCreateManyRoleInputEnvelope = {
|
|
354
|
-
data: Prisma.UserRoleCreateManyRoleInput | Prisma.UserRoleCreateManyRoleInput[];
|
|
355
|
-
skipDuplicates?: boolean;
|
|
356
|
-
};
|
|
357
|
-
export type UserRoleUpsertWithWhereUniqueWithoutRoleInput = {
|
|
358
|
-
where: Prisma.UserRoleWhereUniqueInput;
|
|
359
|
-
update: Prisma.XOR<Prisma.UserRoleUpdateWithoutRoleInput, Prisma.UserRoleUncheckedUpdateWithoutRoleInput>;
|
|
360
|
-
create: Prisma.XOR<Prisma.UserRoleCreateWithoutRoleInput, Prisma.UserRoleUncheckedCreateWithoutRoleInput>;
|
|
361
|
-
};
|
|
362
|
-
export type UserRoleUpdateWithWhereUniqueWithoutRoleInput = {
|
|
363
|
-
where: Prisma.UserRoleWhereUniqueInput;
|
|
364
|
-
data: Prisma.XOR<Prisma.UserRoleUpdateWithoutRoleInput, Prisma.UserRoleUncheckedUpdateWithoutRoleInput>;
|
|
365
|
-
};
|
|
366
|
-
export type UserRoleUpdateManyWithWhereWithoutRoleInput = {
|
|
367
|
-
where: Prisma.UserRoleScalarWhereInput;
|
|
368
|
-
data: Prisma.XOR<Prisma.UserRoleUpdateManyMutationInput, Prisma.UserRoleUncheckedUpdateManyWithoutRoleInput>;
|
|
369
|
-
};
|
|
370
|
-
export type UserRoleCreateManyUserInput = {
|
|
371
|
-
roleId: string;
|
|
372
|
-
createdAt?: Date | string;
|
|
373
|
-
};
|
|
374
|
-
export type UserRoleUpdateWithoutUserInput = {
|
|
375
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
376
|
-
role?: Prisma.RoleUpdateOneRequiredWithoutUserRolesNestedInput;
|
|
377
|
-
};
|
|
378
|
-
export type UserRoleUncheckedUpdateWithoutUserInput = {
|
|
379
|
-
roleId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
380
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
381
|
-
};
|
|
382
|
-
export type UserRoleUncheckedUpdateManyWithoutUserInput = {
|
|
383
|
-
roleId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
384
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
385
|
-
};
|
|
386
|
-
export type UserRoleCreateManyRoleInput = {
|
|
387
|
-
userId: string;
|
|
388
|
-
createdAt?: Date | string;
|
|
389
|
-
};
|
|
390
|
-
export type UserRoleUpdateWithoutRoleInput = {
|
|
391
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
392
|
-
user?: Prisma.UserUpdateOneRequiredWithoutUserRolesNestedInput;
|
|
393
|
-
};
|
|
394
|
-
export type UserRoleUncheckedUpdateWithoutRoleInput = {
|
|
395
|
-
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
396
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
397
|
-
};
|
|
398
|
-
export type UserRoleUncheckedUpdateManyWithoutRoleInput = {
|
|
399
|
-
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
400
|
-
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
401
|
-
};
|
|
402
|
-
export type UserRoleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
403
|
-
userId?: boolean;
|
|
404
|
-
roleId?: boolean;
|
|
405
|
-
createdAt?: boolean;
|
|
406
|
-
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
407
|
-
role?: boolean | Prisma.RoleDefaultArgs<ExtArgs>;
|
|
408
|
-
}, ExtArgs["result"]["userRole"]>;
|
|
409
|
-
export type UserRoleSelectScalar = {
|
|
410
|
-
userId?: boolean;
|
|
411
|
-
roleId?: boolean;
|
|
412
|
-
createdAt?: boolean;
|
|
413
|
-
};
|
|
414
|
-
export type UserRoleOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"userId" | "roleId" | "createdAt", ExtArgs["result"]["userRole"]>;
|
|
415
|
-
export type UserRoleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
416
|
-
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
417
|
-
role?: boolean | Prisma.RoleDefaultArgs<ExtArgs>;
|
|
418
|
-
};
|
|
419
|
-
export type $UserRolePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
420
|
-
name: "UserRole";
|
|
421
|
-
objects: {
|
|
422
|
-
user: Prisma.$UserPayload<ExtArgs>;
|
|
423
|
-
role: Prisma.$RolePayload<ExtArgs>;
|
|
424
|
-
};
|
|
425
|
-
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
426
|
-
userId: string;
|
|
427
|
-
roleId: string;
|
|
428
|
-
createdAt: Date;
|
|
429
|
-
}, ExtArgs["result"]["userRole"]>;
|
|
430
|
-
composites: {};
|
|
431
|
-
};
|
|
432
|
-
export type UserRoleGetPayload<S extends boolean | null | undefined | UserRoleDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UserRolePayload, S>;
|
|
433
|
-
export type UserRoleCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<UserRoleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
434
|
-
select?: UserRoleCountAggregateInputType | true;
|
|
435
|
-
};
|
|
436
|
-
export interface UserRoleDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
437
|
-
[K: symbol]: {
|
|
438
|
-
types: Prisma.TypeMap<ExtArgs>['model']['UserRole'];
|
|
439
|
-
meta: {
|
|
440
|
-
name: 'UserRole';
|
|
441
|
-
};
|
|
442
|
-
};
|
|
443
|
-
/**
|
|
444
|
-
* Find zero or one UserRole that matches the filter.
|
|
445
|
-
* @param {UserRoleFindUniqueArgs} args - Arguments to find a UserRole
|
|
446
|
-
* @example
|
|
447
|
-
* // Get one UserRole
|
|
448
|
-
* const userRole = await prisma.userRole.findUnique({
|
|
449
|
-
* where: {
|
|
450
|
-
* // ... provide filter here
|
|
451
|
-
* }
|
|
452
|
-
* })
|
|
453
|
-
*/
|
|
454
|
-
findUnique<T extends UserRoleFindUniqueArgs>(args: Prisma.SelectSubset<T, UserRoleFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UserRoleClient<runtime.Types.Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
455
|
-
/**
|
|
456
|
-
* Find one UserRole that matches the filter or throw an error with `error.code='P2025'`
|
|
457
|
-
* if no matches were found.
|
|
458
|
-
* @param {UserRoleFindUniqueOrThrowArgs} args - Arguments to find a UserRole
|
|
459
|
-
* @example
|
|
460
|
-
* // Get one UserRole
|
|
461
|
-
* const userRole = await prisma.userRole.findUniqueOrThrow({
|
|
462
|
-
* where: {
|
|
463
|
-
* // ... provide filter here
|
|
464
|
-
* }
|
|
465
|
-
* })
|
|
466
|
-
*/
|
|
467
|
-
findUniqueOrThrow<T extends UserRoleFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UserRoleFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserRoleClient<runtime.Types.Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
468
|
-
/**
|
|
469
|
-
* Find the first UserRole that matches the filter.
|
|
470
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
471
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
472
|
-
* @param {UserRoleFindFirstArgs} args - Arguments to find a UserRole
|
|
473
|
-
* @example
|
|
474
|
-
* // Get one UserRole
|
|
475
|
-
* const userRole = await prisma.userRole.findFirst({
|
|
476
|
-
* where: {
|
|
477
|
-
* // ... provide filter here
|
|
478
|
-
* }
|
|
479
|
-
* })
|
|
480
|
-
*/
|
|
481
|
-
findFirst<T extends UserRoleFindFirstArgs>(args?: Prisma.SelectSubset<T, UserRoleFindFirstArgs<ExtArgs>>): Prisma.Prisma__UserRoleClient<runtime.Types.Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
482
|
-
/**
|
|
483
|
-
* Find the first UserRole that matches the filter or
|
|
484
|
-
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
485
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
486
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
487
|
-
* @param {UserRoleFindFirstOrThrowArgs} args - Arguments to find a UserRole
|
|
488
|
-
* @example
|
|
489
|
-
* // Get one UserRole
|
|
490
|
-
* const userRole = await prisma.userRole.findFirstOrThrow({
|
|
491
|
-
* where: {
|
|
492
|
-
* // ... provide filter here
|
|
493
|
-
* }
|
|
494
|
-
* })
|
|
495
|
-
*/
|
|
496
|
-
findFirstOrThrow<T extends UserRoleFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UserRoleFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserRoleClient<runtime.Types.Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
497
|
-
/**
|
|
498
|
-
* Find zero or more UserRoles that matches the filter.
|
|
499
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
500
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
501
|
-
* @param {UserRoleFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
502
|
-
* @example
|
|
503
|
-
* // Get all UserRoles
|
|
504
|
-
* const userRoles = await prisma.userRole.findMany()
|
|
505
|
-
*
|
|
506
|
-
* // Get first 10 UserRoles
|
|
507
|
-
* const userRoles = await prisma.userRole.findMany({ take: 10 })
|
|
508
|
-
*
|
|
509
|
-
* // Only select the `userId`
|
|
510
|
-
* const userRoleWithUserIdOnly = await prisma.userRole.findMany({ select: { userId: true } })
|
|
511
|
-
*
|
|
512
|
-
*/
|
|
513
|
-
findMany<T extends UserRoleFindManyArgs>(args?: Prisma.SelectSubset<T, UserRoleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
514
|
-
/**
|
|
515
|
-
* Create a UserRole.
|
|
516
|
-
* @param {UserRoleCreateArgs} args - Arguments to create a UserRole.
|
|
517
|
-
* @example
|
|
518
|
-
* // Create one UserRole
|
|
519
|
-
* const UserRole = await prisma.userRole.create({
|
|
520
|
-
* data: {
|
|
521
|
-
* // ... data to create a UserRole
|
|
522
|
-
* }
|
|
523
|
-
* })
|
|
524
|
-
*
|
|
525
|
-
*/
|
|
526
|
-
create<T extends UserRoleCreateArgs>(args: Prisma.SelectSubset<T, UserRoleCreateArgs<ExtArgs>>): Prisma.Prisma__UserRoleClient<runtime.Types.Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
527
|
-
/**
|
|
528
|
-
* Create many UserRoles.
|
|
529
|
-
* @param {UserRoleCreateManyArgs} args - Arguments to create many UserRoles.
|
|
530
|
-
* @example
|
|
531
|
-
* // Create many UserRoles
|
|
532
|
-
* const userRole = await prisma.userRole.createMany({
|
|
533
|
-
* data: [
|
|
534
|
-
* // ... provide data here
|
|
535
|
-
* ]
|
|
536
|
-
* })
|
|
537
|
-
*
|
|
538
|
-
*/
|
|
539
|
-
createMany<T extends UserRoleCreateManyArgs>(args?: Prisma.SelectSubset<T, UserRoleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
540
|
-
/**
|
|
541
|
-
* Delete a UserRole.
|
|
542
|
-
* @param {UserRoleDeleteArgs} args - Arguments to delete one UserRole.
|
|
543
|
-
* @example
|
|
544
|
-
* // Delete one UserRole
|
|
545
|
-
* const UserRole = await prisma.userRole.delete({
|
|
546
|
-
* where: {
|
|
547
|
-
* // ... filter to delete one UserRole
|
|
548
|
-
* }
|
|
549
|
-
* })
|
|
550
|
-
*
|
|
551
|
-
*/
|
|
552
|
-
delete<T extends UserRoleDeleteArgs>(args: Prisma.SelectSubset<T, UserRoleDeleteArgs<ExtArgs>>): Prisma.Prisma__UserRoleClient<runtime.Types.Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
553
|
-
/**
|
|
554
|
-
* Update one UserRole.
|
|
555
|
-
* @param {UserRoleUpdateArgs} args - Arguments to update one UserRole.
|
|
556
|
-
* @example
|
|
557
|
-
* // Update one UserRole
|
|
558
|
-
* const userRole = await prisma.userRole.update({
|
|
559
|
-
* where: {
|
|
560
|
-
* // ... provide filter here
|
|
561
|
-
* },
|
|
562
|
-
* data: {
|
|
563
|
-
* // ... provide data here
|
|
564
|
-
* }
|
|
565
|
-
* })
|
|
566
|
-
*
|
|
567
|
-
*/
|
|
568
|
-
update<T extends UserRoleUpdateArgs>(args: Prisma.SelectSubset<T, UserRoleUpdateArgs<ExtArgs>>): Prisma.Prisma__UserRoleClient<runtime.Types.Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
569
|
-
/**
|
|
570
|
-
* Delete zero or more UserRoles.
|
|
571
|
-
* @param {UserRoleDeleteManyArgs} args - Arguments to filter UserRoles to delete.
|
|
572
|
-
* @example
|
|
573
|
-
* // Delete a few UserRoles
|
|
574
|
-
* const { count } = await prisma.userRole.deleteMany({
|
|
575
|
-
* where: {
|
|
576
|
-
* // ... provide filter here
|
|
577
|
-
* }
|
|
578
|
-
* })
|
|
579
|
-
*
|
|
580
|
-
*/
|
|
581
|
-
deleteMany<T extends UserRoleDeleteManyArgs>(args?: Prisma.SelectSubset<T, UserRoleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
582
|
-
/**
|
|
583
|
-
* Update zero or more UserRoles.
|
|
584
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
585
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
586
|
-
* @param {UserRoleUpdateManyArgs} args - Arguments to update one or more rows.
|
|
587
|
-
* @example
|
|
588
|
-
* // Update many UserRoles
|
|
589
|
-
* const userRole = await prisma.userRole.updateMany({
|
|
590
|
-
* where: {
|
|
591
|
-
* // ... provide filter here
|
|
592
|
-
* },
|
|
593
|
-
* data: {
|
|
594
|
-
* // ... provide data here
|
|
595
|
-
* }
|
|
596
|
-
* })
|
|
597
|
-
*
|
|
598
|
-
*/
|
|
599
|
-
updateMany<T extends UserRoleUpdateManyArgs>(args: Prisma.SelectSubset<T, UserRoleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
600
|
-
/**
|
|
601
|
-
* Create or update one UserRole.
|
|
602
|
-
* @param {UserRoleUpsertArgs} args - Arguments to update or create a UserRole.
|
|
603
|
-
* @example
|
|
604
|
-
* // Update or create a UserRole
|
|
605
|
-
* const userRole = await prisma.userRole.upsert({
|
|
606
|
-
* create: {
|
|
607
|
-
* // ... data to create a UserRole
|
|
608
|
-
* },
|
|
609
|
-
* update: {
|
|
610
|
-
* // ... in case it already exists, update
|
|
611
|
-
* },
|
|
612
|
-
* where: {
|
|
613
|
-
* // ... the filter for the UserRole we want to update
|
|
614
|
-
* }
|
|
615
|
-
* })
|
|
616
|
-
*/
|
|
617
|
-
upsert<T extends UserRoleUpsertArgs>(args: Prisma.SelectSubset<T, UserRoleUpsertArgs<ExtArgs>>): Prisma.Prisma__UserRoleClient<runtime.Types.Result.GetResult<Prisma.$UserRolePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
618
|
-
/**
|
|
619
|
-
* Count the number of UserRoles.
|
|
620
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
621
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
622
|
-
* @param {UserRoleCountArgs} args - Arguments to filter UserRoles to count.
|
|
623
|
-
* @example
|
|
624
|
-
* // Count the number of UserRoles
|
|
625
|
-
* const count = await prisma.userRole.count({
|
|
626
|
-
* where: {
|
|
627
|
-
* // ... the filter for the UserRoles we want to count
|
|
628
|
-
* }
|
|
629
|
-
* })
|
|
630
|
-
**/
|
|
631
|
-
count<T extends UserRoleCountArgs>(args?: Prisma.Subset<T, UserRoleCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], UserRoleCountAggregateOutputType> : number>;
|
|
632
|
-
/**
|
|
633
|
-
* Allows you to perform aggregations operations on a UserRole.
|
|
634
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
635
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
636
|
-
* @param {UserRoleAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
637
|
-
* @example
|
|
638
|
-
* // Ordered by age ascending
|
|
639
|
-
* // Where email contains prisma.io
|
|
640
|
-
* // Limited to the 10 users
|
|
641
|
-
* const aggregations = await prisma.user.aggregate({
|
|
642
|
-
* _avg: {
|
|
643
|
-
* age: true,
|
|
644
|
-
* },
|
|
645
|
-
* where: {
|
|
646
|
-
* email: {
|
|
647
|
-
* contains: "prisma.io",
|
|
648
|
-
* },
|
|
649
|
-
* },
|
|
650
|
-
* orderBy: {
|
|
651
|
-
* age: "asc",
|
|
652
|
-
* },
|
|
653
|
-
* take: 10,
|
|
654
|
-
* })
|
|
655
|
-
**/
|
|
656
|
-
aggregate<T extends UserRoleAggregateArgs>(args: Prisma.Subset<T, UserRoleAggregateArgs>): Prisma.PrismaPromise<GetUserRoleAggregateType<T>>;
|
|
657
|
-
/**
|
|
658
|
-
* Group by UserRole.
|
|
659
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
660
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
661
|
-
* @param {UserRoleGroupByArgs} args - Group by arguments.
|
|
662
|
-
* @example
|
|
663
|
-
* // Group by city, order by createdAt, get count
|
|
664
|
-
* const result = await prisma.user.groupBy({
|
|
665
|
-
* by: ['city', 'createdAt'],
|
|
666
|
-
* orderBy: {
|
|
667
|
-
* createdAt: true
|
|
668
|
-
* },
|
|
669
|
-
* _count: {
|
|
670
|
-
* _all: true
|
|
671
|
-
* },
|
|
672
|
-
* })
|
|
673
|
-
*
|
|
674
|
-
**/
|
|
675
|
-
groupBy<T extends UserRoleGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
676
|
-
orderBy: UserRoleGroupByArgs['orderBy'];
|
|
677
|
-
} : {
|
|
678
|
-
orderBy?: UserRoleGroupByArgs['orderBy'];
|
|
679
|
-
}, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
|
|
680
|
-
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
681
|
-
Error,
|
|
682
|
-
'Field ',
|
|
683
|
-
P,
|
|
684
|
-
` in "having" needs to be provided in "by"`
|
|
685
|
-
];
|
|
686
|
-
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
687
|
-
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
688
|
-
}[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
689
|
-
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
690
|
-
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
691
|
-
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
692
|
-
}[OrderFields]>(args: Prisma.SubsetIntersection<T, UserRoleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserRoleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
693
|
-
/**
|
|
694
|
-
* Fields of the UserRole model
|
|
695
|
-
*/
|
|
696
|
-
readonly fields: UserRoleFieldRefs;
|
|
697
|
-
}
|
|
698
|
-
/**
|
|
699
|
-
* The delegate class that acts as a "Promise-like" for UserRole.
|
|
700
|
-
* Why is this prefixed with `Prisma__`?
|
|
701
|
-
* Because we want to prevent naming conflicts as mentioned in
|
|
702
|
-
* https://github.com/prisma/prisma-client-js/issues/707
|
|
703
|
-
*/
|
|
704
|
-
export interface Prisma__UserRoleClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
705
|
-
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
706
|
-
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
707
|
-
role<T extends Prisma.RoleDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.RoleDefaultArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
708
|
-
/**
|
|
709
|
-
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
710
|
-
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
711
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
712
|
-
* @returns A Promise for the completion of which ever callback is executed.
|
|
713
|
-
*/
|
|
714
|
-
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>;
|
|
715
|
-
/**
|
|
716
|
-
* Attaches a callback for only the rejection of the Promise.
|
|
717
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
718
|
-
* @returns A Promise for the completion of the callback.
|
|
719
|
-
*/
|
|
720
|
-
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
721
|
-
/**
|
|
722
|
-
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
723
|
-
* resolved value cannot be modified from the callback.
|
|
724
|
-
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
725
|
-
* @returns A Promise for the completion of the callback.
|
|
726
|
-
*/
|
|
727
|
-
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
728
|
-
}
|
|
729
|
-
/**
|
|
730
|
-
* Fields of the UserRole model
|
|
731
|
-
*/
|
|
732
|
-
export interface UserRoleFieldRefs {
|
|
733
|
-
readonly userId: Prisma.FieldRef<"UserRole", 'String'>;
|
|
734
|
-
readonly roleId: Prisma.FieldRef<"UserRole", 'String'>;
|
|
735
|
-
readonly createdAt: Prisma.FieldRef<"UserRole", 'DateTime'>;
|
|
736
|
-
}
|
|
737
|
-
/**
|
|
738
|
-
* UserRole findUnique
|
|
739
|
-
*/
|
|
740
|
-
export type UserRoleFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
741
|
-
/**
|
|
742
|
-
* Select specific fields to fetch from the UserRole
|
|
743
|
-
*/
|
|
744
|
-
select?: Prisma.UserRoleSelect<ExtArgs> | null;
|
|
745
|
-
/**
|
|
746
|
-
* Omit specific fields from the UserRole
|
|
747
|
-
*/
|
|
748
|
-
omit?: Prisma.UserRoleOmit<ExtArgs> | null;
|
|
749
|
-
/**
|
|
750
|
-
* Choose, which related nodes to fetch as well
|
|
751
|
-
*/
|
|
752
|
-
include?: Prisma.UserRoleInclude<ExtArgs> | null;
|
|
753
|
-
/**
|
|
754
|
-
* Filter, which UserRole to fetch.
|
|
755
|
-
*/
|
|
756
|
-
where: Prisma.UserRoleWhereUniqueInput;
|
|
757
|
-
};
|
|
758
|
-
/**
|
|
759
|
-
* UserRole findUniqueOrThrow
|
|
760
|
-
*/
|
|
761
|
-
export type UserRoleFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
762
|
-
/**
|
|
763
|
-
* Select specific fields to fetch from the UserRole
|
|
764
|
-
*/
|
|
765
|
-
select?: Prisma.UserRoleSelect<ExtArgs> | null;
|
|
766
|
-
/**
|
|
767
|
-
* Omit specific fields from the UserRole
|
|
768
|
-
*/
|
|
769
|
-
omit?: Prisma.UserRoleOmit<ExtArgs> | null;
|
|
770
|
-
/**
|
|
771
|
-
* Choose, which related nodes to fetch as well
|
|
772
|
-
*/
|
|
773
|
-
include?: Prisma.UserRoleInclude<ExtArgs> | null;
|
|
774
|
-
/**
|
|
775
|
-
* Filter, which UserRole to fetch.
|
|
776
|
-
*/
|
|
777
|
-
where: Prisma.UserRoleWhereUniqueInput;
|
|
778
|
-
};
|
|
779
|
-
/**
|
|
780
|
-
* UserRole findFirst
|
|
781
|
-
*/
|
|
782
|
-
export type UserRoleFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
783
|
-
/**
|
|
784
|
-
* Select specific fields to fetch from the UserRole
|
|
785
|
-
*/
|
|
786
|
-
select?: Prisma.UserRoleSelect<ExtArgs> | null;
|
|
787
|
-
/**
|
|
788
|
-
* Omit specific fields from the UserRole
|
|
789
|
-
*/
|
|
790
|
-
omit?: Prisma.UserRoleOmit<ExtArgs> | null;
|
|
791
|
-
/**
|
|
792
|
-
* Choose, which related nodes to fetch as well
|
|
793
|
-
*/
|
|
794
|
-
include?: Prisma.UserRoleInclude<ExtArgs> | null;
|
|
795
|
-
/**
|
|
796
|
-
* Filter, which UserRole to fetch.
|
|
797
|
-
*/
|
|
798
|
-
where?: Prisma.UserRoleWhereInput;
|
|
799
|
-
/**
|
|
800
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
801
|
-
*
|
|
802
|
-
* Determine the order of UserRoles to fetch.
|
|
803
|
-
*/
|
|
804
|
-
orderBy?: Prisma.UserRoleOrderByWithRelationInput | Prisma.UserRoleOrderByWithRelationInput[];
|
|
805
|
-
/**
|
|
806
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
807
|
-
*
|
|
808
|
-
* Sets the position for searching for UserRoles.
|
|
809
|
-
*/
|
|
810
|
-
cursor?: Prisma.UserRoleWhereUniqueInput;
|
|
811
|
-
/**
|
|
812
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
813
|
-
*
|
|
814
|
-
* Take `±n` UserRoles from the position of the cursor.
|
|
815
|
-
*/
|
|
816
|
-
take?: number;
|
|
817
|
-
/**
|
|
818
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
819
|
-
*
|
|
820
|
-
* Skip the first `n` UserRoles.
|
|
821
|
-
*/
|
|
822
|
-
skip?: number;
|
|
823
|
-
/**
|
|
824
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
825
|
-
*
|
|
826
|
-
* Filter by unique combinations of UserRoles.
|
|
827
|
-
*/
|
|
828
|
-
distinct?: Prisma.UserRoleScalarFieldEnum | Prisma.UserRoleScalarFieldEnum[];
|
|
829
|
-
};
|
|
830
|
-
/**
|
|
831
|
-
* UserRole findFirstOrThrow
|
|
832
|
-
*/
|
|
833
|
-
export type UserRoleFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
834
|
-
/**
|
|
835
|
-
* Select specific fields to fetch from the UserRole
|
|
836
|
-
*/
|
|
837
|
-
select?: Prisma.UserRoleSelect<ExtArgs> | null;
|
|
838
|
-
/**
|
|
839
|
-
* Omit specific fields from the UserRole
|
|
840
|
-
*/
|
|
841
|
-
omit?: Prisma.UserRoleOmit<ExtArgs> | null;
|
|
842
|
-
/**
|
|
843
|
-
* Choose, which related nodes to fetch as well
|
|
844
|
-
*/
|
|
845
|
-
include?: Prisma.UserRoleInclude<ExtArgs> | null;
|
|
846
|
-
/**
|
|
847
|
-
* Filter, which UserRole to fetch.
|
|
848
|
-
*/
|
|
849
|
-
where?: Prisma.UserRoleWhereInput;
|
|
850
|
-
/**
|
|
851
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
852
|
-
*
|
|
853
|
-
* Determine the order of UserRoles to fetch.
|
|
854
|
-
*/
|
|
855
|
-
orderBy?: Prisma.UserRoleOrderByWithRelationInput | Prisma.UserRoleOrderByWithRelationInput[];
|
|
856
|
-
/**
|
|
857
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
858
|
-
*
|
|
859
|
-
* Sets the position for searching for UserRoles.
|
|
860
|
-
*/
|
|
861
|
-
cursor?: Prisma.UserRoleWhereUniqueInput;
|
|
862
|
-
/**
|
|
863
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
864
|
-
*
|
|
865
|
-
* Take `±n` UserRoles from the position of the cursor.
|
|
866
|
-
*/
|
|
867
|
-
take?: number;
|
|
868
|
-
/**
|
|
869
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
870
|
-
*
|
|
871
|
-
* Skip the first `n` UserRoles.
|
|
872
|
-
*/
|
|
873
|
-
skip?: number;
|
|
874
|
-
/**
|
|
875
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
876
|
-
*
|
|
877
|
-
* Filter by unique combinations of UserRoles.
|
|
878
|
-
*/
|
|
879
|
-
distinct?: Prisma.UserRoleScalarFieldEnum | Prisma.UserRoleScalarFieldEnum[];
|
|
880
|
-
};
|
|
881
|
-
/**
|
|
882
|
-
* UserRole findMany
|
|
883
|
-
*/
|
|
884
|
-
export type UserRoleFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
885
|
-
/**
|
|
886
|
-
* Select specific fields to fetch from the UserRole
|
|
887
|
-
*/
|
|
888
|
-
select?: Prisma.UserRoleSelect<ExtArgs> | null;
|
|
889
|
-
/**
|
|
890
|
-
* Omit specific fields from the UserRole
|
|
891
|
-
*/
|
|
892
|
-
omit?: Prisma.UserRoleOmit<ExtArgs> | null;
|
|
893
|
-
/**
|
|
894
|
-
* Choose, which related nodes to fetch as well
|
|
895
|
-
*/
|
|
896
|
-
include?: Prisma.UserRoleInclude<ExtArgs> | null;
|
|
897
|
-
/**
|
|
898
|
-
* Filter, which UserRoles to fetch.
|
|
899
|
-
*/
|
|
900
|
-
where?: Prisma.UserRoleWhereInput;
|
|
901
|
-
/**
|
|
902
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
903
|
-
*
|
|
904
|
-
* Determine the order of UserRoles to fetch.
|
|
905
|
-
*/
|
|
906
|
-
orderBy?: Prisma.UserRoleOrderByWithRelationInput | Prisma.UserRoleOrderByWithRelationInput[];
|
|
907
|
-
/**
|
|
908
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
909
|
-
*
|
|
910
|
-
* Sets the position for listing UserRoles.
|
|
911
|
-
*/
|
|
912
|
-
cursor?: Prisma.UserRoleWhereUniqueInput;
|
|
913
|
-
/**
|
|
914
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
915
|
-
*
|
|
916
|
-
* Take `±n` UserRoles from the position of the cursor.
|
|
917
|
-
*/
|
|
918
|
-
take?: number;
|
|
919
|
-
/**
|
|
920
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
921
|
-
*
|
|
922
|
-
* Skip the first `n` UserRoles.
|
|
923
|
-
*/
|
|
924
|
-
skip?: number;
|
|
925
|
-
distinct?: Prisma.UserRoleScalarFieldEnum | Prisma.UserRoleScalarFieldEnum[];
|
|
926
|
-
};
|
|
927
|
-
/**
|
|
928
|
-
* UserRole create
|
|
929
|
-
*/
|
|
930
|
-
export type UserRoleCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
931
|
-
/**
|
|
932
|
-
* Select specific fields to fetch from the UserRole
|
|
933
|
-
*/
|
|
934
|
-
select?: Prisma.UserRoleSelect<ExtArgs> | null;
|
|
935
|
-
/**
|
|
936
|
-
* Omit specific fields from the UserRole
|
|
937
|
-
*/
|
|
938
|
-
omit?: Prisma.UserRoleOmit<ExtArgs> | null;
|
|
939
|
-
/**
|
|
940
|
-
* Choose, which related nodes to fetch as well
|
|
941
|
-
*/
|
|
942
|
-
include?: Prisma.UserRoleInclude<ExtArgs> | null;
|
|
943
|
-
/**
|
|
944
|
-
* The data needed to create a UserRole.
|
|
945
|
-
*/
|
|
946
|
-
data: Prisma.XOR<Prisma.UserRoleCreateInput, Prisma.UserRoleUncheckedCreateInput>;
|
|
947
|
-
};
|
|
948
|
-
/**
|
|
949
|
-
* UserRole createMany
|
|
950
|
-
*/
|
|
951
|
-
export type UserRoleCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
952
|
-
/**
|
|
953
|
-
* The data used to create many UserRoles.
|
|
954
|
-
*/
|
|
955
|
-
data: Prisma.UserRoleCreateManyInput | Prisma.UserRoleCreateManyInput[];
|
|
956
|
-
skipDuplicates?: boolean;
|
|
957
|
-
};
|
|
958
|
-
/**
|
|
959
|
-
* UserRole update
|
|
960
|
-
*/
|
|
961
|
-
export type UserRoleUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
962
|
-
/**
|
|
963
|
-
* Select specific fields to fetch from the UserRole
|
|
964
|
-
*/
|
|
965
|
-
select?: Prisma.UserRoleSelect<ExtArgs> | null;
|
|
966
|
-
/**
|
|
967
|
-
* Omit specific fields from the UserRole
|
|
968
|
-
*/
|
|
969
|
-
omit?: Prisma.UserRoleOmit<ExtArgs> | null;
|
|
970
|
-
/**
|
|
971
|
-
* Choose, which related nodes to fetch as well
|
|
972
|
-
*/
|
|
973
|
-
include?: Prisma.UserRoleInclude<ExtArgs> | null;
|
|
974
|
-
/**
|
|
975
|
-
* The data needed to update a UserRole.
|
|
976
|
-
*/
|
|
977
|
-
data: Prisma.XOR<Prisma.UserRoleUpdateInput, Prisma.UserRoleUncheckedUpdateInput>;
|
|
978
|
-
/**
|
|
979
|
-
* Choose, which UserRole to update.
|
|
980
|
-
*/
|
|
981
|
-
where: Prisma.UserRoleWhereUniqueInput;
|
|
982
|
-
};
|
|
983
|
-
/**
|
|
984
|
-
* UserRole updateMany
|
|
985
|
-
*/
|
|
986
|
-
export type UserRoleUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
987
|
-
/**
|
|
988
|
-
* The data used to update UserRoles.
|
|
989
|
-
*/
|
|
990
|
-
data: Prisma.XOR<Prisma.UserRoleUpdateManyMutationInput, Prisma.UserRoleUncheckedUpdateManyInput>;
|
|
991
|
-
/**
|
|
992
|
-
* Filter which UserRoles to update
|
|
993
|
-
*/
|
|
994
|
-
where?: Prisma.UserRoleWhereInput;
|
|
995
|
-
/**
|
|
996
|
-
* Limit how many UserRoles to update.
|
|
997
|
-
*/
|
|
998
|
-
limit?: number;
|
|
999
|
-
};
|
|
1000
|
-
/**
|
|
1001
|
-
* UserRole upsert
|
|
1002
|
-
*/
|
|
1003
|
-
export type UserRoleUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1004
|
-
/**
|
|
1005
|
-
* Select specific fields to fetch from the UserRole
|
|
1006
|
-
*/
|
|
1007
|
-
select?: Prisma.UserRoleSelect<ExtArgs> | null;
|
|
1008
|
-
/**
|
|
1009
|
-
* Omit specific fields from the UserRole
|
|
1010
|
-
*/
|
|
1011
|
-
omit?: Prisma.UserRoleOmit<ExtArgs> | null;
|
|
1012
|
-
/**
|
|
1013
|
-
* Choose, which related nodes to fetch as well
|
|
1014
|
-
*/
|
|
1015
|
-
include?: Prisma.UserRoleInclude<ExtArgs> | null;
|
|
1016
|
-
/**
|
|
1017
|
-
* The filter to search for the UserRole to update in case it exists.
|
|
1018
|
-
*/
|
|
1019
|
-
where: Prisma.UserRoleWhereUniqueInput;
|
|
1020
|
-
/**
|
|
1021
|
-
* In case the UserRole found by the `where` argument doesn't exist, create a new UserRole with this data.
|
|
1022
|
-
*/
|
|
1023
|
-
create: Prisma.XOR<Prisma.UserRoleCreateInput, Prisma.UserRoleUncheckedCreateInput>;
|
|
1024
|
-
/**
|
|
1025
|
-
* In case the UserRole was found with the provided `where` argument, update it with this data.
|
|
1026
|
-
*/
|
|
1027
|
-
update: Prisma.XOR<Prisma.UserRoleUpdateInput, Prisma.UserRoleUncheckedUpdateInput>;
|
|
1028
|
-
};
|
|
1029
|
-
/**
|
|
1030
|
-
* UserRole delete
|
|
1031
|
-
*/
|
|
1032
|
-
export type UserRoleDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1033
|
-
/**
|
|
1034
|
-
* Select specific fields to fetch from the UserRole
|
|
1035
|
-
*/
|
|
1036
|
-
select?: Prisma.UserRoleSelect<ExtArgs> | null;
|
|
1037
|
-
/**
|
|
1038
|
-
* Omit specific fields from the UserRole
|
|
1039
|
-
*/
|
|
1040
|
-
omit?: Prisma.UserRoleOmit<ExtArgs> | null;
|
|
1041
|
-
/**
|
|
1042
|
-
* Choose, which related nodes to fetch as well
|
|
1043
|
-
*/
|
|
1044
|
-
include?: Prisma.UserRoleInclude<ExtArgs> | null;
|
|
1045
|
-
/**
|
|
1046
|
-
* Filter which UserRole to delete.
|
|
1047
|
-
*/
|
|
1048
|
-
where: Prisma.UserRoleWhereUniqueInput;
|
|
1049
|
-
};
|
|
1050
|
-
/**
|
|
1051
|
-
* UserRole deleteMany
|
|
1052
|
-
*/
|
|
1053
|
-
export type UserRoleDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1054
|
-
/**
|
|
1055
|
-
* Filter which UserRoles to delete
|
|
1056
|
-
*/
|
|
1057
|
-
where?: Prisma.UserRoleWhereInput;
|
|
1058
|
-
/**
|
|
1059
|
-
* Limit how many UserRoles to delete.
|
|
1060
|
-
*/
|
|
1061
|
-
limit?: number;
|
|
1062
|
-
};
|
|
1063
|
-
/**
|
|
1064
|
-
* UserRole without action
|
|
1065
|
-
*/
|
|
1066
|
-
export type UserRoleDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1067
|
-
/**
|
|
1068
|
-
* Select specific fields to fetch from the UserRole
|
|
1069
|
-
*/
|
|
1070
|
-
select?: Prisma.UserRoleSelect<ExtArgs> | null;
|
|
1071
|
-
/**
|
|
1072
|
-
* Omit specific fields from the UserRole
|
|
1073
|
-
*/
|
|
1074
|
-
omit?: Prisma.UserRoleOmit<ExtArgs> | null;
|
|
1075
|
-
/**
|
|
1076
|
-
* Choose, which related nodes to fetch as well
|
|
1077
|
-
*/
|
|
1078
|
-
include?: Prisma.UserRoleInclude<ExtArgs> | null;
|
|
1079
|
-
};
|
|
1080
|
-
export {};
|