lapeh 2.3.6 → 2.3.8
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/bin/index.js +39 -56
- package/dist/generated/prisma/browser.d.ts +80 -0
- package/dist/generated/prisma/browser.d.ts.map +1 -0
- package/dist/generated/prisma/browser.js +56 -0
- package/dist/generated/prisma/client.d.ts +97 -0
- package/dist/generated/prisma/client.d.ts.map +1 -0
- package/dist/generated/prisma/client.js +68 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +486 -0
- package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -0
- package/dist/generated/prisma/commonInputTypes.js +11 -0
- package/dist/generated/prisma/enums.d.ts +2 -0
- package/dist/generated/prisma/enums.d.ts.map +1 -0
- package/dist/generated/prisma/enums.js +11 -0
- package/dist/generated/prisma/internal/class.d.ts +281 -0
- package/dist/generated/prisma/internal/class.d.ts.map +1 -0
- package/dist/generated/prisma/internal/class.js +76 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +1734 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +260 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +200 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +231 -0
- package/dist/generated/prisma/models/cache.d.ts +986 -0
- package/dist/generated/prisma/models/cache.d.ts.map +1 -0
- package/dist/generated/prisma/models/cache.js +2 -0
- package/dist/generated/prisma/models/cache_locks.d.ts +976 -0
- package/dist/generated/prisma/models/cache_locks.d.ts.map +1 -0
- package/dist/generated/prisma/models/cache_locks.js +2 -0
- package/dist/generated/prisma/models/failed_jobs.d.ts +1098 -0
- package/dist/generated/prisma/models/failed_jobs.d.ts.map +1 -0
- package/dist/generated/prisma/models/failed_jobs.js +2 -0
- package/dist/generated/prisma/models/job_batches.d.ts +1212 -0
- package/dist/generated/prisma/models/job_batches.d.ts.map +1 -0
- package/dist/generated/prisma/models/job_batches.js +2 -0
- package/dist/generated/prisma/models/jobs.d.ts +1112 -0
- package/dist/generated/prisma/models/jobs.d.ts.map +1 -0
- package/dist/generated/prisma/models/jobs.js +2 -0
- package/dist/generated/prisma/models/migrations.d.ts +979 -0
- package/dist/generated/prisma/models/migrations.d.ts.map +1 -0
- package/dist/generated/prisma/models/migrations.js +2 -0
- package/dist/generated/prisma/models/password_reset_tokens.d.ts +941 -0
- package/dist/generated/prisma/models/password_reset_tokens.d.ts.map +1 -0
- package/dist/generated/prisma/models/password_reset_tokens.js +2 -0
- package/dist/generated/prisma/models/permissions.d.ts +1333 -0
- package/dist/generated/prisma/models/permissions.d.ts.map +1 -0
- package/dist/generated/prisma/models/permissions.js +2 -0
- package/dist/generated/prisma/models/personal_access_tokens.d.ts +1178 -0
- package/dist/generated/prisma/models/personal_access_tokens.d.ts.map +1 -0
- package/dist/generated/prisma/models/personal_access_tokens.js +2 -0
- package/dist/generated/prisma/models/role_permissions.d.ts +1291 -0
- package/dist/generated/prisma/models/role_permissions.d.ts.map +1 -0
- package/dist/generated/prisma/models/role_permissions.js +2 -0
- package/dist/generated/prisma/models/roles.d.ts +1333 -0
- package/dist/generated/prisma/models/roles.d.ts.map +1 -0
- package/dist/generated/prisma/models/roles.js +2 -0
- package/dist/generated/prisma/models/sessions.d.ts +1073 -0
- package/dist/generated/prisma/models/sessions.d.ts.map +1 -0
- package/dist/generated/prisma/models/sessions.js +2 -0
- package/dist/generated/prisma/models/user_permissions.d.ts +1291 -0
- package/dist/generated/prisma/models/user_permissions.d.ts.map +1 -0
- package/dist/generated/prisma/models/user_permissions.js +2 -0
- package/dist/generated/prisma/models/user_roles.d.ts +1291 -0
- package/dist/generated/prisma/models/user_roles.d.ts.map +1 -0
- package/dist/generated/prisma/models/user_roles.js +2 -0
- package/dist/generated/prisma/models/users.d.ts +1513 -0
- package/dist/generated/prisma/models/users.d.ts.map +1 -0
- package/dist/generated/prisma/models/users.js +2 -0
- package/dist/generated/prisma/models.d.ts +17 -0
- package/dist/generated/prisma/models.d.ts.map +1 -0
- package/dist/generated/prisma/models.js +2 -0
- package/dist/lib/bootstrap.d.ts +2 -0
- package/dist/lib/bootstrap.d.ts.map +1 -0
- package/dist/lib/bootstrap.js +133 -0
- package/dist/lib/core/database.d.ts +3 -0
- package/dist/lib/core/database.d.ts.map +1 -0
- package/dist/lib/core/database.js +34 -0
- package/dist/lib/core/realtime.d.ts +3 -0
- package/dist/lib/core/realtime.d.ts.map +1 -0
- package/dist/lib/core/realtime.js +36 -0
- package/dist/lib/core/redis.d.ts +8 -0
- package/dist/lib/core/redis.d.ts.map +1 -0
- package/dist/lib/core/redis.js +123 -0
- package/dist/lib/core/serializer.d.ts +43 -0
- package/dist/lib/core/serializer.d.ts.map +1 -0
- package/dist/lib/core/serializer.js +66 -0
- package/dist/lib/core/server.d.ts +2 -0
- package/dist/lib/core/server.d.ts.map +1 -0
- package/dist/lib/core/server.js +60 -0
- package/dist/lib/middleware/auth.d.ts +4 -0
- package/dist/lib/middleware/auth.d.ts.map +1 -0
- package/dist/lib/middleware/auth.js +55 -0
- package/dist/lib/middleware/error.d.ts +3 -0
- package/dist/lib/middleware/error.d.ts.map +1 -0
- package/dist/lib/middleware/error.js +60 -0
- package/dist/lib/middleware/multipart.d.ts +4 -0
- package/dist/lib/middleware/multipart.d.ts.map +1 -0
- package/dist/lib/middleware/multipart.js +17 -0
- package/dist/lib/middleware/rateLimit.d.ts +2 -0
- package/dist/lib/middleware/rateLimit.d.ts.map +1 -0
- package/dist/lib/middleware/rateLimit.js +19 -0
- package/dist/lib/middleware/requestLogger.d.ts +3 -0
- package/dist/lib/middleware/requestLogger.d.ts.map +1 -0
- package/dist/lib/middleware/requestLogger.js +22 -0
- package/dist/lib/middleware/visitor.d.ts +3 -0
- package/dist/lib/middleware/visitor.d.ts.map +1 -0
- package/dist/lib/middleware/visitor.js +144 -0
- package/dist/lib/utils/logger.d.ts +11 -0
- package/dist/lib/utils/logger.d.ts.map +1 -0
- package/dist/lib/utils/logger.js +81 -0
- package/dist/lib/utils/pagination.d.ts +19 -0
- package/dist/lib/utils/pagination.d.ts.map +1 -0
- package/dist/lib/utils/pagination.js +34 -0
- package/dist/lib/utils/response.d.ts +11 -0
- package/dist/lib/utils/response.d.ts.map +1 -0
- package/dist/lib/utils/response.js +57 -0
- package/dist/lib/utils/validator.d.ts +38 -0
- package/dist/lib/utils/validator.d.ts.map +1 -0
- package/dist/lib/utils/validator.js +369 -0
- package/dist/prisma/seed.d.ts +2 -0
- package/dist/prisma/seed.d.ts.map +1 -0
- package/dist/prisma/seed.js +381 -0
- package/dist/src/controllers/authController.d.ts +11 -0
- package/dist/src/controllers/authController.d.ts.map +1 -0
- package/dist/src/controllers/authController.js +414 -0
- package/dist/src/controllers/petController.d.ts +7 -0
- package/dist/src/controllers/petController.d.ts.map +1 -0
- package/dist/src/controllers/petController.js +163 -0
- package/dist/src/controllers/rbacController.d.ts +16 -0
- package/dist/src/controllers/rbacController.d.ts.map +1 -0
- package/dist/src/controllers/rbacController.js +437 -0
- package/dist/src/core/database.d.ts +3 -0
- package/dist/src/core/database.d.ts.map +1 -0
- package/dist/src/core/database.js +34 -0
- package/dist/src/core/realtime.d.ts +3 -0
- package/dist/src/core/realtime.d.ts.map +1 -0
- package/dist/src/core/realtime.js +36 -0
- package/dist/src/core/redis.d.ts +8 -0
- package/dist/src/core/redis.d.ts.map +1 -0
- package/dist/src/core/redis.js +123 -0
- package/dist/src/core/serializer.d.ts +43 -0
- package/dist/src/core/serializer.d.ts.map +1 -0
- package/dist/src/core/serializer.js +66 -0
- package/dist/src/core/server.d.ts +2 -0
- package/dist/src/core/server.d.ts.map +1 -0
- package/dist/src/core/server.js +60 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +98 -0
- package/dist/src/middleware/auth.d.ts +4 -0
- package/dist/src/middleware/auth.d.ts.map +1 -0
- package/dist/src/middleware/auth.js +48 -0
- package/dist/src/middleware/error.d.ts +3 -0
- package/dist/src/middleware/error.d.ts.map +1 -0
- package/dist/src/middleware/error.js +60 -0
- package/dist/src/middleware/multipart.d.ts +4 -0
- package/dist/src/middleware/multipart.d.ts.map +1 -0
- package/dist/src/middleware/multipart.js +17 -0
- package/dist/src/middleware/rateLimit.d.ts +2 -0
- package/dist/src/middleware/rateLimit.d.ts.map +1 -0
- package/dist/src/middleware/rateLimit.js +19 -0
- package/dist/src/middleware/requestLogger.d.ts +3 -0
- package/dist/src/middleware/requestLogger.d.ts.map +1 -0
- package/dist/src/middleware/requestLogger.js +22 -0
- package/dist/src/middleware/visitor.d.ts +3 -0
- package/dist/src/middleware/visitor.d.ts.map +1 -0
- package/dist/src/middleware/visitor.js +144 -0
- package/dist/src/prisma.d.ts +3 -0
- package/dist/src/prisma.d.ts.map +1 -0
- package/dist/src/prisma.js +34 -0
- package/dist/src/realtime.d.ts +3 -0
- package/dist/src/realtime.d.ts.map +1 -0
- package/dist/src/realtime.js +36 -0
- package/dist/src/redis.d.ts +8 -0
- package/dist/src/redis.d.ts.map +1 -0
- package/dist/src/redis.js +122 -0
- package/dist/src/routes/auth.d.ts +2 -0
- package/dist/src/routes/auth.d.ts.map +1 -0
- package/dist/src/routes/auth.js +45 -0
- package/dist/src/routes/index.d.ts +2 -0
- package/dist/src/routes/index.d.ts.map +1 -0
- package/dist/src/routes/index.js +14 -0
- package/dist/src/routes/pets.d.ts +3 -0
- package/dist/src/routes/pets.d.ts.map +1 -0
- package/dist/src/routes/pets.js +45 -0
- package/dist/src/routes/rbac.d.ts +2 -0
- package/dist/src/routes/rbac.d.ts.map +1 -0
- package/dist/src/routes/rbac.js +23 -0
- package/dist/src/schema/auth-schema.d.ts +76 -0
- package/dist/src/schema/auth-schema.d.ts.map +1 -0
- package/dist/src/schema/auth-schema.js +63 -0
- package/dist/src/schema/pet-schema.d.ts +28 -0
- package/dist/src/schema/pet-schema.d.ts.map +1 -0
- package/dist/src/schema/pet-schema.js +14 -0
- package/dist/src/server.d.ts +2 -0
- package/dist/src/server.d.ts.map +1 -0
- package/dist/src/server.js +31 -0
- package/dist/src/utils/logger.d.ts +11 -0
- package/dist/src/utils/logger.d.ts.map +1 -0
- package/dist/src/utils/logger.js +81 -0
- package/dist/src/utils/pagination.d.ts +19 -0
- package/dist/src/utils/pagination.d.ts.map +1 -0
- package/dist/src/utils/pagination.js +34 -0
- package/dist/src/utils/response.d.ts +11 -0
- package/dist/src/utils/response.d.ts.map +1 -0
- package/dist/src/utils/response.js +57 -0
- package/dist/src/utils/validator.d.ts +38 -0
- package/dist/src/utils/validator.d.ts.map +1 -0
- package/dist/src/utils/validator.js +369 -0
- package/lib/bootstrap.ts +6 -0
- package/package.json +26 -14
- package/.env.example +0 -19
- package/doc/ARCHITECTURE_GUIDE.md +0 -73
- package/doc/CHANGELOG.md +0 -77
- package/doc/CHEATSHEET.md +0 -94
- package/doc/CLI.md +0 -139
- package/doc/CONTRIBUTING.md +0 -105
- package/doc/DEPLOYMENT.md +0 -122
- package/doc/FAQ.md +0 -81
- package/doc/FEATURES.md +0 -165
- package/doc/GETTING_STARTED.md +0 -108
- package/doc/INTRODUCTION.md +0 -60
- package/doc/PACKAGES.md +0 -66
- package/doc/PERFORMANCE.md +0 -91
- package/doc/ROADMAP.md +0 -93
- package/doc/SECURITY.md +0 -93
- package/doc/STRUCTURE.md +0 -90
- package/doc/TUTORIAL.md +0 -192
- package/docker-compose.yml +0 -24
- package/eslint.config.mjs +0 -26
- package/framework.md +0 -168
- package/nodemon.json +0 -6
- package/prisma.config.ts +0 -15
- package/src/controllers/authController.ts +0 -469
- package/src/controllers/petController.ts +0 -194
- package/src/controllers/rbacController.ts +0 -478
- package/src/models/core.prisma +0 -163
- package/src/models/pets.prisma +0 -9
- package/src/routes/auth.ts +0 -74
- package/src/routes/index.ts +0 -10
- package/src/routes/pets.ts +0 -13
- package/src/routes/rbac.ts +0 -42
- package/storage/logs/.gitkeep +0 -0
- package/tsconfig.json +0 -30
|
@@ -0,0 +1,1291 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace";
|
|
3
|
+
/**
|
|
4
|
+
* Model user_roles
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type user_rolesModel = runtime.Types.Result.DefaultSelection<Prisma.$user_rolesPayload>;
|
|
8
|
+
export type AggregateUser_roles = {
|
|
9
|
+
_count: User_rolesCountAggregateOutputType | null;
|
|
10
|
+
_avg: User_rolesAvgAggregateOutputType | null;
|
|
11
|
+
_sum: User_rolesSumAggregateOutputType | null;
|
|
12
|
+
_min: User_rolesMinAggregateOutputType | null;
|
|
13
|
+
_max: User_rolesMaxAggregateOutputType | null;
|
|
14
|
+
};
|
|
15
|
+
export type User_rolesAvgAggregateOutputType = {
|
|
16
|
+
id: number | null;
|
|
17
|
+
user_id: number | null;
|
|
18
|
+
role_id: number | null;
|
|
19
|
+
};
|
|
20
|
+
export type User_rolesSumAggregateOutputType = {
|
|
21
|
+
id: bigint | null;
|
|
22
|
+
user_id: bigint | null;
|
|
23
|
+
role_id: bigint | null;
|
|
24
|
+
};
|
|
25
|
+
export type User_rolesMinAggregateOutputType = {
|
|
26
|
+
id: bigint | null;
|
|
27
|
+
user_id: bigint | null;
|
|
28
|
+
role_id: bigint | null;
|
|
29
|
+
created_at: Date | null;
|
|
30
|
+
};
|
|
31
|
+
export type User_rolesMaxAggregateOutputType = {
|
|
32
|
+
id: bigint | null;
|
|
33
|
+
user_id: bigint | null;
|
|
34
|
+
role_id: bigint | null;
|
|
35
|
+
created_at: Date | null;
|
|
36
|
+
};
|
|
37
|
+
export type User_rolesCountAggregateOutputType = {
|
|
38
|
+
id: number;
|
|
39
|
+
user_id: number;
|
|
40
|
+
role_id: number;
|
|
41
|
+
created_at: number;
|
|
42
|
+
_all: number;
|
|
43
|
+
};
|
|
44
|
+
export type User_rolesAvgAggregateInputType = {
|
|
45
|
+
id?: true;
|
|
46
|
+
user_id?: true;
|
|
47
|
+
role_id?: true;
|
|
48
|
+
};
|
|
49
|
+
export type User_rolesSumAggregateInputType = {
|
|
50
|
+
id?: true;
|
|
51
|
+
user_id?: true;
|
|
52
|
+
role_id?: true;
|
|
53
|
+
};
|
|
54
|
+
export type User_rolesMinAggregateInputType = {
|
|
55
|
+
id?: true;
|
|
56
|
+
user_id?: true;
|
|
57
|
+
role_id?: true;
|
|
58
|
+
created_at?: true;
|
|
59
|
+
};
|
|
60
|
+
export type User_rolesMaxAggregateInputType = {
|
|
61
|
+
id?: true;
|
|
62
|
+
user_id?: true;
|
|
63
|
+
role_id?: true;
|
|
64
|
+
created_at?: true;
|
|
65
|
+
};
|
|
66
|
+
export type User_rolesCountAggregateInputType = {
|
|
67
|
+
id?: true;
|
|
68
|
+
user_id?: true;
|
|
69
|
+
role_id?: true;
|
|
70
|
+
created_at?: true;
|
|
71
|
+
_all?: true;
|
|
72
|
+
};
|
|
73
|
+
export type User_rolesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
74
|
+
/**
|
|
75
|
+
* Filter which user_roles to aggregate.
|
|
76
|
+
*/
|
|
77
|
+
where?: Prisma.user_rolesWhereInput;
|
|
78
|
+
/**
|
|
79
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
80
|
+
*
|
|
81
|
+
* Determine the order of user_roles to fetch.
|
|
82
|
+
*/
|
|
83
|
+
orderBy?: Prisma.user_rolesOrderByWithRelationInput | Prisma.user_rolesOrderByWithRelationInput[];
|
|
84
|
+
/**
|
|
85
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
86
|
+
*
|
|
87
|
+
* Sets the start position
|
|
88
|
+
*/
|
|
89
|
+
cursor?: Prisma.user_rolesWhereUniqueInput;
|
|
90
|
+
/**
|
|
91
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
92
|
+
*
|
|
93
|
+
* Take `±n` user_roles from the position of the cursor.
|
|
94
|
+
*/
|
|
95
|
+
take?: number;
|
|
96
|
+
/**
|
|
97
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
98
|
+
*
|
|
99
|
+
* Skip the first `n` user_roles.
|
|
100
|
+
*/
|
|
101
|
+
skip?: number;
|
|
102
|
+
/**
|
|
103
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
104
|
+
*
|
|
105
|
+
* Count returned user_roles
|
|
106
|
+
**/
|
|
107
|
+
_count?: true | User_rolesCountAggregateInputType;
|
|
108
|
+
/**
|
|
109
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
110
|
+
*
|
|
111
|
+
* Select which fields to average
|
|
112
|
+
**/
|
|
113
|
+
_avg?: User_rolesAvgAggregateInputType;
|
|
114
|
+
/**
|
|
115
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
116
|
+
*
|
|
117
|
+
* Select which fields to sum
|
|
118
|
+
**/
|
|
119
|
+
_sum?: User_rolesSumAggregateInputType;
|
|
120
|
+
/**
|
|
121
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
122
|
+
*
|
|
123
|
+
* Select which fields to find the minimum value
|
|
124
|
+
**/
|
|
125
|
+
_min?: User_rolesMinAggregateInputType;
|
|
126
|
+
/**
|
|
127
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
128
|
+
*
|
|
129
|
+
* Select which fields to find the maximum value
|
|
130
|
+
**/
|
|
131
|
+
_max?: User_rolesMaxAggregateInputType;
|
|
132
|
+
};
|
|
133
|
+
export type GetUser_rolesAggregateType<T extends User_rolesAggregateArgs> = {
|
|
134
|
+
[P in keyof T & keyof AggregateUser_roles]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateUser_roles[P]> : Prisma.GetScalarType<T[P], AggregateUser_roles[P]>;
|
|
135
|
+
};
|
|
136
|
+
export type user_rolesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
137
|
+
where?: Prisma.user_rolesWhereInput;
|
|
138
|
+
orderBy?: Prisma.user_rolesOrderByWithAggregationInput | Prisma.user_rolesOrderByWithAggregationInput[];
|
|
139
|
+
by: Prisma.User_rolesScalarFieldEnum[] | Prisma.User_rolesScalarFieldEnum;
|
|
140
|
+
having?: Prisma.user_rolesScalarWhereWithAggregatesInput;
|
|
141
|
+
take?: number;
|
|
142
|
+
skip?: number;
|
|
143
|
+
_count?: User_rolesCountAggregateInputType | true;
|
|
144
|
+
_avg?: User_rolesAvgAggregateInputType;
|
|
145
|
+
_sum?: User_rolesSumAggregateInputType;
|
|
146
|
+
_min?: User_rolesMinAggregateInputType;
|
|
147
|
+
_max?: User_rolesMaxAggregateInputType;
|
|
148
|
+
};
|
|
149
|
+
export type User_rolesGroupByOutputType = {
|
|
150
|
+
id: bigint;
|
|
151
|
+
user_id: bigint;
|
|
152
|
+
role_id: bigint;
|
|
153
|
+
created_at: Date | null;
|
|
154
|
+
_count: User_rolesCountAggregateOutputType | null;
|
|
155
|
+
_avg: User_rolesAvgAggregateOutputType | null;
|
|
156
|
+
_sum: User_rolesSumAggregateOutputType | null;
|
|
157
|
+
_min: User_rolesMinAggregateOutputType | null;
|
|
158
|
+
_max: User_rolesMaxAggregateOutputType | null;
|
|
159
|
+
};
|
|
160
|
+
type GetUser_rolesGroupByPayload<T extends user_rolesGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<User_rolesGroupByOutputType, T['by']> & {
|
|
161
|
+
[P in ((keyof T) & (keyof User_rolesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], User_rolesGroupByOutputType[P]> : Prisma.GetScalarType<T[P], User_rolesGroupByOutputType[P]>;
|
|
162
|
+
}>>;
|
|
163
|
+
export type user_rolesWhereInput = {
|
|
164
|
+
AND?: Prisma.user_rolesWhereInput | Prisma.user_rolesWhereInput[];
|
|
165
|
+
OR?: Prisma.user_rolesWhereInput[];
|
|
166
|
+
NOT?: Prisma.user_rolesWhereInput | Prisma.user_rolesWhereInput[];
|
|
167
|
+
id?: Prisma.BigIntFilter<"user_roles"> | bigint | number;
|
|
168
|
+
user_id?: Prisma.BigIntFilter<"user_roles"> | bigint | number;
|
|
169
|
+
role_id?: Prisma.BigIntFilter<"user_roles"> | bigint | number;
|
|
170
|
+
created_at?: Prisma.DateTimeNullableFilter<"user_roles"> | Date | string | null;
|
|
171
|
+
users?: Prisma.XOR<Prisma.UsersScalarRelationFilter, Prisma.usersWhereInput>;
|
|
172
|
+
roles?: Prisma.XOR<Prisma.RolesScalarRelationFilter, Prisma.rolesWhereInput>;
|
|
173
|
+
};
|
|
174
|
+
export type user_rolesOrderByWithRelationInput = {
|
|
175
|
+
id?: Prisma.SortOrder;
|
|
176
|
+
user_id?: Prisma.SortOrder;
|
|
177
|
+
role_id?: Prisma.SortOrder;
|
|
178
|
+
created_at?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
179
|
+
users?: Prisma.usersOrderByWithRelationInput;
|
|
180
|
+
roles?: Prisma.rolesOrderByWithRelationInput;
|
|
181
|
+
};
|
|
182
|
+
export type user_rolesWhereUniqueInput = Prisma.AtLeast<{
|
|
183
|
+
id?: bigint | number;
|
|
184
|
+
user_id_role_id?: Prisma.user_rolesUser_idRole_idCompoundUniqueInput;
|
|
185
|
+
AND?: Prisma.user_rolesWhereInput | Prisma.user_rolesWhereInput[];
|
|
186
|
+
OR?: Prisma.user_rolesWhereInput[];
|
|
187
|
+
NOT?: Prisma.user_rolesWhereInput | Prisma.user_rolesWhereInput[];
|
|
188
|
+
user_id?: Prisma.BigIntFilter<"user_roles"> | bigint | number;
|
|
189
|
+
role_id?: Prisma.BigIntFilter<"user_roles"> | bigint | number;
|
|
190
|
+
created_at?: Prisma.DateTimeNullableFilter<"user_roles"> | Date | string | null;
|
|
191
|
+
users?: Prisma.XOR<Prisma.UsersScalarRelationFilter, Prisma.usersWhereInput>;
|
|
192
|
+
roles?: Prisma.XOR<Prisma.RolesScalarRelationFilter, Prisma.rolesWhereInput>;
|
|
193
|
+
}, "id" | "user_id_role_id">;
|
|
194
|
+
export type user_rolesOrderByWithAggregationInput = {
|
|
195
|
+
id?: Prisma.SortOrder;
|
|
196
|
+
user_id?: Prisma.SortOrder;
|
|
197
|
+
role_id?: Prisma.SortOrder;
|
|
198
|
+
created_at?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
199
|
+
_count?: Prisma.user_rolesCountOrderByAggregateInput;
|
|
200
|
+
_avg?: Prisma.user_rolesAvgOrderByAggregateInput;
|
|
201
|
+
_max?: Prisma.user_rolesMaxOrderByAggregateInput;
|
|
202
|
+
_min?: Prisma.user_rolesMinOrderByAggregateInput;
|
|
203
|
+
_sum?: Prisma.user_rolesSumOrderByAggregateInput;
|
|
204
|
+
};
|
|
205
|
+
export type user_rolesScalarWhereWithAggregatesInput = {
|
|
206
|
+
AND?: Prisma.user_rolesScalarWhereWithAggregatesInput | Prisma.user_rolesScalarWhereWithAggregatesInput[];
|
|
207
|
+
OR?: Prisma.user_rolesScalarWhereWithAggregatesInput[];
|
|
208
|
+
NOT?: Prisma.user_rolesScalarWhereWithAggregatesInput | Prisma.user_rolesScalarWhereWithAggregatesInput[];
|
|
209
|
+
id?: Prisma.BigIntWithAggregatesFilter<"user_roles"> | bigint | number;
|
|
210
|
+
user_id?: Prisma.BigIntWithAggregatesFilter<"user_roles"> | bigint | number;
|
|
211
|
+
role_id?: Prisma.BigIntWithAggregatesFilter<"user_roles"> | bigint | number;
|
|
212
|
+
created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"user_roles"> | Date | string | null;
|
|
213
|
+
};
|
|
214
|
+
export type user_rolesCreateInput = {
|
|
215
|
+
id?: bigint | number;
|
|
216
|
+
created_at?: Date | string | null;
|
|
217
|
+
users: Prisma.usersCreateNestedOneWithoutUser_rolesInput;
|
|
218
|
+
roles: Prisma.rolesCreateNestedOneWithoutUser_rolesInput;
|
|
219
|
+
};
|
|
220
|
+
export type user_rolesUncheckedCreateInput = {
|
|
221
|
+
id?: bigint | number;
|
|
222
|
+
user_id: bigint | number;
|
|
223
|
+
role_id: bigint | number;
|
|
224
|
+
created_at?: Date | string | null;
|
|
225
|
+
};
|
|
226
|
+
export type user_rolesUpdateInput = {
|
|
227
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
228
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
229
|
+
users?: Prisma.usersUpdateOneRequiredWithoutUser_rolesNestedInput;
|
|
230
|
+
roles?: Prisma.rolesUpdateOneRequiredWithoutUser_rolesNestedInput;
|
|
231
|
+
};
|
|
232
|
+
export type user_rolesUncheckedUpdateInput = {
|
|
233
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
234
|
+
user_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
235
|
+
role_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
236
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
237
|
+
};
|
|
238
|
+
export type user_rolesCreateManyInput = {
|
|
239
|
+
id?: bigint | number;
|
|
240
|
+
user_id: bigint | number;
|
|
241
|
+
role_id: bigint | number;
|
|
242
|
+
created_at?: Date | string | null;
|
|
243
|
+
};
|
|
244
|
+
export type user_rolesUpdateManyMutationInput = {
|
|
245
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
246
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
247
|
+
};
|
|
248
|
+
export type user_rolesUncheckedUpdateManyInput = {
|
|
249
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
250
|
+
user_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
251
|
+
role_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
252
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
253
|
+
};
|
|
254
|
+
export type User_rolesListRelationFilter = {
|
|
255
|
+
every?: Prisma.user_rolesWhereInput;
|
|
256
|
+
some?: Prisma.user_rolesWhereInput;
|
|
257
|
+
none?: Prisma.user_rolesWhereInput;
|
|
258
|
+
};
|
|
259
|
+
export type user_rolesOrderByRelationAggregateInput = {
|
|
260
|
+
_count?: Prisma.SortOrder;
|
|
261
|
+
};
|
|
262
|
+
export type user_rolesUser_idRole_idCompoundUniqueInput = {
|
|
263
|
+
user_id: bigint | number;
|
|
264
|
+
role_id: bigint | number;
|
|
265
|
+
};
|
|
266
|
+
export type user_rolesCountOrderByAggregateInput = {
|
|
267
|
+
id?: Prisma.SortOrder;
|
|
268
|
+
user_id?: Prisma.SortOrder;
|
|
269
|
+
role_id?: Prisma.SortOrder;
|
|
270
|
+
created_at?: Prisma.SortOrder;
|
|
271
|
+
};
|
|
272
|
+
export type user_rolesAvgOrderByAggregateInput = {
|
|
273
|
+
id?: Prisma.SortOrder;
|
|
274
|
+
user_id?: Prisma.SortOrder;
|
|
275
|
+
role_id?: Prisma.SortOrder;
|
|
276
|
+
};
|
|
277
|
+
export type user_rolesMaxOrderByAggregateInput = {
|
|
278
|
+
id?: Prisma.SortOrder;
|
|
279
|
+
user_id?: Prisma.SortOrder;
|
|
280
|
+
role_id?: Prisma.SortOrder;
|
|
281
|
+
created_at?: Prisma.SortOrder;
|
|
282
|
+
};
|
|
283
|
+
export type user_rolesMinOrderByAggregateInput = {
|
|
284
|
+
id?: Prisma.SortOrder;
|
|
285
|
+
user_id?: Prisma.SortOrder;
|
|
286
|
+
role_id?: Prisma.SortOrder;
|
|
287
|
+
created_at?: Prisma.SortOrder;
|
|
288
|
+
};
|
|
289
|
+
export type user_rolesSumOrderByAggregateInput = {
|
|
290
|
+
id?: Prisma.SortOrder;
|
|
291
|
+
user_id?: Prisma.SortOrder;
|
|
292
|
+
role_id?: Prisma.SortOrder;
|
|
293
|
+
};
|
|
294
|
+
export type user_rolesCreateNestedManyWithoutUsersInput = {
|
|
295
|
+
create?: Prisma.XOR<Prisma.user_rolesCreateWithoutUsersInput, Prisma.user_rolesUncheckedCreateWithoutUsersInput> | Prisma.user_rolesCreateWithoutUsersInput[] | Prisma.user_rolesUncheckedCreateWithoutUsersInput[];
|
|
296
|
+
connectOrCreate?: Prisma.user_rolesCreateOrConnectWithoutUsersInput | Prisma.user_rolesCreateOrConnectWithoutUsersInput[];
|
|
297
|
+
createMany?: Prisma.user_rolesCreateManyUsersInputEnvelope;
|
|
298
|
+
connect?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
299
|
+
};
|
|
300
|
+
export type user_rolesUncheckedCreateNestedManyWithoutUsersInput = {
|
|
301
|
+
create?: Prisma.XOR<Prisma.user_rolesCreateWithoutUsersInput, Prisma.user_rolesUncheckedCreateWithoutUsersInput> | Prisma.user_rolesCreateWithoutUsersInput[] | Prisma.user_rolesUncheckedCreateWithoutUsersInput[];
|
|
302
|
+
connectOrCreate?: Prisma.user_rolesCreateOrConnectWithoutUsersInput | Prisma.user_rolesCreateOrConnectWithoutUsersInput[];
|
|
303
|
+
createMany?: Prisma.user_rolesCreateManyUsersInputEnvelope;
|
|
304
|
+
connect?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
305
|
+
};
|
|
306
|
+
export type user_rolesUpdateManyWithoutUsersNestedInput = {
|
|
307
|
+
create?: Prisma.XOR<Prisma.user_rolesCreateWithoutUsersInput, Prisma.user_rolesUncheckedCreateWithoutUsersInput> | Prisma.user_rolesCreateWithoutUsersInput[] | Prisma.user_rolesUncheckedCreateWithoutUsersInput[];
|
|
308
|
+
connectOrCreate?: Prisma.user_rolesCreateOrConnectWithoutUsersInput | Prisma.user_rolesCreateOrConnectWithoutUsersInput[];
|
|
309
|
+
upsert?: Prisma.user_rolesUpsertWithWhereUniqueWithoutUsersInput | Prisma.user_rolesUpsertWithWhereUniqueWithoutUsersInput[];
|
|
310
|
+
createMany?: Prisma.user_rolesCreateManyUsersInputEnvelope;
|
|
311
|
+
set?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
312
|
+
disconnect?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
313
|
+
delete?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
314
|
+
connect?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
315
|
+
update?: Prisma.user_rolesUpdateWithWhereUniqueWithoutUsersInput | Prisma.user_rolesUpdateWithWhereUniqueWithoutUsersInput[];
|
|
316
|
+
updateMany?: Prisma.user_rolesUpdateManyWithWhereWithoutUsersInput | Prisma.user_rolesUpdateManyWithWhereWithoutUsersInput[];
|
|
317
|
+
deleteMany?: Prisma.user_rolesScalarWhereInput | Prisma.user_rolesScalarWhereInput[];
|
|
318
|
+
};
|
|
319
|
+
export type user_rolesUncheckedUpdateManyWithoutUsersNestedInput = {
|
|
320
|
+
create?: Prisma.XOR<Prisma.user_rolesCreateWithoutUsersInput, Prisma.user_rolesUncheckedCreateWithoutUsersInput> | Prisma.user_rolesCreateWithoutUsersInput[] | Prisma.user_rolesUncheckedCreateWithoutUsersInput[];
|
|
321
|
+
connectOrCreate?: Prisma.user_rolesCreateOrConnectWithoutUsersInput | Prisma.user_rolesCreateOrConnectWithoutUsersInput[];
|
|
322
|
+
upsert?: Prisma.user_rolesUpsertWithWhereUniqueWithoutUsersInput | Prisma.user_rolesUpsertWithWhereUniqueWithoutUsersInput[];
|
|
323
|
+
createMany?: Prisma.user_rolesCreateManyUsersInputEnvelope;
|
|
324
|
+
set?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
325
|
+
disconnect?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
326
|
+
delete?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
327
|
+
connect?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
328
|
+
update?: Prisma.user_rolesUpdateWithWhereUniqueWithoutUsersInput | Prisma.user_rolesUpdateWithWhereUniqueWithoutUsersInput[];
|
|
329
|
+
updateMany?: Prisma.user_rolesUpdateManyWithWhereWithoutUsersInput | Prisma.user_rolesUpdateManyWithWhereWithoutUsersInput[];
|
|
330
|
+
deleteMany?: Prisma.user_rolesScalarWhereInput | Prisma.user_rolesScalarWhereInput[];
|
|
331
|
+
};
|
|
332
|
+
export type user_rolesCreateNestedManyWithoutRolesInput = {
|
|
333
|
+
create?: Prisma.XOR<Prisma.user_rolesCreateWithoutRolesInput, Prisma.user_rolesUncheckedCreateWithoutRolesInput> | Prisma.user_rolesCreateWithoutRolesInput[] | Prisma.user_rolesUncheckedCreateWithoutRolesInput[];
|
|
334
|
+
connectOrCreate?: Prisma.user_rolesCreateOrConnectWithoutRolesInput | Prisma.user_rolesCreateOrConnectWithoutRolesInput[];
|
|
335
|
+
createMany?: Prisma.user_rolesCreateManyRolesInputEnvelope;
|
|
336
|
+
connect?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
337
|
+
};
|
|
338
|
+
export type user_rolesUncheckedCreateNestedManyWithoutRolesInput = {
|
|
339
|
+
create?: Prisma.XOR<Prisma.user_rolesCreateWithoutRolesInput, Prisma.user_rolesUncheckedCreateWithoutRolesInput> | Prisma.user_rolesCreateWithoutRolesInput[] | Prisma.user_rolesUncheckedCreateWithoutRolesInput[];
|
|
340
|
+
connectOrCreate?: Prisma.user_rolesCreateOrConnectWithoutRolesInput | Prisma.user_rolesCreateOrConnectWithoutRolesInput[];
|
|
341
|
+
createMany?: Prisma.user_rolesCreateManyRolesInputEnvelope;
|
|
342
|
+
connect?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
343
|
+
};
|
|
344
|
+
export type user_rolesUpdateManyWithoutRolesNestedInput = {
|
|
345
|
+
create?: Prisma.XOR<Prisma.user_rolesCreateWithoutRolesInput, Prisma.user_rolesUncheckedCreateWithoutRolesInput> | Prisma.user_rolesCreateWithoutRolesInput[] | Prisma.user_rolesUncheckedCreateWithoutRolesInput[];
|
|
346
|
+
connectOrCreate?: Prisma.user_rolesCreateOrConnectWithoutRolesInput | Prisma.user_rolesCreateOrConnectWithoutRolesInput[];
|
|
347
|
+
upsert?: Prisma.user_rolesUpsertWithWhereUniqueWithoutRolesInput | Prisma.user_rolesUpsertWithWhereUniqueWithoutRolesInput[];
|
|
348
|
+
createMany?: Prisma.user_rolesCreateManyRolesInputEnvelope;
|
|
349
|
+
set?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
350
|
+
disconnect?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
351
|
+
delete?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
352
|
+
connect?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
353
|
+
update?: Prisma.user_rolesUpdateWithWhereUniqueWithoutRolesInput | Prisma.user_rolesUpdateWithWhereUniqueWithoutRolesInput[];
|
|
354
|
+
updateMany?: Prisma.user_rolesUpdateManyWithWhereWithoutRolesInput | Prisma.user_rolesUpdateManyWithWhereWithoutRolesInput[];
|
|
355
|
+
deleteMany?: Prisma.user_rolesScalarWhereInput | Prisma.user_rolesScalarWhereInput[];
|
|
356
|
+
};
|
|
357
|
+
export type user_rolesUncheckedUpdateManyWithoutRolesNestedInput = {
|
|
358
|
+
create?: Prisma.XOR<Prisma.user_rolesCreateWithoutRolesInput, Prisma.user_rolesUncheckedCreateWithoutRolesInput> | Prisma.user_rolesCreateWithoutRolesInput[] | Prisma.user_rolesUncheckedCreateWithoutRolesInput[];
|
|
359
|
+
connectOrCreate?: Prisma.user_rolesCreateOrConnectWithoutRolesInput | Prisma.user_rolesCreateOrConnectWithoutRolesInput[];
|
|
360
|
+
upsert?: Prisma.user_rolesUpsertWithWhereUniqueWithoutRolesInput | Prisma.user_rolesUpsertWithWhereUniqueWithoutRolesInput[];
|
|
361
|
+
createMany?: Prisma.user_rolesCreateManyRolesInputEnvelope;
|
|
362
|
+
set?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
363
|
+
disconnect?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
364
|
+
delete?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
365
|
+
connect?: Prisma.user_rolesWhereUniqueInput | Prisma.user_rolesWhereUniqueInput[];
|
|
366
|
+
update?: Prisma.user_rolesUpdateWithWhereUniqueWithoutRolesInput | Prisma.user_rolesUpdateWithWhereUniqueWithoutRolesInput[];
|
|
367
|
+
updateMany?: Prisma.user_rolesUpdateManyWithWhereWithoutRolesInput | Prisma.user_rolesUpdateManyWithWhereWithoutRolesInput[];
|
|
368
|
+
deleteMany?: Prisma.user_rolesScalarWhereInput | Prisma.user_rolesScalarWhereInput[];
|
|
369
|
+
};
|
|
370
|
+
export type user_rolesCreateWithoutUsersInput = {
|
|
371
|
+
id?: bigint | number;
|
|
372
|
+
created_at?: Date | string | null;
|
|
373
|
+
roles: Prisma.rolesCreateNestedOneWithoutUser_rolesInput;
|
|
374
|
+
};
|
|
375
|
+
export type user_rolesUncheckedCreateWithoutUsersInput = {
|
|
376
|
+
id?: bigint | number;
|
|
377
|
+
role_id: bigint | number;
|
|
378
|
+
created_at?: Date | string | null;
|
|
379
|
+
};
|
|
380
|
+
export type user_rolesCreateOrConnectWithoutUsersInput = {
|
|
381
|
+
where: Prisma.user_rolesWhereUniqueInput;
|
|
382
|
+
create: Prisma.XOR<Prisma.user_rolesCreateWithoutUsersInput, Prisma.user_rolesUncheckedCreateWithoutUsersInput>;
|
|
383
|
+
};
|
|
384
|
+
export type user_rolesCreateManyUsersInputEnvelope = {
|
|
385
|
+
data: Prisma.user_rolesCreateManyUsersInput | Prisma.user_rolesCreateManyUsersInput[];
|
|
386
|
+
skipDuplicates?: boolean;
|
|
387
|
+
};
|
|
388
|
+
export type user_rolesUpsertWithWhereUniqueWithoutUsersInput = {
|
|
389
|
+
where: Prisma.user_rolesWhereUniqueInput;
|
|
390
|
+
update: Prisma.XOR<Prisma.user_rolesUpdateWithoutUsersInput, Prisma.user_rolesUncheckedUpdateWithoutUsersInput>;
|
|
391
|
+
create: Prisma.XOR<Prisma.user_rolesCreateWithoutUsersInput, Prisma.user_rolesUncheckedCreateWithoutUsersInput>;
|
|
392
|
+
};
|
|
393
|
+
export type user_rolesUpdateWithWhereUniqueWithoutUsersInput = {
|
|
394
|
+
where: Prisma.user_rolesWhereUniqueInput;
|
|
395
|
+
data: Prisma.XOR<Prisma.user_rolesUpdateWithoutUsersInput, Prisma.user_rolesUncheckedUpdateWithoutUsersInput>;
|
|
396
|
+
};
|
|
397
|
+
export type user_rolesUpdateManyWithWhereWithoutUsersInput = {
|
|
398
|
+
where: Prisma.user_rolesScalarWhereInput;
|
|
399
|
+
data: Prisma.XOR<Prisma.user_rolesUpdateManyMutationInput, Prisma.user_rolesUncheckedUpdateManyWithoutUsersInput>;
|
|
400
|
+
};
|
|
401
|
+
export type user_rolesScalarWhereInput = {
|
|
402
|
+
AND?: Prisma.user_rolesScalarWhereInput | Prisma.user_rolesScalarWhereInput[];
|
|
403
|
+
OR?: Prisma.user_rolesScalarWhereInput[];
|
|
404
|
+
NOT?: Prisma.user_rolesScalarWhereInput | Prisma.user_rolesScalarWhereInput[];
|
|
405
|
+
id?: Prisma.BigIntFilter<"user_roles"> | bigint | number;
|
|
406
|
+
user_id?: Prisma.BigIntFilter<"user_roles"> | bigint | number;
|
|
407
|
+
role_id?: Prisma.BigIntFilter<"user_roles"> | bigint | number;
|
|
408
|
+
created_at?: Prisma.DateTimeNullableFilter<"user_roles"> | Date | string | null;
|
|
409
|
+
};
|
|
410
|
+
export type user_rolesCreateWithoutRolesInput = {
|
|
411
|
+
id?: bigint | number;
|
|
412
|
+
created_at?: Date | string | null;
|
|
413
|
+
users: Prisma.usersCreateNestedOneWithoutUser_rolesInput;
|
|
414
|
+
};
|
|
415
|
+
export type user_rolesUncheckedCreateWithoutRolesInput = {
|
|
416
|
+
id?: bigint | number;
|
|
417
|
+
user_id: bigint | number;
|
|
418
|
+
created_at?: Date | string | null;
|
|
419
|
+
};
|
|
420
|
+
export type user_rolesCreateOrConnectWithoutRolesInput = {
|
|
421
|
+
where: Prisma.user_rolesWhereUniqueInput;
|
|
422
|
+
create: Prisma.XOR<Prisma.user_rolesCreateWithoutRolesInput, Prisma.user_rolesUncheckedCreateWithoutRolesInput>;
|
|
423
|
+
};
|
|
424
|
+
export type user_rolesCreateManyRolesInputEnvelope = {
|
|
425
|
+
data: Prisma.user_rolesCreateManyRolesInput | Prisma.user_rolesCreateManyRolesInput[];
|
|
426
|
+
skipDuplicates?: boolean;
|
|
427
|
+
};
|
|
428
|
+
export type user_rolesUpsertWithWhereUniqueWithoutRolesInput = {
|
|
429
|
+
where: Prisma.user_rolesWhereUniqueInput;
|
|
430
|
+
update: Prisma.XOR<Prisma.user_rolesUpdateWithoutRolesInput, Prisma.user_rolesUncheckedUpdateWithoutRolesInput>;
|
|
431
|
+
create: Prisma.XOR<Prisma.user_rolesCreateWithoutRolesInput, Prisma.user_rolesUncheckedCreateWithoutRolesInput>;
|
|
432
|
+
};
|
|
433
|
+
export type user_rolesUpdateWithWhereUniqueWithoutRolesInput = {
|
|
434
|
+
where: Prisma.user_rolesWhereUniqueInput;
|
|
435
|
+
data: Prisma.XOR<Prisma.user_rolesUpdateWithoutRolesInput, Prisma.user_rolesUncheckedUpdateWithoutRolesInput>;
|
|
436
|
+
};
|
|
437
|
+
export type user_rolesUpdateManyWithWhereWithoutRolesInput = {
|
|
438
|
+
where: Prisma.user_rolesScalarWhereInput;
|
|
439
|
+
data: Prisma.XOR<Prisma.user_rolesUpdateManyMutationInput, Prisma.user_rolesUncheckedUpdateManyWithoutRolesInput>;
|
|
440
|
+
};
|
|
441
|
+
export type user_rolesCreateManyUsersInput = {
|
|
442
|
+
id?: bigint | number;
|
|
443
|
+
role_id: bigint | number;
|
|
444
|
+
created_at?: Date | string | null;
|
|
445
|
+
};
|
|
446
|
+
export type user_rolesUpdateWithoutUsersInput = {
|
|
447
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
448
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
449
|
+
roles?: Prisma.rolesUpdateOneRequiredWithoutUser_rolesNestedInput;
|
|
450
|
+
};
|
|
451
|
+
export type user_rolesUncheckedUpdateWithoutUsersInput = {
|
|
452
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
453
|
+
role_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
454
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
455
|
+
};
|
|
456
|
+
export type user_rolesUncheckedUpdateManyWithoutUsersInput = {
|
|
457
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
458
|
+
role_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
459
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
460
|
+
};
|
|
461
|
+
export type user_rolesCreateManyRolesInput = {
|
|
462
|
+
id?: bigint | number;
|
|
463
|
+
user_id: bigint | number;
|
|
464
|
+
created_at?: Date | string | null;
|
|
465
|
+
};
|
|
466
|
+
export type user_rolesUpdateWithoutRolesInput = {
|
|
467
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
468
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
469
|
+
users?: Prisma.usersUpdateOneRequiredWithoutUser_rolesNestedInput;
|
|
470
|
+
};
|
|
471
|
+
export type user_rolesUncheckedUpdateWithoutRolesInput = {
|
|
472
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
473
|
+
user_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
474
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
475
|
+
};
|
|
476
|
+
export type user_rolesUncheckedUpdateManyWithoutRolesInput = {
|
|
477
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
478
|
+
user_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
479
|
+
created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
480
|
+
};
|
|
481
|
+
export type user_rolesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
482
|
+
id?: boolean;
|
|
483
|
+
user_id?: boolean;
|
|
484
|
+
role_id?: boolean;
|
|
485
|
+
created_at?: boolean;
|
|
486
|
+
users?: boolean | Prisma.usersDefaultArgs<ExtArgs>;
|
|
487
|
+
roles?: boolean | Prisma.rolesDefaultArgs<ExtArgs>;
|
|
488
|
+
}, ExtArgs["result"]["user_roles"]>;
|
|
489
|
+
export type user_rolesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
490
|
+
id?: boolean;
|
|
491
|
+
user_id?: boolean;
|
|
492
|
+
role_id?: boolean;
|
|
493
|
+
created_at?: boolean;
|
|
494
|
+
users?: boolean | Prisma.usersDefaultArgs<ExtArgs>;
|
|
495
|
+
roles?: boolean | Prisma.rolesDefaultArgs<ExtArgs>;
|
|
496
|
+
}, ExtArgs["result"]["user_roles"]>;
|
|
497
|
+
export type user_rolesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
498
|
+
id?: boolean;
|
|
499
|
+
user_id?: boolean;
|
|
500
|
+
role_id?: boolean;
|
|
501
|
+
created_at?: boolean;
|
|
502
|
+
users?: boolean | Prisma.usersDefaultArgs<ExtArgs>;
|
|
503
|
+
roles?: boolean | Prisma.rolesDefaultArgs<ExtArgs>;
|
|
504
|
+
}, ExtArgs["result"]["user_roles"]>;
|
|
505
|
+
export type user_rolesSelectScalar = {
|
|
506
|
+
id?: boolean;
|
|
507
|
+
user_id?: boolean;
|
|
508
|
+
role_id?: boolean;
|
|
509
|
+
created_at?: boolean;
|
|
510
|
+
};
|
|
511
|
+
export type user_rolesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "user_id" | "role_id" | "created_at", ExtArgs["result"]["user_roles"]>;
|
|
512
|
+
export type user_rolesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
513
|
+
users?: boolean | Prisma.usersDefaultArgs<ExtArgs>;
|
|
514
|
+
roles?: boolean | Prisma.rolesDefaultArgs<ExtArgs>;
|
|
515
|
+
};
|
|
516
|
+
export type user_rolesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
517
|
+
users?: boolean | Prisma.usersDefaultArgs<ExtArgs>;
|
|
518
|
+
roles?: boolean | Prisma.rolesDefaultArgs<ExtArgs>;
|
|
519
|
+
};
|
|
520
|
+
export type user_rolesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
521
|
+
users?: boolean | Prisma.usersDefaultArgs<ExtArgs>;
|
|
522
|
+
roles?: boolean | Prisma.rolesDefaultArgs<ExtArgs>;
|
|
523
|
+
};
|
|
524
|
+
export type $user_rolesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
525
|
+
name: "user_roles";
|
|
526
|
+
objects: {
|
|
527
|
+
users: Prisma.$usersPayload<ExtArgs>;
|
|
528
|
+
roles: Prisma.$rolesPayload<ExtArgs>;
|
|
529
|
+
};
|
|
530
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
531
|
+
id: bigint;
|
|
532
|
+
user_id: bigint;
|
|
533
|
+
role_id: bigint;
|
|
534
|
+
created_at: Date | null;
|
|
535
|
+
}, ExtArgs["result"]["user_roles"]>;
|
|
536
|
+
composites: {};
|
|
537
|
+
};
|
|
538
|
+
export type user_rolesGetPayload<S extends boolean | null | undefined | user_rolesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$user_rolesPayload, S>;
|
|
539
|
+
export type user_rolesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<user_rolesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
540
|
+
select?: User_rolesCountAggregateInputType | true;
|
|
541
|
+
};
|
|
542
|
+
export interface user_rolesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
543
|
+
[K: symbol]: {
|
|
544
|
+
types: Prisma.TypeMap<ExtArgs>['model']['user_roles'];
|
|
545
|
+
meta: {
|
|
546
|
+
name: 'user_roles';
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
/**
|
|
550
|
+
* Find zero or one User_roles that matches the filter.
|
|
551
|
+
* @param {user_rolesFindUniqueArgs} args - Arguments to find a User_roles
|
|
552
|
+
* @example
|
|
553
|
+
* // Get one User_roles
|
|
554
|
+
* const user_roles = await prisma.user_roles.findUnique({
|
|
555
|
+
* where: {
|
|
556
|
+
* // ... provide filter here
|
|
557
|
+
* }
|
|
558
|
+
* })
|
|
559
|
+
*/
|
|
560
|
+
findUnique<T extends user_rolesFindUniqueArgs>(args: Prisma.SelectSubset<T, user_rolesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__user_rolesClient<runtime.Types.Result.GetResult<Prisma.$user_rolesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
561
|
+
/**
|
|
562
|
+
* Find one User_roles that matches the filter or throw an error with `error.code='P2025'`
|
|
563
|
+
* if no matches were found.
|
|
564
|
+
* @param {user_rolesFindUniqueOrThrowArgs} args - Arguments to find a User_roles
|
|
565
|
+
* @example
|
|
566
|
+
* // Get one User_roles
|
|
567
|
+
* const user_roles = await prisma.user_roles.findUniqueOrThrow({
|
|
568
|
+
* where: {
|
|
569
|
+
* // ... provide filter here
|
|
570
|
+
* }
|
|
571
|
+
* })
|
|
572
|
+
*/
|
|
573
|
+
findUniqueOrThrow<T extends user_rolesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, user_rolesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__user_rolesClient<runtime.Types.Result.GetResult<Prisma.$user_rolesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
574
|
+
/**
|
|
575
|
+
* Find the first User_roles that matches the filter.
|
|
576
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
577
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
578
|
+
* @param {user_rolesFindFirstArgs} args - Arguments to find a User_roles
|
|
579
|
+
* @example
|
|
580
|
+
* // Get one User_roles
|
|
581
|
+
* const user_roles = await prisma.user_roles.findFirst({
|
|
582
|
+
* where: {
|
|
583
|
+
* // ... provide filter here
|
|
584
|
+
* }
|
|
585
|
+
* })
|
|
586
|
+
*/
|
|
587
|
+
findFirst<T extends user_rolesFindFirstArgs>(args?: Prisma.SelectSubset<T, user_rolesFindFirstArgs<ExtArgs>>): Prisma.Prisma__user_rolesClient<runtime.Types.Result.GetResult<Prisma.$user_rolesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
588
|
+
/**
|
|
589
|
+
* Find the first User_roles that matches the filter or
|
|
590
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
591
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
592
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
593
|
+
* @param {user_rolesFindFirstOrThrowArgs} args - Arguments to find a User_roles
|
|
594
|
+
* @example
|
|
595
|
+
* // Get one User_roles
|
|
596
|
+
* const user_roles = await prisma.user_roles.findFirstOrThrow({
|
|
597
|
+
* where: {
|
|
598
|
+
* // ... provide filter here
|
|
599
|
+
* }
|
|
600
|
+
* })
|
|
601
|
+
*/
|
|
602
|
+
findFirstOrThrow<T extends user_rolesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, user_rolesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__user_rolesClient<runtime.Types.Result.GetResult<Prisma.$user_rolesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
603
|
+
/**
|
|
604
|
+
* Find zero or more User_roles that matches the filter.
|
|
605
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
606
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
607
|
+
* @param {user_rolesFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
608
|
+
* @example
|
|
609
|
+
* // Get all User_roles
|
|
610
|
+
* const user_roles = await prisma.user_roles.findMany()
|
|
611
|
+
*
|
|
612
|
+
* // Get first 10 User_roles
|
|
613
|
+
* const user_roles = await prisma.user_roles.findMany({ take: 10 })
|
|
614
|
+
*
|
|
615
|
+
* // Only select the `id`
|
|
616
|
+
* const user_rolesWithIdOnly = await prisma.user_roles.findMany({ select: { id: true } })
|
|
617
|
+
*
|
|
618
|
+
*/
|
|
619
|
+
findMany<T extends user_rolesFindManyArgs>(args?: Prisma.SelectSubset<T, user_rolesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$user_rolesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
620
|
+
/**
|
|
621
|
+
* Create a User_roles.
|
|
622
|
+
* @param {user_rolesCreateArgs} args - Arguments to create a User_roles.
|
|
623
|
+
* @example
|
|
624
|
+
* // Create one User_roles
|
|
625
|
+
* const User_roles = await prisma.user_roles.create({
|
|
626
|
+
* data: {
|
|
627
|
+
* // ... data to create a User_roles
|
|
628
|
+
* }
|
|
629
|
+
* })
|
|
630
|
+
*
|
|
631
|
+
*/
|
|
632
|
+
create<T extends user_rolesCreateArgs>(args: Prisma.SelectSubset<T, user_rolesCreateArgs<ExtArgs>>): Prisma.Prisma__user_rolesClient<runtime.Types.Result.GetResult<Prisma.$user_rolesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
633
|
+
/**
|
|
634
|
+
* Create many User_roles.
|
|
635
|
+
* @param {user_rolesCreateManyArgs} args - Arguments to create many User_roles.
|
|
636
|
+
* @example
|
|
637
|
+
* // Create many User_roles
|
|
638
|
+
* const user_roles = await prisma.user_roles.createMany({
|
|
639
|
+
* data: [
|
|
640
|
+
* // ... provide data here
|
|
641
|
+
* ]
|
|
642
|
+
* })
|
|
643
|
+
*
|
|
644
|
+
*/
|
|
645
|
+
createMany<T extends user_rolesCreateManyArgs>(args?: Prisma.SelectSubset<T, user_rolesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
646
|
+
/**
|
|
647
|
+
* Create many User_roles and returns the data saved in the database.
|
|
648
|
+
* @param {user_rolesCreateManyAndReturnArgs} args - Arguments to create many User_roles.
|
|
649
|
+
* @example
|
|
650
|
+
* // Create many User_roles
|
|
651
|
+
* const user_roles = await prisma.user_roles.createManyAndReturn({
|
|
652
|
+
* data: [
|
|
653
|
+
* // ... provide data here
|
|
654
|
+
* ]
|
|
655
|
+
* })
|
|
656
|
+
*
|
|
657
|
+
* // Create many User_roles and only return the `id`
|
|
658
|
+
* const user_rolesWithIdOnly = await prisma.user_roles.createManyAndReturn({
|
|
659
|
+
* select: { id: true },
|
|
660
|
+
* data: [
|
|
661
|
+
* // ... provide data here
|
|
662
|
+
* ]
|
|
663
|
+
* })
|
|
664
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
665
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
666
|
+
*
|
|
667
|
+
*/
|
|
668
|
+
createManyAndReturn<T extends user_rolesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, user_rolesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$user_rolesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
669
|
+
/**
|
|
670
|
+
* Delete a User_roles.
|
|
671
|
+
* @param {user_rolesDeleteArgs} args - Arguments to delete one User_roles.
|
|
672
|
+
* @example
|
|
673
|
+
* // Delete one User_roles
|
|
674
|
+
* const User_roles = await prisma.user_roles.delete({
|
|
675
|
+
* where: {
|
|
676
|
+
* // ... filter to delete one User_roles
|
|
677
|
+
* }
|
|
678
|
+
* })
|
|
679
|
+
*
|
|
680
|
+
*/
|
|
681
|
+
delete<T extends user_rolesDeleteArgs>(args: Prisma.SelectSubset<T, user_rolesDeleteArgs<ExtArgs>>): Prisma.Prisma__user_rolesClient<runtime.Types.Result.GetResult<Prisma.$user_rolesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
682
|
+
/**
|
|
683
|
+
* Update one User_roles.
|
|
684
|
+
* @param {user_rolesUpdateArgs} args - Arguments to update one User_roles.
|
|
685
|
+
* @example
|
|
686
|
+
* // Update one User_roles
|
|
687
|
+
* const user_roles = await prisma.user_roles.update({
|
|
688
|
+
* where: {
|
|
689
|
+
* // ... provide filter here
|
|
690
|
+
* },
|
|
691
|
+
* data: {
|
|
692
|
+
* // ... provide data here
|
|
693
|
+
* }
|
|
694
|
+
* })
|
|
695
|
+
*
|
|
696
|
+
*/
|
|
697
|
+
update<T extends user_rolesUpdateArgs>(args: Prisma.SelectSubset<T, user_rolesUpdateArgs<ExtArgs>>): Prisma.Prisma__user_rolesClient<runtime.Types.Result.GetResult<Prisma.$user_rolesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
698
|
+
/**
|
|
699
|
+
* Delete zero or more User_roles.
|
|
700
|
+
* @param {user_rolesDeleteManyArgs} args - Arguments to filter User_roles to delete.
|
|
701
|
+
* @example
|
|
702
|
+
* // Delete a few User_roles
|
|
703
|
+
* const { count } = await prisma.user_roles.deleteMany({
|
|
704
|
+
* where: {
|
|
705
|
+
* // ... provide filter here
|
|
706
|
+
* }
|
|
707
|
+
* })
|
|
708
|
+
*
|
|
709
|
+
*/
|
|
710
|
+
deleteMany<T extends user_rolesDeleteManyArgs>(args?: Prisma.SelectSubset<T, user_rolesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
711
|
+
/**
|
|
712
|
+
* Update zero or more User_roles.
|
|
713
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
714
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
715
|
+
* @param {user_rolesUpdateManyArgs} args - Arguments to update one or more rows.
|
|
716
|
+
* @example
|
|
717
|
+
* // Update many User_roles
|
|
718
|
+
* const user_roles = await prisma.user_roles.updateMany({
|
|
719
|
+
* where: {
|
|
720
|
+
* // ... provide filter here
|
|
721
|
+
* },
|
|
722
|
+
* data: {
|
|
723
|
+
* // ... provide data here
|
|
724
|
+
* }
|
|
725
|
+
* })
|
|
726
|
+
*
|
|
727
|
+
*/
|
|
728
|
+
updateMany<T extends user_rolesUpdateManyArgs>(args: Prisma.SelectSubset<T, user_rolesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
729
|
+
/**
|
|
730
|
+
* Update zero or more User_roles and returns the data updated in the database.
|
|
731
|
+
* @param {user_rolesUpdateManyAndReturnArgs} args - Arguments to update many User_roles.
|
|
732
|
+
* @example
|
|
733
|
+
* // Update many User_roles
|
|
734
|
+
* const user_roles = await prisma.user_roles.updateManyAndReturn({
|
|
735
|
+
* where: {
|
|
736
|
+
* // ... provide filter here
|
|
737
|
+
* },
|
|
738
|
+
* data: [
|
|
739
|
+
* // ... provide data here
|
|
740
|
+
* ]
|
|
741
|
+
* })
|
|
742
|
+
*
|
|
743
|
+
* // Update zero or more User_roles and only return the `id`
|
|
744
|
+
* const user_rolesWithIdOnly = await prisma.user_roles.updateManyAndReturn({
|
|
745
|
+
* select: { id: true },
|
|
746
|
+
* where: {
|
|
747
|
+
* // ... provide filter here
|
|
748
|
+
* },
|
|
749
|
+
* data: [
|
|
750
|
+
* // ... provide data here
|
|
751
|
+
* ]
|
|
752
|
+
* })
|
|
753
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
754
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
755
|
+
*
|
|
756
|
+
*/
|
|
757
|
+
updateManyAndReturn<T extends user_rolesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, user_rolesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$user_rolesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
758
|
+
/**
|
|
759
|
+
* Create or update one User_roles.
|
|
760
|
+
* @param {user_rolesUpsertArgs} args - Arguments to update or create a User_roles.
|
|
761
|
+
* @example
|
|
762
|
+
* // Update or create a User_roles
|
|
763
|
+
* const user_roles = await prisma.user_roles.upsert({
|
|
764
|
+
* create: {
|
|
765
|
+
* // ... data to create a User_roles
|
|
766
|
+
* },
|
|
767
|
+
* update: {
|
|
768
|
+
* // ... in case it already exists, update
|
|
769
|
+
* },
|
|
770
|
+
* where: {
|
|
771
|
+
* // ... the filter for the User_roles we want to update
|
|
772
|
+
* }
|
|
773
|
+
* })
|
|
774
|
+
*/
|
|
775
|
+
upsert<T extends user_rolesUpsertArgs>(args: Prisma.SelectSubset<T, user_rolesUpsertArgs<ExtArgs>>): Prisma.Prisma__user_rolesClient<runtime.Types.Result.GetResult<Prisma.$user_rolesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
776
|
+
/**
|
|
777
|
+
* Count the number of User_roles.
|
|
778
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
779
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
780
|
+
* @param {user_rolesCountArgs} args - Arguments to filter User_roles to count.
|
|
781
|
+
* @example
|
|
782
|
+
* // Count the number of User_roles
|
|
783
|
+
* const count = await prisma.user_roles.count({
|
|
784
|
+
* where: {
|
|
785
|
+
* // ... the filter for the User_roles we want to count
|
|
786
|
+
* }
|
|
787
|
+
* })
|
|
788
|
+
**/
|
|
789
|
+
count<T extends user_rolesCountArgs>(args?: Prisma.Subset<T, user_rolesCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], User_rolesCountAggregateOutputType> : number>;
|
|
790
|
+
/**
|
|
791
|
+
* Allows you to perform aggregations operations on a User_roles.
|
|
792
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
793
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
794
|
+
* @param {User_rolesAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
795
|
+
* @example
|
|
796
|
+
* // Ordered by age ascending
|
|
797
|
+
* // Where email contains prisma.io
|
|
798
|
+
* // Limited to the 10 users
|
|
799
|
+
* const aggregations = await prisma.user.aggregate({
|
|
800
|
+
* _avg: {
|
|
801
|
+
* age: true,
|
|
802
|
+
* },
|
|
803
|
+
* where: {
|
|
804
|
+
* email: {
|
|
805
|
+
* contains: "prisma.io",
|
|
806
|
+
* },
|
|
807
|
+
* },
|
|
808
|
+
* orderBy: {
|
|
809
|
+
* age: "asc",
|
|
810
|
+
* },
|
|
811
|
+
* take: 10,
|
|
812
|
+
* })
|
|
813
|
+
**/
|
|
814
|
+
aggregate<T extends User_rolesAggregateArgs>(args: Prisma.Subset<T, User_rolesAggregateArgs>): Prisma.PrismaPromise<GetUser_rolesAggregateType<T>>;
|
|
815
|
+
/**
|
|
816
|
+
* Group by User_roles.
|
|
817
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
818
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
819
|
+
* @param {user_rolesGroupByArgs} args - Group by arguments.
|
|
820
|
+
* @example
|
|
821
|
+
* // Group by city, order by createdAt, get count
|
|
822
|
+
* const result = await prisma.user.groupBy({
|
|
823
|
+
* by: ['city', 'createdAt'],
|
|
824
|
+
* orderBy: {
|
|
825
|
+
* createdAt: true
|
|
826
|
+
* },
|
|
827
|
+
* _count: {
|
|
828
|
+
* _all: true
|
|
829
|
+
* },
|
|
830
|
+
* })
|
|
831
|
+
*
|
|
832
|
+
**/
|
|
833
|
+
groupBy<T extends user_rolesGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
834
|
+
orderBy: user_rolesGroupByArgs['orderBy'];
|
|
835
|
+
} : {
|
|
836
|
+
orderBy?: user_rolesGroupByArgs['orderBy'];
|
|
837
|
+
}, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
|
|
838
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
839
|
+
Error,
|
|
840
|
+
'Field ',
|
|
841
|
+
P,
|
|
842
|
+
` in "having" needs to be provided in "by"`
|
|
843
|
+
];
|
|
844
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
845
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
846
|
+
}[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
847
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
848
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
849
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
850
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, user_rolesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUser_rolesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
851
|
+
/**
|
|
852
|
+
* Fields of the user_roles model
|
|
853
|
+
*/
|
|
854
|
+
readonly fields: user_rolesFieldRefs;
|
|
855
|
+
}
|
|
856
|
+
/**
|
|
857
|
+
* The delegate class that acts as a "Promise-like" for user_roles.
|
|
858
|
+
* Why is this prefixed with `Prisma__`?
|
|
859
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
860
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
861
|
+
*/
|
|
862
|
+
export interface Prisma__user_rolesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
863
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
864
|
+
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>;
|
|
865
|
+
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>;
|
|
866
|
+
/**
|
|
867
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
868
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
869
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
870
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
871
|
+
*/
|
|
872
|
+
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>;
|
|
873
|
+
/**
|
|
874
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
875
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
876
|
+
* @returns A Promise for the completion of the callback.
|
|
877
|
+
*/
|
|
878
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
879
|
+
/**
|
|
880
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
881
|
+
* resolved value cannot be modified from the callback.
|
|
882
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
883
|
+
* @returns A Promise for the completion of the callback.
|
|
884
|
+
*/
|
|
885
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* Fields of the user_roles model
|
|
889
|
+
*/
|
|
890
|
+
export interface user_rolesFieldRefs {
|
|
891
|
+
readonly id: Prisma.FieldRef<"user_roles", 'BigInt'>;
|
|
892
|
+
readonly user_id: Prisma.FieldRef<"user_roles", 'BigInt'>;
|
|
893
|
+
readonly role_id: Prisma.FieldRef<"user_roles", 'BigInt'>;
|
|
894
|
+
readonly created_at: Prisma.FieldRef<"user_roles", 'DateTime'>;
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* user_roles findUnique
|
|
898
|
+
*/
|
|
899
|
+
export type user_rolesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
900
|
+
/**
|
|
901
|
+
* Select specific fields to fetch from the user_roles
|
|
902
|
+
*/
|
|
903
|
+
select?: Prisma.user_rolesSelect<ExtArgs> | null;
|
|
904
|
+
/**
|
|
905
|
+
* Omit specific fields from the user_roles
|
|
906
|
+
*/
|
|
907
|
+
omit?: Prisma.user_rolesOmit<ExtArgs> | null;
|
|
908
|
+
/**
|
|
909
|
+
* Choose, which related nodes to fetch as well
|
|
910
|
+
*/
|
|
911
|
+
include?: Prisma.user_rolesInclude<ExtArgs> | null;
|
|
912
|
+
/**
|
|
913
|
+
* Filter, which user_roles to fetch.
|
|
914
|
+
*/
|
|
915
|
+
where: Prisma.user_rolesWhereUniqueInput;
|
|
916
|
+
};
|
|
917
|
+
/**
|
|
918
|
+
* user_roles findUniqueOrThrow
|
|
919
|
+
*/
|
|
920
|
+
export type user_rolesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
921
|
+
/**
|
|
922
|
+
* Select specific fields to fetch from the user_roles
|
|
923
|
+
*/
|
|
924
|
+
select?: Prisma.user_rolesSelect<ExtArgs> | null;
|
|
925
|
+
/**
|
|
926
|
+
* Omit specific fields from the user_roles
|
|
927
|
+
*/
|
|
928
|
+
omit?: Prisma.user_rolesOmit<ExtArgs> | null;
|
|
929
|
+
/**
|
|
930
|
+
* Choose, which related nodes to fetch as well
|
|
931
|
+
*/
|
|
932
|
+
include?: Prisma.user_rolesInclude<ExtArgs> | null;
|
|
933
|
+
/**
|
|
934
|
+
* Filter, which user_roles to fetch.
|
|
935
|
+
*/
|
|
936
|
+
where: Prisma.user_rolesWhereUniqueInput;
|
|
937
|
+
};
|
|
938
|
+
/**
|
|
939
|
+
* user_roles findFirst
|
|
940
|
+
*/
|
|
941
|
+
export type user_rolesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
942
|
+
/**
|
|
943
|
+
* Select specific fields to fetch from the user_roles
|
|
944
|
+
*/
|
|
945
|
+
select?: Prisma.user_rolesSelect<ExtArgs> | null;
|
|
946
|
+
/**
|
|
947
|
+
* Omit specific fields from the user_roles
|
|
948
|
+
*/
|
|
949
|
+
omit?: Prisma.user_rolesOmit<ExtArgs> | null;
|
|
950
|
+
/**
|
|
951
|
+
* Choose, which related nodes to fetch as well
|
|
952
|
+
*/
|
|
953
|
+
include?: Prisma.user_rolesInclude<ExtArgs> | null;
|
|
954
|
+
/**
|
|
955
|
+
* Filter, which user_roles to fetch.
|
|
956
|
+
*/
|
|
957
|
+
where?: Prisma.user_rolesWhereInput;
|
|
958
|
+
/**
|
|
959
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
960
|
+
*
|
|
961
|
+
* Determine the order of user_roles to fetch.
|
|
962
|
+
*/
|
|
963
|
+
orderBy?: Prisma.user_rolesOrderByWithRelationInput | Prisma.user_rolesOrderByWithRelationInput[];
|
|
964
|
+
/**
|
|
965
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
966
|
+
*
|
|
967
|
+
* Sets the position for searching for user_roles.
|
|
968
|
+
*/
|
|
969
|
+
cursor?: Prisma.user_rolesWhereUniqueInput;
|
|
970
|
+
/**
|
|
971
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
972
|
+
*
|
|
973
|
+
* Take `±n` user_roles from the position of the cursor.
|
|
974
|
+
*/
|
|
975
|
+
take?: number;
|
|
976
|
+
/**
|
|
977
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
978
|
+
*
|
|
979
|
+
* Skip the first `n` user_roles.
|
|
980
|
+
*/
|
|
981
|
+
skip?: number;
|
|
982
|
+
/**
|
|
983
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
984
|
+
*
|
|
985
|
+
* Filter by unique combinations of user_roles.
|
|
986
|
+
*/
|
|
987
|
+
distinct?: Prisma.User_rolesScalarFieldEnum | Prisma.User_rolesScalarFieldEnum[];
|
|
988
|
+
};
|
|
989
|
+
/**
|
|
990
|
+
* user_roles findFirstOrThrow
|
|
991
|
+
*/
|
|
992
|
+
export type user_rolesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
993
|
+
/**
|
|
994
|
+
* Select specific fields to fetch from the user_roles
|
|
995
|
+
*/
|
|
996
|
+
select?: Prisma.user_rolesSelect<ExtArgs> | null;
|
|
997
|
+
/**
|
|
998
|
+
* Omit specific fields from the user_roles
|
|
999
|
+
*/
|
|
1000
|
+
omit?: Prisma.user_rolesOmit<ExtArgs> | null;
|
|
1001
|
+
/**
|
|
1002
|
+
* Choose, which related nodes to fetch as well
|
|
1003
|
+
*/
|
|
1004
|
+
include?: Prisma.user_rolesInclude<ExtArgs> | null;
|
|
1005
|
+
/**
|
|
1006
|
+
* Filter, which user_roles to fetch.
|
|
1007
|
+
*/
|
|
1008
|
+
where?: Prisma.user_rolesWhereInput;
|
|
1009
|
+
/**
|
|
1010
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1011
|
+
*
|
|
1012
|
+
* Determine the order of user_roles to fetch.
|
|
1013
|
+
*/
|
|
1014
|
+
orderBy?: Prisma.user_rolesOrderByWithRelationInput | Prisma.user_rolesOrderByWithRelationInput[];
|
|
1015
|
+
/**
|
|
1016
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1017
|
+
*
|
|
1018
|
+
* Sets the position for searching for user_roles.
|
|
1019
|
+
*/
|
|
1020
|
+
cursor?: Prisma.user_rolesWhereUniqueInput;
|
|
1021
|
+
/**
|
|
1022
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1023
|
+
*
|
|
1024
|
+
* Take `±n` user_roles from the position of the cursor.
|
|
1025
|
+
*/
|
|
1026
|
+
take?: number;
|
|
1027
|
+
/**
|
|
1028
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1029
|
+
*
|
|
1030
|
+
* Skip the first `n` user_roles.
|
|
1031
|
+
*/
|
|
1032
|
+
skip?: number;
|
|
1033
|
+
/**
|
|
1034
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1035
|
+
*
|
|
1036
|
+
* Filter by unique combinations of user_roles.
|
|
1037
|
+
*/
|
|
1038
|
+
distinct?: Prisma.User_rolesScalarFieldEnum | Prisma.User_rolesScalarFieldEnum[];
|
|
1039
|
+
};
|
|
1040
|
+
/**
|
|
1041
|
+
* user_roles findMany
|
|
1042
|
+
*/
|
|
1043
|
+
export type user_rolesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1044
|
+
/**
|
|
1045
|
+
* Select specific fields to fetch from the user_roles
|
|
1046
|
+
*/
|
|
1047
|
+
select?: Prisma.user_rolesSelect<ExtArgs> | null;
|
|
1048
|
+
/**
|
|
1049
|
+
* Omit specific fields from the user_roles
|
|
1050
|
+
*/
|
|
1051
|
+
omit?: Prisma.user_rolesOmit<ExtArgs> | null;
|
|
1052
|
+
/**
|
|
1053
|
+
* Choose, which related nodes to fetch as well
|
|
1054
|
+
*/
|
|
1055
|
+
include?: Prisma.user_rolesInclude<ExtArgs> | null;
|
|
1056
|
+
/**
|
|
1057
|
+
* Filter, which user_roles to fetch.
|
|
1058
|
+
*/
|
|
1059
|
+
where?: Prisma.user_rolesWhereInput;
|
|
1060
|
+
/**
|
|
1061
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1062
|
+
*
|
|
1063
|
+
* Determine the order of user_roles to fetch.
|
|
1064
|
+
*/
|
|
1065
|
+
orderBy?: Prisma.user_rolesOrderByWithRelationInput | Prisma.user_rolesOrderByWithRelationInput[];
|
|
1066
|
+
/**
|
|
1067
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1068
|
+
*
|
|
1069
|
+
* Sets the position for listing user_roles.
|
|
1070
|
+
*/
|
|
1071
|
+
cursor?: Prisma.user_rolesWhereUniqueInput;
|
|
1072
|
+
/**
|
|
1073
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1074
|
+
*
|
|
1075
|
+
* Take `±n` user_roles from the position of the cursor.
|
|
1076
|
+
*/
|
|
1077
|
+
take?: number;
|
|
1078
|
+
/**
|
|
1079
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1080
|
+
*
|
|
1081
|
+
* Skip the first `n` user_roles.
|
|
1082
|
+
*/
|
|
1083
|
+
skip?: number;
|
|
1084
|
+
distinct?: Prisma.User_rolesScalarFieldEnum | Prisma.User_rolesScalarFieldEnum[];
|
|
1085
|
+
};
|
|
1086
|
+
/**
|
|
1087
|
+
* user_roles create
|
|
1088
|
+
*/
|
|
1089
|
+
export type user_rolesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1090
|
+
/**
|
|
1091
|
+
* Select specific fields to fetch from the user_roles
|
|
1092
|
+
*/
|
|
1093
|
+
select?: Prisma.user_rolesSelect<ExtArgs> | null;
|
|
1094
|
+
/**
|
|
1095
|
+
* Omit specific fields from the user_roles
|
|
1096
|
+
*/
|
|
1097
|
+
omit?: Prisma.user_rolesOmit<ExtArgs> | null;
|
|
1098
|
+
/**
|
|
1099
|
+
* Choose, which related nodes to fetch as well
|
|
1100
|
+
*/
|
|
1101
|
+
include?: Prisma.user_rolesInclude<ExtArgs> | null;
|
|
1102
|
+
/**
|
|
1103
|
+
* The data needed to create a user_roles.
|
|
1104
|
+
*/
|
|
1105
|
+
data: Prisma.XOR<Prisma.user_rolesCreateInput, Prisma.user_rolesUncheckedCreateInput>;
|
|
1106
|
+
};
|
|
1107
|
+
/**
|
|
1108
|
+
* user_roles createMany
|
|
1109
|
+
*/
|
|
1110
|
+
export type user_rolesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1111
|
+
/**
|
|
1112
|
+
* The data used to create many user_roles.
|
|
1113
|
+
*/
|
|
1114
|
+
data: Prisma.user_rolesCreateManyInput | Prisma.user_rolesCreateManyInput[];
|
|
1115
|
+
skipDuplicates?: boolean;
|
|
1116
|
+
};
|
|
1117
|
+
/**
|
|
1118
|
+
* user_roles createManyAndReturn
|
|
1119
|
+
*/
|
|
1120
|
+
export type user_rolesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1121
|
+
/**
|
|
1122
|
+
* Select specific fields to fetch from the user_roles
|
|
1123
|
+
*/
|
|
1124
|
+
select?: Prisma.user_rolesSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1125
|
+
/**
|
|
1126
|
+
* Omit specific fields from the user_roles
|
|
1127
|
+
*/
|
|
1128
|
+
omit?: Prisma.user_rolesOmit<ExtArgs> | null;
|
|
1129
|
+
/**
|
|
1130
|
+
* The data used to create many user_roles.
|
|
1131
|
+
*/
|
|
1132
|
+
data: Prisma.user_rolesCreateManyInput | Prisma.user_rolesCreateManyInput[];
|
|
1133
|
+
skipDuplicates?: boolean;
|
|
1134
|
+
/**
|
|
1135
|
+
* Choose, which related nodes to fetch as well
|
|
1136
|
+
*/
|
|
1137
|
+
include?: Prisma.user_rolesIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1138
|
+
};
|
|
1139
|
+
/**
|
|
1140
|
+
* user_roles update
|
|
1141
|
+
*/
|
|
1142
|
+
export type user_rolesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1143
|
+
/**
|
|
1144
|
+
* Select specific fields to fetch from the user_roles
|
|
1145
|
+
*/
|
|
1146
|
+
select?: Prisma.user_rolesSelect<ExtArgs> | null;
|
|
1147
|
+
/**
|
|
1148
|
+
* Omit specific fields from the user_roles
|
|
1149
|
+
*/
|
|
1150
|
+
omit?: Prisma.user_rolesOmit<ExtArgs> | null;
|
|
1151
|
+
/**
|
|
1152
|
+
* Choose, which related nodes to fetch as well
|
|
1153
|
+
*/
|
|
1154
|
+
include?: Prisma.user_rolesInclude<ExtArgs> | null;
|
|
1155
|
+
/**
|
|
1156
|
+
* The data needed to update a user_roles.
|
|
1157
|
+
*/
|
|
1158
|
+
data: Prisma.XOR<Prisma.user_rolesUpdateInput, Prisma.user_rolesUncheckedUpdateInput>;
|
|
1159
|
+
/**
|
|
1160
|
+
* Choose, which user_roles to update.
|
|
1161
|
+
*/
|
|
1162
|
+
where: Prisma.user_rolesWhereUniqueInput;
|
|
1163
|
+
};
|
|
1164
|
+
/**
|
|
1165
|
+
* user_roles updateMany
|
|
1166
|
+
*/
|
|
1167
|
+
export type user_rolesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1168
|
+
/**
|
|
1169
|
+
* The data used to update user_roles.
|
|
1170
|
+
*/
|
|
1171
|
+
data: Prisma.XOR<Prisma.user_rolesUpdateManyMutationInput, Prisma.user_rolesUncheckedUpdateManyInput>;
|
|
1172
|
+
/**
|
|
1173
|
+
* Filter which user_roles to update
|
|
1174
|
+
*/
|
|
1175
|
+
where?: Prisma.user_rolesWhereInput;
|
|
1176
|
+
/**
|
|
1177
|
+
* Limit how many user_roles to update.
|
|
1178
|
+
*/
|
|
1179
|
+
limit?: number;
|
|
1180
|
+
};
|
|
1181
|
+
/**
|
|
1182
|
+
* user_roles updateManyAndReturn
|
|
1183
|
+
*/
|
|
1184
|
+
export type user_rolesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1185
|
+
/**
|
|
1186
|
+
* Select specific fields to fetch from the user_roles
|
|
1187
|
+
*/
|
|
1188
|
+
select?: Prisma.user_rolesSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1189
|
+
/**
|
|
1190
|
+
* Omit specific fields from the user_roles
|
|
1191
|
+
*/
|
|
1192
|
+
omit?: Prisma.user_rolesOmit<ExtArgs> | null;
|
|
1193
|
+
/**
|
|
1194
|
+
* The data used to update user_roles.
|
|
1195
|
+
*/
|
|
1196
|
+
data: Prisma.XOR<Prisma.user_rolesUpdateManyMutationInput, Prisma.user_rolesUncheckedUpdateManyInput>;
|
|
1197
|
+
/**
|
|
1198
|
+
* Filter which user_roles to update
|
|
1199
|
+
*/
|
|
1200
|
+
where?: Prisma.user_rolesWhereInput;
|
|
1201
|
+
/**
|
|
1202
|
+
* Limit how many user_roles to update.
|
|
1203
|
+
*/
|
|
1204
|
+
limit?: number;
|
|
1205
|
+
/**
|
|
1206
|
+
* Choose, which related nodes to fetch as well
|
|
1207
|
+
*/
|
|
1208
|
+
include?: Prisma.user_rolesIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1209
|
+
};
|
|
1210
|
+
/**
|
|
1211
|
+
* user_roles upsert
|
|
1212
|
+
*/
|
|
1213
|
+
export type user_rolesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1214
|
+
/**
|
|
1215
|
+
* Select specific fields to fetch from the user_roles
|
|
1216
|
+
*/
|
|
1217
|
+
select?: Prisma.user_rolesSelect<ExtArgs> | null;
|
|
1218
|
+
/**
|
|
1219
|
+
* Omit specific fields from the user_roles
|
|
1220
|
+
*/
|
|
1221
|
+
omit?: Prisma.user_rolesOmit<ExtArgs> | null;
|
|
1222
|
+
/**
|
|
1223
|
+
* Choose, which related nodes to fetch as well
|
|
1224
|
+
*/
|
|
1225
|
+
include?: Prisma.user_rolesInclude<ExtArgs> | null;
|
|
1226
|
+
/**
|
|
1227
|
+
* The filter to search for the user_roles to update in case it exists.
|
|
1228
|
+
*/
|
|
1229
|
+
where: Prisma.user_rolesWhereUniqueInput;
|
|
1230
|
+
/**
|
|
1231
|
+
* In case the user_roles found by the `where` argument doesn't exist, create a new user_roles with this data.
|
|
1232
|
+
*/
|
|
1233
|
+
create: Prisma.XOR<Prisma.user_rolesCreateInput, Prisma.user_rolesUncheckedCreateInput>;
|
|
1234
|
+
/**
|
|
1235
|
+
* In case the user_roles was found with the provided `where` argument, update it with this data.
|
|
1236
|
+
*/
|
|
1237
|
+
update: Prisma.XOR<Prisma.user_rolesUpdateInput, Prisma.user_rolesUncheckedUpdateInput>;
|
|
1238
|
+
};
|
|
1239
|
+
/**
|
|
1240
|
+
* user_roles delete
|
|
1241
|
+
*/
|
|
1242
|
+
export type user_rolesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1243
|
+
/**
|
|
1244
|
+
* Select specific fields to fetch from the user_roles
|
|
1245
|
+
*/
|
|
1246
|
+
select?: Prisma.user_rolesSelect<ExtArgs> | null;
|
|
1247
|
+
/**
|
|
1248
|
+
* Omit specific fields from the user_roles
|
|
1249
|
+
*/
|
|
1250
|
+
omit?: Prisma.user_rolesOmit<ExtArgs> | null;
|
|
1251
|
+
/**
|
|
1252
|
+
* Choose, which related nodes to fetch as well
|
|
1253
|
+
*/
|
|
1254
|
+
include?: Prisma.user_rolesInclude<ExtArgs> | null;
|
|
1255
|
+
/**
|
|
1256
|
+
* Filter which user_roles to delete.
|
|
1257
|
+
*/
|
|
1258
|
+
where: Prisma.user_rolesWhereUniqueInput;
|
|
1259
|
+
};
|
|
1260
|
+
/**
|
|
1261
|
+
* user_roles deleteMany
|
|
1262
|
+
*/
|
|
1263
|
+
export type user_rolesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1264
|
+
/**
|
|
1265
|
+
* Filter which user_roles to delete
|
|
1266
|
+
*/
|
|
1267
|
+
where?: Prisma.user_rolesWhereInput;
|
|
1268
|
+
/**
|
|
1269
|
+
* Limit how many user_roles to delete.
|
|
1270
|
+
*/
|
|
1271
|
+
limit?: number;
|
|
1272
|
+
};
|
|
1273
|
+
/**
|
|
1274
|
+
* user_roles without action
|
|
1275
|
+
*/
|
|
1276
|
+
export type user_rolesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1277
|
+
/**
|
|
1278
|
+
* Select specific fields to fetch from the user_roles
|
|
1279
|
+
*/
|
|
1280
|
+
select?: Prisma.user_rolesSelect<ExtArgs> | null;
|
|
1281
|
+
/**
|
|
1282
|
+
* Omit specific fields from the user_roles
|
|
1283
|
+
*/
|
|
1284
|
+
omit?: Prisma.user_rolesOmit<ExtArgs> | null;
|
|
1285
|
+
/**
|
|
1286
|
+
* Choose, which related nodes to fetch as well
|
|
1287
|
+
*/
|
|
1288
|
+
include?: Prisma.user_rolesInclude<ExtArgs> | null;
|
|
1289
|
+
};
|
|
1290
|
+
export {};
|
|
1291
|
+
//# sourceMappingURL=user_roles.d.ts.map
|