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