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