efiber-prisma-schema 1.16.2 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/index.d.ts +6 -1
  2. package/index.js +10 -1
  3. package/package.json +12 -5
  4. package/prisma/generated/browser.ts +559 -0
  5. package/prisma/generated/client.ts +581 -0
  6. package/prisma/generated/commonInputTypes.ts +1246 -0
  7. package/prisma/generated/enums.ts +188 -0
  8. package/prisma/generated/internal/class.ts +1260 -0
  9. package/prisma/generated/internal/prismaNamespace.ts +11532 -0
  10. package/prisma/generated/internal/prismaNamespaceBrowser.ts +2582 -0
  11. package/prisma/generated/models/AttributeDefinition.ts +1498 -0
  12. package/prisma/generated/models/AttributeValue.ts +1419 -0
  13. package/prisma/generated/models/Audit.ts +1725 -0
  14. package/prisma/generated/models/BillOfMaterial.ts +1934 -0
  15. package/prisma/generated/models/Building.ts +6130 -0
  16. package/prisma/generated/models/BuildingTemplate.ts +2912 -0
  17. package/prisma/generated/models/Cable.ts +10501 -0
  18. package/prisma/generated/models/CableAttachment.ts +1530 -0
  19. package/prisma/generated/models/CableAttributes.ts +2244 -0
  20. package/prisma/generated/models/CableTemplate.ts +3170 -0
  21. package/prisma/generated/models/CamusatClient.ts +2001 -0
  22. package/prisma/generated/models/CamusatCountry.ts +2425 -0
  23. package/prisma/generated/models/CentralOffice.ts +1921 -0
  24. package/prisma/generated/models/CentralOfficeTeam.ts +1620 -0
  25. package/prisma/generated/models/CentralOfficeUser.ts +1650 -0
  26. package/prisma/generated/models/Cluster.ts +10984 -0
  27. package/prisma/generated/models/ClusterComments.ts +1668 -0
  28. package/prisma/generated/models/ClusterNotes.ts +1703 -0
  29. package/prisma/generated/models/Conduit.ts +5119 -0
  30. package/prisma/generated/models/ConduitTemplate.ts +2940 -0
  31. package/prisma/generated/models/Country.ts +1795 -0
  32. package/prisma/generated/models/DispatchMaterial.ts +3070 -0
  33. package/prisma/generated/models/DispatchProject.ts +4179 -0
  34. package/prisma/generated/models/DispatchTeam.ts +3053 -0
  35. package/prisma/generated/models/Duct.ts +1813 -0
  36. package/prisma/generated/models/ElementNode.ts +4413 -0
  37. package/prisma/generated/models/ElementRelation.ts +1644 -0
  38. package/prisma/generated/models/EmailConfigurations.ts +3736 -0
  39. package/prisma/generated/models/EmailTemplates.ts +1739 -0
  40. package/prisma/generated/models/EmailsIncoming.ts +2010 -0
  41. package/prisma/generated/models/EmailsIncomingSample.ts +1503 -0
  42. package/prisma/generated/models/EmailsOutgoing.ts +1648 -0
  43. package/prisma/generated/models/FDTSRO.ts +6180 -0
  44. package/prisma/generated/models/FDTSROTemplate.ts +2912 -0
  45. package/prisma/generated/models/Feature.ts +1867 -0
  46. package/prisma/generated/models/FeatureType.ts +1430 -0
  47. package/prisma/generated/models/IntegrationReportTemplate.ts +1878 -0
  48. package/prisma/generated/models/Loop.ts +5271 -0
  49. package/prisma/generated/models/LoopTemplate.ts +2912 -0
  50. package/prisma/generated/models/MainProject.ts +1664 -0
  51. package/prisma/generated/models/Manhole.ts +5090 -0
  52. package/prisma/generated/models/ManholeTemplate.ts +2912 -0
  53. package/prisma/generated/models/MapElement.ts +3450 -0
  54. package/prisma/generated/models/MapElementTemplate.ts +2742 -0
  55. package/prisma/generated/models/Material.ts +1963 -0
  56. package/prisma/generated/models/MaterialBillOfMaterial.ts +1737 -0
  57. package/prisma/generated/models/MaterialChangeLog.ts +1454 -0
  58. package/prisma/generated/models/NetworkElement.ts +6891 -0
  59. package/prisma/generated/models/NetworkElementInstallation.ts +3320 -0
  60. package/prisma/generated/models/Notifications.ts +1563 -0
  61. package/prisma/generated/models/OptionSource.ts +1132 -0
  62. package/prisma/generated/models/PboFat.ts +8248 -0
  63. package/prisma/generated/models/PboFatAttributes.ts +2672 -0
  64. package/prisma/generated/models/PboFatTemplate.ts +3112 -0
  65. package/prisma/generated/models/Platform.ts +1759 -0
  66. package/prisma/generated/models/Pole.ts +5266 -0
  67. package/prisma/generated/models/PoleTemplate.ts +2912 -0
  68. package/prisma/generated/models/Position.ts +1490 -0
  69. package/prisma/generated/models/PreviousEquipment.ts +1881 -0
  70. package/prisma/generated/models/Project.ts +14893 -0
  71. package/prisma/generated/models/ProjectType.ts +1351 -0
  72. package/prisma/generated/models/ProjectWorkFlow.ts +1856 -0
  73. package/prisma/generated/models/ReportFormats.ts +1768 -0
  74. package/prisma/generated/models/ReportFormulaConfig.ts +1375 -0
  75. package/prisma/generated/models/ReportMetric.ts +1737 -0
  76. package/prisma/generated/models/ReportTable.ts +1498 -0
  77. package/prisma/generated/models/ReportVisualization.ts +1446 -0
  78. package/prisma/generated/models/Revision.ts +4653 -0
  79. package/prisma/generated/models/Role.ts +2960 -0
  80. package/prisma/generated/models/SFU.ts +5977 -0
  81. package/prisma/generated/models/SFUTemplate.ts +2912 -0
  82. package/prisma/generated/models/SpliceClosure.ts +6405 -0
  83. package/prisma/generated/models/SpliceClosureAttributes.ts +2172 -0
  84. package/prisma/generated/models/SpliceClosureTemplate.ts +3176 -0
  85. package/prisma/generated/models/Splitter.ts +1459 -0
  86. package/prisma/generated/models/StockMovement.ts +1589 -0
  87. package/prisma/generated/models/SubsidiaryMaterial.ts +2193 -0
  88. package/prisma/generated/models/SubsidiaryMaterialMovementLog.ts +1966 -0
  89. package/prisma/generated/models/Team.ts +2044 -0
  90. package/prisma/generated/models/TeamMaterial.ts +2193 -0
  91. package/prisma/generated/models/TeamMaterialMovementLog.ts +1966 -0
  92. package/prisma/generated/models/TeamPlatform.ts +1874 -0
  93. package/prisma/generated/models/TeamType.ts +1655 -0
  94. package/prisma/generated/models/Template.ts +1691 -0
  95. package/prisma/generated/models/TemplateComponent.ts +1995 -0
  96. package/prisma/generated/models/User.ts +25676 -0
  97. package/prisma/generated/models/WorkOrder.ts +5901 -0
  98. package/prisma/generated/models/WorkOrderActivityLog.ts +2126 -0
  99. package/prisma/generated/models/WorkOrderChannel.ts +1454 -0
  100. package/prisma/generated/models/WorkOrderComments.ts +1687 -0
  101. package/prisma/generated/models/WorkOrderEditLog.ts +1757 -0
  102. package/prisma/generated/models/WorkOrderMaterial.ts +1933 -0
  103. package/prisma/generated/models/WorkOrderPauses.ts +1454 -0
  104. package/prisma/generated/models/WorkOrderTask.ts +2220 -0
  105. package/prisma/generated/models/WorkOrderTaskData.ts +1244 -0
  106. package/prisma/generated/models/ZoneNro.ts +3926 -0
  107. package/prisma/generated/models/ZoneNroTemplate.ts +2966 -0
  108. package/prisma/generated/models/clientMaterial.ts +2193 -0
  109. package/prisma/generated/models/clientMaterialMovementLog.ts +1966 -0
  110. package/prisma/generated/models/ductTemplate.ts +1606 -0
  111. package/prisma/generated/models/installationSequence.ts +1708 -0
  112. package/prisma/generated/models/integrationProjectUserStatus.ts +1916 -0
  113. package/prisma/generated/models/integrationUserLocation.ts +1681 -0
  114. package/prisma/generated/models/problemCategorization.ts +1543 -0
  115. package/prisma/generated/models/projectPhaseLog.ts +1728 -0
  116. package/prisma/generated/models/qrCodeTag.ts +4978 -0
  117. package/prisma/generated/models/qrCodeTemplate.ts +6500 -0
  118. package/prisma/generated/models/ticketMaterialMovementLog.ts +1651 -0
  119. package/prisma/generated/models.ts +119 -0
  120. package/prisma/schema.prisma +2 -2
  121. package/prisma/seed.ts +33 -0
  122. package/prisma.config.ts +13 -0
  123. package/tsconfig.json +13 -0
