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