@naisys/erp 3.0.0-beta.3

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.

Potentially problematic release.


This version of @naisys/erp might be problematic. Click here for more details.

Files changed (201) hide show
  1. package/bin/naisys-erp +2 -0
  2. package/client-dist/android-chrome-192x192.png +0 -0
  3. package/client-dist/android-chrome-512x512.png +0 -0
  4. package/client-dist/apple-touch-icon.png +0 -0
  5. package/client-dist/assets/index-45dVo30p.css +1 -0
  6. package/client-dist/assets/index-Dffms7F_.js +168 -0
  7. package/client-dist/assets/naisys-logo-CzoPnn5I.webp +0 -0
  8. package/client-dist/favicon.ico +0 -0
  9. package/client-dist/index.html +42 -0
  10. package/client-dist/site.webmanifest +22 -0
  11. package/dist/api-reference.d.ts +10 -0
  12. package/dist/api-reference.js +101 -0
  13. package/dist/audit.d.ts +5 -0
  14. package/dist/audit.js +14 -0
  15. package/dist/auth-middleware.d.ts +18 -0
  16. package/dist/auth-middleware.js +203 -0
  17. package/dist/dbConfig.d.ts +5 -0
  18. package/dist/dbConfig.js +10 -0
  19. package/dist/erpDb.d.ts +10 -0
  20. package/dist/erpDb.js +34 -0
  21. package/dist/erpServer.d.ts +10 -0
  22. package/dist/erpServer.js +321 -0
  23. package/dist/error-handler.d.ts +7 -0
  24. package/dist/error-handler.js +17 -0
  25. package/dist/generated/prisma/client.d.ts +154 -0
  26. package/dist/generated/prisma/client.js +35 -0
  27. package/dist/generated/prisma/commonInputTypes.d.ts +637 -0
  28. package/dist/generated/prisma/commonInputTypes.js +11 -0
  29. package/dist/generated/prisma/enums.d.ts +59 -0
  30. package/dist/generated/prisma/enums.js +60 -0
  31. package/dist/generated/prisma/internal/class.d.ts +406 -0
  32. package/dist/generated/prisma/internal/class.js +50 -0
  33. package/dist/generated/prisma/internal/prismaNamespace.d.ts +2722 -0
  34. package/dist/generated/prisma/internal/prismaNamespace.js +366 -0
  35. package/dist/generated/prisma/models/Attachment.d.ts +1455 -0
  36. package/dist/generated/prisma/models/Attachment.js +2 -0
  37. package/dist/generated/prisma/models/AuditLog.d.ts +1359 -0
  38. package/dist/generated/prisma/models/AuditLog.js +2 -0
  39. package/dist/generated/prisma/models/Field.d.ts +1880 -0
  40. package/dist/generated/prisma/models/Field.js +2 -0
  41. package/dist/generated/prisma/models/FieldAttachment.d.ts +1245 -0
  42. package/dist/generated/prisma/models/FieldAttachment.js +2 -0
  43. package/dist/generated/prisma/models/FieldRecord.d.ts +1625 -0
  44. package/dist/generated/prisma/models/FieldRecord.js +2 -0
  45. package/dist/generated/prisma/models/FieldSet.d.ts +1577 -0
  46. package/dist/generated/prisma/models/FieldSet.js +2 -0
  47. package/dist/generated/prisma/models/FieldValue.d.ts +1908 -0
  48. package/dist/generated/prisma/models/FieldValue.js +2 -0
  49. package/dist/generated/prisma/models/Item.d.ts +1858 -0
  50. package/dist/generated/prisma/models/Item.js +2 -0
  51. package/dist/generated/prisma/models/ItemInstance.d.ts +1987 -0
  52. package/dist/generated/prisma/models/ItemInstance.js +2 -0
  53. package/dist/generated/prisma/models/LaborTicket.d.ts +1867 -0
  54. package/dist/generated/prisma/models/LaborTicket.js +2 -0
  55. package/dist/generated/prisma/models/Operation.d.ts +2578 -0
  56. package/dist/generated/prisma/models/Operation.js +2 -0
  57. package/dist/generated/prisma/models/OperationDependency.d.ts +1434 -0
  58. package/dist/generated/prisma/models/OperationDependency.js +2 -0
  59. package/dist/generated/prisma/models/OperationFieldRef.d.ts +1539 -0
  60. package/dist/generated/prisma/models/OperationFieldRef.js +2 -0
  61. package/dist/generated/prisma/models/OperationRun.d.ts +2563 -0
  62. package/dist/generated/prisma/models/OperationRun.js +2 -0
  63. package/dist/generated/prisma/models/OperationRunComment.d.ts +1366 -0
  64. package/dist/generated/prisma/models/OperationRunComment.js +2 -0
  65. package/dist/generated/prisma/models/Order.d.ts +1931 -0
  66. package/dist/generated/prisma/models/Order.js +2 -0
  67. package/dist/generated/prisma/models/OrderRevision.d.ts +1962 -0
  68. package/dist/generated/prisma/models/OrderRevision.js +2 -0
  69. package/dist/generated/prisma/models/OrderRun.d.ts +2310 -0
  70. package/dist/generated/prisma/models/OrderRun.js +2 -0
  71. package/dist/generated/prisma/models/SchemaVersion.d.ts +985 -0
  72. package/dist/generated/prisma/models/SchemaVersion.js +2 -0
  73. package/dist/generated/prisma/models/Session.d.ts +1213 -0
  74. package/dist/generated/prisma/models/Session.js +2 -0
  75. package/dist/generated/prisma/models/Step.d.ts +2180 -0
  76. package/dist/generated/prisma/models/Step.js +2 -0
  77. package/dist/generated/prisma/models/StepRun.d.ts +1963 -0
  78. package/dist/generated/prisma/models/StepRun.js +2 -0
  79. package/dist/generated/prisma/models/User.d.ts +11819 -0
  80. package/dist/generated/prisma/models/User.js +2 -0
  81. package/dist/generated/prisma/models/UserPermission.d.ts +1348 -0
  82. package/dist/generated/prisma/models/UserPermission.js +2 -0
  83. package/dist/generated/prisma/models/WorkCenter.d.ts +1657 -0
  84. package/dist/generated/prisma/models/WorkCenter.js +2 -0
  85. package/dist/generated/prisma/models/WorkCenterUser.d.ts +1390 -0
  86. package/dist/generated/prisma/models/WorkCenterUser.js +2 -0
  87. package/dist/generated/prisma/models.d.ts +28 -0
  88. package/dist/generated/prisma/models.js +2 -0
  89. package/dist/hateoas.d.ts +7 -0
  90. package/dist/hateoas.js +61 -0
  91. package/dist/route-helpers.d.ts +318 -0
  92. package/dist/route-helpers.js +220 -0
  93. package/dist/routes/admin.d.ts +3 -0
  94. package/dist/routes/admin.js +147 -0
  95. package/dist/routes/audit.d.ts +3 -0
  96. package/dist/routes/audit.js +36 -0
  97. package/dist/routes/auth.d.ts +3 -0
  98. package/dist/routes/auth.js +112 -0
  99. package/dist/routes/dispatch.d.ts +3 -0
  100. package/dist/routes/dispatch.js +174 -0
  101. package/dist/routes/inventory.d.ts +3 -0
  102. package/dist/routes/inventory.js +70 -0
  103. package/dist/routes/item-fields.d.ts +3 -0
  104. package/dist/routes/item-fields.js +220 -0
  105. package/dist/routes/item-instances.d.ts +3 -0
  106. package/dist/routes/item-instances.js +426 -0
  107. package/dist/routes/items.d.ts +3 -0
  108. package/dist/routes/items.js +252 -0
  109. package/dist/routes/labor-tickets.d.ts +3 -0
  110. package/dist/routes/labor-tickets.js +268 -0
  111. package/dist/routes/operation-dependencies.d.ts +3 -0
  112. package/dist/routes/operation-dependencies.js +170 -0
  113. package/dist/routes/operation-field-refs.d.ts +3 -0
  114. package/dist/routes/operation-field-refs.js +263 -0
  115. package/dist/routes/operation-run-comments.d.ts +3 -0
  116. package/dist/routes/operation-run-comments.js +108 -0
  117. package/dist/routes/operation-run-transitions.d.ts +3 -0
  118. package/dist/routes/operation-run-transitions.js +249 -0
  119. package/dist/routes/operation-runs.d.ts +112 -0
  120. package/dist/routes/operation-runs.js +299 -0
  121. package/dist/routes/operations.d.ts +3 -0
  122. package/dist/routes/operations.js +283 -0
  123. package/dist/routes/order-revision-transitions.d.ts +3 -0
  124. package/dist/routes/order-revision-transitions.js +86 -0
  125. package/dist/routes/order-revisions.d.ts +51 -0
  126. package/dist/routes/order-revisions.js +327 -0
  127. package/dist/routes/order-run-transitions.d.ts +3 -0
  128. package/dist/routes/order-run-transitions.js +215 -0
  129. package/dist/routes/order-runs.d.ts +58 -0
  130. package/dist/routes/order-runs.js +335 -0
  131. package/dist/routes/orders.d.ts +3 -0
  132. package/dist/routes/orders.js +262 -0
  133. package/dist/routes/root.d.ts +3 -0
  134. package/dist/routes/root.js +123 -0
  135. package/dist/routes/schemas.d.ts +3 -0
  136. package/dist/routes/schemas.js +31 -0
  137. package/dist/routes/step-field-attachments.d.ts +3 -0
  138. package/dist/routes/step-field-attachments.js +231 -0
  139. package/dist/routes/step-fields.d.ts +100 -0
  140. package/dist/routes/step-fields.js +315 -0
  141. package/dist/routes/step-run-fields.d.ts +3 -0
  142. package/dist/routes/step-run-fields.js +438 -0
  143. package/dist/routes/step-run-transitions.d.ts +3 -0
  144. package/dist/routes/step-run-transitions.js +113 -0
  145. package/dist/routes/step-runs.d.ts +332 -0
  146. package/dist/routes/step-runs.js +324 -0
  147. package/dist/routes/steps.d.ts +3 -0
  148. package/dist/routes/steps.js +283 -0
  149. package/dist/routes/user-permissions.d.ts +3 -0
  150. package/dist/routes/user-permissions.js +100 -0
  151. package/dist/routes/users.d.ts +57 -0
  152. package/dist/routes/users.js +381 -0
  153. package/dist/routes/work-centers.d.ts +3 -0
  154. package/dist/routes/work-centers.js +280 -0
  155. package/dist/schema-registry.d.ts +3 -0
  156. package/dist/schema-registry.js +45 -0
  157. package/dist/services/attachment-service.d.ts +33 -0
  158. package/dist/services/attachment-service.js +118 -0
  159. package/dist/services/field-ref-service.d.ts +96 -0
  160. package/dist/services/field-ref-service.js +74 -0
  161. package/dist/services/field-service.d.ts +49 -0
  162. package/dist/services/field-service.js +114 -0
  163. package/dist/services/field-value-service.d.ts +61 -0
  164. package/dist/services/field-value-service.js +256 -0
  165. package/dist/services/item-instance-service.d.ts +152 -0
  166. package/dist/services/item-instance-service.js +155 -0
  167. package/dist/services/item-service.d.ts +47 -0
  168. package/dist/services/item-service.js +56 -0
  169. package/dist/services/labor-ticket-service.d.ts +40 -0
  170. package/dist/services/labor-ticket-service.js +148 -0
  171. package/dist/services/log-file-service.d.ts +4 -0
  172. package/dist/services/log-file-service.js +11 -0
  173. package/dist/services/operation-dependency-service.d.ts +33 -0
  174. package/dist/services/operation-dependency-service.js +30 -0
  175. package/dist/services/operation-run-comment-service.d.ts +17 -0
  176. package/dist/services/operation-run-comment-service.js +26 -0
  177. package/dist/services/operation-run-service.d.ts +126 -0
  178. package/dist/services/operation-run-service.js +347 -0
  179. package/dist/services/operation-service.d.ts +47 -0
  180. package/dist/services/operation-service.js +132 -0
  181. package/dist/services/order-revision-service.d.ts +53 -0
  182. package/dist/services/order-revision-service.js +264 -0
  183. package/dist/services/order-run-service.d.ts +138 -0
  184. package/dist/services/order-run-service.js +356 -0
  185. package/dist/services/order-service.d.ts +15 -0
  186. package/dist/services/order-service.js +68 -0
  187. package/dist/services/revision-diff-service.d.ts +3 -0
  188. package/dist/services/revision-diff-service.js +194 -0
  189. package/dist/services/step-run-service.d.ts +172 -0
  190. package/dist/services/step-run-service.js +106 -0
  191. package/dist/services/step-service.d.ts +104 -0
  192. package/dist/services/step-service.js +89 -0
  193. package/dist/services/user-service.d.ts +185 -0
  194. package/dist/services/user-service.js +132 -0
  195. package/dist/services/work-center-service.d.ts +29 -0
  196. package/dist/services/work-center-service.js +106 -0
  197. package/dist/supervisorAuth.d.ts +3 -0
  198. package/dist/supervisorAuth.js +16 -0
  199. package/dist/userService.d.ts +20 -0
  200. package/dist/userService.js +118 -0
  201. package/package.json +69 -0
