@allbluecn/database 0.3.14 → 0.4.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 (190) hide show
  1. package/desktop-init.ts +128 -0
  2. package/generated/browser.ts +494 -0
  3. package/generated/client.ts +518 -0
  4. package/generated/commonInputTypes.ts +1056 -0
  5. package/generated/enums.ts +93 -0
  6. package/generated/internal/class.ts +1144 -0
  7. package/generated/internal/prismaNamespace.ts +9603 -0
  8. package/generated/internal/prismaNamespaceBrowser.ts +1695 -0
  9. package/generated/models/Account.ts +1648 -0
  10. package/generated/models/AgentConversation.ts +1651 -0
  11. package/generated/models/AgentMessage.ts +1409 -0
  12. package/generated/models/AiProvider.ts +1607 -0
  13. package/generated/models/AiProviderConfig.ts +1514 -0
  14. package/generated/models/AiUsageLog.ts +1863 -0
  15. package/generated/models/AnyHubApp.ts +1911 -0
  16. package/generated/models/AnyHubMarketApp.ts +2008 -0
  17. package/generated/models/AnyHubPermission.ts +1422 -0
  18. package/generated/models/AnyHubRecommendation.ts +1870 -0
  19. package/generated/models/AnyHubRecommender.ts +1471 -0
  20. package/generated/models/Artboard.ts +1811 -0
  21. package/generated/models/ArtboardExport.ts +1548 -0
  22. package/generated/models/ArticleFavorite.ts +1352 -0
  23. package/generated/models/AuditLog.ts +1533 -0
  24. package/generated/models/Block.ts +1650 -0
  25. package/generated/models/BlockComponent.ts +1734 -0
  26. package/generated/models/BlockInstance.ts +2043 -0
  27. package/generated/models/BookmarkCategory.ts +1670 -0
  28. package/generated/models/ChatInterrupt.ts +1699 -0
  29. package/generated/models/ChatMessage.ts +1438 -0
  30. package/generated/models/ChatRun.ts +1632 -0
  31. package/generated/models/ChatThread.ts +2133 -0
  32. package/generated/models/Comment.ts +2206 -0
  33. package/generated/models/CommentIgnore.ts +1430 -0
  34. package/generated/models/CommentReaction.ts +1472 -0
  35. package/generated/models/ComplianceExport.ts +1345 -0
  36. package/generated/models/Component.ts +2345 -0
  37. package/generated/models/ComponentInstance.ts +2102 -0
  38. package/generated/models/ComponentTag.ts +1281 -0
  39. package/generated/models/CustomRole.ts +1560 -0
  40. package/generated/models/DesignProject.ts +1643 -0
  41. package/generated/models/DictionaryTerm.ts +1642 -0
  42. package/generated/models/GenerationRun.ts +1543 -0
  43. package/generated/models/IndustryCompliance.ts +1797 -0
  44. package/generated/models/InvitationCode.ts +1417 -0
  45. package/generated/models/InvitationUse.ts +1424 -0
  46. package/generated/models/Invoice.ts +1710 -0
  47. package/generated/models/KnowledgeBase.ts +1671 -0
  48. package/generated/models/KnowledgeDocument.ts +2458 -0
  49. package/generated/models/KnowledgeShareRecord.ts +1352 -0
  50. package/generated/models/Label.ts +1482 -0
  51. package/generated/models/LegalRegulation.ts +1873 -0
  52. package/generated/models/LicenseActivation.ts +1415 -0
  53. package/generated/models/LicenseKey.ts +1884 -0
  54. package/generated/models/LoginLog.ts +1450 -0
  55. package/generated/models/MonitoringErrorReport.ts +1299 -0
  56. package/generated/models/MonitoringHealthSnapshot.ts +1249 -0
  57. package/generated/models/MonitoringMetricsSnapshot.ts +1369 -0
  58. package/generated/models/MonitoringRequestLog.ts +1283 -0
  59. package/generated/models/PRD.ts +2805 -0
  60. package/generated/models/PRDPage.ts +2402 -0
  61. package/generated/models/PRDTag.ts +1430 -0
  62. package/generated/models/PRDVersion.ts +2121 -0
  63. package/generated/models/PageVersion.ts +1523 -0
  64. package/generated/models/PasswordResetToken.ts +1380 -0
  65. package/generated/models/Plan.ts +2069 -0
  66. package/generated/models/Project.ts +2148 -0
  67. package/generated/models/ProjectActivity.ts +1582 -0
  68. package/generated/models/ProjectMember.ts +1512 -0
  69. package/generated/models/ProviderEvent.ts +1227 -0
  70. package/generated/models/Reference.ts +1177 -0
  71. package/generated/models/Review.ts +1912 -0
  72. package/generated/models/ReviewComment.ts +1904 -0
  73. package/generated/models/RoleAssignment.ts +1430 -0
  74. package/generated/models/SequenceCounter.ts +1137 -0
  75. package/generated/models/Share.ts +1681 -0
  76. package/generated/models/ShareVersion.ts +1389 -0
  77. package/generated/models/SsoMapping.ts +1512 -0
  78. package/generated/models/SsoProvider.ts +1639 -0
  79. package/generated/models/Story.ts +5234 -0
  80. package/generated/models/StoryActivity.ts +1664 -0
  81. package/generated/models/StoryAttachment.ts +1467 -0
  82. package/generated/models/StoryComment.ts +1992 -0
  83. package/generated/models/StoryDependency.ts +1517 -0
  84. package/generated/models/StoryDocLink.ts +1430 -0
  85. package/generated/models/StoryFilterView.ts +1587 -0
  86. package/generated/models/StoryLabel.ts +1349 -0
  87. package/generated/models/StoryLink.ts +1415 -0
  88. package/generated/models/StoryPrdLink.ts +1430 -0
  89. package/generated/models/StoryReaction.ts +1472 -0
  90. package/generated/models/Subscription.ts +2147 -0
  91. package/generated/models/SystemSetting.ts +1217 -0
  92. package/generated/models/Tag.ts +1655 -0
  93. package/generated/models/TeamInvitation.ts +1526 -0
  94. package/generated/models/TeamMembership.ts +1436 -0
  95. package/generated/models/Template.ts +1391 -0
  96. package/generated/models/TemplateBlock.ts +1664 -0
  97. package/generated/models/ThirdPartyDependency.ts +1473 -0
  98. package/generated/models/UsageRecord.ts +1505 -0
  99. package/generated/models/User.ts +20998 -0
  100. package/generated/models/UserAgent.ts +1900 -0
  101. package/generated/models/UserSkill.ts +1456 -0
  102. package/generated/models/WebsiteBookmark.ts +2219 -0
  103. package/generated/models/Workspace.ts +2279 -0
  104. package/generated/models.ts +106 -0
  105. package/generated-sqlite/browser.ts +399 -0
  106. package/generated-sqlite/client.ts +423 -0
  107. package/generated-sqlite/commonInputTypes.ts +608 -0
  108. package/generated-sqlite/enums.ts +15 -0
  109. package/generated-sqlite/internal/class.ts +954 -0
  110. package/generated-sqlite/internal/prismaNamespace.ts +7716 -0
  111. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +1415 -0
  112. package/generated-sqlite/models/AgentConversation.ts +1647 -0
  113. package/generated-sqlite/models/AgentMessage.ts +1406 -0
  114. package/generated-sqlite/models/AiProvider.ts +1605 -0
  115. package/generated-sqlite/models/AiProviderConfig.ts +1511 -0
  116. package/generated-sqlite/models/AiUsageLog.ts +1845 -0
  117. package/generated-sqlite/models/AnyHubApp.ts +1908 -0
  118. package/generated-sqlite/models/AnyHubMarketApp.ts +1997 -0
  119. package/generated-sqlite/models/AnyHubPermission.ts +1419 -0
  120. package/generated-sqlite/models/AnyHubRecommendation.ts +1867 -0
  121. package/generated-sqlite/models/AnyHubRecommender.ts +1467 -0
  122. package/generated-sqlite/models/Artboard.ts +1808 -0
  123. package/generated-sqlite/models/ArtboardExport.ts +1545 -0
  124. package/generated-sqlite/models/ArticleFavorite.ts +1349 -0
  125. package/generated-sqlite/models/AuditLog.ts +1287 -0
  126. package/generated-sqlite/models/Block.ts +1648 -0
  127. package/generated-sqlite/models/BlockComponent.ts +1730 -0
  128. package/generated-sqlite/models/BlockInstance.ts +2039 -0
  129. package/generated-sqlite/models/BookmarkCategory.ts +1667 -0
  130. package/generated-sqlite/models/ChatInterrupt.ts +1695 -0
  131. package/generated-sqlite/models/ChatMessage.ts +1435 -0
  132. package/generated-sqlite/models/ChatRun.ts +1629 -0
  133. package/generated-sqlite/models/ChatThread.ts +2129 -0
  134. package/generated-sqlite/models/Comment.ts +2201 -0
  135. package/generated-sqlite/models/CommentIgnore.ts +1426 -0
  136. package/generated-sqlite/models/ComplianceExport.ts +1343 -0
  137. package/generated-sqlite/models/Component.ts +2326 -0
  138. package/generated-sqlite/models/ComponentInstance.ts +2097 -0
  139. package/generated-sqlite/models/ComponentTag.ts +1278 -0
  140. package/generated-sqlite/models/CustomRole.ts +1209 -0
  141. package/generated-sqlite/models/DesignProject.ts +1640 -0
  142. package/generated-sqlite/models/DictionaryTerm.ts +1639 -0
  143. package/generated-sqlite/models/GenerationRun.ts +1540 -0
  144. package/generated-sqlite/models/IndustryCompliance.ts +1794 -0
  145. package/generated-sqlite/models/InvitationCode.ts +1415 -0
  146. package/generated-sqlite/models/InvitationUse.ts +1420 -0
  147. package/generated-sqlite/models/Invoice.ts +1707 -0
  148. package/generated-sqlite/models/KnowledgeBase.ts +1668 -0
  149. package/generated-sqlite/models/KnowledgeDocument.ts +2282 -0
  150. package/generated-sqlite/models/KnowledgeShareRecord.ts +1349 -0
  151. package/generated-sqlite/models/LegalRegulation.ts +1870 -0
  152. package/generated-sqlite/models/LicenseActivation.ts +1203 -0
  153. package/generated-sqlite/models/LicenseKey.ts +1443 -0
  154. package/generated-sqlite/models/LoginLog.ts +1447 -0
  155. package/generated-sqlite/models/PRD.ts +2616 -0
  156. package/generated-sqlite/models/PRDPage.ts +2398 -0
  157. package/generated-sqlite/models/PRDTag.ts +1426 -0
  158. package/generated-sqlite/models/PRDVersion.ts +2117 -0
  159. package/generated-sqlite/models/PageVersion.ts +1528 -0
  160. package/generated-sqlite/models/PasswordResetToken.ts +1377 -0
  161. package/generated-sqlite/models/Plan.ts +2060 -0
  162. package/generated-sqlite/models/Project.ts +1994 -0
  163. package/generated-sqlite/models/ProjectActivity.ts +1578 -0
  164. package/generated-sqlite/models/ProjectMember.ts +1508 -0
  165. package/generated-sqlite/models/ProviderEvent.ts +1225 -0
  166. package/generated-sqlite/models/Reference.ts +1175 -0
  167. package/generated-sqlite/models/Review.ts +1903 -0
  168. package/generated-sqlite/models/ReviewComment.ts +1899 -0
  169. package/generated-sqlite/models/RoleAssignment.ts +1125 -0
  170. package/generated-sqlite/models/Share.ts +1674 -0
  171. package/generated-sqlite/models/ShareVersion.ts +1385 -0
  172. package/generated-sqlite/models/SsoMapping.ts +1181 -0
  173. package/generated-sqlite/models/SsoProvider.ts +1266 -0
  174. package/generated-sqlite/models/Subscription.ts +2137 -0
  175. package/generated-sqlite/models/SystemSetting.ts +1215 -0
  176. package/generated-sqlite/models/Tag.ts +1652 -0
  177. package/generated-sqlite/models/TeamInvitation.ts +1523 -0
  178. package/generated-sqlite/models/TeamMembership.ts +1433 -0
  179. package/generated-sqlite/models/Template.ts +1389 -0
  180. package/generated-sqlite/models/TemplateBlock.ts +1660 -0
  181. package/generated-sqlite/models/ThirdPartyDependency.ts +1471 -0
  182. package/generated-sqlite/models/UsageRecord.ts +1498 -0
  183. package/generated-sqlite/models/User.ts +13558 -0
  184. package/generated-sqlite/models/UserAgent.ts +1897 -0
  185. package/generated-sqlite/models/UserSkill.ts +1453 -0
  186. package/generated-sqlite/models/WebsiteBookmark.ts +2215 -0
  187. package/generated-sqlite/models/Workspace.ts +1824 -0
  188. package/generated-sqlite/models.ts +87 -0
  189. package/package.json +7 -3
  190. package/LICENSE +0 -661