@@ -0,0 +1,1725 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `Audit` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums.js"
13
+ import type * as Prisma from "../internal/prismaNamespace.js"
14
+
15
+ /**
16
+ * Model Audit
17
+ *
18
+ */
19
+ export type AuditModel = runtime.Types.Result.DefaultSelection<Prisma.$AuditPayload>
20
+
21
+ export type AggregateAudit = {
22
+ _count: AuditCountAggregateOutputType | null
23
+ _avg: AuditAvgAggregateOutputType | null
24
+ _sum: AuditSumAggregateOutputType | null
25
+ _min: AuditMinAggregateOutputType | null
26
+ _max: AuditMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type AuditAvgAggregateOutputType = {
30
+ id: number | null
31
+ no: number | null
32
+ moduleId: number | null
33
+ }
34
+
35
+ export type AuditSumAggregateOutputType = {
36
+ id: number | null
37
+ no: number | null
38
+ moduleId: number | null
39
+ }
40
+
41
+ export type AuditMinAggregateOutputType = {
42
+ id: number | null
43
+ no: number | null
44
+ module: string | null
45
+ moduleId: number | null
46
+ activity: string | null
47
+ detail: string | null
48
+ device: string | null
49
+ deviceIp: string | null
50
+ platform: string | null
51
+ status: string | null
52
+ createdAt: Date | null
53
+ updatedAt: Date | null
54
+ deletedAt: Date | null
55
+ userId: string | null
56
+ }
57
+
58
+ export type AuditMaxAggregateOutputType = {
59
+ id: number | null
60
+ no: number | null
61
+ module: string | null
62
+ moduleId: number | null
63
+ activity: string | null
64
+ detail: string | null
65
+ device: string | null
66
+ deviceIp: string | null
67
+ platform: string | null
68
+ status: string | null
69
+ createdAt: Date | null
70
+ updatedAt: Date | null
71
+ deletedAt: Date | null
72
+ userId: string | null
73
+ }
74
+
75
+ export type AuditCountAggregateOutputType = {
76
+ id: number
77
+ no: number
78
+ module: number
79
+ moduleId: number
80
+ activity: number
81
+ detail: number
82
+ device: number
83
+ deviceIp: number
84
+ platform: number
85
+ status: number
86
+ createdAt: number
87
+ updatedAt: number
88
+ deletedAt: number
89
+ userId: number
90
+ _all: number
91
+ }
92
+
93
+
94
+ export type AuditAvgAggregateInputType = {
95
+ id?: true
96
+ no?: true
97
+ moduleId?: true
98
+ }
99
+
100
+ export type AuditSumAggregateInputType = {
101
+ id?: true
102
+ no?: true
103
+ moduleId?: true
104
+ }
105
+
106
+ export type AuditMinAggregateInputType = {
107
+ id?: true
108
+ no?: true
109
+ module?: true
110
+ moduleId?: true
111
+ activity?: true
112
+ detail?: true
113
+ device?: true
114
+ deviceIp?: true
115
+ platform?: true
116
+ status?: true
117
+ createdAt?: true
118
+ updatedAt?: true
119
+ deletedAt?: true
120
+ userId?: true
121
+ }
122
+
123
+ export type AuditMaxAggregateInputType = {
124
+ id?: true
125
+ no?: true
126
+ module?: true
127
+ moduleId?: true
128
+ activity?: true
129
+ detail?: true
130
+ device?: true
131
+ deviceIp?: true
132
+ platform?: true
133
+ status?: true
134
+ createdAt?: true
135
+ updatedAt?: true
136
+ deletedAt?: true
137
+ userId?: true
138
+ }
139
+
140
+ export type AuditCountAggregateInputType = {
141
+ id?: true
142
+ no?: true
143
+ module?: true
144
+ moduleId?: true
145
+ activity?: true
146
+ detail?: true
147
+ device?: true
148
+ deviceIp?: true
149
+ platform?: true
150
+ status?: true
151
+ createdAt?: true
152
+ updatedAt?: true
153
+ deletedAt?: true
154
+ userId?: true
155
+ _all?: true
156
+ }
157
+
158
+ export type AuditAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
159
+ /**
160
+ * Filter which Audit to aggregate.
161
+ */
162
+ where?: Prisma.AuditWhereInput
163
+ /**
164
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
165
+ *
166
+ * Determine the order of Audits to fetch.
167
+ */
168
+ orderBy?: Prisma.AuditOrderByWithRelationInput | Prisma.AuditOrderByWithRelationInput[]
169
+ /**
170
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
171
+ *
172
+ * Sets the start position
173
+ */
174
+ cursor?: Prisma.AuditWhereUniqueInput
175
+ /**
176
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
177
+ *
178
+ * Take `±n` Audits from the position of the cursor.
179
+ */
180
+ take?: number
181
+ /**
182
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
183
+ *
184
+ * Skip the first `n` Audits.
185
+ */
186
+ skip?: number
187
+ /**
188
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
189
+ *
190
+ * Count returned Audits
191
+ **/
192
+ _count?: true | AuditCountAggregateInputType
193
+ /**
194
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
195
+ *
196
+ * Select which fields to average
197
+ **/
198
+ _avg?: AuditAvgAggregateInputType
199
+ /**
200
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
201
+ *
202
+ * Select which fields to sum
203
+ **/
204
+ _sum?: AuditSumAggregateInputType
205
+ /**
206
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
207
+ *
208
+ * Select which fields to find the minimum value
209
+ **/
210
+ _min?: AuditMinAggregateInputType
211
+ /**
212
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
213
+ *
214
+ * Select which fields to find the maximum value
215
+ **/
216
+ _max?: AuditMaxAggregateInputType
217
+ }
218
+
219
+ export type GetAuditAggregateType<T extends AuditAggregateArgs> = {
220
+ [P in keyof T & keyof AggregateAudit]: P extends '_count' | 'count'
221
+ ? T[P] extends true
222
+ ? number
223
+ : Prisma.GetScalarType<T[P], AggregateAudit[P]>
224
+ : Prisma.GetScalarType<T[P], AggregateAudit[P]>
225
+ }
226
+
227
+
228
+
229
+
230
+ export type AuditGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
231
+ where?: Prisma.AuditWhereInput
232
+ orderBy?: Prisma.AuditOrderByWithAggregationInput | Prisma.AuditOrderByWithAggregationInput[]
233
+ by: Prisma.AuditScalarFieldEnum[] | Prisma.AuditScalarFieldEnum
234
+ having?: Prisma.AuditScalarWhereWithAggregatesInput
235
+ take?: number
236
+ skip?: number
237
+ _count?: AuditCountAggregateInputType | true
238
+ _avg?: AuditAvgAggregateInputType
239
+ _sum?: AuditSumAggregateInputType
240
+ _min?: AuditMinAggregateInputType
241
+ _max?: AuditMaxAggregateInputType
242
+ }
243
+
244
+ export type AuditGroupByOutputType = {
245
+ id: number
246
+ no: number
247
+ module: string
248
+ moduleId: number | null
249
+ activity: string
250
+ detail: string | null
251
+ device: string | null
252
+ deviceIp: string | null
253
+ platform: string | null
254
+ status: string
255
+ createdAt: Date
256
+ updatedAt: Date
257
+ deletedAt: Date | null
258
+ userId: string | null
259
+ _count: AuditCountAggregateOutputType | null
260
+ _avg: AuditAvgAggregateOutputType | null
261
+ _sum: AuditSumAggregateOutputType | null
262
+ _min: AuditMinAggregateOutputType | null
263
+ _max: AuditMaxAggregateOutputType | null
264
+ }
265
+
266
+ type GetAuditGroupByPayload<T extends AuditGroupByArgs> = Prisma.PrismaPromise<
267
+ Array<
268
+ Prisma.PickEnumerable<AuditGroupByOutputType, T['by']> &
269
+ {
270
+ [P in ((keyof T) & (keyof AuditGroupByOutputType))]: P extends '_count'
271
+ ? T[P] extends boolean
272
+ ? number
273
+ : Prisma.GetScalarType<T[P], AuditGroupByOutputType[P]>
274
+ : Prisma.GetScalarType<T[P], AuditGroupByOutputType[P]>
275
+ }
276
+ >
277
+ >
278
+
279
+
280
+
281
+ export type AuditWhereInput = {
282
+ AND?: Prisma.AuditWhereInput | Prisma.AuditWhereInput[]
283
+ OR?: Prisma.AuditWhereInput[]
284
+ NOT?: Prisma.AuditWhereInput | Prisma.AuditWhereInput[]
285
+ id?: Prisma.IntFilter<"Audit"> | number
286
+ no?: Prisma.IntFilter<"Audit"> | number
287
+ module?: Prisma.StringFilter<"Audit"> | string
288
+ moduleId?: Prisma.IntNullableFilter<"Audit"> | number | null
289
+ activity?: Prisma.StringFilter<"Audit"> | string
290
+ detail?: Prisma.StringNullableFilter<"Audit"> | string | null
291
+ device?: Prisma.StringNullableFilter<"Audit"> | string | null
292
+ deviceIp?: Prisma.StringNullableFilter<"Audit"> | string | null
293
+ platform?: Prisma.StringNullableFilter<"Audit"> | string | null
294
+ status?: Prisma.StringFilter<"Audit"> | string
295
+ createdAt?: Prisma.DateTimeFilter<"Audit"> | Date | string
296
+ updatedAt?: Prisma.DateTimeFilter<"Audit"> | Date | string
297
+ deletedAt?: Prisma.DateTimeNullableFilter<"Audit"> | Date | string | null
298
+ userId?: Prisma.StringNullableFilter<"Audit"> | string | null
299
+ User?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
300
+ }
301
+
302
+ export type AuditOrderByWithRelationInput = {
303
+ id?: Prisma.SortOrder
304
+ no?: Prisma.SortOrder
305
+ module?: Prisma.SortOrder
306
+ moduleId?: Prisma.SortOrderInput | Prisma.SortOrder
307
+ activity?: Prisma.SortOrder
308
+ detail?: Prisma.SortOrderInput | Prisma.SortOrder
309
+ device?: Prisma.SortOrderInput | Prisma.SortOrder
310
+ deviceIp?: Prisma.SortOrderInput | Prisma.SortOrder
311
+ platform?: Prisma.SortOrderInput | Prisma.SortOrder
312
+ status?: Prisma.SortOrder
313
+ createdAt?: Prisma.SortOrder
314
+ updatedAt?: Prisma.SortOrder
315
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
316
+ userId?: Prisma.SortOrderInput | Prisma.SortOrder
317
+ User?: Prisma.UserOrderByWithRelationInput
318
+ }
319
+
320
+ export type AuditWhereUniqueInput = Prisma.AtLeast<{
321
+ id?: number
322
+ AND?: Prisma.AuditWhereInput | Prisma.AuditWhereInput[]
323
+ OR?: Prisma.AuditWhereInput[]
324
+ NOT?: Prisma.AuditWhereInput | Prisma.AuditWhereInput[]
325
+ no?: Prisma.IntFilter<"Audit"> | number
326
+ module?: Prisma.StringFilter<"Audit"> | string
327
+ moduleId?: Prisma.IntNullableFilter<"Audit"> | number | null
328
+ activity?: Prisma.StringFilter<"Audit"> | string
329
+ detail?: Prisma.StringNullableFilter<"Audit"> | string | null
330
+ device?: Prisma.StringNullableFilter<"Audit"> | string | null
331
+ deviceIp?: Prisma.StringNullableFilter<"Audit"> | string | null
332
+ platform?: Prisma.StringNullableFilter<"Audit"> | string | null
333
+ status?: Prisma.StringFilter<"Audit"> | string
334
+ createdAt?: Prisma.DateTimeFilter<"Audit"> | Date | string
335
+ updatedAt?: Prisma.DateTimeFilter<"Audit"> | Date | string
336
+ deletedAt?: Prisma.DateTimeNullableFilter<"Audit"> | Date | string | null
337
+ userId?: Prisma.StringNullableFilter<"Audit"> | string | null
338
+ User?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
339
+ }, "id">
340
+
341
+ export type AuditOrderByWithAggregationInput = {
342
+ id?: Prisma.SortOrder
343
+ no?: Prisma.SortOrder
344
+ module?: Prisma.SortOrder
345
+ moduleId?: Prisma.SortOrderInput | Prisma.SortOrder
346
+ activity?: Prisma.SortOrder
347
+ detail?: Prisma.SortOrderInput | Prisma.SortOrder
348
+ device?: Prisma.SortOrderInput | Prisma.SortOrder
349
+ deviceIp?: Prisma.SortOrderInput | Prisma.SortOrder
350
+ platform?: Prisma.SortOrderInput | Prisma.SortOrder
351
+ status?: Prisma.SortOrder
352
+ createdAt?: Prisma.SortOrder
353
+ updatedAt?: Prisma.SortOrder
354
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
355
+ userId?: Prisma.SortOrderInput | Prisma.SortOrder
356
+ _count?: Prisma.AuditCountOrderByAggregateInput
357
+ _avg?: Prisma.AuditAvgOrderByAggregateInput
358
+ _max?: Prisma.AuditMaxOrderByAggregateInput
359
+ _min?: Prisma.AuditMinOrderByAggregateInput
360
+ _sum?: Prisma.AuditSumOrderByAggregateInput
361
+ }
362
+
363
+ export type AuditScalarWhereWithAggregatesInput = {
364
+ AND?: Prisma.AuditScalarWhereWithAggregatesInput | Prisma.AuditScalarWhereWithAggregatesInput[]
365
+ OR?: Prisma.AuditScalarWhereWithAggregatesInput[]
366
+ NOT?: Prisma.AuditScalarWhereWithAggregatesInput | Prisma.AuditScalarWhereWithAggregatesInput[]
367
+ id?: Prisma.IntWithAggregatesFilter<"Audit"> | number
368
+ no?: Prisma.IntWithAggregatesFilter<"Audit"> | number
369
+ module?: Prisma.StringWithAggregatesFilter<"Audit"> | string
370
+ moduleId?: Prisma.IntNullableWithAggregatesFilter<"Audit"> | number | null
371
+ activity?: Prisma.StringWithAggregatesFilter<"Audit"> | string
372
+ detail?: Prisma.StringNullableWithAggregatesFilter<"Audit"> | string | null
373
+ device?: Prisma.StringNullableWithAggregatesFilter<"Audit"> | string | null
374
+ deviceIp?: Prisma.StringNullableWithAggregatesFilter<"Audit"> | string | null
375
+ platform?: Prisma.StringNullableWithAggregatesFilter<"Audit"> | string | null
376
+ status?: Prisma.StringWithAggregatesFilter<"Audit"> | string
377
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Audit"> | Date | string
378
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Audit"> | Date | string
379
+ deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Audit"> | Date | string | null
380
+ userId?: Prisma.StringNullableWithAggregatesFilter<"Audit"> | string | null
381
+ }
382
+
383
+ export type AuditCreateInput = {
384
+ no?: number
385
+ module: string
386
+ moduleId?: number | null
387
+ activity: string
388
+ detail?: string | null
389
+ device?: string | null
390
+ deviceIp?: string | null
391
+ platform?: string | null
392
+ status?: string
393
+ createdAt?: Date | string
394
+ updatedAt?: Date | string
395
+ deletedAt?: Date | string | null
396
+ User?: Prisma.UserCreateNestedOneWithoutAuditInput
397
+ }
398
+
399
+ export type AuditUncheckedCreateInput = {
400
+ id?: number
401
+ no?: number
402
+ module: string
403
+ moduleId?: number | null
404
+ activity: string
405
+ detail?: string | null
406
+ device?: string | null
407
+ deviceIp?: string | null
408
+ platform?: string | null
409
+ status?: string
410
+ createdAt?: Date | string
411
+ updatedAt?: Date | string
412
+ deletedAt?: Date | string | null
413
+ userId?: string | null
414
+ }
415
+
416
+ export type AuditUpdateInput = {
417
+ no?: Prisma.IntFieldUpdateOperationsInput | number
418
+ module?: Prisma.StringFieldUpdateOperationsInput | string
419
+ moduleId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
420
+ activity?: Prisma.StringFieldUpdateOperationsInput | string
421
+ detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
422
+ device?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
423
+ deviceIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
424
+ platform?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
425
+ status?: Prisma.StringFieldUpdateOperationsInput | string
426
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
427
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
428
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
429
+ User?: Prisma.UserUpdateOneWithoutAuditNestedInput
430
+ }
431
+
432
+ export type AuditUncheckedUpdateInput = {
433
+ id?: Prisma.IntFieldUpdateOperationsInput | number
434
+ no?: Prisma.IntFieldUpdateOperationsInput | number
435
+ module?: Prisma.StringFieldUpdateOperationsInput | string
436
+ moduleId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
437
+ activity?: Prisma.StringFieldUpdateOperationsInput | string
438
+ detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
439
+ device?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
440
+ deviceIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
441
+ platform?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
442
+ status?: Prisma.StringFieldUpdateOperationsInput | string
443
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
444
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
445
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
446
+ userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
447
+ }
448
+
449
+ export type AuditCreateManyInput = {
450
+ id?: number
451
+ no?: number
452
+ module: string
453
+ moduleId?: number | null
454
+ activity: string
455
+ detail?: string | null
456
+ device?: string | null
457
+ deviceIp?: string | null
458
+ platform?: string | null
459
+ status?: string
460
+ createdAt?: Date | string
461
+ updatedAt?: Date | string
462
+ deletedAt?: Date | string | null
463
+ userId?: string | null
464
+ }
465
+
466
+ export type AuditUpdateManyMutationInput = {
467
+ no?: Prisma.IntFieldUpdateOperationsInput | number
468
+ module?: Prisma.StringFieldUpdateOperationsInput | string
469
+ moduleId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
470
+ activity?: Prisma.StringFieldUpdateOperationsInput | string
471
+ detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
472
+ device?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
473
+ deviceIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
474
+ platform?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
475
+ status?: Prisma.StringFieldUpdateOperationsInput | string
476
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
477
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
478
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
479
+ }
480
+
481
+ export type AuditUncheckedUpdateManyInput = {
482
+ id?: Prisma.IntFieldUpdateOperationsInput | number
483
+ no?: Prisma.IntFieldUpdateOperationsInput | number
484
+ module?: Prisma.StringFieldUpdateOperationsInput | string
485
+ moduleId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
486
+ activity?: Prisma.StringFieldUpdateOperationsInput | string
487
+ detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
488
+ device?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
489
+ deviceIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
490
+ platform?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
491
+ status?: Prisma.StringFieldUpdateOperationsInput | string
492
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
493
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
494
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
495
+ userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
496
+ }
497
+
498
+ export type AuditListRelationFilter = {
499
+ every?: Prisma.AuditWhereInput
500
+ some?: Prisma.AuditWhereInput
501
+ none?: Prisma.AuditWhereInput
502
+ }
503
+
504
+ export type AuditOrderByRelationAggregateInput = {
505
+ _count?: Prisma.SortOrder
506
+ }
507
+
508
+ export type AuditCountOrderByAggregateInput = {
509
+ id?: Prisma.SortOrder
510
+ no?: Prisma.SortOrder
511
+ module?: Prisma.SortOrder
512
+ moduleId?: Prisma.SortOrder
513
+ activity?: Prisma.SortOrder
514
+ detail?: Prisma.SortOrder
515
+ device?: Prisma.SortOrder
516
+ deviceIp?: Prisma.SortOrder
517
+ platform?: Prisma.SortOrder
518
+ status?: Prisma.SortOrder
519
+ createdAt?: Prisma.SortOrder
520
+ updatedAt?: Prisma.SortOrder
521
+ deletedAt?: Prisma.SortOrder
522
+ userId?: Prisma.SortOrder
523
+ }
524
+
525
+ export type AuditAvgOrderByAggregateInput = {
526
+ id?: Prisma.SortOrder
527
+ no?: Prisma.SortOrder
528
+ moduleId?: Prisma.SortOrder
529
+ }
530
+
531
+ export type AuditMaxOrderByAggregateInput = {
532
+ id?: Prisma.SortOrder
533
+ no?: Prisma.SortOrder
534
+ module?: Prisma.SortOrder
535
+ moduleId?: Prisma.SortOrder
536
+ activity?: Prisma.SortOrder
537
+ detail?: Prisma.SortOrder
538
+ device?: Prisma.SortOrder
539
+ deviceIp?: Prisma.SortOrder
540
+ platform?: Prisma.SortOrder
541
+ status?: Prisma.SortOrder
542
+ createdAt?: Prisma.SortOrder
543
+ updatedAt?: Prisma.SortOrder
544
+ deletedAt?: Prisma.SortOrder
545
+ userId?: Prisma.SortOrder
546
+ }
547
+
548
+ export type AuditMinOrderByAggregateInput = {
549
+ id?: Prisma.SortOrder
550
+ no?: Prisma.SortOrder
551
+ module?: Prisma.SortOrder
552
+ moduleId?: Prisma.SortOrder
553
+ activity?: Prisma.SortOrder
554
+ detail?: Prisma.SortOrder
555
+ device?: Prisma.SortOrder
556
+ deviceIp?: Prisma.SortOrder
557
+ platform?: Prisma.SortOrder
558
+ status?: Prisma.SortOrder
559
+ createdAt?: Prisma.SortOrder
560
+ updatedAt?: Prisma.SortOrder
561
+ deletedAt?: Prisma.SortOrder
562
+ userId?: Prisma.SortOrder
563
+ }
564
+
565
+ export type AuditSumOrderByAggregateInput = {
566
+ id?: Prisma.SortOrder
567
+ no?: Prisma.SortOrder
568
+ moduleId?: Prisma.SortOrder
569
+ }
570
+
571
+ export type AuditCreateNestedManyWithoutUserInput = {
572
+ create?: Prisma.XOR<Prisma.AuditCreateWithoutUserInput, Prisma.AuditUncheckedCreateWithoutUserInput> | Prisma.AuditCreateWithoutUserInput[] | Prisma.AuditUncheckedCreateWithoutUserInput[]
573
+ connectOrCreate?: Prisma.AuditCreateOrConnectWithoutUserInput | Prisma.AuditCreateOrConnectWithoutUserInput[]
574
+ createMany?: Prisma.AuditCreateManyUserInputEnvelope
575
+ connect?: Prisma.AuditWhereUniqueInput | Prisma.AuditWhereUniqueInput[]
576
+ }
577
+
578
+ export type AuditUncheckedCreateNestedManyWithoutUserInput = {
579
+ create?: Prisma.XOR<Prisma.AuditCreateWithoutUserInput, Prisma.AuditUncheckedCreateWithoutUserInput> | Prisma.AuditCreateWithoutUserInput[] | Prisma.AuditUncheckedCreateWithoutUserInput[]
580
+ connectOrCreate?: Prisma.AuditCreateOrConnectWithoutUserInput | Prisma.AuditCreateOrConnectWithoutUserInput[]
581
+ createMany?: Prisma.AuditCreateManyUserInputEnvelope
582
+ connect?: Prisma.AuditWhereUniqueInput | Prisma.AuditWhereUniqueInput[]
583
+ }
584
+
585
+ export type AuditUpdateManyWithoutUserNestedInput = {
586
+ create?: Prisma.XOR<Prisma.AuditCreateWithoutUserInput, Prisma.AuditUncheckedCreateWithoutUserInput> | Prisma.AuditCreateWithoutUserInput[] | Prisma.AuditUncheckedCreateWithoutUserInput[]
587
+ connectOrCreate?: Prisma.AuditCreateOrConnectWithoutUserInput | Prisma.AuditCreateOrConnectWithoutUserInput[]
588
+ upsert?: Prisma.AuditUpsertWithWhereUniqueWithoutUserInput | Prisma.AuditUpsertWithWhereUniqueWithoutUserInput[]
589
+ createMany?: Prisma.AuditCreateManyUserInputEnvelope
590
+ set?: Prisma.AuditWhereUniqueInput | Prisma.AuditWhereUniqueInput[]
591
+ disconnect?: Prisma.AuditWhereUniqueInput | Prisma.AuditWhereUniqueInput[]
592
+ delete?: Prisma.AuditWhereUniqueInput | Prisma.AuditWhereUniqueInput[]
593
+ connect?: Prisma.AuditWhereUniqueInput | Prisma.AuditWhereUniqueInput[]
594
+ update?: Prisma.AuditUpdateWithWhereUniqueWithoutUserInput | Prisma.AuditUpdateWithWhereUniqueWithoutUserInput[]
595
+ updateMany?: Prisma.AuditUpdateManyWithWhereWithoutUserInput | Prisma.AuditUpdateManyWithWhereWithoutUserInput[]
596
+ deleteMany?: Prisma.AuditScalarWhereInput | Prisma.AuditScalarWhereInput[]
597
+ }
598
+
599
+ export type AuditUncheckedUpdateManyWithoutUserNestedInput = {
600
+ create?: Prisma.XOR<Prisma.AuditCreateWithoutUserInput, Prisma.AuditUncheckedCreateWithoutUserInput> | Prisma.AuditCreateWithoutUserInput[] | Prisma.AuditUncheckedCreateWithoutUserInput[]
601
+ connectOrCreate?: Prisma.AuditCreateOrConnectWithoutUserInput | Prisma.AuditCreateOrConnectWithoutUserInput[]
602
+ upsert?: Prisma.AuditUpsertWithWhereUniqueWithoutUserInput | Prisma.AuditUpsertWithWhereUniqueWithoutUserInput[]
603
+ createMany?: Prisma.AuditCreateManyUserInputEnvelope
604
+ set?: Prisma.AuditWhereUniqueInput | Prisma.AuditWhereUniqueInput[]
605
+ disconnect?: Prisma.AuditWhereUniqueInput | Prisma.AuditWhereUniqueInput[]
606
+ delete?: Prisma.AuditWhereUniqueInput | Prisma.AuditWhereUniqueInput[]
607
+ connect?: Prisma.AuditWhereUniqueInput | Prisma.AuditWhereUniqueInput[]
608
+ update?: Prisma.AuditUpdateWithWhereUniqueWithoutUserInput | Prisma.AuditUpdateWithWhereUniqueWithoutUserInput[]
609
+ updateMany?: Prisma.AuditUpdateManyWithWhereWithoutUserInput | Prisma.AuditUpdateManyWithWhereWithoutUserInput[]
610
+ deleteMany?: Prisma.AuditScalarWhereInput | Prisma.AuditScalarWhereInput[]
611
+ }
612
+
613
+ export type AuditCreateWithoutUserInput = {
614
+ no?: number
615
+ module: string
616
+ moduleId?: number | null
617
+ activity: string
618
+ detail?: string | null
619
+ device?: string | null
620
+ deviceIp?: string | null
621
+ platform?: string | null
622
+ status?: string
623
+ createdAt?: Date | string
624
+ updatedAt?: Date | string
625
+ deletedAt?: Date | string | null
626
+ }
627
+
628
+ export type AuditUncheckedCreateWithoutUserInput = {
629
+ id?: number
630
+ no?: number
631
+ module: string
632
+ moduleId?: number | null
633
+ activity: string
634
+ detail?: string | null
635
+ device?: string | null
636
+ deviceIp?: string | null
637
+ platform?: string | null
638
+ status?: string
639
+ createdAt?: Date | string
640
+ updatedAt?: Date | string
641
+ deletedAt?: Date | string | null
642
+ }
643
+
644
+ export type AuditCreateOrConnectWithoutUserInput = {
645
+ where: Prisma.AuditWhereUniqueInput
646
+ create: Prisma.XOR<Prisma.AuditCreateWithoutUserInput, Prisma.AuditUncheckedCreateWithoutUserInput>
647
+ }
648
+
649
+ export type AuditCreateManyUserInputEnvelope = {
650
+ data: Prisma.AuditCreateManyUserInput | Prisma.AuditCreateManyUserInput[]
651
+ skipDuplicates?: boolean
652
+ }
653
+
654
+ export type AuditUpsertWithWhereUniqueWithoutUserInput = {
655
+ where: Prisma.AuditWhereUniqueInput
656
+ update: Prisma.XOR<Prisma.AuditUpdateWithoutUserInput, Prisma.AuditUncheckedUpdateWithoutUserInput>
657
+ create: Prisma.XOR<Prisma.AuditCreateWithoutUserInput, Prisma.AuditUncheckedCreateWithoutUserInput>
658
+ }
659
+
660
+ export type AuditUpdateWithWhereUniqueWithoutUserInput = {
661
+ where: Prisma.AuditWhereUniqueInput
662
+ data: Prisma.XOR<Prisma.AuditUpdateWithoutUserInput, Prisma.AuditUncheckedUpdateWithoutUserInput>
663
+ }
664
+
665
+ export type AuditUpdateManyWithWhereWithoutUserInput = {
666
+ where: Prisma.AuditScalarWhereInput
667
+ data: Prisma.XOR<Prisma.AuditUpdateManyMutationInput, Prisma.AuditUncheckedUpdateManyWithoutUserInput>
668
+ }
669
+
670
+ export type AuditScalarWhereInput = {
671
+ AND?: Prisma.AuditScalarWhereInput | Prisma.AuditScalarWhereInput[]
672
+ OR?: Prisma.AuditScalarWhereInput[]
673
+ NOT?: Prisma.AuditScalarWhereInput | Prisma.AuditScalarWhereInput[]
674
+ id?: Prisma.IntFilter<"Audit"> | number
675
+ no?: Prisma.IntFilter<"Audit"> | number
676
+ module?: Prisma.StringFilter<"Audit"> | string
677
+ moduleId?: Prisma.IntNullableFilter<"Audit"> | number | null
678
+ activity?: Prisma.StringFilter<"Audit"> | string
679
+ detail?: Prisma.StringNullableFilter<"Audit"> | string | null
680
+ device?: Prisma.StringNullableFilter<"Audit"> | string | null
681
+ deviceIp?: Prisma.StringNullableFilter<"Audit"> | string | null
682
+ platform?: Prisma.StringNullableFilter<"Audit"> | string | null
683
+ status?: Prisma.StringFilter<"Audit"> | string
684
+ createdAt?: Prisma.DateTimeFilter<"Audit"> | Date | string
685
+ updatedAt?: Prisma.DateTimeFilter<"Audit"> | Date | string
686
+ deletedAt?: Prisma.DateTimeNullableFilter<"Audit"> | Date | string | null
687
+ userId?: Prisma.StringNullableFilter<"Audit"> | string | null
688
+ }
689
+
690
+ export type AuditCreateManyUserInput = {
691
+ id?: number
692
+ no?: number
693
+ module: string
694
+ moduleId?: number | null
695
+ activity: string
696
+ detail?: string | null
697
+ device?: string | null
698
+ deviceIp?: string | null
699
+ platform?: string | null
700
+ status?: string
701
+ createdAt?: Date | string
702
+ updatedAt?: Date | string
703
+ deletedAt?: Date | string | null
704
+ }
705
+
706
+ export type AuditUpdateWithoutUserInput = {
707
+ no?: Prisma.IntFieldUpdateOperationsInput | number
708
+ module?: Prisma.StringFieldUpdateOperationsInput | string
709
+ moduleId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
710
+ activity?: Prisma.StringFieldUpdateOperationsInput | string
711
+ detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
712
+ device?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
713
+ deviceIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
714
+ platform?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
715
+ status?: Prisma.StringFieldUpdateOperationsInput | string
716
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
717
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
718
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
719
+ }
720
+
721
+ export type AuditUncheckedUpdateWithoutUserInput = {
722
+ id?: Prisma.IntFieldUpdateOperationsInput | number
723
+ no?: Prisma.IntFieldUpdateOperationsInput | number
724
+ module?: Prisma.StringFieldUpdateOperationsInput | string
725
+ moduleId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
726
+ activity?: Prisma.StringFieldUpdateOperationsInput | string
727
+ detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
728
+ device?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
729
+ deviceIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
730
+ platform?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
731
+ status?: Prisma.StringFieldUpdateOperationsInput | string
732
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
733
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
734
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
735
+ }
736
+
737
+ export type AuditUncheckedUpdateManyWithoutUserInput = {
738
+ id?: Prisma.IntFieldUpdateOperationsInput | number
739
+ no?: Prisma.IntFieldUpdateOperationsInput | number
740
+ module?: Prisma.StringFieldUpdateOperationsInput | string
741
+ moduleId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
742
+ activity?: Prisma.StringFieldUpdateOperationsInput | string
743
+ detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
744
+ device?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
745
+ deviceIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
746
+ platform?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
747
+ status?: Prisma.StringFieldUpdateOperationsInput | string
748
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
749
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
750
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
751
+ }
752
+
753
+
754
+
755
+ export type AuditSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
756
+ id?: boolean
757
+ no?: boolean
758
+ module?: boolean
759
+ moduleId?: boolean
760
+ activity?: boolean
761
+ detail?: boolean
762
+ device?: boolean
763
+ deviceIp?: boolean
764
+ platform?: boolean
765
+ status?: boolean
766
+ createdAt?: boolean
767
+ updatedAt?: boolean
768
+ deletedAt?: boolean
769
+ userId?: boolean
770
+ User?: boolean | Prisma.Audit$UserArgs<ExtArgs>
771
+ }, ExtArgs["result"]["audit"]>
772
+
773
+ export type AuditSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
774
+ id?: boolean
775
+ no?: boolean
776
+ module?: boolean
777
+ moduleId?: boolean
778
+ activity?: boolean
779
+ detail?: boolean
780
+ device?: boolean
781
+ deviceIp?: boolean
782
+ platform?: boolean
783
+ status?: boolean
784
+ createdAt?: boolean
785
+ updatedAt?: boolean
786
+ deletedAt?: boolean
787
+ userId?: boolean
788
+ User?: boolean | Prisma.Audit$UserArgs<ExtArgs>
789
+ }, ExtArgs["result"]["audit"]>
790
+
791
+ export type AuditSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
792
+ id?: boolean
793
+ no?: boolean
794
+ module?: boolean
795
+ moduleId?: boolean
796
+ activity?: boolean
797
+ detail?: boolean
798
+ device?: boolean
799
+ deviceIp?: boolean
800
+ platform?: boolean
801
+ status?: boolean
802
+ createdAt?: boolean
803
+ updatedAt?: boolean
804
+ deletedAt?: boolean
805
+ userId?: boolean
806
+ User?: boolean | Prisma.Audit$UserArgs<ExtArgs>
807
+ }, ExtArgs["result"]["audit"]>
808
+
809
+ export type AuditSelectScalar = {
810
+ id?: boolean
811
+ no?: boolean
812
+ module?: boolean
813
+ moduleId?: boolean
814
+ activity?: boolean
815
+ detail?: boolean
816
+ device?: boolean
817
+ deviceIp?: boolean
818
+ platform?: boolean
819
+ status?: boolean
820
+ createdAt?: boolean
821
+ updatedAt?: boolean
822
+ deletedAt?: boolean
823
+ userId?: boolean
824
+ }
825
+
826
+ export type AuditOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "no" | "module" | "moduleId" | "activity" | "detail" | "device" | "deviceIp" | "platform" | "status" | "createdAt" | "updatedAt" | "deletedAt" | "userId", ExtArgs["result"]["audit"]>
827
+ export type AuditInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
828
+ User?: boolean | Prisma.Audit$UserArgs<ExtArgs>
829
+ }
830
+ export type AuditIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
831
+ User?: boolean | Prisma.Audit$UserArgs<ExtArgs>
832
+ }
833
+ export type AuditIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
834
+ User?: boolean | Prisma.Audit$UserArgs<ExtArgs>
835
+ }
836
+
837
+ export type $AuditPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
838
+ name: "Audit"
839
+ objects: {
840
+ User: Prisma.$UserPayload<ExtArgs> | null
841
+ }
842
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
843
+ id: number
844
+ no: number
845
+ module: string
846
+ moduleId: number | null
847
+ activity: string
848
+ detail: string | null
849
+ device: string | null
850
+ deviceIp: string | null
851
+ platform: string | null
852
+ status: string
853
+ createdAt: Date
854
+ updatedAt: Date
855
+ deletedAt: Date | null
856
+ userId: string | null
857
+ }, ExtArgs["result"]["audit"]>
858
+ composites: {}
859
+ }
860
+
861
+ export type AuditGetPayload<S extends boolean | null | undefined | AuditDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AuditPayload, S>
862
+
863
+ export type AuditCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
864
+ Omit<AuditFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
865
+ select?: AuditCountAggregateInputType | true
866
+ }
867
+
868
+ export interface AuditDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
869
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Audit'], meta: { name: 'Audit' } }
870
+ /**
871
+ * Find zero or one Audit that matches the filter.
872
+ * @param {AuditFindUniqueArgs} args - Arguments to find a Audit
873
+ * @example
874
+ * // Get one Audit
875
+ * const audit = await prisma.audit.findUnique({
876
+ * where: {
877
+ * // ... provide filter here
878
+ * }
879
+ * })
880
+ */
881
+ findUnique<T extends AuditFindUniqueArgs>(args: Prisma.SelectSubset<T, AuditFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AuditClient<runtime.Types.Result.GetResult<Prisma.$AuditPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
882
+
883
+ /**
884
+ * Find one Audit that matches the filter or throw an error with `error.code='P2025'`
885
+ * if no matches were found.
886
+ * @param {AuditFindUniqueOrThrowArgs} args - Arguments to find a Audit
887
+ * @example
888
+ * // Get one Audit
889
+ * const audit = await prisma.audit.findUniqueOrThrow({
890
+ * where: {
891
+ * // ... provide filter here
892
+ * }
893
+ * })
894
+ */
895
+ findUniqueOrThrow<T extends AuditFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AuditFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AuditClient<runtime.Types.Result.GetResult<Prisma.$AuditPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
896
+
897
+ /**
898
+ * Find the first Audit that matches the filter.
899
+ * Note, that providing `undefined` is treated as the value not being there.
900
+ * Read more here: https://pris.ly/d/null-undefined
901
+ * @param {AuditFindFirstArgs} args - Arguments to find a Audit
902
+ * @example
903
+ * // Get one Audit
904
+ * const audit = await prisma.audit.findFirst({
905
+ * where: {
906
+ * // ... provide filter here
907
+ * }
908
+ * })
909
+ */
910
+ findFirst<T extends AuditFindFirstArgs>(args?: Prisma.SelectSubset<T, AuditFindFirstArgs<ExtArgs>>): Prisma.Prisma__AuditClient<runtime.Types.Result.GetResult<Prisma.$AuditPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
911
+
912
+ /**
913
+ * Find the first Audit that matches the filter or
914
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
915
+ * Note, that providing `undefined` is treated as the value not being there.
916
+ * Read more here: https://pris.ly/d/null-undefined
917
+ * @param {AuditFindFirstOrThrowArgs} args - Arguments to find a Audit
918
+ * @example
919
+ * // Get one Audit
920
+ * const audit = await prisma.audit.findFirstOrThrow({
921
+ * where: {
922
+ * // ... provide filter here
923
+ * }
924
+ * })
925
+ */
926
+ findFirstOrThrow<T extends AuditFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AuditFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AuditClient<runtime.Types.Result.GetResult<Prisma.$AuditPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
927
+
928
+ /**
929
+ * Find zero or more Audits that matches the filter.
930
+ * Note, that providing `undefined` is treated as the value not being there.
931
+ * Read more here: https://pris.ly/d/null-undefined
932
+ * @param {AuditFindManyArgs} args - Arguments to filter and select certain fields only.
933
+ * @example
934
+ * // Get all Audits
935
+ * const audits = await prisma.audit.findMany()
936
+ *
937
+ * // Get first 10 Audits
938
+ * const audits = await prisma.audit.findMany({ take: 10 })
939
+ *
940
+ * // Only select the `id`
941
+ * const auditWithIdOnly = await prisma.audit.findMany({ select: { id: true } })
942
+ *
943
+ */
944
+ findMany<T extends AuditFindManyArgs>(args?: Prisma.SelectSubset<T, AuditFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
945
+
946
+ /**
947
+ * Create a Audit.
948
+ * @param {AuditCreateArgs} args - Arguments to create a Audit.
949
+ * @example
950
+ * // Create one Audit
951
+ * const Audit = await prisma.audit.create({
952
+ * data: {
953
+ * // ... data to create a Audit
954
+ * }
955
+ * })
956
+ *
957
+ */
958
+ create<T extends AuditCreateArgs>(args: Prisma.SelectSubset<T, AuditCreateArgs<ExtArgs>>): Prisma.Prisma__AuditClient<runtime.Types.Result.GetResult<Prisma.$AuditPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
959
+
960
+ /**
961
+ * Create many Audits.
962
+ * @param {AuditCreateManyArgs} args - Arguments to create many Audits.
963
+ * @example
964
+ * // Create many Audits
965
+ * const audit = await prisma.audit.createMany({
966
+ * data: [
967
+ * // ... provide data here
968
+ * ]
969
+ * })
970
+ *
971
+ */
972
+ createMany<T extends AuditCreateManyArgs>(args?: Prisma.SelectSubset<T, AuditCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
973
+
974
+ /**
975
+ * Create many Audits and returns the data saved in the database.
976
+ * @param {AuditCreateManyAndReturnArgs} args - Arguments to create many Audits.
977
+ * @example
978
+ * // Create many Audits
979
+ * const audit = await prisma.audit.createManyAndReturn({
980
+ * data: [
981
+ * // ... provide data here
982
+ * ]
983
+ * })
984
+ *
985
+ * // Create many Audits and only return the `id`
986
+ * const auditWithIdOnly = await prisma.audit.createManyAndReturn({
987
+ * select: { id: true },
988
+ * data: [
989
+ * // ... provide data here
990
+ * ]
991
+ * })
992
+ * Note, that providing `undefined` is treated as the value not being there.
993
+ * Read more here: https://pris.ly/d/null-undefined
994
+ *
995
+ */
996
+ createManyAndReturn<T extends AuditCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AuditCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
997
+
998
+ /**
999
+ * Delete a Audit.
1000
+ * @param {AuditDeleteArgs} args - Arguments to delete one Audit.
1001
+ * @example
1002
+ * // Delete one Audit
1003
+ * const Audit = await prisma.audit.delete({
1004
+ * where: {
1005
+ * // ... filter to delete one Audit
1006
+ * }
1007
+ * })
1008
+ *
1009
+ */
1010
+ delete<T extends AuditDeleteArgs>(args: Prisma.SelectSubset<T, AuditDeleteArgs<ExtArgs>>): Prisma.Prisma__AuditClient<runtime.Types.Result.GetResult<Prisma.$AuditPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1011
+
1012
+ /**
1013
+ * Update one Audit.
1014
+ * @param {AuditUpdateArgs} args - Arguments to update one Audit.
1015
+ * @example
1016
+ * // Update one Audit
1017
+ * const audit = await prisma.audit.update({
1018
+ * where: {
1019
+ * // ... provide filter here
1020
+ * },
1021
+ * data: {
1022
+ * // ... provide data here
1023
+ * }
1024
+ * })
1025
+ *
1026
+ */
1027
+ update<T extends AuditUpdateArgs>(args: Prisma.SelectSubset<T, AuditUpdateArgs<ExtArgs>>): Prisma.Prisma__AuditClient<runtime.Types.Result.GetResult<Prisma.$AuditPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1028
+
1029
+ /**
1030
+ * Delete zero or more Audits.
1031
+ * @param {AuditDeleteManyArgs} args - Arguments to filter Audits to delete.
1032
+ * @example
1033
+ * // Delete a few Audits
1034
+ * const { count } = await prisma.audit.deleteMany({
1035
+ * where: {
1036
+ * // ... provide filter here
1037
+ * }
1038
+ * })
1039
+ *
1040
+ */
1041
+ deleteMany<T extends AuditDeleteManyArgs>(args?: Prisma.SelectSubset<T, AuditDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1042
+
1043
+ /**
1044
+ * Update zero or more Audits.
1045
+ * Note, that providing `undefined` is treated as the value not being there.
1046
+ * Read more here: https://pris.ly/d/null-undefined
1047
+ * @param {AuditUpdateManyArgs} args - Arguments to update one or more rows.
1048
+ * @example
1049
+ * // Update many Audits
1050
+ * const audit = await prisma.audit.updateMany({
1051
+ * where: {
1052
+ * // ... provide filter here
1053
+ * },
1054
+ * data: {
1055
+ * // ... provide data here
1056
+ * }
1057
+ * })
1058
+ *
1059
+ */
1060
+ updateMany<T extends AuditUpdateManyArgs>(args: Prisma.SelectSubset<T, AuditUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1061
+
1062
+ /**
1063
+ * Update zero or more Audits and returns the data updated in the database.
1064
+ * @param {AuditUpdateManyAndReturnArgs} args - Arguments to update many Audits.
1065
+ * @example
1066
+ * // Update many Audits
1067
+ * const audit = await prisma.audit.updateManyAndReturn({
1068
+ * where: {
1069
+ * // ... provide filter here
1070
+ * },
1071
+ * data: [
1072
+ * // ... provide data here
1073
+ * ]
1074
+ * })
1075
+ *
1076
+ * // Update zero or more Audits and only return the `id`
1077
+ * const auditWithIdOnly = await prisma.audit.updateManyAndReturn({
1078
+ * select: { id: true },
1079
+ * where: {
1080
+ * // ... provide filter here
1081
+ * },
1082
+ * data: [
1083
+ * // ... provide data here
1084
+ * ]
1085
+ * })
1086
+ * Note, that providing `undefined` is treated as the value not being there.
1087
+ * Read more here: https://pris.ly/d/null-undefined
1088
+ *
1089
+ */
1090
+ updateManyAndReturn<T extends AuditUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AuditUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1091
+
1092
+ /**
1093
+ * Create or update one Audit.
1094
+ * @param {AuditUpsertArgs} args - Arguments to update or create a Audit.
1095
+ * @example
1096
+ * // Update or create a Audit
1097
+ * const audit = await prisma.audit.upsert({
1098
+ * create: {
1099
+ * // ... data to create a Audit
1100
+ * },
1101
+ * update: {
1102
+ * // ... in case it already exists, update
1103
+ * },
1104
+ * where: {
1105
+ * // ... the filter for the Audit we want to update
1106
+ * }
1107
+ * })
1108
+ */
1109
+ upsert<T extends AuditUpsertArgs>(args: Prisma.SelectSubset<T, AuditUpsertArgs<ExtArgs>>): Prisma.Prisma__AuditClient<runtime.Types.Result.GetResult<Prisma.$AuditPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1110
+
1111
+
1112
+ /**
1113
+ * Count the number of Audits.
1114
+ * Note, that providing `undefined` is treated as the value not being there.
1115
+ * Read more here: https://pris.ly/d/null-undefined
1116
+ * @param {AuditCountArgs} args - Arguments to filter Audits to count.
1117
+ * @example
1118
+ * // Count the number of Audits
1119
+ * const count = await prisma.audit.count({
1120
+ * where: {
1121
+ * // ... the filter for the Audits we want to count
1122
+ * }
1123
+ * })
1124
+ **/
1125
+ count<T extends AuditCountArgs>(
1126
+ args?: Prisma.Subset<T, AuditCountArgs>,
1127
+ ): Prisma.PrismaPromise<
1128
+ T extends runtime.Types.Utils.Record<'select', any>
1129
+ ? T['select'] extends true
1130
+ ? number
1131
+ : Prisma.GetScalarType<T['select'], AuditCountAggregateOutputType>
1132
+ : number
1133
+ >
1134
+
1135
+ /**
1136
+ * Allows you to perform aggregations operations on a Audit.
1137
+ * Note, that providing `undefined` is treated as the value not being there.
1138
+ * Read more here: https://pris.ly/d/null-undefined
1139
+ * @param {AuditAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1140
+ * @example
1141
+ * // Ordered by age ascending
1142
+ * // Where email contains prisma.io
1143
+ * // Limited to the 10 users
1144
+ * const aggregations = await prisma.user.aggregate({
1145
+ * _avg: {
1146
+ * age: true,
1147
+ * },
1148
+ * where: {
1149
+ * email: {
1150
+ * contains: "prisma.io",
1151
+ * },
1152
+ * },
1153
+ * orderBy: {
1154
+ * age: "asc",
1155
+ * },
1156
+ * take: 10,
1157
+ * })
1158
+ **/
1159
+ aggregate<T extends AuditAggregateArgs>(args: Prisma.Subset<T, AuditAggregateArgs>): Prisma.PrismaPromise<GetAuditAggregateType<T>>
1160
+
1161
+ /**
1162
+ * Group by Audit.
1163
+ * Note, that providing `undefined` is treated as the value not being there.
1164
+ * Read more here: https://pris.ly/d/null-undefined
1165
+ * @param {AuditGroupByArgs} args - Group by arguments.
1166
+ * @example
1167
+ * // Group by city, order by createdAt, get count
1168
+ * const result = await prisma.user.groupBy({
1169
+ * by: ['city', 'createdAt'],
1170
+ * orderBy: {
1171
+ * createdAt: true
1172
+ * },
1173
+ * _count: {
1174
+ * _all: true
1175
+ * },
1176
+ * })
1177
+ *
1178
+ **/
1179
+ groupBy<
1180
+ T extends AuditGroupByArgs,
1181
+ HasSelectOrTake extends Prisma.Or<
1182
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1183
+ Prisma.Extends<'take', Prisma.Keys<T>>
1184
+ >,
1185
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1186
+ ? { orderBy: AuditGroupByArgs['orderBy'] }
1187
+ : { orderBy?: AuditGroupByArgs['orderBy'] },
1188
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1189
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1190
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1191
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1192
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1193
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1194
+ InputErrors extends ByEmpty extends Prisma.True
1195
+ ? `Error: "by" must not be empty.`
1196
+ : HavingValid extends Prisma.False
1197
+ ? {
1198
+ [P in HavingFields]: P extends ByFields
1199
+ ? never
1200
+ : P extends string
1201
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1202
+ : [
1203
+ Error,
1204
+ 'Field ',
1205
+ P,
1206
+ ` in "having" needs to be provided in "by"`,
1207
+ ]
1208
+ }[HavingFields]
1209
+ : 'take' extends Prisma.Keys<T>
1210
+ ? 'orderBy' extends Prisma.Keys<T>
1211
+ ? ByValid extends Prisma.True
1212
+ ? {}
1213
+ : {
1214
+ [P in OrderFields]: P extends ByFields
1215
+ ? never
1216
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1217
+ }[OrderFields]
1218
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1219
+ : 'skip' extends Prisma.Keys<T>
1220
+ ? 'orderBy' extends Prisma.Keys<T>
1221
+ ? ByValid extends Prisma.True
1222
+ ? {}
1223
+ : {
1224
+ [P in OrderFields]: P extends ByFields
1225
+ ? never
1226
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1227
+ }[OrderFields]
1228
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1229
+ : ByValid extends Prisma.True
1230
+ ? {}
1231
+ : {
1232
+ [P in OrderFields]: P extends ByFields
1233
+ ? never
1234
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1235
+ }[OrderFields]
1236
+ >(args: Prisma.SubsetIntersection<T, AuditGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAuditGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1237
+ /**
1238
+ * Fields of the Audit model
1239
+ */
1240
+ readonly fields: AuditFieldRefs;
1241
+ }
1242
+
1243
+ /**
1244
+ * The delegate class that acts as a "Promise-like" for Audit.
1245
+ * Why is this prefixed with `Prisma__`?
1246
+ * Because we want to prevent naming conflicts as mentioned in
1247
+ * https://github.com/prisma/prisma-client-js/issues/707
1248
+ */
1249
+ export interface Prisma__AuditClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1250
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1251
+ User<T extends Prisma.Audit$UserArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Audit$UserArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1252
+ /**
1253
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1254
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1255
+ * @param onrejected The callback to execute when the Promise is rejected.
1256
+ * @returns A Promise for the completion of which ever callback is executed.
1257
+ */
1258
+ 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>
1259
+ /**
1260
+ * Attaches a callback for only the rejection of the Promise.
1261
+ * @param onrejected The callback to execute when the Promise is rejected.
1262
+ * @returns A Promise for the completion of the callback.
1263
+ */
1264
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1265
+ /**
1266
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1267
+ * resolved value cannot be modified from the callback.
1268
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1269
+ * @returns A Promise for the completion of the callback.
1270
+ */
1271
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1272
+ }
1273
+
1274
+
1275
+
1276
+
1277
+ /**
1278
+ * Fields of the Audit model
1279
+ */
1280
+ export interface AuditFieldRefs {
1281
+ readonly id: Prisma.FieldRef<"Audit", 'Int'>
1282
+ readonly no: Prisma.FieldRef<"Audit", 'Int'>
1283
+ readonly module: Prisma.FieldRef<"Audit", 'String'>
1284
+ readonly moduleId: Prisma.FieldRef<"Audit", 'Int'>
1285
+ readonly activity: Prisma.FieldRef<"Audit", 'String'>
1286
+ readonly detail: Prisma.FieldRef<"Audit", 'String'>
1287
+ readonly device: Prisma.FieldRef<"Audit", 'String'>
1288
+ readonly deviceIp: Prisma.FieldRef<"Audit", 'String'>
1289
+ readonly platform: Prisma.FieldRef<"Audit", 'String'>
1290
+ readonly status: Prisma.FieldRef<"Audit", 'String'>
1291
+ readonly createdAt: Prisma.FieldRef<"Audit", 'DateTime'>
1292
+ readonly updatedAt: Prisma.FieldRef<"Audit", 'DateTime'>
1293
+ readonly deletedAt: Prisma.FieldRef<"Audit", 'DateTime'>
1294
+ readonly userId: Prisma.FieldRef<"Audit", 'String'>
1295
+ }
1296
+
1297
+
1298
+ // Custom InputTypes
1299
+ /**
1300
+ * Audit findUnique
1301
+ */
1302
+ export type AuditFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1303
+ /**
1304
+ * Select specific fields to fetch from the Audit
1305
+ */
1306
+ select?: Prisma.AuditSelect<ExtArgs> | null
1307
+ /**
1308
+ * Omit specific fields from the Audit
1309
+ */
1310
+ omit?: Prisma.AuditOmit<ExtArgs> | null
1311
+ /**
1312
+ * Choose, which related nodes to fetch as well
1313
+ */
1314
+ include?: Prisma.AuditInclude<ExtArgs> | null
1315
+ /**
1316
+ * Filter, which Audit to fetch.
1317
+ */
1318
+ where: Prisma.AuditWhereUniqueInput
1319
+ }
1320
+
1321
+ /**
1322
+ * Audit findUniqueOrThrow
1323
+ */
1324
+ export type AuditFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1325
+ /**
1326
+ * Select specific fields to fetch from the Audit
1327
+ */
1328
+ select?: Prisma.AuditSelect<ExtArgs> | null
1329
+ /**
1330
+ * Omit specific fields from the Audit
1331
+ */
1332
+ omit?: Prisma.AuditOmit<ExtArgs> | null
1333
+ /**
1334
+ * Choose, which related nodes to fetch as well
1335
+ */
1336
+ include?: Prisma.AuditInclude<ExtArgs> | null
1337
+ /**
1338
+ * Filter, which Audit to fetch.
1339
+ */
1340
+ where: Prisma.AuditWhereUniqueInput
1341
+ }
1342
+
1343
+ /**
1344
+ * Audit findFirst
1345
+ */
1346
+ export type AuditFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1347
+ /**
1348
+ * Select specific fields to fetch from the Audit
1349
+ */
1350
+ select?: Prisma.AuditSelect<ExtArgs> | null
1351
+ /**
1352
+ * Omit specific fields from the Audit
1353
+ */
1354
+ omit?: Prisma.AuditOmit<ExtArgs> | null
1355
+ /**
1356
+ * Choose, which related nodes to fetch as well
1357
+ */
1358
+ include?: Prisma.AuditInclude<ExtArgs> | null
1359
+ /**
1360
+ * Filter, which Audit to fetch.
1361
+ */
1362
+ where?: Prisma.AuditWhereInput
1363
+ /**
1364
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1365
+ *
1366
+ * Determine the order of Audits to fetch.
1367
+ */
1368
+ orderBy?: Prisma.AuditOrderByWithRelationInput | Prisma.AuditOrderByWithRelationInput[]
1369
+ /**
1370
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1371
+ *
1372
+ * Sets the position for searching for Audits.
1373
+ */
1374
+ cursor?: Prisma.AuditWhereUniqueInput
1375
+ /**
1376
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1377
+ *
1378
+ * Take `±n` Audits from the position of the cursor.
1379
+ */
1380
+ take?: number
1381
+ /**
1382
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1383
+ *
1384
+ * Skip the first `n` Audits.
1385
+ */
1386
+ skip?: number
1387
+ /**
1388
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1389
+ *
1390
+ * Filter by unique combinations of Audits.
1391
+ */
1392
+ distinct?: Prisma.AuditScalarFieldEnum | Prisma.AuditScalarFieldEnum[]
1393
+ }
1394
+
1395
+ /**
1396
+ * Audit findFirstOrThrow
1397
+ */
1398
+ export type AuditFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1399
+ /**
1400
+ * Select specific fields to fetch from the Audit
1401
+ */
1402
+ select?: Prisma.AuditSelect<ExtArgs> | null
1403
+ /**
1404
+ * Omit specific fields from the Audit
1405
+ */
1406
+ omit?: Prisma.AuditOmit<ExtArgs> | null
1407
+ /**
1408
+ * Choose, which related nodes to fetch as well
1409
+ */
1410
+ include?: Prisma.AuditInclude<ExtArgs> | null
1411
+ /**
1412
+ * Filter, which Audit to fetch.
1413
+ */
1414
+ where?: Prisma.AuditWhereInput
1415
+ /**
1416
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1417
+ *
1418
+ * Determine the order of Audits to fetch.
1419
+ */
1420
+ orderBy?: Prisma.AuditOrderByWithRelationInput | Prisma.AuditOrderByWithRelationInput[]
1421
+ /**
1422
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1423
+ *
1424
+ * Sets the position for searching for Audits.
1425
+ */
1426
+ cursor?: Prisma.AuditWhereUniqueInput
1427
+ /**
1428
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1429
+ *
1430
+ * Take `±n` Audits from the position of the cursor.
1431
+ */
1432
+ take?: number
1433
+ /**
1434
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1435
+ *
1436
+ * Skip the first `n` Audits.
1437
+ */
1438
+ skip?: number
1439
+ /**
1440
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1441
+ *
1442
+ * Filter by unique combinations of Audits.
1443
+ */
1444
+ distinct?: Prisma.AuditScalarFieldEnum | Prisma.AuditScalarFieldEnum[]
1445
+ }
1446
+
1447
+ /**
1448
+ * Audit findMany
1449
+ */
1450
+ export type AuditFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1451
+ /**
1452
+ * Select specific fields to fetch from the Audit
1453
+ */
1454
+ select?: Prisma.AuditSelect<ExtArgs> | null
1455
+ /**
1456
+ * Omit specific fields from the Audit
1457
+ */
1458
+ omit?: Prisma.AuditOmit<ExtArgs> | null
1459
+ /**
1460
+ * Choose, which related nodes to fetch as well
1461
+ */
1462
+ include?: Prisma.AuditInclude<ExtArgs> | null
1463
+ /**
1464
+ * Filter, which Audits to fetch.
1465
+ */
1466
+ where?: Prisma.AuditWhereInput
1467
+ /**
1468
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1469
+ *
1470
+ * Determine the order of Audits to fetch.
1471
+ */
1472
+ orderBy?: Prisma.AuditOrderByWithRelationInput | Prisma.AuditOrderByWithRelationInput[]
1473
+ /**
1474
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1475
+ *
1476
+ * Sets the position for listing Audits.
1477
+ */
1478
+ cursor?: Prisma.AuditWhereUniqueInput
1479
+ /**
1480
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1481
+ *
1482
+ * Take `±n` Audits from the position of the cursor.
1483
+ */
1484
+ take?: number
1485
+ /**
1486
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1487
+ *
1488
+ * Skip the first `n` Audits.
1489
+ */
1490
+ skip?: number
1491
+ distinct?: Prisma.AuditScalarFieldEnum | Prisma.AuditScalarFieldEnum[]
1492
+ }
1493
+
1494
+ /**
1495
+ * Audit create
1496
+ */
1497
+ export type AuditCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1498
+ /**
1499
+ * Select specific fields to fetch from the Audit
1500
+ */
1501
+ select?: Prisma.AuditSelect<ExtArgs> | null
1502
+ /**
1503
+ * Omit specific fields from the Audit
1504
+ */
1505
+ omit?: Prisma.AuditOmit<ExtArgs> | null
1506
+ /**
1507
+ * Choose, which related nodes to fetch as well
1508
+ */
1509
+ include?: Prisma.AuditInclude<ExtArgs> | null
1510
+ /**
1511
+ * The data needed to create a Audit.
1512
+ */
1513
+ data: Prisma.XOR<Prisma.AuditCreateInput, Prisma.AuditUncheckedCreateInput>
1514
+ }
1515
+
1516
+ /**
1517
+ * Audit createMany
1518
+ */
1519
+ export type AuditCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1520
+ /**
1521
+ * The data used to create many Audits.
1522
+ */
1523
+ data: Prisma.AuditCreateManyInput | Prisma.AuditCreateManyInput[]
1524
+ skipDuplicates?: boolean
1525
+ }
1526
+
1527
+ /**
1528
+ * Audit createManyAndReturn
1529
+ */
1530
+ export type AuditCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1531
+ /**
1532
+ * Select specific fields to fetch from the Audit
1533
+ */
1534
+ select?: Prisma.AuditSelectCreateManyAndReturn<ExtArgs> | null
1535
+ /**
1536
+ * Omit specific fields from the Audit
1537
+ */
1538
+ omit?: Prisma.AuditOmit<ExtArgs> | null
1539
+ /**
1540
+ * The data used to create many Audits.
1541
+ */
1542
+ data: Prisma.AuditCreateManyInput | Prisma.AuditCreateManyInput[]
1543
+ skipDuplicates?: boolean
1544
+ /**
1545
+ * Choose, which related nodes to fetch as well
1546
+ */
1547
+ include?: Prisma.AuditIncludeCreateManyAndReturn<ExtArgs> | null
1548
+ }
1549
+
1550
+ /**
1551
+ * Audit update
1552
+ */
1553
+ export type AuditUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1554
+ /**
1555
+ * Select specific fields to fetch from the Audit
1556
+ */
1557
+ select?: Prisma.AuditSelect<ExtArgs> | null
1558
+ /**
1559
+ * Omit specific fields from the Audit
1560
+ */
1561
+ omit?: Prisma.AuditOmit<ExtArgs> | null
1562
+ /**
1563
+ * Choose, which related nodes to fetch as well
1564
+ */
1565
+ include?: Prisma.AuditInclude<ExtArgs> | null
1566
+ /**
1567
+ * The data needed to update a Audit.
1568
+ */
1569
+ data: Prisma.XOR<Prisma.AuditUpdateInput, Prisma.AuditUncheckedUpdateInput>
1570
+ /**
1571
+ * Choose, which Audit to update.
1572
+ */
1573
+ where: Prisma.AuditWhereUniqueInput
1574
+ }
1575
+
1576
+ /**
1577
+ * Audit updateMany
1578
+ */
1579
+ export type AuditUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1580
+ /**
1581
+ * The data used to update Audits.
1582
+ */
1583
+ data: Prisma.XOR<Prisma.AuditUpdateManyMutationInput, Prisma.AuditUncheckedUpdateManyInput>
1584
+ /**
1585
+ * Filter which Audits to update
1586
+ */
1587
+ where?: Prisma.AuditWhereInput
1588
+ /**
1589
+ * Limit how many Audits to update.
1590
+ */
1591
+ limit?: number
1592
+ }
1593
+
1594
+ /**
1595
+ * Audit updateManyAndReturn
1596
+ */
1597
+ export type AuditUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1598
+ /**
1599
+ * Select specific fields to fetch from the Audit
1600
+ */
1601
+ select?: Prisma.AuditSelectUpdateManyAndReturn<ExtArgs> | null
1602
+ /**
1603
+ * Omit specific fields from the Audit
1604
+ */
1605
+ omit?: Prisma.AuditOmit<ExtArgs> | null
1606
+ /**
1607
+ * The data used to update Audits.
1608
+ */
1609
+ data: Prisma.XOR<Prisma.AuditUpdateManyMutationInput, Prisma.AuditUncheckedUpdateManyInput>
1610
+ /**
1611
+ * Filter which Audits to update
1612
+ */
1613
+ where?: Prisma.AuditWhereInput
1614
+ /**
1615
+ * Limit how many Audits to update.
1616
+ */
1617
+ limit?: number
1618
+ /**
1619
+ * Choose, which related nodes to fetch as well
1620
+ */
1621
+ include?: Prisma.AuditIncludeUpdateManyAndReturn<ExtArgs> | null
1622
+ }
1623
+
1624
+ /**
1625
+ * Audit upsert
1626
+ */
1627
+ export type AuditUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1628
+ /**
1629
+ * Select specific fields to fetch from the Audit
1630
+ */
1631
+ select?: Prisma.AuditSelect<ExtArgs> | null
1632
+ /**
1633
+ * Omit specific fields from the Audit
1634
+ */
1635
+ omit?: Prisma.AuditOmit<ExtArgs> | null
1636
+ /**
1637
+ * Choose, which related nodes to fetch as well
1638
+ */
1639
+ include?: Prisma.AuditInclude<ExtArgs> | null
1640
+ /**
1641
+ * The filter to search for the Audit to update in case it exists.
1642
+ */
1643
+ where: Prisma.AuditWhereUniqueInput
1644
+ /**
1645
+ * In case the Audit found by the `where` argument doesn't exist, create a new Audit with this data.
1646
+ */
1647
+ create: Prisma.XOR<Prisma.AuditCreateInput, Prisma.AuditUncheckedCreateInput>
1648
+ /**
1649
+ * In case the Audit was found with the provided `where` argument, update it with this data.
1650
+ */
1651
+ update: Prisma.XOR<Prisma.AuditUpdateInput, Prisma.AuditUncheckedUpdateInput>
1652
+ }
1653
+
1654
+ /**
1655
+ * Audit delete
1656
+ */
1657
+ export type AuditDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1658
+ /**
1659
+ * Select specific fields to fetch from the Audit
1660
+ */
1661
+ select?: Prisma.AuditSelect<ExtArgs> | null
1662
+ /**
1663
+ * Omit specific fields from the Audit
1664
+ */
1665
+ omit?: Prisma.AuditOmit<ExtArgs> | null
1666
+ /**
1667
+ * Choose, which related nodes to fetch as well
1668
+ */
1669
+ include?: Prisma.AuditInclude<ExtArgs> | null
1670
+ /**
1671
+ * Filter which Audit to delete.
1672
+ */
1673
+ where: Prisma.AuditWhereUniqueInput
1674
+ }
1675
+
1676
+ /**
1677
+ * Audit deleteMany
1678
+ */
1679
+ export type AuditDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1680
+ /**
1681
+ * Filter which Audits to delete
1682
+ */
1683
+ where?: Prisma.AuditWhereInput
1684
+ /**
1685
+ * Limit how many Audits to delete.
1686
+ */
1687
+ limit?: number
1688
+ }
1689
+
1690
+ /**
1691
+ * Audit.User
1692
+ */
1693
+ export type Audit$UserArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1694
+ /**
1695
+ * Select specific fields to fetch from the User
1696
+ */
1697
+ select?: Prisma.UserSelect<ExtArgs> | null
1698
+ /**
1699
+ * Omit specific fields from the User
1700
+ */
1701
+ omit?: Prisma.UserOmit<ExtArgs> | null
1702
+ /**
1703
+ * Choose, which related nodes to fetch as well
1704
+ */
1705
+ include?: Prisma.UserInclude<ExtArgs> | null
1706
+ where?: Prisma.UserWhereInput
1707
+ }
1708
+
1709
+ /**
1710
+ * Audit without action
1711
+ */
1712
+ export type AuditDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1713
+ /**
1714
+ * Select specific fields to fetch from the Audit
1715
+ */
1716
+ select?: Prisma.AuditSelect<ExtArgs> | null
1717
+ /**
1718
+ * Omit specific fields from the Audit
1719
+ */
1720
+ omit?: Prisma.AuditOmit<ExtArgs> | null
1721
+ /**
1722
+ * Choose, which related nodes to fetch as well
1723
+ */
1724
+ include?: Prisma.AuditInclude<ExtArgs> | null
1725
+ }