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,941 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace";
3
+ /**
4
+ * Model password_reset_tokens
5
+ *
6
+ */
7
+ export type password_reset_tokensModel = runtime.Types.Result.DefaultSelection<Prisma.$password_reset_tokensPayload>;
8
+ export type AggregatePassword_reset_tokens = {
9
+ _count: Password_reset_tokensCountAggregateOutputType | null;
10
+ _min: Password_reset_tokensMinAggregateOutputType | null;
11
+ _max: Password_reset_tokensMaxAggregateOutputType | null;
12
+ };
13
+ export type Password_reset_tokensMinAggregateOutputType = {
14
+ email: string | null;
15
+ token: string | null;
16
+ created_at: Date | null;
17
+ };
18
+ export type Password_reset_tokensMaxAggregateOutputType = {
19
+ email: string | null;
20
+ token: string | null;
21
+ created_at: Date | null;
22
+ };
23
+ export type Password_reset_tokensCountAggregateOutputType = {
24
+ email: number;
25
+ token: number;
26
+ created_at: number;
27
+ _all: number;
28
+ };
29
+ export type Password_reset_tokensMinAggregateInputType = {
30
+ email?: true;
31
+ token?: true;
32
+ created_at?: true;
33
+ };
34
+ export type Password_reset_tokensMaxAggregateInputType = {
35
+ email?: true;
36
+ token?: true;
37
+ created_at?: true;
38
+ };
39
+ export type Password_reset_tokensCountAggregateInputType = {
40
+ email?: true;
41
+ token?: true;
42
+ created_at?: true;
43
+ _all?: true;
44
+ };
45
+ export type Password_reset_tokensAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
46
+ /**
47
+ * Filter which password_reset_tokens to aggregate.
48
+ */
49
+ where?: Prisma.password_reset_tokensWhereInput;
50
+ /**
51
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
52
+ *
53
+ * Determine the order of password_reset_tokens to fetch.
54
+ */
55
+ orderBy?: Prisma.password_reset_tokensOrderByWithRelationInput | Prisma.password_reset_tokensOrderByWithRelationInput[];
56
+ /**
57
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
58
+ *
59
+ * Sets the start position
60
+ */
61
+ cursor?: Prisma.password_reset_tokensWhereUniqueInput;
62
+ /**
63
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
64
+ *
65
+ * Take `±n` password_reset_tokens from the position of the cursor.
66
+ */
67
+ take?: number;
68
+ /**
69
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
70
+ *
71
+ * Skip the first `n` password_reset_tokens.
72
+ */
73
+ skip?: number;
74
+ /**
75
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
76
+ *
77
+ * Count returned password_reset_tokens
78
+ **/
79
+ _count?: true | Password_reset_tokensCountAggregateInputType;
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
82
+ *
83
+ * Select which fields to find the minimum value
84
+ **/
85
+ _min?: Password_reset_tokensMinAggregateInputType;
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
88
+ *
89
+ * Select which fields to find the maximum value
90
+ **/
91
+ _max?: Password_reset_tokensMaxAggregateInputType;
92
+ };
93
+ export type GetPassword_reset_tokensAggregateType<T extends Password_reset_tokensAggregateArgs> = {
94
+ [P in keyof T & keyof AggregatePassword_reset_tokens]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregatePassword_reset_tokens[P]> : Prisma.GetScalarType<T[P], AggregatePassword_reset_tokens[P]>;
95
+ };
96
+ export type password_reset_tokensGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
97
+ where?: Prisma.password_reset_tokensWhereInput;
98
+ orderBy?: Prisma.password_reset_tokensOrderByWithAggregationInput | Prisma.password_reset_tokensOrderByWithAggregationInput[];
99
+ by: Prisma.Password_reset_tokensScalarFieldEnum[] | Prisma.Password_reset_tokensScalarFieldEnum;
100
+ having?: Prisma.password_reset_tokensScalarWhereWithAggregatesInput;
101
+ take?: number;
102
+ skip?: number;
103
+ _count?: Password_reset_tokensCountAggregateInputType | true;
104
+ _min?: Password_reset_tokensMinAggregateInputType;
105
+ _max?: Password_reset_tokensMaxAggregateInputType;
106
+ };
107
+ export type Password_reset_tokensGroupByOutputType = {
108
+ email: string;
109
+ token: string;
110
+ created_at: Date | null;
111
+ _count: Password_reset_tokensCountAggregateOutputType | null;
112
+ _min: Password_reset_tokensMinAggregateOutputType | null;
113
+ _max: Password_reset_tokensMaxAggregateOutputType | null;
114
+ };
115
+ type GetPassword_reset_tokensGroupByPayload<T extends password_reset_tokensGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Password_reset_tokensGroupByOutputType, T['by']> & {
116
+ [P in ((keyof T) & (keyof Password_reset_tokensGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Password_reset_tokensGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Password_reset_tokensGroupByOutputType[P]>;
117
+ }>>;
118
+ export type password_reset_tokensWhereInput = {
119
+ AND?: Prisma.password_reset_tokensWhereInput | Prisma.password_reset_tokensWhereInput[];
120
+ OR?: Prisma.password_reset_tokensWhereInput[];
121
+ NOT?: Prisma.password_reset_tokensWhereInput | Prisma.password_reset_tokensWhereInput[];
122
+ email?: Prisma.StringFilter<"password_reset_tokens"> | string;
123
+ token?: Prisma.StringFilter<"password_reset_tokens"> | string;
124
+ created_at?: Prisma.DateTimeNullableFilter<"password_reset_tokens"> | Date | string | null;
125
+ };
126
+ export type password_reset_tokensOrderByWithRelationInput = {
127
+ email?: Prisma.SortOrder;
128
+ token?: Prisma.SortOrder;
129
+ created_at?: Prisma.SortOrderInput | Prisma.SortOrder;
130
+ };
131
+ export type password_reset_tokensWhereUniqueInput = Prisma.AtLeast<{
132
+ email?: string;
133
+ AND?: Prisma.password_reset_tokensWhereInput | Prisma.password_reset_tokensWhereInput[];
134
+ OR?: Prisma.password_reset_tokensWhereInput[];
135
+ NOT?: Prisma.password_reset_tokensWhereInput | Prisma.password_reset_tokensWhereInput[];
136
+ token?: Prisma.StringFilter<"password_reset_tokens"> | string;
137
+ created_at?: Prisma.DateTimeNullableFilter<"password_reset_tokens"> | Date | string | null;
138
+ }, "email">;
139
+ export type password_reset_tokensOrderByWithAggregationInput = {
140
+ email?: Prisma.SortOrder;
141
+ token?: Prisma.SortOrder;
142
+ created_at?: Prisma.SortOrderInput | Prisma.SortOrder;
143
+ _count?: Prisma.password_reset_tokensCountOrderByAggregateInput;
144
+ _max?: Prisma.password_reset_tokensMaxOrderByAggregateInput;
145
+ _min?: Prisma.password_reset_tokensMinOrderByAggregateInput;
146
+ };
147
+ export type password_reset_tokensScalarWhereWithAggregatesInput = {
148
+ AND?: Prisma.password_reset_tokensScalarWhereWithAggregatesInput | Prisma.password_reset_tokensScalarWhereWithAggregatesInput[];
149
+ OR?: Prisma.password_reset_tokensScalarWhereWithAggregatesInput[];
150
+ NOT?: Prisma.password_reset_tokensScalarWhereWithAggregatesInput | Prisma.password_reset_tokensScalarWhereWithAggregatesInput[];
151
+ email?: Prisma.StringWithAggregatesFilter<"password_reset_tokens"> | string;
152
+ token?: Prisma.StringWithAggregatesFilter<"password_reset_tokens"> | string;
153
+ created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"password_reset_tokens"> | Date | string | null;
154
+ };
155
+ export type password_reset_tokensCreateInput = {
156
+ email: string;
157
+ token: string;
158
+ created_at?: Date | string | null;
159
+ };
160
+ export type password_reset_tokensUncheckedCreateInput = {
161
+ email: string;
162
+ token: string;
163
+ created_at?: Date | string | null;
164
+ };
165
+ export type password_reset_tokensUpdateInput = {
166
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
167
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
168
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
169
+ };
170
+ export type password_reset_tokensUncheckedUpdateInput = {
171
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
172
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
173
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
174
+ };
175
+ export type password_reset_tokensCreateManyInput = {
176
+ email: string;
177
+ token: string;
178
+ created_at?: Date | string | null;
179
+ };
180
+ export type password_reset_tokensUpdateManyMutationInput = {
181
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
182
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
183
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
184
+ };
185
+ export type password_reset_tokensUncheckedUpdateManyInput = {
186
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
187
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
188
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
189
+ };
190
+ export type password_reset_tokensCountOrderByAggregateInput = {
191
+ email?: Prisma.SortOrder;
192
+ token?: Prisma.SortOrder;
193
+ created_at?: Prisma.SortOrder;
194
+ };
195
+ export type password_reset_tokensMaxOrderByAggregateInput = {
196
+ email?: Prisma.SortOrder;
197
+ token?: Prisma.SortOrder;
198
+ created_at?: Prisma.SortOrder;
199
+ };
200
+ export type password_reset_tokensMinOrderByAggregateInput = {
201
+ email?: Prisma.SortOrder;
202
+ token?: Prisma.SortOrder;
203
+ created_at?: Prisma.SortOrder;
204
+ };
205
+ export type NullableDateTimeFieldUpdateOperationsInput = {
206
+ set?: Date | string | null;
207
+ };
208
+ export type password_reset_tokensSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
209
+ email?: boolean;
210
+ token?: boolean;
211
+ created_at?: boolean;
212
+ }, ExtArgs["result"]["password_reset_tokens"]>;
213
+ export type password_reset_tokensSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
214
+ email?: boolean;
215
+ token?: boolean;
216
+ created_at?: boolean;
217
+ }, ExtArgs["result"]["password_reset_tokens"]>;
218
+ export type password_reset_tokensSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
219
+ email?: boolean;
220
+ token?: boolean;
221
+ created_at?: boolean;
222
+ }, ExtArgs["result"]["password_reset_tokens"]>;
223
+ export type password_reset_tokensSelectScalar = {
224
+ email?: boolean;
225
+ token?: boolean;
226
+ created_at?: boolean;
227
+ };
228
+ export type password_reset_tokensOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"email" | "token" | "created_at", ExtArgs["result"]["password_reset_tokens"]>;
229
+ export type $password_reset_tokensPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
230
+ name: "password_reset_tokens";
231
+ objects: {};
232
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
233
+ email: string;
234
+ token: string;
235
+ created_at: Date | null;
236
+ }, ExtArgs["result"]["password_reset_tokens"]>;
237
+ composites: {};
238
+ };
239
+ export type password_reset_tokensGetPayload<S extends boolean | null | undefined | password_reset_tokensDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$password_reset_tokensPayload, S>;
240
+ export type password_reset_tokensCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<password_reset_tokensFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
241
+ select?: Password_reset_tokensCountAggregateInputType | true;
242
+ };
243
+ export interface password_reset_tokensDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
244
+ [K: symbol]: {
245
+ types: Prisma.TypeMap<ExtArgs>['model']['password_reset_tokens'];
246
+ meta: {
247
+ name: 'password_reset_tokens';
248
+ };
249
+ };
250
+ /**
251
+ * Find zero or one Password_reset_tokens that matches the filter.
252
+ * @param {password_reset_tokensFindUniqueArgs} args - Arguments to find a Password_reset_tokens
253
+ * @example
254
+ * // Get one Password_reset_tokens
255
+ * const password_reset_tokens = await prisma.password_reset_tokens.findUnique({
256
+ * where: {
257
+ * // ... provide filter here
258
+ * }
259
+ * })
260
+ */
261
+ findUnique<T extends password_reset_tokensFindUniqueArgs>(args: Prisma.SelectSubset<T, password_reset_tokensFindUniqueArgs<ExtArgs>>): Prisma.Prisma__password_reset_tokensClient<runtime.Types.Result.GetResult<Prisma.$password_reset_tokensPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
262
+ /**
263
+ * Find one Password_reset_tokens that matches the filter or throw an error with `error.code='P2025'`
264
+ * if no matches were found.
265
+ * @param {password_reset_tokensFindUniqueOrThrowArgs} args - Arguments to find a Password_reset_tokens
266
+ * @example
267
+ * // Get one Password_reset_tokens
268
+ * const password_reset_tokens = await prisma.password_reset_tokens.findUniqueOrThrow({
269
+ * where: {
270
+ * // ... provide filter here
271
+ * }
272
+ * })
273
+ */
274
+ findUniqueOrThrow<T extends password_reset_tokensFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, password_reset_tokensFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__password_reset_tokensClient<runtime.Types.Result.GetResult<Prisma.$password_reset_tokensPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
275
+ /**
276
+ * Find the first Password_reset_tokens that matches the filter.
277
+ * Note, that providing `undefined` is treated as the value not being there.
278
+ * Read more here: https://pris.ly/d/null-undefined
279
+ * @param {password_reset_tokensFindFirstArgs} args - Arguments to find a Password_reset_tokens
280
+ * @example
281
+ * // Get one Password_reset_tokens
282
+ * const password_reset_tokens = await prisma.password_reset_tokens.findFirst({
283
+ * where: {
284
+ * // ... provide filter here
285
+ * }
286
+ * })
287
+ */
288
+ findFirst<T extends password_reset_tokensFindFirstArgs>(args?: Prisma.SelectSubset<T, password_reset_tokensFindFirstArgs<ExtArgs>>): Prisma.Prisma__password_reset_tokensClient<runtime.Types.Result.GetResult<Prisma.$password_reset_tokensPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
289
+ /**
290
+ * Find the first Password_reset_tokens that matches the filter or
291
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
292
+ * Note, that providing `undefined` is treated as the value not being there.
293
+ * Read more here: https://pris.ly/d/null-undefined
294
+ * @param {password_reset_tokensFindFirstOrThrowArgs} args - Arguments to find a Password_reset_tokens
295
+ * @example
296
+ * // Get one Password_reset_tokens
297
+ * const password_reset_tokens = await prisma.password_reset_tokens.findFirstOrThrow({
298
+ * where: {
299
+ * // ... provide filter here
300
+ * }
301
+ * })
302
+ */
303
+ findFirstOrThrow<T extends password_reset_tokensFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, password_reset_tokensFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__password_reset_tokensClient<runtime.Types.Result.GetResult<Prisma.$password_reset_tokensPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
304
+ /**
305
+ * Find zero or more Password_reset_tokens that matches the filter.
306
+ * Note, that providing `undefined` is treated as the value not being there.
307
+ * Read more here: https://pris.ly/d/null-undefined
308
+ * @param {password_reset_tokensFindManyArgs} args - Arguments to filter and select certain fields only.
309
+ * @example
310
+ * // Get all Password_reset_tokens
311
+ * const password_reset_tokens = await prisma.password_reset_tokens.findMany()
312
+ *
313
+ * // Get first 10 Password_reset_tokens
314
+ * const password_reset_tokens = await prisma.password_reset_tokens.findMany({ take: 10 })
315
+ *
316
+ * // Only select the `email`
317
+ * const password_reset_tokensWithEmailOnly = await prisma.password_reset_tokens.findMany({ select: { email: true } })
318
+ *
319
+ */
320
+ findMany<T extends password_reset_tokensFindManyArgs>(args?: Prisma.SelectSubset<T, password_reset_tokensFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$password_reset_tokensPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
321
+ /**
322
+ * Create a Password_reset_tokens.
323
+ * @param {password_reset_tokensCreateArgs} args - Arguments to create a Password_reset_tokens.
324
+ * @example
325
+ * // Create one Password_reset_tokens
326
+ * const Password_reset_tokens = await prisma.password_reset_tokens.create({
327
+ * data: {
328
+ * // ... data to create a Password_reset_tokens
329
+ * }
330
+ * })
331
+ *
332
+ */
333
+ create<T extends password_reset_tokensCreateArgs>(args: Prisma.SelectSubset<T, password_reset_tokensCreateArgs<ExtArgs>>): Prisma.Prisma__password_reset_tokensClient<runtime.Types.Result.GetResult<Prisma.$password_reset_tokensPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
334
+ /**
335
+ * Create many Password_reset_tokens.
336
+ * @param {password_reset_tokensCreateManyArgs} args - Arguments to create many Password_reset_tokens.
337
+ * @example
338
+ * // Create many Password_reset_tokens
339
+ * const password_reset_tokens = await prisma.password_reset_tokens.createMany({
340
+ * data: [
341
+ * // ... provide data here
342
+ * ]
343
+ * })
344
+ *
345
+ */
346
+ createMany<T extends password_reset_tokensCreateManyArgs>(args?: Prisma.SelectSubset<T, password_reset_tokensCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
347
+ /**
348
+ * Create many Password_reset_tokens and returns the data saved in the database.
349
+ * @param {password_reset_tokensCreateManyAndReturnArgs} args - Arguments to create many Password_reset_tokens.
350
+ * @example
351
+ * // Create many Password_reset_tokens
352
+ * const password_reset_tokens = await prisma.password_reset_tokens.createManyAndReturn({
353
+ * data: [
354
+ * // ... provide data here
355
+ * ]
356
+ * })
357
+ *
358
+ * // Create many Password_reset_tokens and only return the `email`
359
+ * const password_reset_tokensWithEmailOnly = await prisma.password_reset_tokens.createManyAndReturn({
360
+ * select: { email: true },
361
+ * data: [
362
+ * // ... provide data here
363
+ * ]
364
+ * })
365
+ * Note, that providing `undefined` is treated as the value not being there.
366
+ * Read more here: https://pris.ly/d/null-undefined
367
+ *
368
+ */
369
+ createManyAndReturn<T extends password_reset_tokensCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, password_reset_tokensCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$password_reset_tokensPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
370
+ /**
371
+ * Delete a Password_reset_tokens.
372
+ * @param {password_reset_tokensDeleteArgs} args - Arguments to delete one Password_reset_tokens.
373
+ * @example
374
+ * // Delete one Password_reset_tokens
375
+ * const Password_reset_tokens = await prisma.password_reset_tokens.delete({
376
+ * where: {
377
+ * // ... filter to delete one Password_reset_tokens
378
+ * }
379
+ * })
380
+ *
381
+ */
382
+ delete<T extends password_reset_tokensDeleteArgs>(args: Prisma.SelectSubset<T, password_reset_tokensDeleteArgs<ExtArgs>>): Prisma.Prisma__password_reset_tokensClient<runtime.Types.Result.GetResult<Prisma.$password_reset_tokensPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
383
+ /**
384
+ * Update one Password_reset_tokens.
385
+ * @param {password_reset_tokensUpdateArgs} args - Arguments to update one Password_reset_tokens.
386
+ * @example
387
+ * // Update one Password_reset_tokens
388
+ * const password_reset_tokens = await prisma.password_reset_tokens.update({
389
+ * where: {
390
+ * // ... provide filter here
391
+ * },
392
+ * data: {
393
+ * // ... provide data here
394
+ * }
395
+ * })
396
+ *
397
+ */
398
+ update<T extends password_reset_tokensUpdateArgs>(args: Prisma.SelectSubset<T, password_reset_tokensUpdateArgs<ExtArgs>>): Prisma.Prisma__password_reset_tokensClient<runtime.Types.Result.GetResult<Prisma.$password_reset_tokensPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
399
+ /**
400
+ * Delete zero or more Password_reset_tokens.
401
+ * @param {password_reset_tokensDeleteManyArgs} args - Arguments to filter Password_reset_tokens to delete.
402
+ * @example
403
+ * // Delete a few Password_reset_tokens
404
+ * const { count } = await prisma.password_reset_tokens.deleteMany({
405
+ * where: {
406
+ * // ... provide filter here
407
+ * }
408
+ * })
409
+ *
410
+ */
411
+ deleteMany<T extends password_reset_tokensDeleteManyArgs>(args?: Prisma.SelectSubset<T, password_reset_tokensDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
412
+ /**
413
+ * Update zero or more Password_reset_tokens.
414
+ * Note, that providing `undefined` is treated as the value not being there.
415
+ * Read more here: https://pris.ly/d/null-undefined
416
+ * @param {password_reset_tokensUpdateManyArgs} args - Arguments to update one or more rows.
417
+ * @example
418
+ * // Update many Password_reset_tokens
419
+ * const password_reset_tokens = await prisma.password_reset_tokens.updateMany({
420
+ * where: {
421
+ * // ... provide filter here
422
+ * },
423
+ * data: {
424
+ * // ... provide data here
425
+ * }
426
+ * })
427
+ *
428
+ */
429
+ updateMany<T extends password_reset_tokensUpdateManyArgs>(args: Prisma.SelectSubset<T, password_reset_tokensUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
430
+ /**
431
+ * Update zero or more Password_reset_tokens and returns the data updated in the database.
432
+ * @param {password_reset_tokensUpdateManyAndReturnArgs} args - Arguments to update many Password_reset_tokens.
433
+ * @example
434
+ * // Update many Password_reset_tokens
435
+ * const password_reset_tokens = await prisma.password_reset_tokens.updateManyAndReturn({
436
+ * where: {
437
+ * // ... provide filter here
438
+ * },
439
+ * data: [
440
+ * // ... provide data here
441
+ * ]
442
+ * })
443
+ *
444
+ * // Update zero or more Password_reset_tokens and only return the `email`
445
+ * const password_reset_tokensWithEmailOnly = await prisma.password_reset_tokens.updateManyAndReturn({
446
+ * select: { email: true },
447
+ * where: {
448
+ * // ... provide filter here
449
+ * },
450
+ * data: [
451
+ * // ... provide data here
452
+ * ]
453
+ * })
454
+ * Note, that providing `undefined` is treated as the value not being there.
455
+ * Read more here: https://pris.ly/d/null-undefined
456
+ *
457
+ */
458
+ updateManyAndReturn<T extends password_reset_tokensUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, password_reset_tokensUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$password_reset_tokensPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
459
+ /**
460
+ * Create or update one Password_reset_tokens.
461
+ * @param {password_reset_tokensUpsertArgs} args - Arguments to update or create a Password_reset_tokens.
462
+ * @example
463
+ * // Update or create a Password_reset_tokens
464
+ * const password_reset_tokens = await prisma.password_reset_tokens.upsert({
465
+ * create: {
466
+ * // ... data to create a Password_reset_tokens
467
+ * },
468
+ * update: {
469
+ * // ... in case it already exists, update
470
+ * },
471
+ * where: {
472
+ * // ... the filter for the Password_reset_tokens we want to update
473
+ * }
474
+ * })
475
+ */
476
+ upsert<T extends password_reset_tokensUpsertArgs>(args: Prisma.SelectSubset<T, password_reset_tokensUpsertArgs<ExtArgs>>): Prisma.Prisma__password_reset_tokensClient<runtime.Types.Result.GetResult<Prisma.$password_reset_tokensPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
477
+ /**
478
+ * Count the number of Password_reset_tokens.
479
+ * Note, that providing `undefined` is treated as the value not being there.
480
+ * Read more here: https://pris.ly/d/null-undefined
481
+ * @param {password_reset_tokensCountArgs} args - Arguments to filter Password_reset_tokens to count.
482
+ * @example
483
+ * // Count the number of Password_reset_tokens
484
+ * const count = await prisma.password_reset_tokens.count({
485
+ * where: {
486
+ * // ... the filter for the Password_reset_tokens we want to count
487
+ * }
488
+ * })
489
+ **/
490
+ count<T extends password_reset_tokensCountArgs>(args?: Prisma.Subset<T, password_reset_tokensCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Password_reset_tokensCountAggregateOutputType> : number>;
491
+ /**
492
+ * Allows you to perform aggregations operations on a Password_reset_tokens.
493
+ * Note, that providing `undefined` is treated as the value not being there.
494
+ * Read more here: https://pris.ly/d/null-undefined
495
+ * @param {Password_reset_tokensAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
496
+ * @example
497
+ * // Ordered by age ascending
498
+ * // Where email contains prisma.io
499
+ * // Limited to the 10 users
500
+ * const aggregations = await prisma.user.aggregate({
501
+ * _avg: {
502
+ * age: true,
503
+ * },
504
+ * where: {
505
+ * email: {
506
+ * contains: "prisma.io",
507
+ * },
508
+ * },
509
+ * orderBy: {
510
+ * age: "asc",
511
+ * },
512
+ * take: 10,
513
+ * })
514
+ **/
515
+ aggregate<T extends Password_reset_tokensAggregateArgs>(args: Prisma.Subset<T, Password_reset_tokensAggregateArgs>): Prisma.PrismaPromise<GetPassword_reset_tokensAggregateType<T>>;
516
+ /**
517
+ * Group by Password_reset_tokens.
518
+ * Note, that providing `undefined` is treated as the value not being there.
519
+ * Read more here: https://pris.ly/d/null-undefined
520
+ * @param {password_reset_tokensGroupByArgs} args - Group by arguments.
521
+ * @example
522
+ * // Group by city, order by createdAt, get count
523
+ * const result = await prisma.user.groupBy({
524
+ * by: ['city', 'createdAt'],
525
+ * orderBy: {
526
+ * createdAt: true
527
+ * },
528
+ * _count: {
529
+ * _all: true
530
+ * },
531
+ * })
532
+ *
533
+ **/
534
+ groupBy<T extends password_reset_tokensGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
535
+ orderBy: password_reset_tokensGroupByArgs['orderBy'];
536
+ } : {
537
+ orderBy?: password_reset_tokensGroupByArgs['orderBy'];
538
+ }, 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 ? {
539
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
540
+ Error,
541
+ 'Field ',
542
+ P,
543
+ ` in "having" needs to be provided in "by"`
544
+ ];
545
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
546
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
547
+ }[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 ? {} : {
548
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
549
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
550
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
551
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, password_reset_tokensGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPassword_reset_tokensGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
552
+ /**
553
+ * Fields of the password_reset_tokens model
554
+ */
555
+ readonly fields: password_reset_tokensFieldRefs;
556
+ }
557
+ /**
558
+ * The delegate class that acts as a "Promise-like" for password_reset_tokens.
559
+ * Why is this prefixed with `Prisma__`?
560
+ * Because we want to prevent naming conflicts as mentioned in
561
+ * https://github.com/prisma/prisma-client-js/issues/707
562
+ */
563
+ export interface Prisma__password_reset_tokensClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
564
+ readonly [Symbol.toStringTag]: "PrismaPromise";
565
+ /**
566
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
567
+ * @param onfulfilled The callback to execute when the Promise is resolved.
568
+ * @param onrejected The callback to execute when the Promise is rejected.
569
+ * @returns A Promise for the completion of which ever callback is executed.
570
+ */
571
+ 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>;
572
+ /**
573
+ * Attaches a callback for only the rejection of the Promise.
574
+ * @param onrejected The callback to execute when the Promise is rejected.
575
+ * @returns A Promise for the completion of the callback.
576
+ */
577
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
578
+ /**
579
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
580
+ * resolved value cannot be modified from the callback.
581
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
582
+ * @returns A Promise for the completion of the callback.
583
+ */
584
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
585
+ }
586
+ /**
587
+ * Fields of the password_reset_tokens model
588
+ */
589
+ export interface password_reset_tokensFieldRefs {
590
+ readonly email: Prisma.FieldRef<"password_reset_tokens", 'String'>;
591
+ readonly token: Prisma.FieldRef<"password_reset_tokens", 'String'>;
592
+ readonly created_at: Prisma.FieldRef<"password_reset_tokens", 'DateTime'>;
593
+ }
594
+ /**
595
+ * password_reset_tokens findUnique
596
+ */
597
+ export type password_reset_tokensFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
598
+ /**
599
+ * Select specific fields to fetch from the password_reset_tokens
600
+ */
601
+ select?: Prisma.password_reset_tokensSelect<ExtArgs> | null;
602
+ /**
603
+ * Omit specific fields from the password_reset_tokens
604
+ */
605
+ omit?: Prisma.password_reset_tokensOmit<ExtArgs> | null;
606
+ /**
607
+ * Filter, which password_reset_tokens to fetch.
608
+ */
609
+ where: Prisma.password_reset_tokensWhereUniqueInput;
610
+ };
611
+ /**
612
+ * password_reset_tokens findUniqueOrThrow
613
+ */
614
+ export type password_reset_tokensFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
615
+ /**
616
+ * Select specific fields to fetch from the password_reset_tokens
617
+ */
618
+ select?: Prisma.password_reset_tokensSelect<ExtArgs> | null;
619
+ /**
620
+ * Omit specific fields from the password_reset_tokens
621
+ */
622
+ omit?: Prisma.password_reset_tokensOmit<ExtArgs> | null;
623
+ /**
624
+ * Filter, which password_reset_tokens to fetch.
625
+ */
626
+ where: Prisma.password_reset_tokensWhereUniqueInput;
627
+ };
628
+ /**
629
+ * password_reset_tokens findFirst
630
+ */
631
+ export type password_reset_tokensFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
632
+ /**
633
+ * Select specific fields to fetch from the password_reset_tokens
634
+ */
635
+ select?: Prisma.password_reset_tokensSelect<ExtArgs> | null;
636
+ /**
637
+ * Omit specific fields from the password_reset_tokens
638
+ */
639
+ omit?: Prisma.password_reset_tokensOmit<ExtArgs> | null;
640
+ /**
641
+ * Filter, which password_reset_tokens to fetch.
642
+ */
643
+ where?: Prisma.password_reset_tokensWhereInput;
644
+ /**
645
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
646
+ *
647
+ * Determine the order of password_reset_tokens to fetch.
648
+ */
649
+ orderBy?: Prisma.password_reset_tokensOrderByWithRelationInput | Prisma.password_reset_tokensOrderByWithRelationInput[];
650
+ /**
651
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
652
+ *
653
+ * Sets the position for searching for password_reset_tokens.
654
+ */
655
+ cursor?: Prisma.password_reset_tokensWhereUniqueInput;
656
+ /**
657
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
658
+ *
659
+ * Take `±n` password_reset_tokens from the position of the cursor.
660
+ */
661
+ take?: number;
662
+ /**
663
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
664
+ *
665
+ * Skip the first `n` password_reset_tokens.
666
+ */
667
+ skip?: number;
668
+ /**
669
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
670
+ *
671
+ * Filter by unique combinations of password_reset_tokens.
672
+ */
673
+ distinct?: Prisma.Password_reset_tokensScalarFieldEnum | Prisma.Password_reset_tokensScalarFieldEnum[];
674
+ };
675
+ /**
676
+ * password_reset_tokens findFirstOrThrow
677
+ */
678
+ export type password_reset_tokensFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
679
+ /**
680
+ * Select specific fields to fetch from the password_reset_tokens
681
+ */
682
+ select?: Prisma.password_reset_tokensSelect<ExtArgs> | null;
683
+ /**
684
+ * Omit specific fields from the password_reset_tokens
685
+ */
686
+ omit?: Prisma.password_reset_tokensOmit<ExtArgs> | null;
687
+ /**
688
+ * Filter, which password_reset_tokens to fetch.
689
+ */
690
+ where?: Prisma.password_reset_tokensWhereInput;
691
+ /**
692
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
693
+ *
694
+ * Determine the order of password_reset_tokens to fetch.
695
+ */
696
+ orderBy?: Prisma.password_reset_tokensOrderByWithRelationInput | Prisma.password_reset_tokensOrderByWithRelationInput[];
697
+ /**
698
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
699
+ *
700
+ * Sets the position for searching for password_reset_tokens.
701
+ */
702
+ cursor?: Prisma.password_reset_tokensWhereUniqueInput;
703
+ /**
704
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
705
+ *
706
+ * Take `±n` password_reset_tokens from the position of the cursor.
707
+ */
708
+ take?: number;
709
+ /**
710
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
711
+ *
712
+ * Skip the first `n` password_reset_tokens.
713
+ */
714
+ skip?: number;
715
+ /**
716
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
717
+ *
718
+ * Filter by unique combinations of password_reset_tokens.
719
+ */
720
+ distinct?: Prisma.Password_reset_tokensScalarFieldEnum | Prisma.Password_reset_tokensScalarFieldEnum[];
721
+ };
722
+ /**
723
+ * password_reset_tokens findMany
724
+ */
725
+ export type password_reset_tokensFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
726
+ /**
727
+ * Select specific fields to fetch from the password_reset_tokens
728
+ */
729
+ select?: Prisma.password_reset_tokensSelect<ExtArgs> | null;
730
+ /**
731
+ * Omit specific fields from the password_reset_tokens
732
+ */
733
+ omit?: Prisma.password_reset_tokensOmit<ExtArgs> | null;
734
+ /**
735
+ * Filter, which password_reset_tokens to fetch.
736
+ */
737
+ where?: Prisma.password_reset_tokensWhereInput;
738
+ /**
739
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
740
+ *
741
+ * Determine the order of password_reset_tokens to fetch.
742
+ */
743
+ orderBy?: Prisma.password_reset_tokensOrderByWithRelationInput | Prisma.password_reset_tokensOrderByWithRelationInput[];
744
+ /**
745
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
746
+ *
747
+ * Sets the position for listing password_reset_tokens.
748
+ */
749
+ cursor?: Prisma.password_reset_tokensWhereUniqueInput;
750
+ /**
751
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
752
+ *
753
+ * Take `±n` password_reset_tokens from the position of the cursor.
754
+ */
755
+ take?: number;
756
+ /**
757
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
758
+ *
759
+ * Skip the first `n` password_reset_tokens.
760
+ */
761
+ skip?: number;
762
+ distinct?: Prisma.Password_reset_tokensScalarFieldEnum | Prisma.Password_reset_tokensScalarFieldEnum[];
763
+ };
764
+ /**
765
+ * password_reset_tokens create
766
+ */
767
+ export type password_reset_tokensCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
768
+ /**
769
+ * Select specific fields to fetch from the password_reset_tokens
770
+ */
771
+ select?: Prisma.password_reset_tokensSelect<ExtArgs> | null;
772
+ /**
773
+ * Omit specific fields from the password_reset_tokens
774
+ */
775
+ omit?: Prisma.password_reset_tokensOmit<ExtArgs> | null;
776
+ /**
777
+ * The data needed to create a password_reset_tokens.
778
+ */
779
+ data: Prisma.XOR<Prisma.password_reset_tokensCreateInput, Prisma.password_reset_tokensUncheckedCreateInput>;
780
+ };
781
+ /**
782
+ * password_reset_tokens createMany
783
+ */
784
+ export type password_reset_tokensCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
785
+ /**
786
+ * The data used to create many password_reset_tokens.
787
+ */
788
+ data: Prisma.password_reset_tokensCreateManyInput | Prisma.password_reset_tokensCreateManyInput[];
789
+ skipDuplicates?: boolean;
790
+ };
791
+ /**
792
+ * password_reset_tokens createManyAndReturn
793
+ */
794
+ export type password_reset_tokensCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
795
+ /**
796
+ * Select specific fields to fetch from the password_reset_tokens
797
+ */
798
+ select?: Prisma.password_reset_tokensSelectCreateManyAndReturn<ExtArgs> | null;
799
+ /**
800
+ * Omit specific fields from the password_reset_tokens
801
+ */
802
+ omit?: Prisma.password_reset_tokensOmit<ExtArgs> | null;
803
+ /**
804
+ * The data used to create many password_reset_tokens.
805
+ */
806
+ data: Prisma.password_reset_tokensCreateManyInput | Prisma.password_reset_tokensCreateManyInput[];
807
+ skipDuplicates?: boolean;
808
+ };
809
+ /**
810
+ * password_reset_tokens update
811
+ */
812
+ export type password_reset_tokensUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
813
+ /**
814
+ * Select specific fields to fetch from the password_reset_tokens
815
+ */
816
+ select?: Prisma.password_reset_tokensSelect<ExtArgs> | null;
817
+ /**
818
+ * Omit specific fields from the password_reset_tokens
819
+ */
820
+ omit?: Prisma.password_reset_tokensOmit<ExtArgs> | null;
821
+ /**
822
+ * The data needed to update a password_reset_tokens.
823
+ */
824
+ data: Prisma.XOR<Prisma.password_reset_tokensUpdateInput, Prisma.password_reset_tokensUncheckedUpdateInput>;
825
+ /**
826
+ * Choose, which password_reset_tokens to update.
827
+ */
828
+ where: Prisma.password_reset_tokensWhereUniqueInput;
829
+ };
830
+ /**
831
+ * password_reset_tokens updateMany
832
+ */
833
+ export type password_reset_tokensUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
834
+ /**
835
+ * The data used to update password_reset_tokens.
836
+ */
837
+ data: Prisma.XOR<Prisma.password_reset_tokensUpdateManyMutationInput, Prisma.password_reset_tokensUncheckedUpdateManyInput>;
838
+ /**
839
+ * Filter which password_reset_tokens to update
840
+ */
841
+ where?: Prisma.password_reset_tokensWhereInput;
842
+ /**
843
+ * Limit how many password_reset_tokens to update.
844
+ */
845
+ limit?: number;
846
+ };
847
+ /**
848
+ * password_reset_tokens updateManyAndReturn
849
+ */
850
+ export type password_reset_tokensUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
851
+ /**
852
+ * Select specific fields to fetch from the password_reset_tokens
853
+ */
854
+ select?: Prisma.password_reset_tokensSelectUpdateManyAndReturn<ExtArgs> | null;
855
+ /**
856
+ * Omit specific fields from the password_reset_tokens
857
+ */
858
+ omit?: Prisma.password_reset_tokensOmit<ExtArgs> | null;
859
+ /**
860
+ * The data used to update password_reset_tokens.
861
+ */
862
+ data: Prisma.XOR<Prisma.password_reset_tokensUpdateManyMutationInput, Prisma.password_reset_tokensUncheckedUpdateManyInput>;
863
+ /**
864
+ * Filter which password_reset_tokens to update
865
+ */
866
+ where?: Prisma.password_reset_tokensWhereInput;
867
+ /**
868
+ * Limit how many password_reset_tokens to update.
869
+ */
870
+ limit?: number;
871
+ };
872
+ /**
873
+ * password_reset_tokens upsert
874
+ */
875
+ export type password_reset_tokensUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
876
+ /**
877
+ * Select specific fields to fetch from the password_reset_tokens
878
+ */
879
+ select?: Prisma.password_reset_tokensSelect<ExtArgs> | null;
880
+ /**
881
+ * Omit specific fields from the password_reset_tokens
882
+ */
883
+ omit?: Prisma.password_reset_tokensOmit<ExtArgs> | null;
884
+ /**
885
+ * The filter to search for the password_reset_tokens to update in case it exists.
886
+ */
887
+ where: Prisma.password_reset_tokensWhereUniqueInput;
888
+ /**
889
+ * In case the password_reset_tokens found by the `where` argument doesn't exist, create a new password_reset_tokens with this data.
890
+ */
891
+ create: Prisma.XOR<Prisma.password_reset_tokensCreateInput, Prisma.password_reset_tokensUncheckedCreateInput>;
892
+ /**
893
+ * In case the password_reset_tokens was found with the provided `where` argument, update it with this data.
894
+ */
895
+ update: Prisma.XOR<Prisma.password_reset_tokensUpdateInput, Prisma.password_reset_tokensUncheckedUpdateInput>;
896
+ };
897
+ /**
898
+ * password_reset_tokens delete
899
+ */
900
+ export type password_reset_tokensDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
901
+ /**
902
+ * Select specific fields to fetch from the password_reset_tokens
903
+ */
904
+ select?: Prisma.password_reset_tokensSelect<ExtArgs> | null;
905
+ /**
906
+ * Omit specific fields from the password_reset_tokens
907
+ */
908
+ omit?: Prisma.password_reset_tokensOmit<ExtArgs> | null;
909
+ /**
910
+ * Filter which password_reset_tokens to delete.
911
+ */
912
+ where: Prisma.password_reset_tokensWhereUniqueInput;
913
+ };
914
+ /**
915
+ * password_reset_tokens deleteMany
916
+ */
917
+ export type password_reset_tokensDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
918
+ /**
919
+ * Filter which password_reset_tokens to delete
920
+ */
921
+ where?: Prisma.password_reset_tokensWhereInput;
922
+ /**
923
+ * Limit how many password_reset_tokens to delete.
924
+ */
925
+ limit?: number;
926
+ };
927
+ /**
928
+ * password_reset_tokens without action
929
+ */
930
+ export type password_reset_tokensDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
931
+ /**
932
+ * Select specific fields to fetch from the password_reset_tokens
933
+ */
934
+ select?: Prisma.password_reset_tokensSelect<ExtArgs> | null;
935
+ /**
936
+ * Omit specific fields from the password_reset_tokens
937
+ */
938
+ omit?: Prisma.password_reset_tokensOmit<ExtArgs> | null;
939
+ };
940
+ export {};
941
+ //# sourceMappingURL=password_reset_tokens.d.ts.map