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