@@ -0,0 +1,1359 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model AuditLog
5
+ *
6
+ */
7
+ export type AuditLogModel = runtime.Types.Result.DefaultSelection<Prisma.$AuditLogPayload>;
8
+ export type AggregateAuditLog = {
9
+ _count: AuditLogCountAggregateOutputType | null;
10
+ _avg: AuditLogAvgAggregateOutputType | null;
11
+ _sum: AuditLogSumAggregateOutputType | null;
12
+ _min: AuditLogMinAggregateOutputType | null;
13
+ _max: AuditLogMaxAggregateOutputType | null;
14
+ };
15
+ export type AuditLogAvgAggregateOutputType = {
16
+ id: number | null;
17
+ entityId: number | null;
18
+ userId: number | null;
19
+ };
20
+ export type AuditLogSumAggregateOutputType = {
21
+ id: number | null;
22
+ entityId: number | null;
23
+ userId: number | null;
24
+ };
25
+ export type AuditLogMinAggregateOutputType = {
26
+ id: number | null;
27
+ entityType: string | null;
28
+ entityId: number | null;
29
+ action: string | null;
30
+ field: string | null;
31
+ oldValue: string | null;
32
+ newValue: string | null;
33
+ userId: number | null;
34
+ createdAt: Date | null;
35
+ };
36
+ export type AuditLogMaxAggregateOutputType = {
37
+ id: number | null;
38
+ entityType: string | null;
39
+ entityId: number | null;
40
+ action: string | null;
41
+ field: string | null;
42
+ oldValue: string | null;
43
+ newValue: string | null;
44
+ userId: number | null;
45
+ createdAt: Date | null;
46
+ };
47
+ export type AuditLogCountAggregateOutputType = {
48
+ id: number;
49
+ entityType: number;
50
+ entityId: number;
51
+ action: number;
52
+ field: number;
53
+ oldValue: number;
54
+ newValue: number;
55
+ userId: number;
56
+ createdAt: number;
57
+ _all: number;
58
+ };
59
+ export type AuditLogAvgAggregateInputType = {
60
+ id?: true;
61
+ entityId?: true;
62
+ userId?: true;
63
+ };
64
+ export type AuditLogSumAggregateInputType = {
65
+ id?: true;
66
+ entityId?: true;
67
+ userId?: true;
68
+ };
69
+ export type AuditLogMinAggregateInputType = {
70
+ id?: true;
71
+ entityType?: true;
72
+ entityId?: true;
73
+ action?: true;
74
+ field?: true;
75
+ oldValue?: true;
76
+ newValue?: true;
77
+ userId?: true;
78
+ createdAt?: true;
79
+ };
80
+ export type AuditLogMaxAggregateInputType = {
81
+ id?: true;
82
+ entityType?: true;
83
+ entityId?: true;
84
+ action?: true;
85
+ field?: true;
86
+ oldValue?: true;
87
+ newValue?: true;
88
+ userId?: true;
89
+ createdAt?: true;
90
+ };
91
+ export type AuditLogCountAggregateInputType = {
92
+ id?: true;
93
+ entityType?: true;
94
+ entityId?: true;
95
+ action?: true;
96
+ field?: true;
97
+ oldValue?: true;
98
+ newValue?: true;
99
+ userId?: true;
100
+ createdAt?: true;
101
+ _all?: true;
102
+ };
103
+ export type AuditLogAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
104
+ /**
105
+ * Filter which AuditLog to aggregate.
106
+ */
107
+ where?: Prisma.AuditLogWhereInput;
108
+ /**
109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
110
+ *
111
+ * Determine the order of AuditLogs to fetch.
112
+ */
113
+ orderBy?: Prisma.AuditLogOrderByWithRelationInput | Prisma.AuditLogOrderByWithRelationInput[];
114
+ /**
115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
116
+ *
117
+ * Sets the start position
118
+ */
119
+ cursor?: Prisma.AuditLogWhereUniqueInput;
120
+ /**
121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
122
+ *
123
+ * Take `±n` AuditLogs from the position of the cursor.
124
+ */
125
+ take?: number;
126
+ /**
127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
128
+ *
129
+ * Skip the first `n` AuditLogs.
130
+ */
131
+ skip?: number;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
134
+ *
135
+ * Count returned AuditLogs
136
+ **/
137
+ _count?: true | AuditLogCountAggregateInputType;
138
+ /**
139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
140
+ *
141
+ * Select which fields to average
142
+ **/
143
+ _avg?: AuditLogAvgAggregateInputType;
144
+ /**
145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
146
+ *
147
+ * Select which fields to sum
148
+ **/
149
+ _sum?: AuditLogSumAggregateInputType;
150
+ /**
151
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
152
+ *
153
+ * Select which fields to find the minimum value
154
+ **/
155
+ _min?: AuditLogMinAggregateInputType;
156
+ /**
157
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
158
+ *
159
+ * Select which fields to find the maximum value
160
+ **/
161
+ _max?: AuditLogMaxAggregateInputType;
162
+ };
163
+ export type GetAuditLogAggregateType<T extends AuditLogAggregateArgs> = {
164
+ [P in keyof T & keyof AggregateAuditLog]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAuditLog[P]> : Prisma.GetScalarType<T[P], AggregateAuditLog[P]>;
165
+ };
166
+ export type AuditLogGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
167
+ where?: Prisma.AuditLogWhereInput;
168
+ orderBy?: Prisma.AuditLogOrderByWithAggregationInput | Prisma.AuditLogOrderByWithAggregationInput[];
169
+ by: Prisma.AuditLogScalarFieldEnum[] | Prisma.AuditLogScalarFieldEnum;
170
+ having?: Prisma.AuditLogScalarWhereWithAggregatesInput;
171
+ take?: number;
172
+ skip?: number;
173
+ _count?: AuditLogCountAggregateInputType | true;
174
+ _avg?: AuditLogAvgAggregateInputType;
175
+ _sum?: AuditLogSumAggregateInputType;
176
+ _min?: AuditLogMinAggregateInputType;
177
+ _max?: AuditLogMaxAggregateInputType;
178
+ };
179
+ export type AuditLogGroupByOutputType = {
180
+ id: number;
181
+ entityType: string;
182
+ entityId: number;
183
+ action: string;
184
+ field: string;
185
+ oldValue: string | null;
186
+ newValue: string | null;
187
+ userId: number;
188
+ createdAt: Date;
189
+ _count: AuditLogCountAggregateOutputType | null;
190
+ _avg: AuditLogAvgAggregateOutputType | null;
191
+ _sum: AuditLogSumAggregateOutputType | null;
192
+ _min: AuditLogMinAggregateOutputType | null;
193
+ _max: AuditLogMaxAggregateOutputType | null;
194
+ };
195
+ type GetAuditLogGroupByPayload<T extends AuditLogGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<AuditLogGroupByOutputType, T['by']> & {
196
+ [P in ((keyof T) & (keyof AuditLogGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], AuditLogGroupByOutputType[P]> : Prisma.GetScalarType<T[P], AuditLogGroupByOutputType[P]>;
197
+ }>>;
198
+ export type AuditLogWhereInput = {
199
+ AND?: Prisma.AuditLogWhereInput | Prisma.AuditLogWhereInput[];
200
+ OR?: Prisma.AuditLogWhereInput[];
201
+ NOT?: Prisma.AuditLogWhereInput | Prisma.AuditLogWhereInput[];
202
+ id?: Prisma.IntFilter<"AuditLog"> | number;
203
+ entityType?: Prisma.StringFilter<"AuditLog"> | string;
204
+ entityId?: Prisma.IntFilter<"AuditLog"> | number;
205
+ action?: Prisma.StringFilter<"AuditLog"> | string;
206
+ field?: Prisma.StringFilter<"AuditLog"> | string;
207
+ oldValue?: Prisma.StringNullableFilter<"AuditLog"> | string | null;
208
+ newValue?: Prisma.StringNullableFilter<"AuditLog"> | string | null;
209
+ userId?: Prisma.IntFilter<"AuditLog"> | number;
210
+ createdAt?: Prisma.DateTimeFilter<"AuditLog"> | Date | string;
211
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
212
+ };
213
+ export type AuditLogOrderByWithRelationInput = {
214
+ id?: Prisma.SortOrder;
215
+ entityType?: Prisma.SortOrder;
216
+ entityId?: Prisma.SortOrder;
217
+ action?: Prisma.SortOrder;
218
+ field?: Prisma.SortOrder;
219
+ oldValue?: Prisma.SortOrderInput | Prisma.SortOrder;
220
+ newValue?: Prisma.SortOrderInput | Prisma.SortOrder;
221
+ userId?: Prisma.SortOrder;
222
+ createdAt?: Prisma.SortOrder;
223
+ user?: Prisma.UserOrderByWithRelationInput;
224
+ };
225
+ export type AuditLogWhereUniqueInput = Prisma.AtLeast<{
226
+ id?: number;
227
+ AND?: Prisma.AuditLogWhereInput | Prisma.AuditLogWhereInput[];
228
+ OR?: Prisma.AuditLogWhereInput[];
229
+ NOT?: Prisma.AuditLogWhereInput | Prisma.AuditLogWhereInput[];
230
+ entityType?: Prisma.StringFilter<"AuditLog"> | string;
231
+ entityId?: Prisma.IntFilter<"AuditLog"> | number;
232
+ action?: Prisma.StringFilter<"AuditLog"> | string;
233
+ field?: Prisma.StringFilter<"AuditLog"> | string;
234
+ oldValue?: Prisma.StringNullableFilter<"AuditLog"> | string | null;
235
+ newValue?: Prisma.StringNullableFilter<"AuditLog"> | string | null;
236
+ userId?: Prisma.IntFilter<"AuditLog"> | number;
237
+ createdAt?: Prisma.DateTimeFilter<"AuditLog"> | Date | string;
238
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
239
+ }, "id">;
240
+ export type AuditLogOrderByWithAggregationInput = {
241
+ id?: Prisma.SortOrder;
242
+ entityType?: Prisma.SortOrder;
243
+ entityId?: Prisma.SortOrder;
244
+ action?: Prisma.SortOrder;
245
+ field?: Prisma.SortOrder;
246
+ oldValue?: Prisma.SortOrderInput | Prisma.SortOrder;
247
+ newValue?: Prisma.SortOrderInput | Prisma.SortOrder;
248
+ userId?: Prisma.SortOrder;
249
+ createdAt?: Prisma.SortOrder;
250
+ _count?: Prisma.AuditLogCountOrderByAggregateInput;
251
+ _avg?: Prisma.AuditLogAvgOrderByAggregateInput;
252
+ _max?: Prisma.AuditLogMaxOrderByAggregateInput;
253
+ _min?: Prisma.AuditLogMinOrderByAggregateInput;
254
+ _sum?: Prisma.AuditLogSumOrderByAggregateInput;
255
+ };
256
+ export type AuditLogScalarWhereWithAggregatesInput = {
257
+ AND?: Prisma.AuditLogScalarWhereWithAggregatesInput | Prisma.AuditLogScalarWhereWithAggregatesInput[];
258
+ OR?: Prisma.AuditLogScalarWhereWithAggregatesInput[];
259
+ NOT?: Prisma.AuditLogScalarWhereWithAggregatesInput | Prisma.AuditLogScalarWhereWithAggregatesInput[];
260
+ id?: Prisma.IntWithAggregatesFilter<"AuditLog"> | number;
261
+ entityType?: Prisma.StringWithAggregatesFilter<"AuditLog"> | string;
262
+ entityId?: Prisma.IntWithAggregatesFilter<"AuditLog"> | number;
263
+ action?: Prisma.StringWithAggregatesFilter<"AuditLog"> | string;
264
+ field?: Prisma.StringWithAggregatesFilter<"AuditLog"> | string;
265
+ oldValue?: Prisma.StringNullableWithAggregatesFilter<"AuditLog"> | string | null;
266
+ newValue?: Prisma.StringNullableWithAggregatesFilter<"AuditLog"> | string | null;
267
+ userId?: Prisma.IntWithAggregatesFilter<"AuditLog"> | number;
268
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"AuditLog"> | Date | string;
269
+ };
270
+ export type AuditLogCreateInput = {
271
+ entityType: string;
272
+ entityId: number;
273
+ action: string;
274
+ field: string;
275
+ oldValue?: string | null;
276
+ newValue?: string | null;
277
+ createdAt?: Date | string;
278
+ user: Prisma.UserCreateNestedOneWithoutAuditLogsInput;
279
+ };
280
+ export type AuditLogUncheckedCreateInput = {
281
+ id?: number;
282
+ entityType: string;
283
+ entityId: number;
284
+ action: string;
285
+ field: string;
286
+ oldValue?: string | null;
287
+ newValue?: string | null;
288
+ userId: number;
289
+ createdAt?: Date | string;
290
+ };
291
+ export type AuditLogUpdateInput = {
292
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
293
+ entityId?: Prisma.IntFieldUpdateOperationsInput | number;
294
+ action?: Prisma.StringFieldUpdateOperationsInput | string;
295
+ field?: Prisma.StringFieldUpdateOperationsInput | string;
296
+ oldValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
297
+ newValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
298
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
299
+ user?: Prisma.UserUpdateOneRequiredWithoutAuditLogsNestedInput;
300
+ };
301
+ export type AuditLogUncheckedUpdateInput = {
302
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
303
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
304
+ entityId?: Prisma.IntFieldUpdateOperationsInput | number;
305
+ action?: Prisma.StringFieldUpdateOperationsInput | string;
306
+ field?: Prisma.StringFieldUpdateOperationsInput | string;
307
+ oldValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
308
+ newValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
309
+ userId?: Prisma.IntFieldUpdateOperationsInput | number;
310
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
311
+ };
312
+ export type AuditLogCreateManyInput = {
313
+ id?: number;
314
+ entityType: string;
315
+ entityId: number;
316
+ action: string;
317
+ field: string;
318
+ oldValue?: string | null;
319
+ newValue?: string | null;
320
+ userId: number;
321
+ createdAt?: Date | string;
322
+ };
323
+ export type AuditLogUpdateManyMutationInput = {
324
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
325
+ entityId?: Prisma.IntFieldUpdateOperationsInput | number;
326
+ action?: Prisma.StringFieldUpdateOperationsInput | string;
327
+ field?: Prisma.StringFieldUpdateOperationsInput | string;
328
+ oldValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
329
+ newValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
330
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
331
+ };
332
+ export type AuditLogUncheckedUpdateManyInput = {
333
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
334
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
335
+ entityId?: Prisma.IntFieldUpdateOperationsInput | number;
336
+ action?: Prisma.StringFieldUpdateOperationsInput | string;
337
+ field?: Prisma.StringFieldUpdateOperationsInput | string;
338
+ oldValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
339
+ newValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
340
+ userId?: Prisma.IntFieldUpdateOperationsInput | number;
341
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
342
+ };
343
+ export type AuditLogListRelationFilter = {
344
+ every?: Prisma.AuditLogWhereInput;
345
+ some?: Prisma.AuditLogWhereInput;
346
+ none?: Prisma.AuditLogWhereInput;
347
+ };
348
+ export type AuditLogOrderByRelationAggregateInput = {
349
+ _count?: Prisma.SortOrder;
350
+ };
351
+ export type AuditLogCountOrderByAggregateInput = {
352
+ id?: Prisma.SortOrder;
353
+ entityType?: Prisma.SortOrder;
354
+ entityId?: Prisma.SortOrder;
355
+ action?: Prisma.SortOrder;
356
+ field?: Prisma.SortOrder;
357
+ oldValue?: Prisma.SortOrder;
358
+ newValue?: Prisma.SortOrder;
359
+ userId?: Prisma.SortOrder;
360
+ createdAt?: Prisma.SortOrder;
361
+ };
362
+ export type AuditLogAvgOrderByAggregateInput = {
363
+ id?: Prisma.SortOrder;
364
+ entityId?: Prisma.SortOrder;
365
+ userId?: Prisma.SortOrder;
366
+ };
367
+ export type AuditLogMaxOrderByAggregateInput = {
368
+ id?: Prisma.SortOrder;
369
+ entityType?: Prisma.SortOrder;
370
+ entityId?: Prisma.SortOrder;
371
+ action?: Prisma.SortOrder;
372
+ field?: Prisma.SortOrder;
373
+ oldValue?: Prisma.SortOrder;
374
+ newValue?: Prisma.SortOrder;
375
+ userId?: Prisma.SortOrder;
376
+ createdAt?: Prisma.SortOrder;
377
+ };
378
+ export type AuditLogMinOrderByAggregateInput = {
379
+ id?: Prisma.SortOrder;
380
+ entityType?: Prisma.SortOrder;
381
+ entityId?: Prisma.SortOrder;
382
+ action?: Prisma.SortOrder;
383
+ field?: Prisma.SortOrder;
384
+ oldValue?: Prisma.SortOrder;
385
+ newValue?: Prisma.SortOrder;
386
+ userId?: Prisma.SortOrder;
387
+ createdAt?: Prisma.SortOrder;
388
+ };
389
+ export type AuditLogSumOrderByAggregateInput = {
390
+ id?: Prisma.SortOrder;
391
+ entityId?: Prisma.SortOrder;
392
+ userId?: Prisma.SortOrder;
393
+ };
394
+ export type AuditLogCreateNestedManyWithoutUserInput = {
395
+ create?: Prisma.XOR<Prisma.AuditLogCreateWithoutUserInput, Prisma.AuditLogUncheckedCreateWithoutUserInput> | Prisma.AuditLogCreateWithoutUserInput[] | Prisma.AuditLogUncheckedCreateWithoutUserInput[];
396
+ connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutUserInput | Prisma.AuditLogCreateOrConnectWithoutUserInput[];
397
+ createMany?: Prisma.AuditLogCreateManyUserInputEnvelope;
398
+ connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[];
399
+ };
400
+ export type AuditLogUncheckedCreateNestedManyWithoutUserInput = {
401
+ create?: Prisma.XOR<Prisma.AuditLogCreateWithoutUserInput, Prisma.AuditLogUncheckedCreateWithoutUserInput> | Prisma.AuditLogCreateWithoutUserInput[] | Prisma.AuditLogUncheckedCreateWithoutUserInput[];
402
+ connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutUserInput | Prisma.AuditLogCreateOrConnectWithoutUserInput[];
403
+ createMany?: Prisma.AuditLogCreateManyUserInputEnvelope;
404
+ connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[];
405
+ };
406
+ export type AuditLogUpdateManyWithoutUserNestedInput = {
407
+ create?: Prisma.XOR<Prisma.AuditLogCreateWithoutUserInput, Prisma.AuditLogUncheckedCreateWithoutUserInput> | Prisma.AuditLogCreateWithoutUserInput[] | Prisma.AuditLogUncheckedCreateWithoutUserInput[];
408
+ connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutUserInput | Prisma.AuditLogCreateOrConnectWithoutUserInput[];
409
+ upsert?: Prisma.AuditLogUpsertWithWhereUniqueWithoutUserInput | Prisma.AuditLogUpsertWithWhereUniqueWithoutUserInput[];
410
+ createMany?: Prisma.AuditLogCreateManyUserInputEnvelope;
411
+ set?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[];
412
+ disconnect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[];
413
+ delete?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[];
414
+ connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[];
415
+ update?: Prisma.AuditLogUpdateWithWhereUniqueWithoutUserInput | Prisma.AuditLogUpdateWithWhereUniqueWithoutUserInput[];
416
+ updateMany?: Prisma.AuditLogUpdateManyWithWhereWithoutUserInput | Prisma.AuditLogUpdateManyWithWhereWithoutUserInput[];
417
+ deleteMany?: Prisma.AuditLogScalarWhereInput | Prisma.AuditLogScalarWhereInput[];
418
+ };
419
+ export type AuditLogUncheckedUpdateManyWithoutUserNestedInput = {
420
+ create?: Prisma.XOR<Prisma.AuditLogCreateWithoutUserInput, Prisma.AuditLogUncheckedCreateWithoutUserInput> | Prisma.AuditLogCreateWithoutUserInput[] | Prisma.AuditLogUncheckedCreateWithoutUserInput[];
421
+ connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutUserInput | Prisma.AuditLogCreateOrConnectWithoutUserInput[];
422
+ upsert?: Prisma.AuditLogUpsertWithWhereUniqueWithoutUserInput | Prisma.AuditLogUpsertWithWhereUniqueWithoutUserInput[];
423
+ createMany?: Prisma.AuditLogCreateManyUserInputEnvelope;
424
+ set?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[];
425
+ disconnect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[];
426
+ delete?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[];
427
+ connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[];
428
+ update?: Prisma.AuditLogUpdateWithWhereUniqueWithoutUserInput | Prisma.AuditLogUpdateWithWhereUniqueWithoutUserInput[];
429
+ updateMany?: Prisma.AuditLogUpdateManyWithWhereWithoutUserInput | Prisma.AuditLogUpdateManyWithWhereWithoutUserInput[];
430
+ deleteMany?: Prisma.AuditLogScalarWhereInput | Prisma.AuditLogScalarWhereInput[];
431
+ };
432
+ export type AuditLogCreateWithoutUserInput = {
433
+ entityType: string;
434
+ entityId: number;
435
+ action: string;
436
+ field: string;
437
+ oldValue?: string | null;
438
+ newValue?: string | null;
439
+ createdAt?: Date | string;
440
+ };
441
+ export type AuditLogUncheckedCreateWithoutUserInput = {
442
+ id?: number;
443
+ entityType: string;
444
+ entityId: number;
445
+ action: string;
446
+ field: string;
447
+ oldValue?: string | null;
448
+ newValue?: string | null;
449
+ createdAt?: Date | string;
450
+ };
451
+ export type AuditLogCreateOrConnectWithoutUserInput = {
452
+ where: Prisma.AuditLogWhereUniqueInput;
453
+ create: Prisma.XOR<Prisma.AuditLogCreateWithoutUserInput, Prisma.AuditLogUncheckedCreateWithoutUserInput>;
454
+ };
455
+ export type AuditLogCreateManyUserInputEnvelope = {
456
+ data: Prisma.AuditLogCreateManyUserInput | Prisma.AuditLogCreateManyUserInput[];
457
+ };
458
+ export type AuditLogUpsertWithWhereUniqueWithoutUserInput = {
459
+ where: Prisma.AuditLogWhereUniqueInput;
460
+ update: Prisma.XOR<Prisma.AuditLogUpdateWithoutUserInput, Prisma.AuditLogUncheckedUpdateWithoutUserInput>;
461
+ create: Prisma.XOR<Prisma.AuditLogCreateWithoutUserInput, Prisma.AuditLogUncheckedCreateWithoutUserInput>;
462
+ };
463
+ export type AuditLogUpdateWithWhereUniqueWithoutUserInput = {
464
+ where: Prisma.AuditLogWhereUniqueInput;
465
+ data: Prisma.XOR<Prisma.AuditLogUpdateWithoutUserInput, Prisma.AuditLogUncheckedUpdateWithoutUserInput>;
466
+ };
467
+ export type AuditLogUpdateManyWithWhereWithoutUserInput = {
468
+ where: Prisma.AuditLogScalarWhereInput;
469
+ data: Prisma.XOR<Prisma.AuditLogUpdateManyMutationInput, Prisma.AuditLogUncheckedUpdateManyWithoutUserInput>;
470
+ };
471
+ export type AuditLogScalarWhereInput = {
472
+ AND?: Prisma.AuditLogScalarWhereInput | Prisma.AuditLogScalarWhereInput[];
473
+ OR?: Prisma.AuditLogScalarWhereInput[];
474
+ NOT?: Prisma.AuditLogScalarWhereInput | Prisma.AuditLogScalarWhereInput[];
475
+ id?: Prisma.IntFilter<"AuditLog"> | number;
476
+ entityType?: Prisma.StringFilter<"AuditLog"> | string;
477
+ entityId?: Prisma.IntFilter<"AuditLog"> | number;
478
+ action?: Prisma.StringFilter<"AuditLog"> | string;
479
+ field?: Prisma.StringFilter<"AuditLog"> | string;
480
+ oldValue?: Prisma.StringNullableFilter<"AuditLog"> | string | null;
481
+ newValue?: Prisma.StringNullableFilter<"AuditLog"> | string | null;
482
+ userId?: Prisma.IntFilter<"AuditLog"> | number;
483
+ createdAt?: Prisma.DateTimeFilter<"AuditLog"> | Date | string;
484
+ };
485
+ export type AuditLogCreateManyUserInput = {
486
+ id?: number;
487
+ entityType: string;
488
+ entityId: number;
489
+ action: string;
490
+ field: string;
491
+ oldValue?: string | null;
492
+ newValue?: string | null;
493
+ createdAt?: Date | string;
494
+ };
495
+ export type AuditLogUpdateWithoutUserInput = {
496
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
497
+ entityId?: Prisma.IntFieldUpdateOperationsInput | number;
498
+ action?: Prisma.StringFieldUpdateOperationsInput | string;
499
+ field?: Prisma.StringFieldUpdateOperationsInput | string;
500
+ oldValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
501
+ newValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
502
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
503
+ };
504
+ export type AuditLogUncheckedUpdateWithoutUserInput = {
505
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
506
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
507
+ entityId?: Prisma.IntFieldUpdateOperationsInput | number;
508
+ action?: Prisma.StringFieldUpdateOperationsInput | string;
509
+ field?: Prisma.StringFieldUpdateOperationsInput | string;
510
+ oldValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
511
+ newValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
512
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
513
+ };
514
+ export type AuditLogUncheckedUpdateManyWithoutUserInput = {
515
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
516
+ entityType?: Prisma.StringFieldUpdateOperationsInput | string;
517
+ entityId?: Prisma.IntFieldUpdateOperationsInput | number;
518
+ action?: Prisma.StringFieldUpdateOperationsInput | string;
519
+ field?: Prisma.StringFieldUpdateOperationsInput | string;
520
+ oldValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
521
+ newValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
522
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
523
+ };
524
+ export type AuditLogSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
525
+ id?: boolean;
526
+ entityType?: boolean;
527
+ entityId?: boolean;
528
+ action?: boolean;
529
+ field?: boolean;
530
+ oldValue?: boolean;
531
+ newValue?: boolean;
532
+ userId?: boolean;
533
+ createdAt?: boolean;
534
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
535
+ }, ExtArgs["result"]["auditLog"]>;
536
+ export type AuditLogSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
537
+ id?: boolean;
538
+ entityType?: boolean;
539
+ entityId?: boolean;
540
+ action?: boolean;
541
+ field?: boolean;
542
+ oldValue?: boolean;
543
+ newValue?: boolean;
544
+ userId?: boolean;
545
+ createdAt?: boolean;
546
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
547
+ }, ExtArgs["result"]["auditLog"]>;
548
+ export type AuditLogSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
549
+ id?: boolean;
550
+ entityType?: boolean;
551
+ entityId?: boolean;
552
+ action?: boolean;
553
+ field?: boolean;
554
+ oldValue?: boolean;
555
+ newValue?: boolean;
556
+ userId?: boolean;
557
+ createdAt?: boolean;
558
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
559
+ }, ExtArgs["result"]["auditLog"]>;
560
+ export type AuditLogSelectScalar = {
561
+ id?: boolean;
562
+ entityType?: boolean;
563
+ entityId?: boolean;
564
+ action?: boolean;
565
+ field?: boolean;
566
+ oldValue?: boolean;
567
+ newValue?: boolean;
568
+ userId?: boolean;
569
+ createdAt?: boolean;
570
+ };
571
+ export type AuditLogOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "entityType" | "entityId" | "action" | "field" | "oldValue" | "newValue" | "userId" | "createdAt", ExtArgs["result"]["auditLog"]>;
572
+ export type AuditLogInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
573
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
574
+ };
575
+ export type AuditLogIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
576
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
577
+ };
578
+ export type AuditLogIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
579
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
580
+ };
581
+ export type $AuditLogPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
582
+ name: "AuditLog";
583
+ objects: {
584
+ user: Prisma.$UserPayload<ExtArgs>;
585
+ };
586
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
587
+ id: number;
588
+ entityType: string;
589
+ entityId: number;
590
+ action: string;
591
+ field: string;
592
+ oldValue: string | null;
593
+ newValue: string | null;
594
+ userId: number;
595
+ createdAt: Date;
596
+ }, ExtArgs["result"]["auditLog"]>;
597
+ composites: {};
598
+ };
599
+ export type AuditLogGetPayload<S extends boolean | null | undefined | AuditLogDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AuditLogPayload, S>;
600
+ export type AuditLogCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<AuditLogFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
601
+ select?: AuditLogCountAggregateInputType | true;
602
+ };
603
+ export interface AuditLogDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
604
+ [K: symbol]: {
605
+ types: Prisma.TypeMap<ExtArgs>['model']['AuditLog'];
606
+ meta: {
607
+ name: 'AuditLog';
608
+ };
609
+ };
610
+ /**
611
+ * Find zero or one AuditLog that matches the filter.
612
+ * @param {AuditLogFindUniqueArgs} args - Arguments to find a AuditLog
613
+ * @example
614
+ * // Get one AuditLog
615
+ * const auditLog = await prisma.auditLog.findUnique({
616
+ * where: {
617
+ * // ... provide filter here
618
+ * }
619
+ * })
620
+ */
621
+ findUnique<T extends AuditLogFindUniqueArgs>(args: Prisma.SelectSubset<T, AuditLogFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
622
+ /**
623
+ * Find one AuditLog that matches the filter or throw an error with `error.code='P2025'`
624
+ * if no matches were found.
625
+ * @param {AuditLogFindUniqueOrThrowArgs} args - Arguments to find a AuditLog
626
+ * @example
627
+ * // Get one AuditLog
628
+ * const auditLog = await prisma.auditLog.findUniqueOrThrow({
629
+ * where: {
630
+ * // ... provide filter here
631
+ * }
632
+ * })
633
+ */
634
+ findUniqueOrThrow<T extends AuditLogFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AuditLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
635
+ /**
636
+ * Find the first AuditLog that matches the filter.
637
+ * Note, that providing `undefined` is treated as the value not being there.
638
+ * Read more here: https://pris.ly/d/null-undefined
639
+ * @param {AuditLogFindFirstArgs} args - Arguments to find a AuditLog
640
+ * @example
641
+ * // Get one AuditLog
642
+ * const auditLog = await prisma.auditLog.findFirst({
643
+ * where: {
644
+ * // ... provide filter here
645
+ * }
646
+ * })
647
+ */
648
+ findFirst<T extends AuditLogFindFirstArgs>(args?: Prisma.SelectSubset<T, AuditLogFindFirstArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
649
+ /**
650
+ * Find the first AuditLog that matches the filter or
651
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
652
+ * Note, that providing `undefined` is treated as the value not being there.
653
+ * Read more here: https://pris.ly/d/null-undefined
654
+ * @param {AuditLogFindFirstOrThrowArgs} args - Arguments to find a AuditLog
655
+ * @example
656
+ * // Get one AuditLog
657
+ * const auditLog = await prisma.auditLog.findFirstOrThrow({
658
+ * where: {
659
+ * // ... provide filter here
660
+ * }
661
+ * })
662
+ */
663
+ findFirstOrThrow<T extends AuditLogFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AuditLogFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
664
+ /**
665
+ * Find zero or more AuditLogs that matches the filter.
666
+ * Note, that providing `undefined` is treated as the value not being there.
667
+ * Read more here: https://pris.ly/d/null-undefined
668
+ * @param {AuditLogFindManyArgs} args - Arguments to filter and select certain fields only.
669
+ * @example
670
+ * // Get all AuditLogs
671
+ * const auditLogs = await prisma.auditLog.findMany()
672
+ *
673
+ * // Get first 10 AuditLogs
674
+ * const auditLogs = await prisma.auditLog.findMany({ take: 10 })
675
+ *
676
+ * // Only select the `id`
677
+ * const auditLogWithIdOnly = await prisma.auditLog.findMany({ select: { id: true } })
678
+ *
679
+ */
680
+ findMany<T extends AuditLogFindManyArgs>(args?: Prisma.SelectSubset<T, AuditLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
681
+ /**
682
+ * Create a AuditLog.
683
+ * @param {AuditLogCreateArgs} args - Arguments to create a AuditLog.
684
+ * @example
685
+ * // Create one AuditLog
686
+ * const AuditLog = await prisma.auditLog.create({
687
+ * data: {
688
+ * // ... data to create a AuditLog
689
+ * }
690
+ * })
691
+ *
692
+ */
693
+ create<T extends AuditLogCreateArgs>(args: Prisma.SelectSubset<T, AuditLogCreateArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
694
+ /**
695
+ * Create many AuditLogs.
696
+ * @param {AuditLogCreateManyArgs} args - Arguments to create many AuditLogs.
697
+ * @example
698
+ * // Create many AuditLogs
699
+ * const auditLog = await prisma.auditLog.createMany({
700
+ * data: [
701
+ * // ... provide data here
702
+ * ]
703
+ * })
704
+ *
705
+ */
706
+ createMany<T extends AuditLogCreateManyArgs>(args?: Prisma.SelectSubset<T, AuditLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
707
+ /**
708
+ * Create many AuditLogs and returns the data saved in the database.
709
+ * @param {AuditLogCreateManyAndReturnArgs} args - Arguments to create many AuditLogs.
710
+ * @example
711
+ * // Create many AuditLogs
712
+ * const auditLog = await prisma.auditLog.createManyAndReturn({
713
+ * data: [
714
+ * // ... provide data here
715
+ * ]
716
+ * })
717
+ *
718
+ * // Create many AuditLogs and only return the `id`
719
+ * const auditLogWithIdOnly = await prisma.auditLog.createManyAndReturn({
720
+ * select: { id: true },
721
+ * data: [
722
+ * // ... provide data here
723
+ * ]
724
+ * })
725
+ * Note, that providing `undefined` is treated as the value not being there.
726
+ * Read more here: https://pris.ly/d/null-undefined
727
+ *
728
+ */
729
+ createManyAndReturn<T extends AuditLogCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AuditLogCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
730
+ /**
731
+ * Delete a AuditLog.
732
+ * @param {AuditLogDeleteArgs} args - Arguments to delete one AuditLog.
733
+ * @example
734
+ * // Delete one AuditLog
735
+ * const AuditLog = await prisma.auditLog.delete({
736
+ * where: {
737
+ * // ... filter to delete one AuditLog
738
+ * }
739
+ * })
740
+ *
741
+ */
742
+ delete<T extends AuditLogDeleteArgs>(args: Prisma.SelectSubset<T, AuditLogDeleteArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
743
+ /**
744
+ * Update one AuditLog.
745
+ * @param {AuditLogUpdateArgs} args - Arguments to update one AuditLog.
746
+ * @example
747
+ * // Update one AuditLog
748
+ * const auditLog = await prisma.auditLog.update({
749
+ * where: {
750
+ * // ... provide filter here
751
+ * },
752
+ * data: {
753
+ * // ... provide data here
754
+ * }
755
+ * })
756
+ *
757
+ */
758
+ update<T extends AuditLogUpdateArgs>(args: Prisma.SelectSubset<T, AuditLogUpdateArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
759
+ /**
760
+ * Delete zero or more AuditLogs.
761
+ * @param {AuditLogDeleteManyArgs} args - Arguments to filter AuditLogs to delete.
762
+ * @example
763
+ * // Delete a few AuditLogs
764
+ * const { count } = await prisma.auditLog.deleteMany({
765
+ * where: {
766
+ * // ... provide filter here
767
+ * }
768
+ * })
769
+ *
770
+ */
771
+ deleteMany<T extends AuditLogDeleteManyArgs>(args?: Prisma.SelectSubset<T, AuditLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
772
+ /**
773
+ * Update zero or more AuditLogs.
774
+ * Note, that providing `undefined` is treated as the value not being there.
775
+ * Read more here: https://pris.ly/d/null-undefined
776
+ * @param {AuditLogUpdateManyArgs} args - Arguments to update one or more rows.
777
+ * @example
778
+ * // Update many AuditLogs
779
+ * const auditLog = await prisma.auditLog.updateMany({
780
+ * where: {
781
+ * // ... provide filter here
782
+ * },
783
+ * data: {
784
+ * // ... provide data here
785
+ * }
786
+ * })
787
+ *
788
+ */
789
+ updateMany<T extends AuditLogUpdateManyArgs>(args: Prisma.SelectSubset<T, AuditLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
790
+ /**
791
+ * Update zero or more AuditLogs and returns the data updated in the database.
792
+ * @param {AuditLogUpdateManyAndReturnArgs} args - Arguments to update many AuditLogs.
793
+ * @example
794
+ * // Update many AuditLogs
795
+ * const auditLog = await prisma.auditLog.updateManyAndReturn({
796
+ * where: {
797
+ * // ... provide filter here
798
+ * },
799
+ * data: [
800
+ * // ... provide data here
801
+ * ]
802
+ * })
803
+ *
804
+ * // Update zero or more AuditLogs and only return the `id`
805
+ * const auditLogWithIdOnly = await prisma.auditLog.updateManyAndReturn({
806
+ * select: { id: true },
807
+ * where: {
808
+ * // ... provide filter here
809
+ * },
810
+ * data: [
811
+ * // ... provide data here
812
+ * ]
813
+ * })
814
+ * Note, that providing `undefined` is treated as the value not being there.
815
+ * Read more here: https://pris.ly/d/null-undefined
816
+ *
817
+ */
818
+ updateManyAndReturn<T extends AuditLogUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AuditLogUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
819
+ /**
820
+ * Create or update one AuditLog.
821
+ * @param {AuditLogUpsertArgs} args - Arguments to update or create a AuditLog.
822
+ * @example
823
+ * // Update or create a AuditLog
824
+ * const auditLog = await prisma.auditLog.upsert({
825
+ * create: {
826
+ * // ... data to create a AuditLog
827
+ * },
828
+ * update: {
829
+ * // ... in case it already exists, update
830
+ * },
831
+ * where: {
832
+ * // ... the filter for the AuditLog we want to update
833
+ * }
834
+ * })
835
+ */
836
+ upsert<T extends AuditLogUpsertArgs>(args: Prisma.SelectSubset<T, AuditLogUpsertArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
837
+ /**
838
+ * Count the number of AuditLogs.
839
+ * Note, that providing `undefined` is treated as the value not being there.
840
+ * Read more here: https://pris.ly/d/null-undefined
841
+ * @param {AuditLogCountArgs} args - Arguments to filter AuditLogs to count.
842
+ * @example
843
+ * // Count the number of AuditLogs
844
+ * const count = await prisma.auditLog.count({
845
+ * where: {
846
+ * // ... the filter for the AuditLogs we want to count
847
+ * }
848
+ * })
849
+ **/
850
+ count<T extends AuditLogCountArgs>(args?: Prisma.Subset<T, AuditLogCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AuditLogCountAggregateOutputType> : number>;
851
+ /**
852
+ * Allows you to perform aggregations operations on a AuditLog.
853
+ * Note, that providing `undefined` is treated as the value not being there.
854
+ * Read more here: https://pris.ly/d/null-undefined
855
+ * @param {AuditLogAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
856
+ * @example
857
+ * // Ordered by age ascending
858
+ * // Where email contains prisma.io
859
+ * // Limited to the 10 users
860
+ * const aggregations = await prisma.user.aggregate({
861
+ * _avg: {
862
+ * age: true,
863
+ * },
864
+ * where: {
865
+ * email: {
866
+ * contains: "prisma.io",
867
+ * },
868
+ * },
869
+ * orderBy: {
870
+ * age: "asc",
871
+ * },
872
+ * take: 10,
873
+ * })
874
+ **/
875
+ aggregate<T extends AuditLogAggregateArgs>(args: Prisma.Subset<T, AuditLogAggregateArgs>): Prisma.PrismaPromise<GetAuditLogAggregateType<T>>;
876
+ /**
877
+ * Group by AuditLog.
878
+ * Note, that providing `undefined` is treated as the value not being there.
879
+ * Read more here: https://pris.ly/d/null-undefined
880
+ * @param {AuditLogGroupByArgs} args - Group by arguments.
881
+ * @example
882
+ * // Group by city, order by createdAt, get count
883
+ * const result = await prisma.user.groupBy({
884
+ * by: ['city', 'createdAt'],
885
+ * orderBy: {
886
+ * createdAt: true
887
+ * },
888
+ * _count: {
889
+ * _all: true
890
+ * },
891
+ * })
892
+ *
893
+ **/
894
+ groupBy<T extends AuditLogGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
895
+ orderBy: AuditLogGroupByArgs['orderBy'];
896
+ } : {
897
+ orderBy?: AuditLogGroupByArgs['orderBy'];
898
+ }, 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 ? {
899
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
900
+ Error,
901
+ 'Field ',
902
+ P,
903
+ ` in "having" needs to be provided in "by"`
904
+ ];
905
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
906
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
907
+ }[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 ? {} : {
908
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
909
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
910
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
911
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, AuditLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAuditLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
912
+ /**
913
+ * Fields of the AuditLog model
914
+ */
915
+ readonly fields: AuditLogFieldRefs;
916
+ }
917
+ /**
918
+ * The delegate class that acts as a "Promise-like" for AuditLog.
919
+ * Why is this prefixed with `Prisma__`?
920
+ * Because we want to prevent naming conflicts as mentioned in
921
+ * https://github.com/prisma/prisma-client-js/issues/707
922
+ */
923
+ export interface Prisma__AuditLogClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
924
+ readonly [Symbol.toStringTag]: "PrismaPromise";
925
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
926
+ /**
927
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
928
+ * @param onfulfilled The callback to execute when the Promise is resolved.
929
+ * @param onrejected The callback to execute when the Promise is rejected.
930
+ * @returns A Promise for the completion of which ever callback is executed.
931
+ */
932
+ 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>;
933
+ /**
934
+ * Attaches a callback for only the rejection of the Promise.
935
+ * @param onrejected The callback to execute when the Promise is rejected.
936
+ * @returns A Promise for the completion of the callback.
937
+ */
938
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
939
+ /**
940
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
941
+ * resolved value cannot be modified from the callback.
942
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
943
+ * @returns A Promise for the completion of the callback.
944
+ */
945
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
946
+ }
947
+ /**
948
+ * Fields of the AuditLog model
949
+ */
950
+ export interface AuditLogFieldRefs {
951
+ readonly id: Prisma.FieldRef<"AuditLog", 'Int'>;
952
+ readonly entityType: Prisma.FieldRef<"AuditLog", 'String'>;
953
+ readonly entityId: Prisma.FieldRef<"AuditLog", 'Int'>;
954
+ readonly action: Prisma.FieldRef<"AuditLog", 'String'>;
955
+ readonly field: Prisma.FieldRef<"AuditLog", 'String'>;
956
+ readonly oldValue: Prisma.FieldRef<"AuditLog", 'String'>;
957
+ readonly newValue: Prisma.FieldRef<"AuditLog", 'String'>;
958
+ readonly userId: Prisma.FieldRef<"AuditLog", 'Int'>;
959
+ readonly createdAt: Prisma.FieldRef<"AuditLog", 'DateTime'>;
960
+ }
961
+ /**
962
+ * AuditLog findUnique
963
+ */
964
+ export type AuditLogFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
965
+ /**
966
+ * Select specific fields to fetch from the AuditLog
967
+ */
968
+ select?: Prisma.AuditLogSelect<ExtArgs> | null;
969
+ /**
970
+ * Omit specific fields from the AuditLog
971
+ */
972
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null;
973
+ /**
974
+ * Choose, which related nodes to fetch as well
975
+ */
976
+ include?: Prisma.AuditLogInclude<ExtArgs> | null;
977
+ /**
978
+ * Filter, which AuditLog to fetch.
979
+ */
980
+ where: Prisma.AuditLogWhereUniqueInput;
981
+ };
982
+ /**
983
+ * AuditLog findUniqueOrThrow
984
+ */
985
+ export type AuditLogFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
986
+ /**
987
+ * Select specific fields to fetch from the AuditLog
988
+ */
989
+ select?: Prisma.AuditLogSelect<ExtArgs> | null;
990
+ /**
991
+ * Omit specific fields from the AuditLog
992
+ */
993
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null;
994
+ /**
995
+ * Choose, which related nodes to fetch as well
996
+ */
997
+ include?: Prisma.AuditLogInclude<ExtArgs> | null;
998
+ /**
999
+ * Filter, which AuditLog to fetch.
1000
+ */
1001
+ where: Prisma.AuditLogWhereUniqueInput;
1002
+ };
1003
+ /**
1004
+ * AuditLog findFirst
1005
+ */
1006
+ export type AuditLogFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1007
+ /**
1008
+ * Select specific fields to fetch from the AuditLog
1009
+ */
1010
+ select?: Prisma.AuditLogSelect<ExtArgs> | null;
1011
+ /**
1012
+ * Omit specific fields from the AuditLog
1013
+ */
1014
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null;
1015
+ /**
1016
+ * Choose, which related nodes to fetch as well
1017
+ */
1018
+ include?: Prisma.AuditLogInclude<ExtArgs> | null;
1019
+ /**
1020
+ * Filter, which AuditLog to fetch.
1021
+ */
1022
+ where?: Prisma.AuditLogWhereInput;
1023
+ /**
1024
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1025
+ *
1026
+ * Determine the order of AuditLogs to fetch.
1027
+ */
1028
+ orderBy?: Prisma.AuditLogOrderByWithRelationInput | Prisma.AuditLogOrderByWithRelationInput[];
1029
+ /**
1030
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1031
+ *
1032
+ * Sets the position for searching for AuditLogs.
1033
+ */
1034
+ cursor?: Prisma.AuditLogWhereUniqueInput;
1035
+ /**
1036
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1037
+ *
1038
+ * Take `±n` AuditLogs from the position of the cursor.
1039
+ */
1040
+ take?: number;
1041
+ /**
1042
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1043
+ *
1044
+ * Skip the first `n` AuditLogs.
1045
+ */
1046
+ skip?: number;
1047
+ /**
1048
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1049
+ *
1050
+ * Filter by unique combinations of AuditLogs.
1051
+ */
1052
+ distinct?: Prisma.AuditLogScalarFieldEnum | Prisma.AuditLogScalarFieldEnum[];
1053
+ };
1054
+ /**
1055
+ * AuditLog findFirstOrThrow
1056
+ */
1057
+ export type AuditLogFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1058
+ /**
1059
+ * Select specific fields to fetch from the AuditLog
1060
+ */
1061
+ select?: Prisma.AuditLogSelect<ExtArgs> | null;
1062
+ /**
1063
+ * Omit specific fields from the AuditLog
1064
+ */
1065
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null;
1066
+ /**
1067
+ * Choose, which related nodes to fetch as well
1068
+ */
1069
+ include?: Prisma.AuditLogInclude<ExtArgs> | null;
1070
+ /**
1071
+ * Filter, which AuditLog to fetch.
1072
+ */
1073
+ where?: Prisma.AuditLogWhereInput;
1074
+ /**
1075
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1076
+ *
1077
+ * Determine the order of AuditLogs to fetch.
1078
+ */
1079
+ orderBy?: Prisma.AuditLogOrderByWithRelationInput | Prisma.AuditLogOrderByWithRelationInput[];
1080
+ /**
1081
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1082
+ *
1083
+ * Sets the position for searching for AuditLogs.
1084
+ */
1085
+ cursor?: Prisma.AuditLogWhereUniqueInput;
1086
+ /**
1087
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1088
+ *
1089
+ * Take `±n` AuditLogs from the position of the cursor.
1090
+ */
1091
+ take?: number;
1092
+ /**
1093
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1094
+ *
1095
+ * Skip the first `n` AuditLogs.
1096
+ */
1097
+ skip?: number;
1098
+ /**
1099
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1100
+ *
1101
+ * Filter by unique combinations of AuditLogs.
1102
+ */
1103
+ distinct?: Prisma.AuditLogScalarFieldEnum | Prisma.AuditLogScalarFieldEnum[];
1104
+ };
1105
+ /**
1106
+ * AuditLog findMany
1107
+ */
1108
+ export type AuditLogFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1109
+ /**
1110
+ * Select specific fields to fetch from the AuditLog
1111
+ */
1112
+ select?: Prisma.AuditLogSelect<ExtArgs> | null;
1113
+ /**
1114
+ * Omit specific fields from the AuditLog
1115
+ */
1116
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null;
1117
+ /**
1118
+ * Choose, which related nodes to fetch as well
1119
+ */
1120
+ include?: Prisma.AuditLogInclude<ExtArgs> | null;
1121
+ /**
1122
+ * Filter, which AuditLogs to fetch.
1123
+ */
1124
+ where?: Prisma.AuditLogWhereInput;
1125
+ /**
1126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1127
+ *
1128
+ * Determine the order of AuditLogs to fetch.
1129
+ */
1130
+ orderBy?: Prisma.AuditLogOrderByWithRelationInput | Prisma.AuditLogOrderByWithRelationInput[];
1131
+ /**
1132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1133
+ *
1134
+ * Sets the position for listing AuditLogs.
1135
+ */
1136
+ cursor?: Prisma.AuditLogWhereUniqueInput;
1137
+ /**
1138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1139
+ *
1140
+ * Take `±n` AuditLogs from the position of the cursor.
1141
+ */
1142
+ take?: number;
1143
+ /**
1144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1145
+ *
1146
+ * Skip the first `n` AuditLogs.
1147
+ */
1148
+ skip?: number;
1149
+ /**
1150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1151
+ *
1152
+ * Filter by unique combinations of AuditLogs.
1153
+ */
1154
+ distinct?: Prisma.AuditLogScalarFieldEnum | Prisma.AuditLogScalarFieldEnum[];
1155
+ };
1156
+ /**
1157
+ * AuditLog create
1158
+ */
1159
+ export type AuditLogCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1160
+ /**
1161
+ * Select specific fields to fetch from the AuditLog
1162
+ */
1163
+ select?: Prisma.AuditLogSelect<ExtArgs> | null;
1164
+ /**
1165
+ * Omit specific fields from the AuditLog
1166
+ */
1167
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null;
1168
+ /**
1169
+ * Choose, which related nodes to fetch as well
1170
+ */
1171
+ include?: Prisma.AuditLogInclude<ExtArgs> | null;
1172
+ /**
1173
+ * The data needed to create a AuditLog.
1174
+ */
1175
+ data: Prisma.XOR<Prisma.AuditLogCreateInput, Prisma.AuditLogUncheckedCreateInput>;
1176
+ };
1177
+ /**
1178
+ * AuditLog createMany
1179
+ */
1180
+ export type AuditLogCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1181
+ /**
1182
+ * The data used to create many AuditLogs.
1183
+ */
1184
+ data: Prisma.AuditLogCreateManyInput | Prisma.AuditLogCreateManyInput[];
1185
+ };
1186
+ /**
1187
+ * AuditLog createManyAndReturn
1188
+ */
1189
+ export type AuditLogCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1190
+ /**
1191
+ * Select specific fields to fetch from the AuditLog
1192
+ */
1193
+ select?: Prisma.AuditLogSelectCreateManyAndReturn<ExtArgs> | null;
1194
+ /**
1195
+ * Omit specific fields from the AuditLog
1196
+ */
1197
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null;
1198
+ /**
1199
+ * The data used to create many AuditLogs.
1200
+ */
1201
+ data: Prisma.AuditLogCreateManyInput | Prisma.AuditLogCreateManyInput[];
1202
+ /**
1203
+ * Choose, which related nodes to fetch as well
1204
+ */
1205
+ include?: Prisma.AuditLogIncludeCreateManyAndReturn<ExtArgs> | null;
1206
+ };
1207
+ /**
1208
+ * AuditLog update
1209
+ */
1210
+ export type AuditLogUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1211
+ /**
1212
+ * Select specific fields to fetch from the AuditLog
1213
+ */
1214
+ select?: Prisma.AuditLogSelect<ExtArgs> | null;
1215
+ /**
1216
+ * Omit specific fields from the AuditLog
1217
+ */
1218
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null;
1219
+ /**
1220
+ * Choose, which related nodes to fetch as well
1221
+ */
1222
+ include?: Prisma.AuditLogInclude<ExtArgs> | null;
1223
+ /**
1224
+ * The data needed to update a AuditLog.
1225
+ */
1226
+ data: Prisma.XOR<Prisma.AuditLogUpdateInput, Prisma.AuditLogUncheckedUpdateInput>;
1227
+ /**
1228
+ * Choose, which AuditLog to update.
1229
+ */
1230
+ where: Prisma.AuditLogWhereUniqueInput;
1231
+ };
1232
+ /**
1233
+ * AuditLog updateMany
1234
+ */
1235
+ export type AuditLogUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1236
+ /**
1237
+ * The data used to update AuditLogs.
1238
+ */
1239
+ data: Prisma.XOR<Prisma.AuditLogUpdateManyMutationInput, Prisma.AuditLogUncheckedUpdateManyInput>;
1240
+ /**
1241
+ * Filter which AuditLogs to update
1242
+ */
1243
+ where?: Prisma.AuditLogWhereInput;
1244
+ /**
1245
+ * Limit how many AuditLogs to update.
1246
+ */
1247
+ limit?: number;
1248
+ };
1249
+ /**
1250
+ * AuditLog updateManyAndReturn
1251
+ */
1252
+ export type AuditLogUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1253
+ /**
1254
+ * Select specific fields to fetch from the AuditLog
1255
+ */
1256
+ select?: Prisma.AuditLogSelectUpdateManyAndReturn<ExtArgs> | null;
1257
+ /**
1258
+ * Omit specific fields from the AuditLog
1259
+ */
1260
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null;
1261
+ /**
1262
+ * The data used to update AuditLogs.
1263
+ */
1264
+ data: Prisma.XOR<Prisma.AuditLogUpdateManyMutationInput, Prisma.AuditLogUncheckedUpdateManyInput>;
1265
+ /**
1266
+ * Filter which AuditLogs to update
1267
+ */
1268
+ where?: Prisma.AuditLogWhereInput;
1269
+ /**
1270
+ * Limit how many AuditLogs to update.
1271
+ */
1272
+ limit?: number;
1273
+ /**
1274
+ * Choose, which related nodes to fetch as well
1275
+ */
1276
+ include?: Prisma.AuditLogIncludeUpdateManyAndReturn<ExtArgs> | null;
1277
+ };
1278
+ /**
1279
+ * AuditLog upsert
1280
+ */
1281
+ export type AuditLogUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1282
+ /**
1283
+ * Select specific fields to fetch from the AuditLog
1284
+ */
1285
+ select?: Prisma.AuditLogSelect<ExtArgs> | null;
1286
+ /**
1287
+ * Omit specific fields from the AuditLog
1288
+ */
1289
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null;
1290
+ /**
1291
+ * Choose, which related nodes to fetch as well
1292
+ */
1293
+ include?: Prisma.AuditLogInclude<ExtArgs> | null;
1294
+ /**
1295
+ * The filter to search for the AuditLog to update in case it exists.
1296
+ */
1297
+ where: Prisma.AuditLogWhereUniqueInput;
1298
+ /**
1299
+ * In case the AuditLog found by the `where` argument doesn't exist, create a new AuditLog with this data.
1300
+ */
1301
+ create: Prisma.XOR<Prisma.AuditLogCreateInput, Prisma.AuditLogUncheckedCreateInput>;
1302
+ /**
1303
+ * In case the AuditLog was found with the provided `where` argument, update it with this data.
1304
+ */
1305
+ update: Prisma.XOR<Prisma.AuditLogUpdateInput, Prisma.AuditLogUncheckedUpdateInput>;
1306
+ };
1307
+ /**
1308
+ * AuditLog delete
1309
+ */
1310
+ export type AuditLogDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1311
+ /**
1312
+ * Select specific fields to fetch from the AuditLog
1313
+ */
1314
+ select?: Prisma.AuditLogSelect<ExtArgs> | null;
1315
+ /**
1316
+ * Omit specific fields from the AuditLog
1317
+ */
1318
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null;
1319
+ /**
1320
+ * Choose, which related nodes to fetch as well
1321
+ */
1322
+ include?: Prisma.AuditLogInclude<ExtArgs> | null;
1323
+ /**
1324
+ * Filter which AuditLog to delete.
1325
+ */
1326
+ where: Prisma.AuditLogWhereUniqueInput;
1327
+ };
1328
+ /**
1329
+ * AuditLog deleteMany
1330
+ */
1331
+ export type AuditLogDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1332
+ /**
1333
+ * Filter which AuditLogs to delete
1334
+ */
1335
+ where?: Prisma.AuditLogWhereInput;
1336
+ /**
1337
+ * Limit how many AuditLogs to delete.
1338
+ */
1339
+ limit?: number;
1340
+ };
1341
+ /**
1342
+ * AuditLog without action
1343
+ */
1344
+ export type AuditLogDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1345
+ /**
1346
+ * Select specific fields to fetch from the AuditLog
1347
+ */
1348
+ select?: Prisma.AuditLogSelect<ExtArgs> | null;
1349
+ /**
1350
+ * Omit specific fields from the AuditLog
1351
+ */
1352
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null;
1353
+ /**
1354
+ * Choose, which related nodes to fetch as well
1355
+ */
1356
+ include?: Prisma.AuditLogInclude<ExtArgs> | null;
1357
+ };
1358
+ export {};
1359
+ //# sourceMappingURL=AuditLog.d.ts.map