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