@@ -0,0 +1,1450 @@
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 `LoginLog` 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"
13
+ import type * as Prisma from "../internal/prismaNamespace"
14
+
15
+ /**
16
+ * Model LoginLog
17
+ *
18
+ */
19
+ export type LoginLogModel = runtime.Types.Result.DefaultSelection<Prisma.$LoginLogPayload>
20
+
21
+ export type AggregateLoginLog = {
22
+ _count: LoginLogCountAggregateOutputType | null
23
+ _min: LoginLogMinAggregateOutputType | null
24
+ _max: LoginLogMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type LoginLogMinAggregateOutputType = {
28
+ id: string | null
29
+ userId: string | null
30
+ ip: string | null
31
+ userAgent: string | null
32
+ location: string | null
33
+ success: boolean | null
34
+ message: string | null
35
+ createdAt: Date | null
36
+ }
37
+
38
+ export type LoginLogMaxAggregateOutputType = {
39
+ id: string | null
40
+ userId: string | null
41
+ ip: string | null
42
+ userAgent: string | null
43
+ location: string | null
44
+ success: boolean | null
45
+ message: string | null
46
+ createdAt: Date | null
47
+ }
48
+
49
+ export type LoginLogCountAggregateOutputType = {
50
+ id: number
51
+ userId: number
52
+ ip: number
53
+ userAgent: number
54
+ location: number
55
+ success: number
56
+ message: number
57
+ createdAt: number
58
+ _all: number
59
+ }
60
+
61
+
62
+ export type LoginLogMinAggregateInputType = {
63
+ id?: true
64
+ userId?: true
65
+ ip?: true
66
+ userAgent?: true
67
+ location?: true
68
+ success?: true
69
+ message?: true
70
+ createdAt?: true
71
+ }
72
+
73
+ export type LoginLogMaxAggregateInputType = {
74
+ id?: true
75
+ userId?: true
76
+ ip?: true
77
+ userAgent?: true
78
+ location?: true
79
+ success?: true
80
+ message?: true
81
+ createdAt?: true
82
+ }
83
+
84
+ export type LoginLogCountAggregateInputType = {
85
+ id?: true
86
+ userId?: true
87
+ ip?: true
88
+ userAgent?: true
89
+ location?: true
90
+ success?: true
91
+ message?: true
92
+ createdAt?: true
93
+ _all?: true
94
+ }
95
+
96
+ export type LoginLogAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
97
+ /**
98
+ * Filter which LoginLog to aggregate.
99
+ */
100
+ where?: Prisma.LoginLogWhereInput
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
103
+ *
104
+ * Determine the order of LoginLogs to fetch.
105
+ */
106
+ orderBy?: Prisma.LoginLogOrderByWithRelationInput | Prisma.LoginLogOrderByWithRelationInput[]
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
109
+ *
110
+ * Sets the start position
111
+ */
112
+ cursor?: Prisma.LoginLogWhereUniqueInput
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
115
+ *
116
+ * Take `±n` LoginLogs from the position of the cursor.
117
+ */
118
+ take?: number
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
121
+ *
122
+ * Skip the first `n` LoginLogs.
123
+ */
124
+ skip?: number
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
127
+ *
128
+ * Count returned LoginLogs
129
+ **/
130
+ _count?: true | LoginLogCountAggregateInputType
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
133
+ *
134
+ * Select which fields to find the minimum value
135
+ **/
136
+ _min?: LoginLogMinAggregateInputType
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
139
+ *
140
+ * Select which fields to find the maximum value
141
+ **/
142
+ _max?: LoginLogMaxAggregateInputType
143
+ }
144
+
145
+ export type GetLoginLogAggregateType<T extends LoginLogAggregateArgs> = {
146
+ [P in keyof T & keyof AggregateLoginLog]: P extends '_count' | 'count'
147
+ ? T[P] extends true
148
+ ? number
149
+ : Prisma.GetScalarType<T[P], AggregateLoginLog[P]>
150
+ : Prisma.GetScalarType<T[P], AggregateLoginLog[P]>
151
+ }
152
+
153
+
154
+
155
+
156
+ export type LoginLogGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
157
+ where?: Prisma.LoginLogWhereInput
158
+ orderBy?: Prisma.LoginLogOrderByWithAggregationInput | Prisma.LoginLogOrderByWithAggregationInput[]
159
+ by: Prisma.LoginLogScalarFieldEnum[] | Prisma.LoginLogScalarFieldEnum
160
+ having?: Prisma.LoginLogScalarWhereWithAggregatesInput
161
+ take?: number
162
+ skip?: number
163
+ _count?: LoginLogCountAggregateInputType | true
164
+ _min?: LoginLogMinAggregateInputType
165
+ _max?: LoginLogMaxAggregateInputType
166
+ }
167
+
168
+ export type LoginLogGroupByOutputType = {
169
+ id: string
170
+ userId: string
171
+ ip: string | null
172
+ userAgent: string | null
173
+ location: string | null
174
+ success: boolean
175
+ message: string | null
176
+ createdAt: Date
177
+ _count: LoginLogCountAggregateOutputType | null
178
+ _min: LoginLogMinAggregateOutputType | null
179
+ _max: LoginLogMaxAggregateOutputType | null
180
+ }
181
+
182
+ export type GetLoginLogGroupByPayload<T extends LoginLogGroupByArgs> = Prisma.PrismaPromise<
183
+ Array<
184
+ Prisma.PickEnumerable<LoginLogGroupByOutputType, T['by']> &
185
+ {
186
+ [P in ((keyof T) & (keyof LoginLogGroupByOutputType))]: P extends '_count'
187
+ ? T[P] extends boolean
188
+ ? number
189
+ : Prisma.GetScalarType<T[P], LoginLogGroupByOutputType[P]>
190
+ : Prisma.GetScalarType<T[P], LoginLogGroupByOutputType[P]>
191
+ }
192
+ >
193
+ >
194
+
195
+
196
+
197
+ export type LoginLogWhereInput = {
198
+ AND?: Prisma.LoginLogWhereInput | Prisma.LoginLogWhereInput[]
199
+ OR?: Prisma.LoginLogWhereInput[]
200
+ NOT?: Prisma.LoginLogWhereInput | Prisma.LoginLogWhereInput[]
201
+ id?: Prisma.StringFilter<"LoginLog"> | string
202
+ userId?: Prisma.StringFilter<"LoginLog"> | string
203
+ ip?: Prisma.StringNullableFilter<"LoginLog"> | string | null
204
+ userAgent?: Prisma.StringNullableFilter<"LoginLog"> | string | null
205
+ location?: Prisma.StringNullableFilter<"LoginLog"> | string | null
206
+ success?: Prisma.BoolFilter<"LoginLog"> | boolean
207
+ message?: Prisma.StringNullableFilter<"LoginLog"> | string | null
208
+ createdAt?: Prisma.DateTimeFilter<"LoginLog"> | Date | string
209
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
210
+ }
211
+
212
+ export type LoginLogOrderByWithRelationInput = {
213
+ id?: Prisma.SortOrder
214
+ userId?: Prisma.SortOrder
215
+ ip?: Prisma.SortOrderInput | Prisma.SortOrder
216
+ userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
217
+ location?: Prisma.SortOrderInput | Prisma.SortOrder
218
+ success?: Prisma.SortOrder
219
+ message?: Prisma.SortOrderInput | Prisma.SortOrder
220
+ createdAt?: Prisma.SortOrder
221
+ user?: Prisma.UserOrderByWithRelationInput
222
+ }
223
+
224
+ export type LoginLogWhereUniqueInput = Prisma.AtLeast<{
225
+ id?: string
226
+ AND?: Prisma.LoginLogWhereInput | Prisma.LoginLogWhereInput[]
227
+ OR?: Prisma.LoginLogWhereInput[]
228
+ NOT?: Prisma.LoginLogWhereInput | Prisma.LoginLogWhereInput[]
229
+ userId?: Prisma.StringFilter<"LoginLog"> | string
230
+ ip?: Prisma.StringNullableFilter<"LoginLog"> | string | null
231
+ userAgent?: Prisma.StringNullableFilter<"LoginLog"> | string | null
232
+ location?: Prisma.StringNullableFilter<"LoginLog"> | string | null
233
+ success?: Prisma.BoolFilter<"LoginLog"> | boolean
234
+ message?: Prisma.StringNullableFilter<"LoginLog"> | string | null
235
+ createdAt?: Prisma.DateTimeFilter<"LoginLog"> | Date | string
236
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
237
+ }, "id">
238
+
239
+ export type LoginLogOrderByWithAggregationInput = {
240
+ id?: Prisma.SortOrder
241
+ userId?: Prisma.SortOrder
242
+ ip?: Prisma.SortOrderInput | Prisma.SortOrder
243
+ userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
244
+ location?: Prisma.SortOrderInput | Prisma.SortOrder
245
+ success?: Prisma.SortOrder
246
+ message?: Prisma.SortOrderInput | Prisma.SortOrder
247
+ createdAt?: Prisma.SortOrder
248
+ _count?: Prisma.LoginLogCountOrderByAggregateInput
249
+ _max?: Prisma.LoginLogMaxOrderByAggregateInput
250
+ _min?: Prisma.LoginLogMinOrderByAggregateInput
251
+ }
252
+
253
+ export type LoginLogScalarWhereWithAggregatesInput = {
254
+ AND?: Prisma.LoginLogScalarWhereWithAggregatesInput | Prisma.LoginLogScalarWhereWithAggregatesInput[]
255
+ OR?: Prisma.LoginLogScalarWhereWithAggregatesInput[]
256
+ NOT?: Prisma.LoginLogScalarWhereWithAggregatesInput | Prisma.LoginLogScalarWhereWithAggregatesInput[]
257
+ id?: Prisma.StringWithAggregatesFilter<"LoginLog"> | string
258
+ userId?: Prisma.StringWithAggregatesFilter<"LoginLog"> | string
259
+ ip?: Prisma.StringNullableWithAggregatesFilter<"LoginLog"> | string | null
260
+ userAgent?: Prisma.StringNullableWithAggregatesFilter<"LoginLog"> | string | null
261
+ location?: Prisma.StringNullableWithAggregatesFilter<"LoginLog"> | string | null
262
+ success?: Prisma.BoolWithAggregatesFilter<"LoginLog"> | boolean
263
+ message?: Prisma.StringNullableWithAggregatesFilter<"LoginLog"> | string | null
264
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"LoginLog"> | Date | string
265
+ }
266
+
267
+ export type LoginLogCreateInput = {
268
+ id?: string
269
+ ip?: string | null
270
+ userAgent?: string | null
271
+ location?: string | null
272
+ success?: boolean
273
+ message?: string | null
274
+ createdAt?: Date | string
275
+ user: Prisma.UserCreateNestedOneWithoutLoginLogsInput
276
+ }
277
+
278
+ export type LoginLogUncheckedCreateInput = {
279
+ id?: string
280
+ userId: string
281
+ ip?: string | null
282
+ userAgent?: string | null
283
+ location?: string | null
284
+ success?: boolean
285
+ message?: string | null
286
+ createdAt?: Date | string
287
+ }
288
+
289
+ export type LoginLogUpdateInput = {
290
+ id?: Prisma.StringFieldUpdateOperationsInput | string
291
+ ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
292
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
293
+ location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
294
+ success?: Prisma.BoolFieldUpdateOperationsInput | boolean
295
+ message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
296
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
297
+ user?: Prisma.UserUpdateOneRequiredWithoutLoginLogsNestedInput
298
+ }
299
+
300
+ export type LoginLogUncheckedUpdateInput = {
301
+ id?: Prisma.StringFieldUpdateOperationsInput | string
302
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
303
+ ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
304
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
305
+ location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
306
+ success?: Prisma.BoolFieldUpdateOperationsInput | boolean
307
+ message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
308
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
309
+ }
310
+
311
+ export type LoginLogCreateManyInput = {
312
+ id?: string
313
+ userId: string
314
+ ip?: string | null
315
+ userAgent?: string | null
316
+ location?: string | null
317
+ success?: boolean
318
+ message?: string | null
319
+ createdAt?: Date | string
320
+ }
321
+
322
+ export type LoginLogUpdateManyMutationInput = {
323
+ id?: Prisma.StringFieldUpdateOperationsInput | string
324
+ ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
325
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
326
+ location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
327
+ success?: Prisma.BoolFieldUpdateOperationsInput | boolean
328
+ message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
329
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
330
+ }
331
+
332
+ export type LoginLogUncheckedUpdateManyInput = {
333
+ id?: Prisma.StringFieldUpdateOperationsInput | string
334
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
335
+ ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
336
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
337
+ location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
338
+ success?: Prisma.BoolFieldUpdateOperationsInput | boolean
339
+ message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
340
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
341
+ }
342
+
343
+ export type LoginLogListRelationFilter = {
344
+ every?: Prisma.LoginLogWhereInput
345
+ some?: Prisma.LoginLogWhereInput
346
+ none?: Prisma.LoginLogWhereInput
347
+ }
348
+
349
+ export type LoginLogOrderByRelationAggregateInput = {
350
+ _count?: Prisma.SortOrder
351
+ }
352
+
353
+ export type LoginLogCountOrderByAggregateInput = {
354
+ id?: Prisma.SortOrder
355
+ userId?: Prisma.SortOrder
356
+ ip?: Prisma.SortOrder
357
+ userAgent?: Prisma.SortOrder
358
+ location?: Prisma.SortOrder
359
+ success?: Prisma.SortOrder
360
+ message?: Prisma.SortOrder
361
+ createdAt?: Prisma.SortOrder
362
+ }
363
+
364
+ export type LoginLogMaxOrderByAggregateInput = {
365
+ id?: Prisma.SortOrder
366
+ userId?: Prisma.SortOrder
367
+ ip?: Prisma.SortOrder
368
+ userAgent?: Prisma.SortOrder
369
+ location?: Prisma.SortOrder
370
+ success?: Prisma.SortOrder
371
+ message?: Prisma.SortOrder
372
+ createdAt?: Prisma.SortOrder
373
+ }
374
+
375
+ export type LoginLogMinOrderByAggregateInput = {
376
+ id?: Prisma.SortOrder
377
+ userId?: Prisma.SortOrder
378
+ ip?: Prisma.SortOrder
379
+ userAgent?: Prisma.SortOrder
380
+ location?: Prisma.SortOrder
381
+ success?: Prisma.SortOrder
382
+ message?: Prisma.SortOrder
383
+ createdAt?: Prisma.SortOrder
384
+ }
385
+
386
+ export type LoginLogCreateNestedManyWithoutUserInput = {
387
+ create?: Prisma.XOR<Prisma.LoginLogCreateWithoutUserInput, Prisma.LoginLogUncheckedCreateWithoutUserInput> | Prisma.LoginLogCreateWithoutUserInput[] | Prisma.LoginLogUncheckedCreateWithoutUserInput[]
388
+ connectOrCreate?: Prisma.LoginLogCreateOrConnectWithoutUserInput | Prisma.LoginLogCreateOrConnectWithoutUserInput[]
389
+ createMany?: Prisma.LoginLogCreateManyUserInputEnvelope
390
+ connect?: Prisma.LoginLogWhereUniqueInput | Prisma.LoginLogWhereUniqueInput[]
391
+ }
392
+
393
+ export type LoginLogUncheckedCreateNestedManyWithoutUserInput = {
394
+ create?: Prisma.XOR<Prisma.LoginLogCreateWithoutUserInput, Prisma.LoginLogUncheckedCreateWithoutUserInput> | Prisma.LoginLogCreateWithoutUserInput[] | Prisma.LoginLogUncheckedCreateWithoutUserInput[]
395
+ connectOrCreate?: Prisma.LoginLogCreateOrConnectWithoutUserInput | Prisma.LoginLogCreateOrConnectWithoutUserInput[]
396
+ createMany?: Prisma.LoginLogCreateManyUserInputEnvelope
397
+ connect?: Prisma.LoginLogWhereUniqueInput | Prisma.LoginLogWhereUniqueInput[]
398
+ }
399
+
400
+ export type LoginLogUpdateManyWithoutUserNestedInput = {
401
+ create?: Prisma.XOR<Prisma.LoginLogCreateWithoutUserInput, Prisma.LoginLogUncheckedCreateWithoutUserInput> | Prisma.LoginLogCreateWithoutUserInput[] | Prisma.LoginLogUncheckedCreateWithoutUserInput[]
402
+ connectOrCreate?: Prisma.LoginLogCreateOrConnectWithoutUserInput | Prisma.LoginLogCreateOrConnectWithoutUserInput[]
403
+ upsert?: Prisma.LoginLogUpsertWithWhereUniqueWithoutUserInput | Prisma.LoginLogUpsertWithWhereUniqueWithoutUserInput[]
404
+ createMany?: Prisma.LoginLogCreateManyUserInputEnvelope
405
+ set?: Prisma.LoginLogWhereUniqueInput | Prisma.LoginLogWhereUniqueInput[]
406
+ disconnect?: Prisma.LoginLogWhereUniqueInput | Prisma.LoginLogWhereUniqueInput[]
407
+ delete?: Prisma.LoginLogWhereUniqueInput | Prisma.LoginLogWhereUniqueInput[]
408
+ connect?: Prisma.LoginLogWhereUniqueInput | Prisma.LoginLogWhereUniqueInput[]
409
+ update?: Prisma.LoginLogUpdateWithWhereUniqueWithoutUserInput | Prisma.LoginLogUpdateWithWhereUniqueWithoutUserInput[]
410
+ updateMany?: Prisma.LoginLogUpdateManyWithWhereWithoutUserInput | Prisma.LoginLogUpdateManyWithWhereWithoutUserInput[]
411
+ deleteMany?: Prisma.LoginLogScalarWhereInput | Prisma.LoginLogScalarWhereInput[]
412
+ }
413
+
414
+ export type LoginLogUncheckedUpdateManyWithoutUserNestedInput = {
415
+ create?: Prisma.XOR<Prisma.LoginLogCreateWithoutUserInput, Prisma.LoginLogUncheckedCreateWithoutUserInput> | Prisma.LoginLogCreateWithoutUserInput[] | Prisma.LoginLogUncheckedCreateWithoutUserInput[]
416
+ connectOrCreate?: Prisma.LoginLogCreateOrConnectWithoutUserInput | Prisma.LoginLogCreateOrConnectWithoutUserInput[]
417
+ upsert?: Prisma.LoginLogUpsertWithWhereUniqueWithoutUserInput | Prisma.LoginLogUpsertWithWhereUniqueWithoutUserInput[]
418
+ createMany?: Prisma.LoginLogCreateManyUserInputEnvelope
419
+ set?: Prisma.LoginLogWhereUniqueInput | Prisma.LoginLogWhereUniqueInput[]
420
+ disconnect?: Prisma.LoginLogWhereUniqueInput | Prisma.LoginLogWhereUniqueInput[]
421
+ delete?: Prisma.LoginLogWhereUniqueInput | Prisma.LoginLogWhereUniqueInput[]
422
+ connect?: Prisma.LoginLogWhereUniqueInput | Prisma.LoginLogWhereUniqueInput[]
423
+ update?: Prisma.LoginLogUpdateWithWhereUniqueWithoutUserInput | Prisma.LoginLogUpdateWithWhereUniqueWithoutUserInput[]
424
+ updateMany?: Prisma.LoginLogUpdateManyWithWhereWithoutUserInput | Prisma.LoginLogUpdateManyWithWhereWithoutUserInput[]
425
+ deleteMany?: Prisma.LoginLogScalarWhereInput | Prisma.LoginLogScalarWhereInput[]
426
+ }
427
+
428
+ export type LoginLogCreateWithoutUserInput = {
429
+ id?: string
430
+ ip?: string | null
431
+ userAgent?: string | null
432
+ location?: string | null
433
+ success?: boolean
434
+ message?: string | null
435
+ createdAt?: Date | string
436
+ }
437
+
438
+ export type LoginLogUncheckedCreateWithoutUserInput = {
439
+ id?: string
440
+ ip?: string | null
441
+ userAgent?: string | null
442
+ location?: string | null
443
+ success?: boolean
444
+ message?: string | null
445
+ createdAt?: Date | string
446
+ }
447
+
448
+ export type LoginLogCreateOrConnectWithoutUserInput = {
449
+ where: Prisma.LoginLogWhereUniqueInput
450
+ create: Prisma.XOR<Prisma.LoginLogCreateWithoutUserInput, Prisma.LoginLogUncheckedCreateWithoutUserInput>
451
+ }
452
+
453
+ export type LoginLogCreateManyUserInputEnvelope = {
454
+ data: Prisma.LoginLogCreateManyUserInput | Prisma.LoginLogCreateManyUserInput[]
455
+ skipDuplicates?: boolean
456
+ }
457
+
458
+ export type LoginLogUpsertWithWhereUniqueWithoutUserInput = {
459
+ where: Prisma.LoginLogWhereUniqueInput
460
+ update: Prisma.XOR<Prisma.LoginLogUpdateWithoutUserInput, Prisma.LoginLogUncheckedUpdateWithoutUserInput>
461
+ create: Prisma.XOR<Prisma.LoginLogCreateWithoutUserInput, Prisma.LoginLogUncheckedCreateWithoutUserInput>
462
+ }
463
+
464
+ export type LoginLogUpdateWithWhereUniqueWithoutUserInput = {
465
+ where: Prisma.LoginLogWhereUniqueInput
466
+ data: Prisma.XOR<Prisma.LoginLogUpdateWithoutUserInput, Prisma.LoginLogUncheckedUpdateWithoutUserInput>
467
+ }
468
+
469
+ export type LoginLogUpdateManyWithWhereWithoutUserInput = {
470
+ where: Prisma.LoginLogScalarWhereInput
471
+ data: Prisma.XOR<Prisma.LoginLogUpdateManyMutationInput, Prisma.LoginLogUncheckedUpdateManyWithoutUserInput>
472
+ }
473
+
474
+ export type LoginLogScalarWhereInput = {
475
+ AND?: Prisma.LoginLogScalarWhereInput | Prisma.LoginLogScalarWhereInput[]
476
+ OR?: Prisma.LoginLogScalarWhereInput[]
477
+ NOT?: Prisma.LoginLogScalarWhereInput | Prisma.LoginLogScalarWhereInput[]
478
+ id?: Prisma.StringFilter<"LoginLog"> | string
479
+ userId?: Prisma.StringFilter<"LoginLog"> | string
480
+ ip?: Prisma.StringNullableFilter<"LoginLog"> | string | null
481
+ userAgent?: Prisma.StringNullableFilter<"LoginLog"> | string | null
482
+ location?: Prisma.StringNullableFilter<"LoginLog"> | string | null
483
+ success?: Prisma.BoolFilter<"LoginLog"> | boolean
484
+ message?: Prisma.StringNullableFilter<"LoginLog"> | string | null
485
+ createdAt?: Prisma.DateTimeFilter<"LoginLog"> | Date | string
486
+ }
487
+
488
+ export type LoginLogCreateManyUserInput = {
489
+ id?: string
490
+ ip?: string | null
491
+ userAgent?: string | null
492
+ location?: string | null
493
+ success?: boolean
494
+ message?: string | null
495
+ createdAt?: Date | string
496
+ }
497
+
498
+ export type LoginLogUpdateWithoutUserInput = {
499
+ id?: Prisma.StringFieldUpdateOperationsInput | string
500
+ ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
501
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
502
+ location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
503
+ success?: Prisma.BoolFieldUpdateOperationsInput | boolean
504
+ message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
505
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
506
+ }
507
+
508
+ export type LoginLogUncheckedUpdateWithoutUserInput = {
509
+ id?: Prisma.StringFieldUpdateOperationsInput | string
510
+ ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
511
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
512
+ location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
513
+ success?: Prisma.BoolFieldUpdateOperationsInput | boolean
514
+ message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
515
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
516
+ }
517
+
518
+ export type LoginLogUncheckedUpdateManyWithoutUserInput = {
519
+ id?: Prisma.StringFieldUpdateOperationsInput | string
520
+ ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
521
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
522
+ location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
523
+ success?: Prisma.BoolFieldUpdateOperationsInput | boolean
524
+ message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
525
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
526
+ }
527
+
528
+
529
+
530
+ export type LoginLogSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
531
+ id?: boolean
532
+ userId?: boolean
533
+ ip?: boolean
534
+ userAgent?: boolean
535
+ location?: boolean
536
+ success?: boolean
537
+ message?: boolean
538
+ createdAt?: boolean
539
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
540
+ }, ExtArgs["result"]["loginLog"]>
541
+
542
+ export type LoginLogSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
543
+ id?: boolean
544
+ userId?: boolean
545
+ ip?: boolean
546
+ userAgent?: boolean
547
+ location?: boolean
548
+ success?: boolean
549
+ message?: boolean
550
+ createdAt?: boolean
551
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
552
+ }, ExtArgs["result"]["loginLog"]>
553
+
554
+ export type LoginLogSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
555
+ id?: boolean
556
+ userId?: boolean
557
+ ip?: boolean
558
+ userAgent?: boolean
559
+ location?: boolean
560
+ success?: boolean
561
+ message?: boolean
562
+ createdAt?: boolean
563
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
564
+ }, ExtArgs["result"]["loginLog"]>
565
+
566
+ export type LoginLogSelectScalar = {
567
+ id?: boolean
568
+ userId?: boolean
569
+ ip?: boolean
570
+ userAgent?: boolean
571
+ location?: boolean
572
+ success?: boolean
573
+ message?: boolean
574
+ createdAt?: boolean
575
+ }
576
+
577
+ export type LoginLogOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "ip" | "userAgent" | "location" | "success" | "message" | "createdAt", ExtArgs["result"]["loginLog"]>
578
+ export type LoginLogInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
579
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
580
+ }
581
+ export type LoginLogIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
582
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
583
+ }
584
+ export type LoginLogIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
585
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
586
+ }
587
+
588
+ export type $LoginLogPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
589
+ name: "LoginLog"
590
+ objects: {
591
+ user: Prisma.$UserPayload<ExtArgs>
592
+ }
593
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
594
+ id: string
595
+ userId: string
596
+ ip: string | null
597
+ userAgent: string | null
598
+ location: string | null
599
+ success: boolean
600
+ message: string | null
601
+ createdAt: Date
602
+ }, ExtArgs["result"]["loginLog"]>
603
+ composites: {}
604
+ }
605
+
606
+ export type LoginLogGetPayload<S extends boolean | null | undefined | LoginLogDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$LoginLogPayload, S>
607
+
608
+ export type LoginLogCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
609
+ Omit<LoginLogFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
610
+ select?: LoginLogCountAggregateInputType | true
611
+ }
612
+
613
+ export interface LoginLogDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
614
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['LoginLog'], meta: { name: 'LoginLog' } }
615
+ /**
616
+ * Find zero or one LoginLog that matches the filter.
617
+ * @param {LoginLogFindUniqueArgs} args - Arguments to find a LoginLog
618
+ * @example
619
+ * // Get one LoginLog
620
+ * const loginLog = await prisma.loginLog.findUnique({
621
+ * where: {
622
+ * // ... provide filter here
623
+ * }
624
+ * })
625
+ */
626
+ findUnique<T extends LoginLogFindUniqueArgs>(args: Prisma.SelectSubset<T, LoginLogFindUniqueArgs<ExtArgs>>): Prisma.Prisma__LoginLogClient<runtime.Types.Result.GetResult<Prisma.$LoginLogPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
627
+
628
+ /**
629
+ * Find one LoginLog that matches the filter or throw an error with `error.code='P2025'`
630
+ * if no matches were found.
631
+ * @param {LoginLogFindUniqueOrThrowArgs} args - Arguments to find a LoginLog
632
+ * @example
633
+ * // Get one LoginLog
634
+ * const loginLog = await prisma.loginLog.findUniqueOrThrow({
635
+ * where: {
636
+ * // ... provide filter here
637
+ * }
638
+ * })
639
+ */
640
+ findUniqueOrThrow<T extends LoginLogFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, LoginLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__LoginLogClient<runtime.Types.Result.GetResult<Prisma.$LoginLogPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
641
+
642
+ /**
643
+ * Find the first LoginLog that matches the filter.
644
+ * Note, that providing `undefined` is treated as the value not being there.
645
+ * Read more here: https://pris.ly/d/null-undefined
646
+ * @param {LoginLogFindFirstArgs} args - Arguments to find a LoginLog
647
+ * @example
648
+ * // Get one LoginLog
649
+ * const loginLog = await prisma.loginLog.findFirst({
650
+ * where: {
651
+ * // ... provide filter here
652
+ * }
653
+ * })
654
+ */
655
+ findFirst<T extends LoginLogFindFirstArgs>(args?: Prisma.SelectSubset<T, LoginLogFindFirstArgs<ExtArgs>>): Prisma.Prisma__LoginLogClient<runtime.Types.Result.GetResult<Prisma.$LoginLogPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
656
+
657
+ /**
658
+ * Find the first LoginLog that matches the filter or
659
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
660
+ * Note, that providing `undefined` is treated as the value not being there.
661
+ * Read more here: https://pris.ly/d/null-undefined
662
+ * @param {LoginLogFindFirstOrThrowArgs} args - Arguments to find a LoginLog
663
+ * @example
664
+ * // Get one LoginLog
665
+ * const loginLog = await prisma.loginLog.findFirstOrThrow({
666
+ * where: {
667
+ * // ... provide filter here
668
+ * }
669
+ * })
670
+ */
671
+ findFirstOrThrow<T extends LoginLogFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, LoginLogFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__LoginLogClient<runtime.Types.Result.GetResult<Prisma.$LoginLogPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
672
+
673
+ /**
674
+ * Find zero or more LoginLogs that matches the filter.
675
+ * Note, that providing `undefined` is treated as the value not being there.
676
+ * Read more here: https://pris.ly/d/null-undefined
677
+ * @param {LoginLogFindManyArgs} args - Arguments to filter and select certain fields only.
678
+ * @example
679
+ * // Get all LoginLogs
680
+ * const loginLogs = await prisma.loginLog.findMany()
681
+ *
682
+ * // Get first 10 LoginLogs
683
+ * const loginLogs = await prisma.loginLog.findMany({ take: 10 })
684
+ *
685
+ * // Only select the `id`
686
+ * const loginLogWithIdOnly = await prisma.loginLog.findMany({ select: { id: true } })
687
+ *
688
+ */
689
+ findMany<T extends LoginLogFindManyArgs>(args?: Prisma.SelectSubset<T, LoginLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LoginLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
690
+
691
+ /**
692
+ * Create a LoginLog.
693
+ * @param {LoginLogCreateArgs} args - Arguments to create a LoginLog.
694
+ * @example
695
+ * // Create one LoginLog
696
+ * const LoginLog = await prisma.loginLog.create({
697
+ * data: {
698
+ * // ... data to create a LoginLog
699
+ * }
700
+ * })
701
+ *
702
+ */
703
+ create<T extends LoginLogCreateArgs>(args: Prisma.SelectSubset<T, LoginLogCreateArgs<ExtArgs>>): Prisma.Prisma__LoginLogClient<runtime.Types.Result.GetResult<Prisma.$LoginLogPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
704
+
705
+ /**
706
+ * Create many LoginLogs.
707
+ * @param {LoginLogCreateManyArgs} args - Arguments to create many LoginLogs.
708
+ * @example
709
+ * // Create many LoginLogs
710
+ * const loginLog = await prisma.loginLog.createMany({
711
+ * data: [
712
+ * // ... provide data here
713
+ * ]
714
+ * })
715
+ *
716
+ */
717
+ createMany<T extends LoginLogCreateManyArgs>(args?: Prisma.SelectSubset<T, LoginLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
718
+
719
+ /**
720
+ * Create many LoginLogs and returns the data saved in the database.
721
+ * @param {LoginLogCreateManyAndReturnArgs} args - Arguments to create many LoginLogs.
722
+ * @example
723
+ * // Create many LoginLogs
724
+ * const loginLog = await prisma.loginLog.createManyAndReturn({
725
+ * data: [
726
+ * // ... provide data here
727
+ * ]
728
+ * })
729
+ *
730
+ * // Create many LoginLogs and only return the `id`
731
+ * const loginLogWithIdOnly = await prisma.loginLog.createManyAndReturn({
732
+ * select: { id: true },
733
+ * data: [
734
+ * // ... provide data here
735
+ * ]
736
+ * })
737
+ * Note, that providing `undefined` is treated as the value not being there.
738
+ * Read more here: https://pris.ly/d/null-undefined
739
+ *
740
+ */
741
+ createManyAndReturn<T extends LoginLogCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, LoginLogCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LoginLogPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
742
+
743
+ /**
744
+ * Delete a LoginLog.
745
+ * @param {LoginLogDeleteArgs} args - Arguments to delete one LoginLog.
746
+ * @example
747
+ * // Delete one LoginLog
748
+ * const LoginLog = await prisma.loginLog.delete({
749
+ * where: {
750
+ * // ... filter to delete one LoginLog
751
+ * }
752
+ * })
753
+ *
754
+ */
755
+ delete<T extends LoginLogDeleteArgs>(args: Prisma.SelectSubset<T, LoginLogDeleteArgs<ExtArgs>>): Prisma.Prisma__LoginLogClient<runtime.Types.Result.GetResult<Prisma.$LoginLogPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
756
+
757
+ /**
758
+ * Update one LoginLog.
759
+ * @param {LoginLogUpdateArgs} args - Arguments to update one LoginLog.
760
+ * @example
761
+ * // Update one LoginLog
762
+ * const loginLog = await prisma.loginLog.update({
763
+ * where: {
764
+ * // ... provide filter here
765
+ * },
766
+ * data: {
767
+ * // ... provide data here
768
+ * }
769
+ * })
770
+ *
771
+ */
772
+ update<T extends LoginLogUpdateArgs>(args: Prisma.SelectSubset<T, LoginLogUpdateArgs<ExtArgs>>): Prisma.Prisma__LoginLogClient<runtime.Types.Result.GetResult<Prisma.$LoginLogPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
773
+
774
+ /**
775
+ * Delete zero or more LoginLogs.
776
+ * @param {LoginLogDeleteManyArgs} args - Arguments to filter LoginLogs to delete.
777
+ * @example
778
+ * // Delete a few LoginLogs
779
+ * const { count } = await prisma.loginLog.deleteMany({
780
+ * where: {
781
+ * // ... provide filter here
782
+ * }
783
+ * })
784
+ *
785
+ */
786
+ deleteMany<T extends LoginLogDeleteManyArgs>(args?: Prisma.SelectSubset<T, LoginLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
787
+
788
+ /**
789
+ * Update zero or more LoginLogs.
790
+ * Note, that providing `undefined` is treated as the value not being there.
791
+ * Read more here: https://pris.ly/d/null-undefined
792
+ * @param {LoginLogUpdateManyArgs} args - Arguments to update one or more rows.
793
+ * @example
794
+ * // Update many LoginLogs
795
+ * const loginLog = await prisma.loginLog.updateMany({
796
+ * where: {
797
+ * // ... provide filter here
798
+ * },
799
+ * data: {
800
+ * // ... provide data here
801
+ * }
802
+ * })
803
+ *
804
+ */
805
+ updateMany<T extends LoginLogUpdateManyArgs>(args: Prisma.SelectSubset<T, LoginLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
806
+
807
+ /**
808
+ * Update zero or more LoginLogs and returns the data updated in the database.
809
+ * @param {LoginLogUpdateManyAndReturnArgs} args - Arguments to update many LoginLogs.
810
+ * @example
811
+ * // Update many LoginLogs
812
+ * const loginLog = await prisma.loginLog.updateManyAndReturn({
813
+ * where: {
814
+ * // ... provide filter here
815
+ * },
816
+ * data: [
817
+ * // ... provide data here
818
+ * ]
819
+ * })
820
+ *
821
+ * // Update zero or more LoginLogs and only return the `id`
822
+ * const loginLogWithIdOnly = await prisma.loginLog.updateManyAndReturn({
823
+ * select: { id: true },
824
+ * where: {
825
+ * // ... provide filter here
826
+ * },
827
+ * data: [
828
+ * // ... provide data here
829
+ * ]
830
+ * })
831
+ * Note, that providing `undefined` is treated as the value not being there.
832
+ * Read more here: https://pris.ly/d/null-undefined
833
+ *
834
+ */
835
+ updateManyAndReturn<T extends LoginLogUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, LoginLogUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LoginLogPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
836
+
837
+ /**
838
+ * Create or update one LoginLog.
839
+ * @param {LoginLogUpsertArgs} args - Arguments to update or create a LoginLog.
840
+ * @example
841
+ * // Update or create a LoginLog
842
+ * const loginLog = await prisma.loginLog.upsert({
843
+ * create: {
844
+ * // ... data to create a LoginLog
845
+ * },
846
+ * update: {
847
+ * // ... in case it already exists, update
848
+ * },
849
+ * where: {
850
+ * // ... the filter for the LoginLog we want to update
851
+ * }
852
+ * })
853
+ */
854
+ upsert<T extends LoginLogUpsertArgs>(args: Prisma.SelectSubset<T, LoginLogUpsertArgs<ExtArgs>>): Prisma.Prisma__LoginLogClient<runtime.Types.Result.GetResult<Prisma.$LoginLogPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
855
+
856
+
857
+ /**
858
+ * Count the number of LoginLogs.
859
+ * Note, that providing `undefined` is treated as the value not being there.
860
+ * Read more here: https://pris.ly/d/null-undefined
861
+ * @param {LoginLogCountArgs} args - Arguments to filter LoginLogs to count.
862
+ * @example
863
+ * // Count the number of LoginLogs
864
+ * const count = await prisma.loginLog.count({
865
+ * where: {
866
+ * // ... the filter for the LoginLogs we want to count
867
+ * }
868
+ * })
869
+ **/
870
+ count<T extends LoginLogCountArgs>(
871
+ args?: Prisma.Subset<T, LoginLogCountArgs>,
872
+ ): Prisma.PrismaPromise<
873
+ T extends runtime.Types.Utils.Record<'select', any>
874
+ ? T['select'] extends true
875
+ ? number
876
+ : Prisma.GetScalarType<T['select'], LoginLogCountAggregateOutputType>
877
+ : number
878
+ >
879
+
880
+ /**
881
+ * Allows you to perform aggregations operations on a LoginLog.
882
+ * Note, that providing `undefined` is treated as the value not being there.
883
+ * Read more here: https://pris.ly/d/null-undefined
884
+ * @param {LoginLogAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
885
+ * @example
886
+ * // Ordered by age ascending
887
+ * // Where email contains prisma.io
888
+ * // Limited to the 10 users
889
+ * const aggregations = await prisma.user.aggregate({
890
+ * _avg: {
891
+ * age: true,
892
+ * },
893
+ * where: {
894
+ * email: {
895
+ * contains: "prisma.io",
896
+ * },
897
+ * },
898
+ * orderBy: {
899
+ * age: "asc",
900
+ * },
901
+ * take: 10,
902
+ * })
903
+ **/
904
+ aggregate<T extends LoginLogAggregateArgs>(args: Prisma.Subset<T, LoginLogAggregateArgs>): Prisma.PrismaPromise<GetLoginLogAggregateType<T>>
905
+
906
+ /**
907
+ * Group by LoginLog.
908
+ * Note, that providing `undefined` is treated as the value not being there.
909
+ * Read more here: https://pris.ly/d/null-undefined
910
+ * @param {LoginLogGroupByArgs} args - Group by arguments.
911
+ * @example
912
+ * // Group by city, order by createdAt, get count
913
+ * const result = await prisma.user.groupBy({
914
+ * by: ['city', 'createdAt'],
915
+ * orderBy: {
916
+ * createdAt: true
917
+ * },
918
+ * _count: {
919
+ * _all: true
920
+ * },
921
+ * })
922
+ *
923
+ **/
924
+ groupBy<
925
+ T extends LoginLogGroupByArgs,
926
+ HasSelectOrTake extends Prisma.Or<
927
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
928
+ Prisma.Extends<'take', Prisma.Keys<T>>
929
+ >,
930
+ OrderByArg extends Prisma.True extends HasSelectOrTake
931
+ ? { orderBy: LoginLogGroupByArgs['orderBy'] }
932
+ : { orderBy?: LoginLogGroupByArgs['orderBy'] },
933
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
934
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
935
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
936
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
937
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
938
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
939
+ InputErrors extends ByEmpty extends Prisma.True
940
+ ? `Error: "by" must not be empty.`
941
+ : HavingValid extends Prisma.False
942
+ ? {
943
+ [P in HavingFields]: P extends ByFields
944
+ ? never
945
+ : P extends string
946
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
947
+ : [
948
+ Error,
949
+ 'Field ',
950
+ P,
951
+ ` in "having" needs to be provided in "by"`,
952
+ ]
953
+ }[HavingFields]
954
+ : 'take' extends Prisma.Keys<T>
955
+ ? 'orderBy' extends Prisma.Keys<T>
956
+ ? ByValid extends Prisma.True
957
+ ? {}
958
+ : {
959
+ [P in OrderFields]: P extends ByFields
960
+ ? never
961
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
962
+ }[OrderFields]
963
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
964
+ : 'skip' extends Prisma.Keys<T>
965
+ ? 'orderBy' extends Prisma.Keys<T>
966
+ ? ByValid extends Prisma.True
967
+ ? {}
968
+ : {
969
+ [P in OrderFields]: P extends ByFields
970
+ ? never
971
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
972
+ }[OrderFields]
973
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
974
+ : ByValid extends Prisma.True
975
+ ? {}
976
+ : {
977
+ [P in OrderFields]: P extends ByFields
978
+ ? never
979
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
980
+ }[OrderFields]
981
+ >(args: Prisma.SubsetIntersection<T, LoginLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLoginLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
982
+ /**
983
+ * Fields of the LoginLog model
984
+ */
985
+ readonly fields: LoginLogFieldRefs;
986
+ }
987
+
988
+ /**
989
+ * The delegate class that acts as a "Promise-like" for LoginLog.
990
+ * Why is this prefixed with `Prisma__`?
991
+ * Because we want to prevent naming conflicts as mentioned in
992
+ * https://github.com/prisma/prisma-client-js/issues/707
993
+ */
994
+ export interface Prisma__LoginLogClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
995
+ readonly [Symbol.toStringTag]: "PrismaPromise"
996
+ 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>
997
+ /**
998
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
999
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1000
+ * @param onrejected The callback to execute when the Promise is rejected.
1001
+ * @returns A Promise for the completion of which ever callback is executed.
1002
+ */
1003
+ 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>
1004
+ /**
1005
+ * Attaches a callback for only the rejection of the Promise.
1006
+ * @param onrejected The callback to execute when the Promise is rejected.
1007
+ * @returns A Promise for the completion of the callback.
1008
+ */
1009
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1010
+ /**
1011
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1012
+ * resolved value cannot be modified from the callback.
1013
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1014
+ * @returns A Promise for the completion of the callback.
1015
+ */
1016
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1017
+ }
1018
+
1019
+
1020
+
1021
+
1022
+ /**
1023
+ * Fields of the LoginLog model
1024
+ */
1025
+ export interface LoginLogFieldRefs {
1026
+ readonly id: Prisma.FieldRef<"LoginLog", 'String'>
1027
+ readonly userId: Prisma.FieldRef<"LoginLog", 'String'>
1028
+ readonly ip: Prisma.FieldRef<"LoginLog", 'String'>
1029
+ readonly userAgent: Prisma.FieldRef<"LoginLog", 'String'>
1030
+ readonly location: Prisma.FieldRef<"LoginLog", 'String'>
1031
+ readonly success: Prisma.FieldRef<"LoginLog", 'Boolean'>
1032
+ readonly message: Prisma.FieldRef<"LoginLog", 'String'>
1033
+ readonly createdAt: Prisma.FieldRef<"LoginLog", 'DateTime'>
1034
+ }
1035
+
1036
+
1037
+ // Custom InputTypes
1038
+ /**
1039
+ * LoginLog findUnique
1040
+ */
1041
+ export type LoginLogFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1042
+ /**
1043
+ * Select specific fields to fetch from the LoginLog
1044
+ */
1045
+ select?: Prisma.LoginLogSelect<ExtArgs> | null
1046
+ /**
1047
+ * Omit specific fields from the LoginLog
1048
+ */
1049
+ omit?: Prisma.LoginLogOmit<ExtArgs> | null
1050
+ /**
1051
+ * Choose, which related nodes to fetch as well
1052
+ */
1053
+ include?: Prisma.LoginLogInclude<ExtArgs> | null
1054
+ /**
1055
+ * Filter, which LoginLog to fetch.
1056
+ */
1057
+ where: Prisma.LoginLogWhereUniqueInput
1058
+ }
1059
+
1060
+ /**
1061
+ * LoginLog findUniqueOrThrow
1062
+ */
1063
+ export type LoginLogFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1064
+ /**
1065
+ * Select specific fields to fetch from the LoginLog
1066
+ */
1067
+ select?: Prisma.LoginLogSelect<ExtArgs> | null
1068
+ /**
1069
+ * Omit specific fields from the LoginLog
1070
+ */
1071
+ omit?: Prisma.LoginLogOmit<ExtArgs> | null
1072
+ /**
1073
+ * Choose, which related nodes to fetch as well
1074
+ */
1075
+ include?: Prisma.LoginLogInclude<ExtArgs> | null
1076
+ /**
1077
+ * Filter, which LoginLog to fetch.
1078
+ */
1079
+ where: Prisma.LoginLogWhereUniqueInput
1080
+ }
1081
+
1082
+ /**
1083
+ * LoginLog findFirst
1084
+ */
1085
+ export type LoginLogFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1086
+ /**
1087
+ * Select specific fields to fetch from the LoginLog
1088
+ */
1089
+ select?: Prisma.LoginLogSelect<ExtArgs> | null
1090
+ /**
1091
+ * Omit specific fields from the LoginLog
1092
+ */
1093
+ omit?: Prisma.LoginLogOmit<ExtArgs> | null
1094
+ /**
1095
+ * Choose, which related nodes to fetch as well
1096
+ */
1097
+ include?: Prisma.LoginLogInclude<ExtArgs> | null
1098
+ /**
1099
+ * Filter, which LoginLog to fetch.
1100
+ */
1101
+ where?: Prisma.LoginLogWhereInput
1102
+ /**
1103
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1104
+ *
1105
+ * Determine the order of LoginLogs to fetch.
1106
+ */
1107
+ orderBy?: Prisma.LoginLogOrderByWithRelationInput | Prisma.LoginLogOrderByWithRelationInput[]
1108
+ /**
1109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1110
+ *
1111
+ * Sets the position for searching for LoginLogs.
1112
+ */
1113
+ cursor?: Prisma.LoginLogWhereUniqueInput
1114
+ /**
1115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1116
+ *
1117
+ * Take `±n` LoginLogs from the position of the cursor.
1118
+ */
1119
+ take?: number
1120
+ /**
1121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1122
+ *
1123
+ * Skip the first `n` LoginLogs.
1124
+ */
1125
+ skip?: number
1126
+ /**
1127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1128
+ *
1129
+ * Filter by unique combinations of LoginLogs.
1130
+ */
1131
+ distinct?: Prisma.LoginLogScalarFieldEnum | Prisma.LoginLogScalarFieldEnum[]
1132
+ }
1133
+
1134
+ /**
1135
+ * LoginLog findFirstOrThrow
1136
+ */
1137
+ export type LoginLogFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1138
+ /**
1139
+ * Select specific fields to fetch from the LoginLog
1140
+ */
1141
+ select?: Prisma.LoginLogSelect<ExtArgs> | null
1142
+ /**
1143
+ * Omit specific fields from the LoginLog
1144
+ */
1145
+ omit?: Prisma.LoginLogOmit<ExtArgs> | null
1146
+ /**
1147
+ * Choose, which related nodes to fetch as well
1148
+ */
1149
+ include?: Prisma.LoginLogInclude<ExtArgs> | null
1150
+ /**
1151
+ * Filter, which LoginLog to fetch.
1152
+ */
1153
+ where?: Prisma.LoginLogWhereInput
1154
+ /**
1155
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1156
+ *
1157
+ * Determine the order of LoginLogs to fetch.
1158
+ */
1159
+ orderBy?: Prisma.LoginLogOrderByWithRelationInput | Prisma.LoginLogOrderByWithRelationInput[]
1160
+ /**
1161
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1162
+ *
1163
+ * Sets the position for searching for LoginLogs.
1164
+ */
1165
+ cursor?: Prisma.LoginLogWhereUniqueInput
1166
+ /**
1167
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1168
+ *
1169
+ * Take `±n` LoginLogs from the position of the cursor.
1170
+ */
1171
+ take?: number
1172
+ /**
1173
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1174
+ *
1175
+ * Skip the first `n` LoginLogs.
1176
+ */
1177
+ skip?: number
1178
+ /**
1179
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1180
+ *
1181
+ * Filter by unique combinations of LoginLogs.
1182
+ */
1183
+ distinct?: Prisma.LoginLogScalarFieldEnum | Prisma.LoginLogScalarFieldEnum[]
1184
+ }
1185
+
1186
+ /**
1187
+ * LoginLog findMany
1188
+ */
1189
+ export type LoginLogFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1190
+ /**
1191
+ * Select specific fields to fetch from the LoginLog
1192
+ */
1193
+ select?: Prisma.LoginLogSelect<ExtArgs> | null
1194
+ /**
1195
+ * Omit specific fields from the LoginLog
1196
+ */
1197
+ omit?: Prisma.LoginLogOmit<ExtArgs> | null
1198
+ /**
1199
+ * Choose, which related nodes to fetch as well
1200
+ */
1201
+ include?: Prisma.LoginLogInclude<ExtArgs> | null
1202
+ /**
1203
+ * Filter, which LoginLogs to fetch.
1204
+ */
1205
+ where?: Prisma.LoginLogWhereInput
1206
+ /**
1207
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1208
+ *
1209
+ * Determine the order of LoginLogs to fetch.
1210
+ */
1211
+ orderBy?: Prisma.LoginLogOrderByWithRelationInput | Prisma.LoginLogOrderByWithRelationInput[]
1212
+ /**
1213
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1214
+ *
1215
+ * Sets the position for listing LoginLogs.
1216
+ */
1217
+ cursor?: Prisma.LoginLogWhereUniqueInput
1218
+ /**
1219
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1220
+ *
1221
+ * Take `±n` LoginLogs from the position of the cursor.
1222
+ */
1223
+ take?: number
1224
+ /**
1225
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1226
+ *
1227
+ * Skip the first `n` LoginLogs.
1228
+ */
1229
+ skip?: number
1230
+ /**
1231
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1232
+ *
1233
+ * Filter by unique combinations of LoginLogs.
1234
+ */
1235
+ distinct?: Prisma.LoginLogScalarFieldEnum | Prisma.LoginLogScalarFieldEnum[]
1236
+ }
1237
+
1238
+ /**
1239
+ * LoginLog create
1240
+ */
1241
+ export type LoginLogCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1242
+ /**
1243
+ * Select specific fields to fetch from the LoginLog
1244
+ */
1245
+ select?: Prisma.LoginLogSelect<ExtArgs> | null
1246
+ /**
1247
+ * Omit specific fields from the LoginLog
1248
+ */
1249
+ omit?: Prisma.LoginLogOmit<ExtArgs> | null
1250
+ /**
1251
+ * Choose, which related nodes to fetch as well
1252
+ */
1253
+ include?: Prisma.LoginLogInclude<ExtArgs> | null
1254
+ /**
1255
+ * The data needed to create a LoginLog.
1256
+ */
1257
+ data: Prisma.XOR<Prisma.LoginLogCreateInput, Prisma.LoginLogUncheckedCreateInput>
1258
+ }
1259
+
1260
+ /**
1261
+ * LoginLog createMany
1262
+ */
1263
+ export type LoginLogCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1264
+ /**
1265
+ * The data used to create many LoginLogs.
1266
+ */
1267
+ data: Prisma.LoginLogCreateManyInput | Prisma.LoginLogCreateManyInput[]
1268
+ skipDuplicates?: boolean
1269
+ }
1270
+
1271
+ /**
1272
+ * LoginLog createManyAndReturn
1273
+ */
1274
+ export type LoginLogCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1275
+ /**
1276
+ * Select specific fields to fetch from the LoginLog
1277
+ */
1278
+ select?: Prisma.LoginLogSelectCreateManyAndReturn<ExtArgs> | null
1279
+ /**
1280
+ * Omit specific fields from the LoginLog
1281
+ */
1282
+ omit?: Prisma.LoginLogOmit<ExtArgs> | null
1283
+ /**
1284
+ * The data used to create many LoginLogs.
1285
+ */
1286
+ data: Prisma.LoginLogCreateManyInput | Prisma.LoginLogCreateManyInput[]
1287
+ skipDuplicates?: boolean
1288
+ /**
1289
+ * Choose, which related nodes to fetch as well
1290
+ */
1291
+ include?: Prisma.LoginLogIncludeCreateManyAndReturn<ExtArgs> | null
1292
+ }
1293
+
1294
+ /**
1295
+ * LoginLog update
1296
+ */
1297
+ export type LoginLogUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1298
+ /**
1299
+ * Select specific fields to fetch from the LoginLog
1300
+ */
1301
+ select?: Prisma.LoginLogSelect<ExtArgs> | null
1302
+ /**
1303
+ * Omit specific fields from the LoginLog
1304
+ */
1305
+ omit?: Prisma.LoginLogOmit<ExtArgs> | null
1306
+ /**
1307
+ * Choose, which related nodes to fetch as well
1308
+ */
1309
+ include?: Prisma.LoginLogInclude<ExtArgs> | null
1310
+ /**
1311
+ * The data needed to update a LoginLog.
1312
+ */
1313
+ data: Prisma.XOR<Prisma.LoginLogUpdateInput, Prisma.LoginLogUncheckedUpdateInput>
1314
+ /**
1315
+ * Choose, which LoginLog to update.
1316
+ */
1317
+ where: Prisma.LoginLogWhereUniqueInput
1318
+ }
1319
+
1320
+ /**
1321
+ * LoginLog updateMany
1322
+ */
1323
+ export type LoginLogUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1324
+ /**
1325
+ * The data used to update LoginLogs.
1326
+ */
1327
+ data: Prisma.XOR<Prisma.LoginLogUpdateManyMutationInput, Prisma.LoginLogUncheckedUpdateManyInput>
1328
+ /**
1329
+ * Filter which LoginLogs to update
1330
+ */
1331
+ where?: Prisma.LoginLogWhereInput
1332
+ /**
1333
+ * Limit how many LoginLogs to update.
1334
+ */
1335
+ limit?: number
1336
+ }
1337
+
1338
+ /**
1339
+ * LoginLog updateManyAndReturn
1340
+ */
1341
+ export type LoginLogUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1342
+ /**
1343
+ * Select specific fields to fetch from the LoginLog
1344
+ */
1345
+ select?: Prisma.LoginLogSelectUpdateManyAndReturn<ExtArgs> | null
1346
+ /**
1347
+ * Omit specific fields from the LoginLog
1348
+ */
1349
+ omit?: Prisma.LoginLogOmit<ExtArgs> | null
1350
+ /**
1351
+ * The data used to update LoginLogs.
1352
+ */
1353
+ data: Prisma.XOR<Prisma.LoginLogUpdateManyMutationInput, Prisma.LoginLogUncheckedUpdateManyInput>
1354
+ /**
1355
+ * Filter which LoginLogs to update
1356
+ */
1357
+ where?: Prisma.LoginLogWhereInput
1358
+ /**
1359
+ * Limit how many LoginLogs to update.
1360
+ */
1361
+ limit?: number
1362
+ /**
1363
+ * Choose, which related nodes to fetch as well
1364
+ */
1365
+ include?: Prisma.LoginLogIncludeUpdateManyAndReturn<ExtArgs> | null
1366
+ }
1367
+
1368
+ /**
1369
+ * LoginLog upsert
1370
+ */
1371
+ export type LoginLogUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1372
+ /**
1373
+ * Select specific fields to fetch from the LoginLog
1374
+ */
1375
+ select?: Prisma.LoginLogSelect<ExtArgs> | null
1376
+ /**
1377
+ * Omit specific fields from the LoginLog
1378
+ */
1379
+ omit?: Prisma.LoginLogOmit<ExtArgs> | null
1380
+ /**
1381
+ * Choose, which related nodes to fetch as well
1382
+ */
1383
+ include?: Prisma.LoginLogInclude<ExtArgs> | null
1384
+ /**
1385
+ * The filter to search for the LoginLog to update in case it exists.
1386
+ */
1387
+ where: Prisma.LoginLogWhereUniqueInput
1388
+ /**
1389
+ * In case the LoginLog found by the `where` argument doesn't exist, create a new LoginLog with this data.
1390
+ */
1391
+ create: Prisma.XOR<Prisma.LoginLogCreateInput, Prisma.LoginLogUncheckedCreateInput>
1392
+ /**
1393
+ * In case the LoginLog was found with the provided `where` argument, update it with this data.
1394
+ */
1395
+ update: Prisma.XOR<Prisma.LoginLogUpdateInput, Prisma.LoginLogUncheckedUpdateInput>
1396
+ }
1397
+
1398
+ /**
1399
+ * LoginLog delete
1400
+ */
1401
+ export type LoginLogDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1402
+ /**
1403
+ * Select specific fields to fetch from the LoginLog
1404
+ */
1405
+ select?: Prisma.LoginLogSelect<ExtArgs> | null
1406
+ /**
1407
+ * Omit specific fields from the LoginLog
1408
+ */
1409
+ omit?: Prisma.LoginLogOmit<ExtArgs> | null
1410
+ /**
1411
+ * Choose, which related nodes to fetch as well
1412
+ */
1413
+ include?: Prisma.LoginLogInclude<ExtArgs> | null
1414
+ /**
1415
+ * Filter which LoginLog to delete.
1416
+ */
1417
+ where: Prisma.LoginLogWhereUniqueInput
1418
+ }
1419
+
1420
+ /**
1421
+ * LoginLog deleteMany
1422
+ */
1423
+ export type LoginLogDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1424
+ /**
1425
+ * Filter which LoginLogs to delete
1426
+ */
1427
+ where?: Prisma.LoginLogWhereInput
1428
+ /**
1429
+ * Limit how many LoginLogs to delete.
1430
+ */
1431
+ limit?: number
1432
+ }
1433
+
1434
+ /**
1435
+ * LoginLog without action
1436
+ */
1437
+ export type LoginLogDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1438
+ /**
1439
+ * Select specific fields to fetch from the LoginLog
1440
+ */
1441
+ select?: Prisma.LoginLogSelect<ExtArgs> | null
1442
+ /**
1443
+ * Omit specific fields from the LoginLog
1444
+ */
1445
+ omit?: Prisma.LoginLogOmit<ExtArgs> | null
1446
+ /**
1447
+ * Choose, which related nodes to fetch as well
1448
+ */
1449
+ include?: Prisma.LoginLogInclude<ExtArgs> | null
1450
+ }