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