procbay-schema 1.0.171 → 1.0.174

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 (148) hide show
  1. package/package.json +13 -22
  2. package/prisma/schema.prisma +4 -5
  3. package/scripts/sync-schemas.js +1 -5
  4. package/src/create-prisma-client.js +9 -49
  5. package/src/prisma/client.d.ts +1 -0
  6. package/src/prisma/client.js +4 -0
  7. package/src/prisma/default.d.ts +1 -0
  8. package/src/prisma/default.js +4 -0
  9. package/src/prisma/edge.d.ts +1 -0
  10. package/src/prisma/edge.js +2900 -0
  11. package/src/{generated/prisma/internal/prismaNamespaceBrowser.ts → prisma/index-browser.js} +980 -739
  12. package/src/prisma/index.d.ts +286683 -0
  13. package/src/prisma/index.js +2929 -2
  14. package/src/prisma/libquery_engine-darwin.dylib.node +0 -0
  15. package/src/prisma/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  16. package/src/prisma/package.json +140 -0
  17. package/src/prisma/query_engine-windows.dll.node +0 -0
  18. package/src/prisma/runtime/edge-esm.js +34 -0
  19. package/src/prisma/runtime/edge.js +34 -0
  20. package/src/prisma/runtime/index-browser.d.ts +370 -0
  21. package/src/prisma/runtime/index-browser.js +16 -0
  22. package/src/prisma/runtime/library.d.ts +3647 -0
  23. package/src/prisma/runtime/library.js +146 -0
  24. package/src/prisma/runtime/react-native.js +83 -0
  25. package/src/prisma/runtime/wasm.js +35 -0
  26. package/src/prisma/schema.prisma +3820 -0
  27. package/src/prisma/wasm.d.ts +1 -0
  28. package/src/prisma/wasm.js +2862 -0
  29. package/prisma.config.js +0 -19
  30. package/src/generated/prisma/browser.ts +0 -574
  31. package/src/generated/prisma/client.bundle.mjs +0 -6733
  32. package/src/generated/prisma/client.ts +0 -598
  33. package/src/generated/prisma/commonInputTypes.ts +0 -2911
  34. package/src/generated/prisma/enums.ts +0 -730
  35. package/src/generated/prisma/internal/class.ts +0 -1304
  36. package/src/generated/prisma/internal/prismaNamespace.ts +0 -12506
  37. package/src/generated/prisma/models/ActivityLog.ts +0 -1590
  38. package/src/generated/prisma/models/AdminAlert.ts +0 -1547
  39. package/src/generated/prisma/models/ApprovalCondition.ts +0 -2085
  40. package/src/generated/prisma/models/ApprovalDelegation.ts +0 -3057
  41. package/src/generated/prisma/models/ApprovalDelegationDelegate.ts +0 -1784
  42. package/src/generated/prisma/models/ApprovalHierarchy.ts +0 -3083
  43. package/src/generated/prisma/models/ApprovalJourney.ts +0 -2867
  44. package/src/generated/prisma/models/ApprovalLevel.ts +0 -2335
  45. package/src/generated/prisma/models/ApprovalLevelEscalation.ts +0 -2128
  46. package/src/generated/prisma/models/ApprovalLevelEscalationUser.ts +0 -1863
  47. package/src/generated/prisma/models/ApprovalLevelUser.ts +0 -1863
  48. package/src/generated/prisma/models/ApprovalManagement.ts +0 -1728
  49. package/src/generated/prisma/models/Attribute.ts +0 -2075
  50. package/src/generated/prisma/models/AttributeValue.ts +0 -1882
  51. package/src/generated/prisma/models/Bid.ts +0 -2719
  52. package/src/generated/prisma/models/BidLog.ts +0 -3560
  53. package/src/generated/prisma/models/BlanketPurchaseOrder.ts +0 -3527
  54. package/src/generated/prisma/models/BlanketPurchaseOrderItem.ts +0 -2532
  55. package/src/generated/prisma/models/BlanketPurchaseOrderRelease.ts +0 -2713
  56. package/src/generated/prisma/models/BoqEventItem.ts +0 -4056
  57. package/src/generated/prisma/models/Budget.ts +0 -1954
  58. package/src/generated/prisma/models/BudgetHold.ts +0 -1904
  59. package/src/generated/prisma/models/BusinessEntity.ts +0 -3901
  60. package/src/generated/prisma/models/BusinessEntityDepartment.ts +0 -2032
  61. package/src/generated/prisma/models/BusinessEntityLocation.ts +0 -1567
  62. package/src/generated/prisma/models/Catalogue.ts +0 -2081
  63. package/src/generated/prisma/models/CatalogueCart.ts +0 -2305
  64. package/src/generated/prisma/models/CatalogueVendor.ts +0 -2252
  65. package/src/generated/prisma/models/Category.ts +0 -3091
  66. package/src/generated/prisma/models/CategoryBudget.ts +0 -2690
  67. package/src/generated/prisma/models/City.ts +0 -2180
  68. package/src/generated/prisma/models/Cms.ts +0 -1492
  69. package/src/generated/prisma/models/ContactUs.ts +0 -1654
  70. package/src/generated/prisma/models/Conversation.ts +0 -2389
  71. package/src/generated/prisma/models/ConversationParticipant.ts +0 -1833
  72. package/src/generated/prisma/models/CounterOffer.ts +0 -2156
  73. package/src/generated/prisma/models/Country.ts +0 -3394
  74. package/src/generated/prisma/models/Currency.ts +0 -1642
  75. package/src/generated/prisma/models/CustomerNotification.ts +0 -1653
  76. package/src/generated/prisma/models/Department.ts +0 -2372
  77. package/src/generated/prisma/models/DepartmentBudget.ts +0 -2494
  78. package/src/generated/prisma/models/DynamicForm.ts +0 -2021
  79. package/src/generated/prisma/models/EmailTemplate.ts +0 -1516
  80. package/src/generated/prisma/models/Event.ts +0 -6819
  81. package/src/generated/prisma/models/EventConfigurations.ts +0 -1736
  82. package/src/generated/prisma/models/EventCriteria.ts +0 -2134
  83. package/src/generated/prisma/models/EventItems.ts +0 -2821
  84. package/src/generated/prisma/models/EventRfiForm.ts +0 -2020
  85. package/src/generated/prisma/models/EventRfiFormLog.ts +0 -2608
  86. package/src/generated/prisma/models/EventStrategies.ts +0 -1857
  87. package/src/generated/prisma/models/EventVendorCriteria.ts +0 -2186
  88. package/src/generated/prisma/models/EventVendors.ts +0 -3446
  89. package/src/generated/prisma/models/Expense.ts +0 -1625
  90. package/src/generated/prisma/models/ExportLog.ts +0 -1822
  91. package/src/generated/prisma/models/Faq.ts +0 -1753
  92. package/src/generated/prisma/models/FaqCategory.ts +0 -1610
  93. package/src/generated/prisma/models/FiscalYear.ts +0 -1460
  94. package/src/generated/prisma/models/FormMaster.ts +0 -1831
  95. package/src/generated/prisma/models/GRN.ts +0 -3354
  96. package/src/generated/prisma/models/GRNItem.ts +0 -2119
  97. package/src/generated/prisma/models/Industry.ts +0 -1642
  98. package/src/generated/prisma/models/Invoice.ts +0 -2949
  99. package/src/generated/prisma/models/InvoiceItem.ts +0 -2397
  100. package/src/generated/prisma/models/Item.ts +0 -10644
  101. package/src/generated/prisma/models/ItemAttribute.ts +0 -1750
  102. package/src/generated/prisma/models/ItemAttributeValue.ts +0 -1802
  103. package/src/generated/prisma/models/ItemDocument.ts +0 -1590
  104. package/src/generated/prisma/models/Location.ts +0 -2711
  105. package/src/generated/prisma/models/Message.ts +0 -2744
  106. package/src/generated/prisma/models/MessageRecipient.ts +0 -1759
  107. package/src/generated/prisma/models/Module.ts +0 -1630
  108. package/src/generated/prisma/models/Permission.ts +0 -1640
  109. package/src/generated/prisma/models/PurchaseIntake.ts +0 -4672
  110. package/src/generated/prisma/models/PurchaseIntakeItem.ts +0 -2366
  111. package/src/generated/prisma/models/PurchaseOrder.ts +0 -4012
  112. package/src/generated/prisma/models/PurchaseOrderActivityLog.ts +0 -1720
  113. package/src/generated/prisma/models/PurchaseOrderItem.ts +0 -2623
  114. package/src/generated/prisma/models/Quotation.ts +0 -3207
  115. package/src/generated/prisma/models/QuotationLog.ts +0 -3239
  116. package/src/generated/prisma/models/Region.ts +0 -1746
  117. package/src/generated/prisma/models/RequestedCatalogue.ts +0 -1618
  118. package/src/generated/prisma/models/RequestedCatalogueDetails.ts +0 -2252
  119. package/src/generated/prisma/models/Role.ts +0 -1907
  120. package/src/generated/prisma/models/RolePermission.ts +0 -1737
  121. package/src/generated/prisma/models/SendBack.ts +0 -1830
  122. package/src/generated/prisma/models/SerialNumberConfiguration.ts +0 -1254
  123. package/src/generated/prisma/models/SmtpConfig.ts +0 -1522
  124. package/src/generated/prisma/models/State.ts +0 -2174
  125. package/src/generated/prisma/models/Strategies.ts +0 -1791
  126. package/src/generated/prisma/models/SubModule.ts +0 -1450
  127. package/src/generated/prisma/models/Subregion.ts +0 -1870
  128. package/src/generated/prisma/models/SupportCategory.ts +0 -1712
  129. package/src/generated/prisma/models/SupportTicket.ts +0 -2478
  130. package/src/generated/prisma/models/SupportingDocument.ts +0 -2283
  131. package/src/generated/prisma/models/Template.ts +0 -2429
  132. package/src/generated/prisma/models/TemplateField.ts +0 -1916
  133. package/src/generated/prisma/models/TemplateStrategies.ts +0 -1614
  134. package/src/generated/prisma/models/TenantConfiguration.ts +0 -1694
  135. package/src/generated/prisma/models/TicketAssignment.ts +0 -1742
  136. package/src/generated/prisma/models/TicketHistory.ts +0 -1789
  137. package/src/generated/prisma/models/TicketReply.ts +0 -1640
  138. package/src/generated/prisma/models/Uom.ts +0 -1752
  139. package/src/generated/prisma/models/UomCategory.ts +0 -1558
  140. package/src/generated/prisma/models/UploadLog.ts +0 -1731
  141. package/src/generated/prisma/models/User.ts +0 -19397
  142. package/src/generated/prisma/models/UserDepartmentEntity.ts +0 -2099
  143. package/src/generated/prisma/models/UserEventConfiguration.ts +0 -1370
  144. package/src/generated/prisma/models/UserLoginActivity.ts +0 -1693
  145. package/src/generated/prisma/models/UserRole.ts +0 -1696
  146. package/src/generated/prisma/models/UserVendorSocketTokens.ts +0 -1450
  147. package/src/generated/prisma/models/VendorReference.ts +0 -1707
  148. package/src/generated/prisma/models.ts +0 -122
@@ -1,2174 +0,0 @@
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 `State` 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.ts"
13
- import type * as Prisma from "../internal/prismaNamespace.ts"
14
-
15
- /**
16
- * Model State
17
- *
18
- */
19
- export type StateModel = runtime.Types.Result.DefaultSelection<Prisma.$StatePayload>
20
-
21
- export type AggregateState = {
22
- _count: StateCountAggregateOutputType | null
23
- _avg: StateAvgAggregateOutputType | null
24
- _sum: StateSumAggregateOutputType | null
25
- _min: StateMinAggregateOutputType | null
26
- _max: StateMaxAggregateOutputType | null
27
- }
28
-
29
- export type StateAvgAggregateOutputType = {
30
- id: number | null
31
- latitude: runtime.Decimal | null
32
- longitude: runtime.Decimal | null
33
- created_by: number | null
34
- updated_by: number | null
35
- deleted_by: number | null
36
- country_id: number | null
37
- }
38
-
39
- export type StateSumAggregateOutputType = {
40
- id: number | null
41
- latitude: runtime.Decimal | null
42
- longitude: runtime.Decimal | null
43
- created_by: number | null
44
- updated_by: number | null
45
- deleted_by: number | null
46
- country_id: number | null
47
- }
48
-
49
- export type StateMinAggregateOutputType = {
50
- id: number | null
51
- name: string | null
52
- state_code: string | null
53
- type: string | null
54
- latitude: runtime.Decimal | null
55
- longitude: runtime.Decimal | null
56
- wikiDataId: string | null
57
- status: boolean | null
58
- created_at: Date | null
59
- created_by: number | null
60
- updated_at: Date | null
61
- updated_by: number | null
62
- is_deleted: boolean | null
63
- deleted_by: number | null
64
- deleted_at: Date | null
65
- country_id: number | null
66
- }
67
-
68
- export type StateMaxAggregateOutputType = {
69
- id: number | null
70
- name: string | null
71
- state_code: string | null
72
- type: string | null
73
- latitude: runtime.Decimal | null
74
- longitude: runtime.Decimal | null
75
- wikiDataId: string | null
76
- status: boolean | null
77
- created_at: Date | null
78
- created_by: number | null
79
- updated_at: Date | null
80
- updated_by: number | null
81
- is_deleted: boolean | null
82
- deleted_by: number | null
83
- deleted_at: Date | null
84
- country_id: number | null
85
- }
86
-
87
- export type StateCountAggregateOutputType = {
88
- id: number
89
- name: number
90
- state_code: number
91
- type: number
92
- latitude: number
93
- longitude: number
94
- wikiDataId: number
95
- status: number
96
- created_at: number
97
- created_by: number
98
- updated_at: number
99
- updated_by: number
100
- is_deleted: number
101
- deleted_by: number
102
- deleted_at: number
103
- country_id: number
104
- _all: number
105
- }
106
-
107
-
108
- export type StateAvgAggregateInputType = {
109
- id?: true
110
- latitude?: true
111
- longitude?: true
112
- created_by?: true
113
- updated_by?: true
114
- deleted_by?: true
115
- country_id?: true
116
- }
117
-
118
- export type StateSumAggregateInputType = {
119
- id?: true
120
- latitude?: true
121
- longitude?: true
122
- created_by?: true
123
- updated_by?: true
124
- deleted_by?: true
125
- country_id?: true
126
- }
127
-
128
- export type StateMinAggregateInputType = {
129
- id?: true
130
- name?: true
131
- state_code?: true
132
- type?: true
133
- latitude?: true
134
- longitude?: true
135
- wikiDataId?: true
136
- status?: true
137
- created_at?: true
138
- created_by?: true
139
- updated_at?: true
140
- updated_by?: true
141
- is_deleted?: true
142
- deleted_by?: true
143
- deleted_at?: true
144
- country_id?: true
145
- }
146
-
147
- export type StateMaxAggregateInputType = {
148
- id?: true
149
- name?: true
150
- state_code?: true
151
- type?: true
152
- latitude?: true
153
- longitude?: true
154
- wikiDataId?: true
155
- status?: true
156
- created_at?: true
157
- created_by?: true
158
- updated_at?: true
159
- updated_by?: true
160
- is_deleted?: true
161
- deleted_by?: true
162
- deleted_at?: true
163
- country_id?: true
164
- }
165
-
166
- export type StateCountAggregateInputType = {
167
- id?: true
168
- name?: true
169
- state_code?: true
170
- type?: true
171
- latitude?: true
172
- longitude?: true
173
- wikiDataId?: true
174
- status?: true
175
- created_at?: true
176
- created_by?: true
177
- updated_at?: true
178
- updated_by?: true
179
- is_deleted?: true
180
- deleted_by?: true
181
- deleted_at?: true
182
- country_id?: true
183
- _all?: true
184
- }
185
-
186
- export type StateAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
187
- /**
188
- * Filter which State to aggregate.
189
- */
190
- where?: Prisma.StateWhereInput
191
- /**
192
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
193
- *
194
- * Determine the order of States to fetch.
195
- */
196
- orderBy?: Prisma.StateOrderByWithRelationInput | Prisma.StateOrderByWithRelationInput[]
197
- /**
198
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
199
- *
200
- * Sets the start position
201
- */
202
- cursor?: Prisma.StateWhereUniqueInput
203
- /**
204
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
205
- *
206
- * Take `±n` States from the position of the cursor.
207
- */
208
- take?: number
209
- /**
210
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
211
- *
212
- * Skip the first `n` States.
213
- */
214
- skip?: number
215
- /**
216
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
217
- *
218
- * Count returned States
219
- **/
220
- _count?: true | StateCountAggregateInputType
221
- /**
222
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
223
- *
224
- * Select which fields to average
225
- **/
226
- _avg?: StateAvgAggregateInputType
227
- /**
228
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
229
- *
230
- * Select which fields to sum
231
- **/
232
- _sum?: StateSumAggregateInputType
233
- /**
234
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
235
- *
236
- * Select which fields to find the minimum value
237
- **/
238
- _min?: StateMinAggregateInputType
239
- /**
240
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
241
- *
242
- * Select which fields to find the maximum value
243
- **/
244
- _max?: StateMaxAggregateInputType
245
- }
246
-
247
- export type GetStateAggregateType<T extends StateAggregateArgs> = {
248
- [P in keyof T & keyof AggregateState]: P extends '_count' | 'count'
249
- ? T[P] extends true
250
- ? number
251
- : Prisma.GetScalarType<T[P], AggregateState[P]>
252
- : Prisma.GetScalarType<T[P], AggregateState[P]>
253
- }
254
-
255
-
256
-
257
-
258
- export type StateGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
259
- where?: Prisma.StateWhereInput
260
- orderBy?: Prisma.StateOrderByWithAggregationInput | Prisma.StateOrderByWithAggregationInput[]
261
- by: Prisma.StateScalarFieldEnum[] | Prisma.StateScalarFieldEnum
262
- having?: Prisma.StateScalarWhereWithAggregatesInput
263
- take?: number
264
- skip?: number
265
- _count?: StateCountAggregateInputType | true
266
- _avg?: StateAvgAggregateInputType
267
- _sum?: StateSumAggregateInputType
268
- _min?: StateMinAggregateInputType
269
- _max?: StateMaxAggregateInputType
270
- }
271
-
272
- export type StateGroupByOutputType = {
273
- id: number
274
- name: string | null
275
- state_code: string | null
276
- type: string | null
277
- latitude: runtime.Decimal | null
278
- longitude: runtime.Decimal | null
279
- wikiDataId: string | null
280
- status: boolean | null
281
- created_at: Date
282
- created_by: number | null
283
- updated_at: Date
284
- updated_by: number | null
285
- is_deleted: boolean | null
286
- deleted_by: number | null
287
- deleted_at: Date | null
288
- country_id: number | null
289
- _count: StateCountAggregateOutputType | null
290
- _avg: StateAvgAggregateOutputType | null
291
- _sum: StateSumAggregateOutputType | null
292
- _min: StateMinAggregateOutputType | null
293
- _max: StateMaxAggregateOutputType | null
294
- }
295
-
296
- export type GetStateGroupByPayload<T extends StateGroupByArgs> = Prisma.PrismaPromise<
297
- Array<
298
- Prisma.PickEnumerable<StateGroupByOutputType, T['by']> &
299
- {
300
- [P in ((keyof T) & (keyof StateGroupByOutputType))]: P extends '_count'
301
- ? T[P] extends boolean
302
- ? number
303
- : Prisma.GetScalarType<T[P], StateGroupByOutputType[P]>
304
- : Prisma.GetScalarType<T[P], StateGroupByOutputType[P]>
305
- }
306
- >
307
- >
308
-
309
-
310
-
311
- export type StateWhereInput = {
312
- AND?: Prisma.StateWhereInput | Prisma.StateWhereInput[]
313
- OR?: Prisma.StateWhereInput[]
314
- NOT?: Prisma.StateWhereInput | Prisma.StateWhereInput[]
315
- id?: Prisma.IntFilter<"State"> | number
316
- name?: Prisma.StringNullableFilter<"State"> | string | null
317
- state_code?: Prisma.StringNullableFilter<"State"> | string | null
318
- type?: Prisma.StringNullableFilter<"State"> | string | null
319
- latitude?: Prisma.DecimalNullableFilter<"State"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
320
- longitude?: Prisma.DecimalNullableFilter<"State"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
321
- wikiDataId?: Prisma.StringNullableFilter<"State"> | string | null
322
- status?: Prisma.BoolNullableFilter<"State"> | boolean | null
323
- created_at?: Prisma.DateTimeFilter<"State"> | Date | string
324
- created_by?: Prisma.IntNullableFilter<"State"> | number | null
325
- updated_at?: Prisma.DateTimeFilter<"State"> | Date | string
326
- updated_by?: Prisma.IntNullableFilter<"State"> | number | null
327
- is_deleted?: Prisma.BoolNullableFilter<"State"> | boolean | null
328
- deleted_by?: Prisma.IntNullableFilter<"State"> | number | null
329
- deleted_at?: Prisma.DateTimeNullableFilter<"State"> | Date | string | null
330
- country_id?: Prisma.IntNullableFilter<"State"> | number | null
331
- country?: Prisma.XOR<Prisma.CountryNullableScalarRelationFilter, Prisma.CountryWhereInput> | null
332
- cities?: Prisma.CityListRelationFilter
333
- locations?: Prisma.LocationListRelationFilter
334
- }
335
-
336
- export type StateOrderByWithRelationInput = {
337
- id?: Prisma.SortOrder
338
- name?: Prisma.SortOrderInput | Prisma.SortOrder
339
- state_code?: Prisma.SortOrderInput | Prisma.SortOrder
340
- type?: Prisma.SortOrderInput | Prisma.SortOrder
341
- latitude?: Prisma.SortOrderInput | Prisma.SortOrder
342
- longitude?: Prisma.SortOrderInput | Prisma.SortOrder
343
- wikiDataId?: Prisma.SortOrderInput | Prisma.SortOrder
344
- status?: Prisma.SortOrderInput | Prisma.SortOrder
345
- created_at?: Prisma.SortOrder
346
- created_by?: Prisma.SortOrderInput | Prisma.SortOrder
347
- updated_at?: Prisma.SortOrder
348
- updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
349
- is_deleted?: Prisma.SortOrderInput | Prisma.SortOrder
350
- deleted_by?: Prisma.SortOrderInput | Prisma.SortOrder
351
- deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
352
- country_id?: Prisma.SortOrderInput | Prisma.SortOrder
353
- country?: Prisma.CountryOrderByWithRelationInput
354
- cities?: Prisma.CityOrderByRelationAggregateInput
355
- locations?: Prisma.LocationOrderByRelationAggregateInput
356
- }
357
-
358
- export type StateWhereUniqueInput = Prisma.AtLeast<{
359
- id?: number
360
- name_country_id_state_code?: Prisma.StateName_country_id_state_codeCompoundUniqueInput
361
- AND?: Prisma.StateWhereInput | Prisma.StateWhereInput[]
362
- OR?: Prisma.StateWhereInput[]
363
- NOT?: Prisma.StateWhereInput | Prisma.StateWhereInput[]
364
- name?: Prisma.StringNullableFilter<"State"> | string | null
365
- state_code?: Prisma.StringNullableFilter<"State"> | string | null
366
- type?: Prisma.StringNullableFilter<"State"> | string | null
367
- latitude?: Prisma.DecimalNullableFilter<"State"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
368
- longitude?: Prisma.DecimalNullableFilter<"State"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
369
- wikiDataId?: Prisma.StringNullableFilter<"State"> | string | null
370
- status?: Prisma.BoolNullableFilter<"State"> | boolean | null
371
- created_at?: Prisma.DateTimeFilter<"State"> | Date | string
372
- created_by?: Prisma.IntNullableFilter<"State"> | number | null
373
- updated_at?: Prisma.DateTimeFilter<"State"> | Date | string
374
- updated_by?: Prisma.IntNullableFilter<"State"> | number | null
375
- is_deleted?: Prisma.BoolNullableFilter<"State"> | boolean | null
376
- deleted_by?: Prisma.IntNullableFilter<"State"> | number | null
377
- deleted_at?: Prisma.DateTimeNullableFilter<"State"> | Date | string | null
378
- country_id?: Prisma.IntNullableFilter<"State"> | number | null
379
- country?: Prisma.XOR<Prisma.CountryNullableScalarRelationFilter, Prisma.CountryWhereInput> | null
380
- cities?: Prisma.CityListRelationFilter
381
- locations?: Prisma.LocationListRelationFilter
382
- }, "id" | "name_country_id_state_code">
383
-
384
- export type StateOrderByWithAggregationInput = {
385
- id?: Prisma.SortOrder
386
- name?: Prisma.SortOrderInput | Prisma.SortOrder
387
- state_code?: Prisma.SortOrderInput | Prisma.SortOrder
388
- type?: Prisma.SortOrderInput | Prisma.SortOrder
389
- latitude?: Prisma.SortOrderInput | Prisma.SortOrder
390
- longitude?: Prisma.SortOrderInput | Prisma.SortOrder
391
- wikiDataId?: Prisma.SortOrderInput | Prisma.SortOrder
392
- status?: Prisma.SortOrderInput | Prisma.SortOrder
393
- created_at?: Prisma.SortOrder
394
- created_by?: Prisma.SortOrderInput | Prisma.SortOrder
395
- updated_at?: Prisma.SortOrder
396
- updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
397
- is_deleted?: Prisma.SortOrderInput | Prisma.SortOrder
398
- deleted_by?: Prisma.SortOrderInput | Prisma.SortOrder
399
- deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
400
- country_id?: Prisma.SortOrderInput | Prisma.SortOrder
401
- _count?: Prisma.StateCountOrderByAggregateInput
402
- _avg?: Prisma.StateAvgOrderByAggregateInput
403
- _max?: Prisma.StateMaxOrderByAggregateInput
404
- _min?: Prisma.StateMinOrderByAggregateInput
405
- _sum?: Prisma.StateSumOrderByAggregateInput
406
- }
407
-
408
- export type StateScalarWhereWithAggregatesInput = {
409
- AND?: Prisma.StateScalarWhereWithAggregatesInput | Prisma.StateScalarWhereWithAggregatesInput[]
410
- OR?: Prisma.StateScalarWhereWithAggregatesInput[]
411
- NOT?: Prisma.StateScalarWhereWithAggregatesInput | Prisma.StateScalarWhereWithAggregatesInput[]
412
- id?: Prisma.IntWithAggregatesFilter<"State"> | number
413
- name?: Prisma.StringNullableWithAggregatesFilter<"State"> | string | null
414
- state_code?: Prisma.StringNullableWithAggregatesFilter<"State"> | string | null
415
- type?: Prisma.StringNullableWithAggregatesFilter<"State"> | string | null
416
- latitude?: Prisma.DecimalNullableWithAggregatesFilter<"State"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
417
- longitude?: Prisma.DecimalNullableWithAggregatesFilter<"State"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
418
- wikiDataId?: Prisma.StringNullableWithAggregatesFilter<"State"> | string | null
419
- status?: Prisma.BoolNullableWithAggregatesFilter<"State"> | boolean | null
420
- created_at?: Prisma.DateTimeWithAggregatesFilter<"State"> | Date | string
421
- created_by?: Prisma.IntNullableWithAggregatesFilter<"State"> | number | null
422
- updated_at?: Prisma.DateTimeWithAggregatesFilter<"State"> | Date | string
423
- updated_by?: Prisma.IntNullableWithAggregatesFilter<"State"> | number | null
424
- is_deleted?: Prisma.BoolNullableWithAggregatesFilter<"State"> | boolean | null
425
- deleted_by?: Prisma.IntNullableWithAggregatesFilter<"State"> | number | null
426
- deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"State"> | Date | string | null
427
- country_id?: Prisma.IntNullableWithAggregatesFilter<"State"> | number | null
428
- }
429
-
430
- export type StateCreateInput = {
431
- name?: string | null
432
- state_code?: string | null
433
- type?: string | null
434
- latitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
435
- longitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
436
- wikiDataId?: string | null
437
- status?: boolean | null
438
- created_at?: Date | string
439
- created_by?: number | null
440
- updated_at?: Date | string
441
- updated_by?: number | null
442
- is_deleted?: boolean | null
443
- deleted_by?: number | null
444
- deleted_at?: Date | string | null
445
- country?: Prisma.CountryCreateNestedOneWithoutStatesInput
446
- cities?: Prisma.CityCreateNestedManyWithoutStateInput
447
- locations?: Prisma.LocationCreateNestedManyWithoutStateInput
448
- }
449
-
450
- export type StateUncheckedCreateInput = {
451
- id?: number
452
- name?: string | null
453
- state_code?: string | null
454
- type?: string | null
455
- latitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
456
- longitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
457
- wikiDataId?: string | null
458
- status?: boolean | null
459
- created_at?: Date | string
460
- created_by?: number | null
461
- updated_at?: Date | string
462
- updated_by?: number | null
463
- is_deleted?: boolean | null
464
- deleted_by?: number | null
465
- deleted_at?: Date | string | null
466
- country_id?: number | null
467
- cities?: Prisma.CityUncheckedCreateNestedManyWithoutStateInput
468
- locations?: Prisma.LocationUncheckedCreateNestedManyWithoutStateInput
469
- }
470
-
471
- export type StateUpdateInput = {
472
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
473
- state_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
474
- type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
475
- latitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
476
- longitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
477
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
478
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
479
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
480
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
481
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
482
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
483
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
484
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
485
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
486
- country?: Prisma.CountryUpdateOneWithoutStatesNestedInput
487
- cities?: Prisma.CityUpdateManyWithoutStateNestedInput
488
- locations?: Prisma.LocationUpdateManyWithoutStateNestedInput
489
- }
490
-
491
- export type StateUncheckedUpdateInput = {
492
- id?: Prisma.IntFieldUpdateOperationsInput | number
493
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
494
- state_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
495
- type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
496
- latitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
497
- longitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
498
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
499
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
500
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
501
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
502
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
503
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
504
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
505
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
506
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
507
- country_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
508
- cities?: Prisma.CityUncheckedUpdateManyWithoutStateNestedInput
509
- locations?: Prisma.LocationUncheckedUpdateManyWithoutStateNestedInput
510
- }
511
-
512
- export type StateCreateManyInput = {
513
- id?: number
514
- name?: string | null
515
- state_code?: string | null
516
- type?: string | null
517
- latitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
518
- longitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
519
- wikiDataId?: string | null
520
- status?: boolean | null
521
- created_at?: Date | string
522
- created_by?: number | null
523
- updated_at?: Date | string
524
- updated_by?: number | null
525
- is_deleted?: boolean | null
526
- deleted_by?: number | null
527
- deleted_at?: Date | string | null
528
- country_id?: number | null
529
- }
530
-
531
- export type StateUpdateManyMutationInput = {
532
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
533
- state_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
534
- type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
535
- latitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
536
- longitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
537
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
538
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
539
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
540
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
541
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
542
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
543
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
544
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
545
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
546
- }
547
-
548
- export type StateUncheckedUpdateManyInput = {
549
- id?: Prisma.IntFieldUpdateOperationsInput | number
550
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
551
- state_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
552
- type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
553
- latitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
554
- longitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
555
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
556
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
557
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
558
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
559
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
560
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
561
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
562
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
563
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
564
- country_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
565
- }
566
-
567
- export type StateListRelationFilter = {
568
- every?: Prisma.StateWhereInput
569
- some?: Prisma.StateWhereInput
570
- none?: Prisma.StateWhereInput
571
- }
572
-
573
- export type StateOrderByRelationAggregateInput = {
574
- _count?: Prisma.SortOrder
575
- }
576
-
577
- export type StateName_country_id_state_codeCompoundUniqueInput = {
578
- name: string
579
- country_id: number
580
- state_code: string
581
- }
582
-
583
- export type StateCountOrderByAggregateInput = {
584
- id?: Prisma.SortOrder
585
- name?: Prisma.SortOrder
586
- state_code?: Prisma.SortOrder
587
- type?: Prisma.SortOrder
588
- latitude?: Prisma.SortOrder
589
- longitude?: Prisma.SortOrder
590
- wikiDataId?: Prisma.SortOrder
591
- status?: Prisma.SortOrder
592
- created_at?: Prisma.SortOrder
593
- created_by?: Prisma.SortOrder
594
- updated_at?: Prisma.SortOrder
595
- updated_by?: Prisma.SortOrder
596
- is_deleted?: Prisma.SortOrder
597
- deleted_by?: Prisma.SortOrder
598
- deleted_at?: Prisma.SortOrder
599
- country_id?: Prisma.SortOrder
600
- }
601
-
602
- export type StateAvgOrderByAggregateInput = {
603
- id?: Prisma.SortOrder
604
- latitude?: Prisma.SortOrder
605
- longitude?: Prisma.SortOrder
606
- created_by?: Prisma.SortOrder
607
- updated_by?: Prisma.SortOrder
608
- deleted_by?: Prisma.SortOrder
609
- country_id?: Prisma.SortOrder
610
- }
611
-
612
- export type StateMaxOrderByAggregateInput = {
613
- id?: Prisma.SortOrder
614
- name?: Prisma.SortOrder
615
- state_code?: Prisma.SortOrder
616
- type?: Prisma.SortOrder
617
- latitude?: Prisma.SortOrder
618
- longitude?: Prisma.SortOrder
619
- wikiDataId?: Prisma.SortOrder
620
- status?: Prisma.SortOrder
621
- created_at?: Prisma.SortOrder
622
- created_by?: Prisma.SortOrder
623
- updated_at?: Prisma.SortOrder
624
- updated_by?: Prisma.SortOrder
625
- is_deleted?: Prisma.SortOrder
626
- deleted_by?: Prisma.SortOrder
627
- deleted_at?: Prisma.SortOrder
628
- country_id?: Prisma.SortOrder
629
- }
630
-
631
- export type StateMinOrderByAggregateInput = {
632
- id?: Prisma.SortOrder
633
- name?: Prisma.SortOrder
634
- state_code?: Prisma.SortOrder
635
- type?: Prisma.SortOrder
636
- latitude?: Prisma.SortOrder
637
- longitude?: Prisma.SortOrder
638
- wikiDataId?: Prisma.SortOrder
639
- status?: Prisma.SortOrder
640
- created_at?: Prisma.SortOrder
641
- created_by?: Prisma.SortOrder
642
- updated_at?: Prisma.SortOrder
643
- updated_by?: Prisma.SortOrder
644
- is_deleted?: Prisma.SortOrder
645
- deleted_by?: Prisma.SortOrder
646
- deleted_at?: Prisma.SortOrder
647
- country_id?: Prisma.SortOrder
648
- }
649
-
650
- export type StateSumOrderByAggregateInput = {
651
- id?: Prisma.SortOrder
652
- latitude?: Prisma.SortOrder
653
- longitude?: Prisma.SortOrder
654
- created_by?: Prisma.SortOrder
655
- updated_by?: Prisma.SortOrder
656
- deleted_by?: Prisma.SortOrder
657
- country_id?: Prisma.SortOrder
658
- }
659
-
660
- export type StateNullableScalarRelationFilter = {
661
- is?: Prisma.StateWhereInput | null
662
- isNot?: Prisma.StateWhereInput | null
663
- }
664
-
665
- export type StateCreateNestedManyWithoutCountryInput = {
666
- create?: Prisma.XOR<Prisma.StateCreateWithoutCountryInput, Prisma.StateUncheckedCreateWithoutCountryInput> | Prisma.StateCreateWithoutCountryInput[] | Prisma.StateUncheckedCreateWithoutCountryInput[]
667
- connectOrCreate?: Prisma.StateCreateOrConnectWithoutCountryInput | Prisma.StateCreateOrConnectWithoutCountryInput[]
668
- createMany?: Prisma.StateCreateManyCountryInputEnvelope
669
- connect?: Prisma.StateWhereUniqueInput | Prisma.StateWhereUniqueInput[]
670
- }
671
-
672
- export type StateUncheckedCreateNestedManyWithoutCountryInput = {
673
- create?: Prisma.XOR<Prisma.StateCreateWithoutCountryInput, Prisma.StateUncheckedCreateWithoutCountryInput> | Prisma.StateCreateWithoutCountryInput[] | Prisma.StateUncheckedCreateWithoutCountryInput[]
674
- connectOrCreate?: Prisma.StateCreateOrConnectWithoutCountryInput | Prisma.StateCreateOrConnectWithoutCountryInput[]
675
- createMany?: Prisma.StateCreateManyCountryInputEnvelope
676
- connect?: Prisma.StateWhereUniqueInput | Prisma.StateWhereUniqueInput[]
677
- }
678
-
679
- export type StateUpdateManyWithoutCountryNestedInput = {
680
- create?: Prisma.XOR<Prisma.StateCreateWithoutCountryInput, Prisma.StateUncheckedCreateWithoutCountryInput> | Prisma.StateCreateWithoutCountryInput[] | Prisma.StateUncheckedCreateWithoutCountryInput[]
681
- connectOrCreate?: Prisma.StateCreateOrConnectWithoutCountryInput | Prisma.StateCreateOrConnectWithoutCountryInput[]
682
- upsert?: Prisma.StateUpsertWithWhereUniqueWithoutCountryInput | Prisma.StateUpsertWithWhereUniqueWithoutCountryInput[]
683
- createMany?: Prisma.StateCreateManyCountryInputEnvelope
684
- set?: Prisma.StateWhereUniqueInput | Prisma.StateWhereUniqueInput[]
685
- disconnect?: Prisma.StateWhereUniqueInput | Prisma.StateWhereUniqueInput[]
686
- delete?: Prisma.StateWhereUniqueInput | Prisma.StateWhereUniqueInput[]
687
- connect?: Prisma.StateWhereUniqueInput | Prisma.StateWhereUniqueInput[]
688
- update?: Prisma.StateUpdateWithWhereUniqueWithoutCountryInput | Prisma.StateUpdateWithWhereUniqueWithoutCountryInput[]
689
- updateMany?: Prisma.StateUpdateManyWithWhereWithoutCountryInput | Prisma.StateUpdateManyWithWhereWithoutCountryInput[]
690
- deleteMany?: Prisma.StateScalarWhereInput | Prisma.StateScalarWhereInput[]
691
- }
692
-
693
- export type StateUncheckedUpdateManyWithoutCountryNestedInput = {
694
- create?: Prisma.XOR<Prisma.StateCreateWithoutCountryInput, Prisma.StateUncheckedCreateWithoutCountryInput> | Prisma.StateCreateWithoutCountryInput[] | Prisma.StateUncheckedCreateWithoutCountryInput[]
695
- connectOrCreate?: Prisma.StateCreateOrConnectWithoutCountryInput | Prisma.StateCreateOrConnectWithoutCountryInput[]
696
- upsert?: Prisma.StateUpsertWithWhereUniqueWithoutCountryInput | Prisma.StateUpsertWithWhereUniqueWithoutCountryInput[]
697
- createMany?: Prisma.StateCreateManyCountryInputEnvelope
698
- set?: Prisma.StateWhereUniqueInput | Prisma.StateWhereUniqueInput[]
699
- disconnect?: Prisma.StateWhereUniqueInput | Prisma.StateWhereUniqueInput[]
700
- delete?: Prisma.StateWhereUniqueInput | Prisma.StateWhereUniqueInput[]
701
- connect?: Prisma.StateWhereUniqueInput | Prisma.StateWhereUniqueInput[]
702
- update?: Prisma.StateUpdateWithWhereUniqueWithoutCountryInput | Prisma.StateUpdateWithWhereUniqueWithoutCountryInput[]
703
- updateMany?: Prisma.StateUpdateManyWithWhereWithoutCountryInput | Prisma.StateUpdateManyWithWhereWithoutCountryInput[]
704
- deleteMany?: Prisma.StateScalarWhereInput | Prisma.StateScalarWhereInput[]
705
- }
706
-
707
- export type StateCreateNestedOneWithoutCitiesInput = {
708
- create?: Prisma.XOR<Prisma.StateCreateWithoutCitiesInput, Prisma.StateUncheckedCreateWithoutCitiesInput>
709
- connectOrCreate?: Prisma.StateCreateOrConnectWithoutCitiesInput
710
- connect?: Prisma.StateWhereUniqueInput
711
- }
712
-
713
- export type StateUpdateOneWithoutCitiesNestedInput = {
714
- create?: Prisma.XOR<Prisma.StateCreateWithoutCitiesInput, Prisma.StateUncheckedCreateWithoutCitiesInput>
715
- connectOrCreate?: Prisma.StateCreateOrConnectWithoutCitiesInput
716
- upsert?: Prisma.StateUpsertWithoutCitiesInput
717
- disconnect?: Prisma.StateWhereInput | boolean
718
- delete?: Prisma.StateWhereInput | boolean
719
- connect?: Prisma.StateWhereUniqueInput
720
- update?: Prisma.XOR<Prisma.XOR<Prisma.StateUpdateToOneWithWhereWithoutCitiesInput, Prisma.StateUpdateWithoutCitiesInput>, Prisma.StateUncheckedUpdateWithoutCitiesInput>
721
- }
722
-
723
- export type StateCreateNestedOneWithoutLocationsInput = {
724
- create?: Prisma.XOR<Prisma.StateCreateWithoutLocationsInput, Prisma.StateUncheckedCreateWithoutLocationsInput>
725
- connectOrCreate?: Prisma.StateCreateOrConnectWithoutLocationsInput
726
- connect?: Prisma.StateWhereUniqueInput
727
- }
728
-
729
- export type StateUpdateOneWithoutLocationsNestedInput = {
730
- create?: Prisma.XOR<Prisma.StateCreateWithoutLocationsInput, Prisma.StateUncheckedCreateWithoutLocationsInput>
731
- connectOrCreate?: Prisma.StateCreateOrConnectWithoutLocationsInput
732
- upsert?: Prisma.StateUpsertWithoutLocationsInput
733
- disconnect?: Prisma.StateWhereInput | boolean
734
- delete?: Prisma.StateWhereInput | boolean
735
- connect?: Prisma.StateWhereUniqueInput
736
- update?: Prisma.XOR<Prisma.XOR<Prisma.StateUpdateToOneWithWhereWithoutLocationsInput, Prisma.StateUpdateWithoutLocationsInput>, Prisma.StateUncheckedUpdateWithoutLocationsInput>
737
- }
738
-
739
- export type StateCreateWithoutCountryInput = {
740
- name?: string | null
741
- state_code?: string | null
742
- type?: string | null
743
- latitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
744
- longitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
745
- wikiDataId?: string | null
746
- status?: boolean | null
747
- created_at?: Date | string
748
- created_by?: number | null
749
- updated_at?: Date | string
750
- updated_by?: number | null
751
- is_deleted?: boolean | null
752
- deleted_by?: number | null
753
- deleted_at?: Date | string | null
754
- cities?: Prisma.CityCreateNestedManyWithoutStateInput
755
- locations?: Prisma.LocationCreateNestedManyWithoutStateInput
756
- }
757
-
758
- export type StateUncheckedCreateWithoutCountryInput = {
759
- id?: number
760
- name?: string | null
761
- state_code?: string | null
762
- type?: string | null
763
- latitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
764
- longitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
765
- wikiDataId?: string | null
766
- status?: boolean | null
767
- created_at?: Date | string
768
- created_by?: number | null
769
- updated_at?: Date | string
770
- updated_by?: number | null
771
- is_deleted?: boolean | null
772
- deleted_by?: number | null
773
- deleted_at?: Date | string | null
774
- cities?: Prisma.CityUncheckedCreateNestedManyWithoutStateInput
775
- locations?: Prisma.LocationUncheckedCreateNestedManyWithoutStateInput
776
- }
777
-
778
- export type StateCreateOrConnectWithoutCountryInput = {
779
- where: Prisma.StateWhereUniqueInput
780
- create: Prisma.XOR<Prisma.StateCreateWithoutCountryInput, Prisma.StateUncheckedCreateWithoutCountryInput>
781
- }
782
-
783
- export type StateCreateManyCountryInputEnvelope = {
784
- data: Prisma.StateCreateManyCountryInput | Prisma.StateCreateManyCountryInput[]
785
- skipDuplicates?: boolean
786
- }
787
-
788
- export type StateUpsertWithWhereUniqueWithoutCountryInput = {
789
- where: Prisma.StateWhereUniqueInput
790
- update: Prisma.XOR<Prisma.StateUpdateWithoutCountryInput, Prisma.StateUncheckedUpdateWithoutCountryInput>
791
- create: Prisma.XOR<Prisma.StateCreateWithoutCountryInput, Prisma.StateUncheckedCreateWithoutCountryInput>
792
- }
793
-
794
- export type StateUpdateWithWhereUniqueWithoutCountryInput = {
795
- where: Prisma.StateWhereUniqueInput
796
- data: Prisma.XOR<Prisma.StateUpdateWithoutCountryInput, Prisma.StateUncheckedUpdateWithoutCountryInput>
797
- }
798
-
799
- export type StateUpdateManyWithWhereWithoutCountryInput = {
800
- where: Prisma.StateScalarWhereInput
801
- data: Prisma.XOR<Prisma.StateUpdateManyMutationInput, Prisma.StateUncheckedUpdateManyWithoutCountryInput>
802
- }
803
-
804
- export type StateScalarWhereInput = {
805
- AND?: Prisma.StateScalarWhereInput | Prisma.StateScalarWhereInput[]
806
- OR?: Prisma.StateScalarWhereInput[]
807
- NOT?: Prisma.StateScalarWhereInput | Prisma.StateScalarWhereInput[]
808
- id?: Prisma.IntFilter<"State"> | number
809
- name?: Prisma.StringNullableFilter<"State"> | string | null
810
- state_code?: Prisma.StringNullableFilter<"State"> | string | null
811
- type?: Prisma.StringNullableFilter<"State"> | string | null
812
- latitude?: Prisma.DecimalNullableFilter<"State"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
813
- longitude?: Prisma.DecimalNullableFilter<"State"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
814
- wikiDataId?: Prisma.StringNullableFilter<"State"> | string | null
815
- status?: Prisma.BoolNullableFilter<"State"> | boolean | null
816
- created_at?: Prisma.DateTimeFilter<"State"> | Date | string
817
- created_by?: Prisma.IntNullableFilter<"State"> | number | null
818
- updated_at?: Prisma.DateTimeFilter<"State"> | Date | string
819
- updated_by?: Prisma.IntNullableFilter<"State"> | number | null
820
- is_deleted?: Prisma.BoolNullableFilter<"State"> | boolean | null
821
- deleted_by?: Prisma.IntNullableFilter<"State"> | number | null
822
- deleted_at?: Prisma.DateTimeNullableFilter<"State"> | Date | string | null
823
- country_id?: Prisma.IntNullableFilter<"State"> | number | null
824
- }
825
-
826
- export type StateCreateWithoutCitiesInput = {
827
- name?: string | null
828
- state_code?: string | null
829
- type?: string | null
830
- latitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
831
- longitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
832
- wikiDataId?: string | null
833
- status?: boolean | null
834
- created_at?: Date | string
835
- created_by?: number | null
836
- updated_at?: Date | string
837
- updated_by?: number | null
838
- is_deleted?: boolean | null
839
- deleted_by?: number | null
840
- deleted_at?: Date | string | null
841
- country?: Prisma.CountryCreateNestedOneWithoutStatesInput
842
- locations?: Prisma.LocationCreateNestedManyWithoutStateInput
843
- }
844
-
845
- export type StateUncheckedCreateWithoutCitiesInput = {
846
- id?: number
847
- name?: string | null
848
- state_code?: string | null
849
- type?: string | null
850
- latitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
851
- longitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
852
- wikiDataId?: string | null
853
- status?: boolean | null
854
- created_at?: Date | string
855
- created_by?: number | null
856
- updated_at?: Date | string
857
- updated_by?: number | null
858
- is_deleted?: boolean | null
859
- deleted_by?: number | null
860
- deleted_at?: Date | string | null
861
- country_id?: number | null
862
- locations?: Prisma.LocationUncheckedCreateNestedManyWithoutStateInput
863
- }
864
-
865
- export type StateCreateOrConnectWithoutCitiesInput = {
866
- where: Prisma.StateWhereUniqueInput
867
- create: Prisma.XOR<Prisma.StateCreateWithoutCitiesInput, Prisma.StateUncheckedCreateWithoutCitiesInput>
868
- }
869
-
870
- export type StateUpsertWithoutCitiesInput = {
871
- update: Prisma.XOR<Prisma.StateUpdateWithoutCitiesInput, Prisma.StateUncheckedUpdateWithoutCitiesInput>
872
- create: Prisma.XOR<Prisma.StateCreateWithoutCitiesInput, Prisma.StateUncheckedCreateWithoutCitiesInput>
873
- where?: Prisma.StateWhereInput
874
- }
875
-
876
- export type StateUpdateToOneWithWhereWithoutCitiesInput = {
877
- where?: Prisma.StateWhereInput
878
- data: Prisma.XOR<Prisma.StateUpdateWithoutCitiesInput, Prisma.StateUncheckedUpdateWithoutCitiesInput>
879
- }
880
-
881
- export type StateUpdateWithoutCitiesInput = {
882
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
883
- state_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
884
- type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
885
- latitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
886
- longitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
887
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
888
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
889
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
890
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
891
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
892
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
893
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
894
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
895
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
896
- country?: Prisma.CountryUpdateOneWithoutStatesNestedInput
897
- locations?: Prisma.LocationUpdateManyWithoutStateNestedInput
898
- }
899
-
900
- export type StateUncheckedUpdateWithoutCitiesInput = {
901
- id?: Prisma.IntFieldUpdateOperationsInput | number
902
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
903
- state_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
904
- type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
905
- latitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
906
- longitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
907
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
908
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
909
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
910
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
911
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
912
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
913
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
914
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
915
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
916
- country_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
917
- locations?: Prisma.LocationUncheckedUpdateManyWithoutStateNestedInput
918
- }
919
-
920
- export type StateCreateWithoutLocationsInput = {
921
- name?: string | null
922
- state_code?: string | null
923
- type?: string | null
924
- latitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
925
- longitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
926
- wikiDataId?: string | null
927
- status?: boolean | null
928
- created_at?: Date | string
929
- created_by?: number | null
930
- updated_at?: Date | string
931
- updated_by?: number | null
932
- is_deleted?: boolean | null
933
- deleted_by?: number | null
934
- deleted_at?: Date | string | null
935
- country?: Prisma.CountryCreateNestedOneWithoutStatesInput
936
- cities?: Prisma.CityCreateNestedManyWithoutStateInput
937
- }
938
-
939
- export type StateUncheckedCreateWithoutLocationsInput = {
940
- id?: number
941
- name?: string | null
942
- state_code?: string | null
943
- type?: string | null
944
- latitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
945
- longitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
946
- wikiDataId?: string | null
947
- status?: boolean | null
948
- created_at?: Date | string
949
- created_by?: number | null
950
- updated_at?: Date | string
951
- updated_by?: number | null
952
- is_deleted?: boolean | null
953
- deleted_by?: number | null
954
- deleted_at?: Date | string | null
955
- country_id?: number | null
956
- cities?: Prisma.CityUncheckedCreateNestedManyWithoutStateInput
957
- }
958
-
959
- export type StateCreateOrConnectWithoutLocationsInput = {
960
- where: Prisma.StateWhereUniqueInput
961
- create: Prisma.XOR<Prisma.StateCreateWithoutLocationsInput, Prisma.StateUncheckedCreateWithoutLocationsInput>
962
- }
963
-
964
- export type StateUpsertWithoutLocationsInput = {
965
- update: Prisma.XOR<Prisma.StateUpdateWithoutLocationsInput, Prisma.StateUncheckedUpdateWithoutLocationsInput>
966
- create: Prisma.XOR<Prisma.StateCreateWithoutLocationsInput, Prisma.StateUncheckedCreateWithoutLocationsInput>
967
- where?: Prisma.StateWhereInput
968
- }
969
-
970
- export type StateUpdateToOneWithWhereWithoutLocationsInput = {
971
- where?: Prisma.StateWhereInput
972
- data: Prisma.XOR<Prisma.StateUpdateWithoutLocationsInput, Prisma.StateUncheckedUpdateWithoutLocationsInput>
973
- }
974
-
975
- export type StateUpdateWithoutLocationsInput = {
976
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
977
- state_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
978
- type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
979
- latitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
980
- longitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
981
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
982
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
983
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
984
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
985
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
986
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
987
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
988
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
989
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
990
- country?: Prisma.CountryUpdateOneWithoutStatesNestedInput
991
- cities?: Prisma.CityUpdateManyWithoutStateNestedInput
992
- }
993
-
994
- export type StateUncheckedUpdateWithoutLocationsInput = {
995
- id?: Prisma.IntFieldUpdateOperationsInput | number
996
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
997
- state_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
998
- type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
999
- latitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
1000
- longitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
1001
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1002
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
1003
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1004
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1005
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1006
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1007
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
1008
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1009
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1010
- country_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1011
- cities?: Prisma.CityUncheckedUpdateManyWithoutStateNestedInput
1012
- }
1013
-
1014
- export type StateCreateManyCountryInput = {
1015
- id?: number
1016
- name?: string | null
1017
- state_code?: string | null
1018
- type?: string | null
1019
- latitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
1020
- longitude?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
1021
- wikiDataId?: string | null
1022
- status?: boolean | null
1023
- created_at?: Date | string
1024
- created_by?: number | null
1025
- updated_at?: Date | string
1026
- updated_by?: number | null
1027
- is_deleted?: boolean | null
1028
- deleted_by?: number | null
1029
- deleted_at?: Date | string | null
1030
- }
1031
-
1032
- export type StateUpdateWithoutCountryInput = {
1033
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1034
- state_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1035
- type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1036
- latitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
1037
- longitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
1038
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1039
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
1040
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1041
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1042
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1043
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1044
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
1045
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1046
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1047
- cities?: Prisma.CityUpdateManyWithoutStateNestedInput
1048
- locations?: Prisma.LocationUpdateManyWithoutStateNestedInput
1049
- }
1050
-
1051
- export type StateUncheckedUpdateWithoutCountryInput = {
1052
- id?: Prisma.IntFieldUpdateOperationsInput | number
1053
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1054
- state_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1055
- type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1056
- latitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
1057
- longitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
1058
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1059
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
1060
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1061
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1062
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1063
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1064
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
1065
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1066
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1067
- cities?: Prisma.CityUncheckedUpdateManyWithoutStateNestedInput
1068
- locations?: Prisma.LocationUncheckedUpdateManyWithoutStateNestedInput
1069
- }
1070
-
1071
- export type StateUncheckedUpdateManyWithoutCountryInput = {
1072
- id?: Prisma.IntFieldUpdateOperationsInput | number
1073
- name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1074
- state_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1075
- type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1076
- latitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
1077
- longitude?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
1078
- wikiDataId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1079
- status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
1080
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1081
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1082
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1083
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1084
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
1085
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1086
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1087
- }
1088
-
1089
-
1090
- /**
1091
- * Count Type StateCountOutputType
1092
- */
1093
-
1094
- export type StateCountOutputType = {
1095
- cities: number
1096
- locations: number
1097
- }
1098
-
1099
- export type StateCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1100
- cities?: boolean | StateCountOutputTypeCountCitiesArgs
1101
- locations?: boolean | StateCountOutputTypeCountLocationsArgs
1102
- }
1103
-
1104
- /**
1105
- * StateCountOutputType without action
1106
- */
1107
- export type StateCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1108
- /**
1109
- * Select specific fields to fetch from the StateCountOutputType
1110
- */
1111
- select?: Prisma.StateCountOutputTypeSelect<ExtArgs> | null
1112
- }
1113
-
1114
- /**
1115
- * StateCountOutputType without action
1116
- */
1117
- export type StateCountOutputTypeCountCitiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1118
- where?: Prisma.CityWhereInput
1119
- }
1120
-
1121
- /**
1122
- * StateCountOutputType without action
1123
- */
1124
- export type StateCountOutputTypeCountLocationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1125
- where?: Prisma.LocationWhereInput
1126
- }
1127
-
1128
-
1129
- export type StateSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1130
- id?: boolean
1131
- name?: boolean
1132
- state_code?: boolean
1133
- type?: boolean
1134
- latitude?: boolean
1135
- longitude?: boolean
1136
- wikiDataId?: boolean
1137
- status?: boolean
1138
- created_at?: boolean
1139
- created_by?: boolean
1140
- updated_at?: boolean
1141
- updated_by?: boolean
1142
- is_deleted?: boolean
1143
- deleted_by?: boolean
1144
- deleted_at?: boolean
1145
- country_id?: boolean
1146
- country?: boolean | Prisma.State$countryArgs<ExtArgs>
1147
- cities?: boolean | Prisma.State$citiesArgs<ExtArgs>
1148
- locations?: boolean | Prisma.State$locationsArgs<ExtArgs>
1149
- _count?: boolean | Prisma.StateCountOutputTypeDefaultArgs<ExtArgs>
1150
- }, ExtArgs["result"]["state"]>
1151
-
1152
- export type StateSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1153
- id?: boolean
1154
- name?: boolean
1155
- state_code?: boolean
1156
- type?: boolean
1157
- latitude?: boolean
1158
- longitude?: boolean
1159
- wikiDataId?: boolean
1160
- status?: boolean
1161
- created_at?: boolean
1162
- created_by?: boolean
1163
- updated_at?: boolean
1164
- updated_by?: boolean
1165
- is_deleted?: boolean
1166
- deleted_by?: boolean
1167
- deleted_at?: boolean
1168
- country_id?: boolean
1169
- country?: boolean | Prisma.State$countryArgs<ExtArgs>
1170
- }, ExtArgs["result"]["state"]>
1171
-
1172
- export type StateSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1173
- id?: boolean
1174
- name?: boolean
1175
- state_code?: boolean
1176
- type?: boolean
1177
- latitude?: boolean
1178
- longitude?: boolean
1179
- wikiDataId?: boolean
1180
- status?: boolean
1181
- created_at?: boolean
1182
- created_by?: boolean
1183
- updated_at?: boolean
1184
- updated_by?: boolean
1185
- is_deleted?: boolean
1186
- deleted_by?: boolean
1187
- deleted_at?: boolean
1188
- country_id?: boolean
1189
- country?: boolean | Prisma.State$countryArgs<ExtArgs>
1190
- }, ExtArgs["result"]["state"]>
1191
-
1192
- export type StateSelectScalar = {
1193
- id?: boolean
1194
- name?: boolean
1195
- state_code?: boolean
1196
- type?: boolean
1197
- latitude?: boolean
1198
- longitude?: boolean
1199
- wikiDataId?: boolean
1200
- status?: boolean
1201
- created_at?: boolean
1202
- created_by?: boolean
1203
- updated_at?: boolean
1204
- updated_by?: boolean
1205
- is_deleted?: boolean
1206
- deleted_by?: boolean
1207
- deleted_at?: boolean
1208
- country_id?: boolean
1209
- }
1210
-
1211
- export type StateOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "state_code" | "type" | "latitude" | "longitude" | "wikiDataId" | "status" | "created_at" | "created_by" | "updated_at" | "updated_by" | "is_deleted" | "deleted_by" | "deleted_at" | "country_id", ExtArgs["result"]["state"]>
1212
- export type StateInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1213
- country?: boolean | Prisma.State$countryArgs<ExtArgs>
1214
- cities?: boolean | Prisma.State$citiesArgs<ExtArgs>
1215
- locations?: boolean | Prisma.State$locationsArgs<ExtArgs>
1216
- _count?: boolean | Prisma.StateCountOutputTypeDefaultArgs<ExtArgs>
1217
- }
1218
- export type StateIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1219
- country?: boolean | Prisma.State$countryArgs<ExtArgs>
1220
- }
1221
- export type StateIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1222
- country?: boolean | Prisma.State$countryArgs<ExtArgs>
1223
- }
1224
-
1225
- export type $StatePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1226
- name: "State"
1227
- objects: {
1228
- country: Prisma.$CountryPayload<ExtArgs> | null
1229
- cities: Prisma.$CityPayload<ExtArgs>[]
1230
- locations: Prisma.$LocationPayload<ExtArgs>[]
1231
- }
1232
- scalars: runtime.Types.Extensions.GetPayloadResult<{
1233
- id: number
1234
- name: string | null
1235
- state_code: string | null
1236
- type: string | null
1237
- latitude: runtime.Decimal | null
1238
- longitude: runtime.Decimal | null
1239
- wikiDataId: string | null
1240
- status: boolean | null
1241
- created_at: Date
1242
- created_by: number | null
1243
- updated_at: Date
1244
- updated_by: number | null
1245
- is_deleted: boolean | null
1246
- deleted_by: number | null
1247
- deleted_at: Date | null
1248
- country_id: number | null
1249
- }, ExtArgs["result"]["state"]>
1250
- composites: {}
1251
- }
1252
-
1253
- export type StateGetPayload<S extends boolean | null | undefined | StateDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$StatePayload, S>
1254
-
1255
- export type StateCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1256
- Omit<StateFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1257
- select?: StateCountAggregateInputType | true
1258
- }
1259
-
1260
- export interface StateDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1261
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['State'], meta: { name: 'State' } }
1262
- /**
1263
- * Find zero or one State that matches the filter.
1264
- * @param {StateFindUniqueArgs} args - Arguments to find a State
1265
- * @example
1266
- * // Get one State
1267
- * const state = await prisma.state.findUnique({
1268
- * where: {
1269
- * // ... provide filter here
1270
- * }
1271
- * })
1272
- */
1273
- findUnique<T extends StateFindUniqueArgs>(args: Prisma.SelectSubset<T, StateFindUniqueArgs<ExtArgs>>): Prisma.Prisma__StateClient<runtime.Types.Result.GetResult<Prisma.$StatePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1274
-
1275
- /**
1276
- * Find one State that matches the filter or throw an error with `error.code='P2025'`
1277
- * if no matches were found.
1278
- * @param {StateFindUniqueOrThrowArgs} args - Arguments to find a State
1279
- * @example
1280
- * // Get one State
1281
- * const state = await prisma.state.findUniqueOrThrow({
1282
- * where: {
1283
- * // ... provide filter here
1284
- * }
1285
- * })
1286
- */
1287
- findUniqueOrThrow<T extends StateFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, StateFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__StateClient<runtime.Types.Result.GetResult<Prisma.$StatePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1288
-
1289
- /**
1290
- * Find the first State that matches the filter.
1291
- * Note, that providing `undefined` is treated as the value not being there.
1292
- * Read more here: https://pris.ly/d/null-undefined
1293
- * @param {StateFindFirstArgs} args - Arguments to find a State
1294
- * @example
1295
- * // Get one State
1296
- * const state = await prisma.state.findFirst({
1297
- * where: {
1298
- * // ... provide filter here
1299
- * }
1300
- * })
1301
- */
1302
- findFirst<T extends StateFindFirstArgs>(args?: Prisma.SelectSubset<T, StateFindFirstArgs<ExtArgs>>): Prisma.Prisma__StateClient<runtime.Types.Result.GetResult<Prisma.$StatePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1303
-
1304
- /**
1305
- * Find the first State that matches the filter or
1306
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1307
- * Note, that providing `undefined` is treated as the value not being there.
1308
- * Read more here: https://pris.ly/d/null-undefined
1309
- * @param {StateFindFirstOrThrowArgs} args - Arguments to find a State
1310
- * @example
1311
- * // Get one State
1312
- * const state = await prisma.state.findFirstOrThrow({
1313
- * where: {
1314
- * // ... provide filter here
1315
- * }
1316
- * })
1317
- */
1318
- findFirstOrThrow<T extends StateFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, StateFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__StateClient<runtime.Types.Result.GetResult<Prisma.$StatePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1319
-
1320
- /**
1321
- * Find zero or more States that matches the filter.
1322
- * Note, that providing `undefined` is treated as the value not being there.
1323
- * Read more here: https://pris.ly/d/null-undefined
1324
- * @param {StateFindManyArgs} args - Arguments to filter and select certain fields only.
1325
- * @example
1326
- * // Get all States
1327
- * const states = await prisma.state.findMany()
1328
- *
1329
- * // Get first 10 States
1330
- * const states = await prisma.state.findMany({ take: 10 })
1331
- *
1332
- * // Only select the `id`
1333
- * const stateWithIdOnly = await prisma.state.findMany({ select: { id: true } })
1334
- *
1335
- */
1336
- findMany<T extends StateFindManyArgs>(args?: Prisma.SelectSubset<T, StateFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StatePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1337
-
1338
- /**
1339
- * Create a State.
1340
- * @param {StateCreateArgs} args - Arguments to create a State.
1341
- * @example
1342
- * // Create one State
1343
- * const State = await prisma.state.create({
1344
- * data: {
1345
- * // ... data to create a State
1346
- * }
1347
- * })
1348
- *
1349
- */
1350
- create<T extends StateCreateArgs>(args: Prisma.SelectSubset<T, StateCreateArgs<ExtArgs>>): Prisma.Prisma__StateClient<runtime.Types.Result.GetResult<Prisma.$StatePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1351
-
1352
- /**
1353
- * Create many States.
1354
- * @param {StateCreateManyArgs} args - Arguments to create many States.
1355
- * @example
1356
- * // Create many States
1357
- * const state = await prisma.state.createMany({
1358
- * data: [
1359
- * // ... provide data here
1360
- * ]
1361
- * })
1362
- *
1363
- */
1364
- createMany<T extends StateCreateManyArgs>(args?: Prisma.SelectSubset<T, StateCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1365
-
1366
- /**
1367
- * Create many States and returns the data saved in the database.
1368
- * @param {StateCreateManyAndReturnArgs} args - Arguments to create many States.
1369
- * @example
1370
- * // Create many States
1371
- * const state = await prisma.state.createManyAndReturn({
1372
- * data: [
1373
- * // ... provide data here
1374
- * ]
1375
- * })
1376
- *
1377
- * // Create many States and only return the `id`
1378
- * const stateWithIdOnly = await prisma.state.createManyAndReturn({
1379
- * select: { id: true },
1380
- * data: [
1381
- * // ... provide data here
1382
- * ]
1383
- * })
1384
- * Note, that providing `undefined` is treated as the value not being there.
1385
- * Read more here: https://pris.ly/d/null-undefined
1386
- *
1387
- */
1388
- createManyAndReturn<T extends StateCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, StateCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StatePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1389
-
1390
- /**
1391
- * Delete a State.
1392
- * @param {StateDeleteArgs} args - Arguments to delete one State.
1393
- * @example
1394
- * // Delete one State
1395
- * const State = await prisma.state.delete({
1396
- * where: {
1397
- * // ... filter to delete one State
1398
- * }
1399
- * })
1400
- *
1401
- */
1402
- delete<T extends StateDeleteArgs>(args: Prisma.SelectSubset<T, StateDeleteArgs<ExtArgs>>): Prisma.Prisma__StateClient<runtime.Types.Result.GetResult<Prisma.$StatePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1403
-
1404
- /**
1405
- * Update one State.
1406
- * @param {StateUpdateArgs} args - Arguments to update one State.
1407
- * @example
1408
- * // Update one State
1409
- * const state = await prisma.state.update({
1410
- * where: {
1411
- * // ... provide filter here
1412
- * },
1413
- * data: {
1414
- * // ... provide data here
1415
- * }
1416
- * })
1417
- *
1418
- */
1419
- update<T extends StateUpdateArgs>(args: Prisma.SelectSubset<T, StateUpdateArgs<ExtArgs>>): Prisma.Prisma__StateClient<runtime.Types.Result.GetResult<Prisma.$StatePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1420
-
1421
- /**
1422
- * Delete zero or more States.
1423
- * @param {StateDeleteManyArgs} args - Arguments to filter States to delete.
1424
- * @example
1425
- * // Delete a few States
1426
- * const { count } = await prisma.state.deleteMany({
1427
- * where: {
1428
- * // ... provide filter here
1429
- * }
1430
- * })
1431
- *
1432
- */
1433
- deleteMany<T extends StateDeleteManyArgs>(args?: Prisma.SelectSubset<T, StateDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1434
-
1435
- /**
1436
- * Update zero or more States.
1437
- * Note, that providing `undefined` is treated as the value not being there.
1438
- * Read more here: https://pris.ly/d/null-undefined
1439
- * @param {StateUpdateManyArgs} args - Arguments to update one or more rows.
1440
- * @example
1441
- * // Update many States
1442
- * const state = await prisma.state.updateMany({
1443
- * where: {
1444
- * // ... provide filter here
1445
- * },
1446
- * data: {
1447
- * // ... provide data here
1448
- * }
1449
- * })
1450
- *
1451
- */
1452
- updateMany<T extends StateUpdateManyArgs>(args: Prisma.SelectSubset<T, StateUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1453
-
1454
- /**
1455
- * Update zero or more States and returns the data updated in the database.
1456
- * @param {StateUpdateManyAndReturnArgs} args - Arguments to update many States.
1457
- * @example
1458
- * // Update many States
1459
- * const state = await prisma.state.updateManyAndReturn({
1460
- * where: {
1461
- * // ... provide filter here
1462
- * },
1463
- * data: [
1464
- * // ... provide data here
1465
- * ]
1466
- * })
1467
- *
1468
- * // Update zero or more States and only return the `id`
1469
- * const stateWithIdOnly = await prisma.state.updateManyAndReturn({
1470
- * select: { id: true },
1471
- * where: {
1472
- * // ... provide filter here
1473
- * },
1474
- * data: [
1475
- * // ... provide data here
1476
- * ]
1477
- * })
1478
- * Note, that providing `undefined` is treated as the value not being there.
1479
- * Read more here: https://pris.ly/d/null-undefined
1480
- *
1481
- */
1482
- updateManyAndReturn<T extends StateUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, StateUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StatePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1483
-
1484
- /**
1485
- * Create or update one State.
1486
- * @param {StateUpsertArgs} args - Arguments to update or create a State.
1487
- * @example
1488
- * // Update or create a State
1489
- * const state = await prisma.state.upsert({
1490
- * create: {
1491
- * // ... data to create a State
1492
- * },
1493
- * update: {
1494
- * // ... in case it already exists, update
1495
- * },
1496
- * where: {
1497
- * // ... the filter for the State we want to update
1498
- * }
1499
- * })
1500
- */
1501
- upsert<T extends StateUpsertArgs>(args: Prisma.SelectSubset<T, StateUpsertArgs<ExtArgs>>): Prisma.Prisma__StateClient<runtime.Types.Result.GetResult<Prisma.$StatePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1502
-
1503
-
1504
- /**
1505
- * Count the number of States.
1506
- * Note, that providing `undefined` is treated as the value not being there.
1507
- * Read more here: https://pris.ly/d/null-undefined
1508
- * @param {StateCountArgs} args - Arguments to filter States to count.
1509
- * @example
1510
- * // Count the number of States
1511
- * const count = await prisma.state.count({
1512
- * where: {
1513
- * // ... the filter for the States we want to count
1514
- * }
1515
- * })
1516
- **/
1517
- count<T extends StateCountArgs>(
1518
- args?: Prisma.Subset<T, StateCountArgs>,
1519
- ): Prisma.PrismaPromise<
1520
- T extends runtime.Types.Utils.Record<'select', any>
1521
- ? T['select'] extends true
1522
- ? number
1523
- : Prisma.GetScalarType<T['select'], StateCountAggregateOutputType>
1524
- : number
1525
- >
1526
-
1527
- /**
1528
- * Allows you to perform aggregations operations on a State.
1529
- * Note, that providing `undefined` is treated as the value not being there.
1530
- * Read more here: https://pris.ly/d/null-undefined
1531
- * @param {StateAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1532
- * @example
1533
- * // Ordered by age ascending
1534
- * // Where email contains prisma.io
1535
- * // Limited to the 10 users
1536
- * const aggregations = await prisma.user.aggregate({
1537
- * _avg: {
1538
- * age: true,
1539
- * },
1540
- * where: {
1541
- * email: {
1542
- * contains: "prisma.io",
1543
- * },
1544
- * },
1545
- * orderBy: {
1546
- * age: "asc",
1547
- * },
1548
- * take: 10,
1549
- * })
1550
- **/
1551
- aggregate<T extends StateAggregateArgs>(args: Prisma.Subset<T, StateAggregateArgs>): Prisma.PrismaPromise<GetStateAggregateType<T>>
1552
-
1553
- /**
1554
- * Group by State.
1555
- * Note, that providing `undefined` is treated as the value not being there.
1556
- * Read more here: https://pris.ly/d/null-undefined
1557
- * @param {StateGroupByArgs} args - Group by arguments.
1558
- * @example
1559
- * // Group by city, order by createdAt, get count
1560
- * const result = await prisma.user.groupBy({
1561
- * by: ['city', 'createdAt'],
1562
- * orderBy: {
1563
- * createdAt: true
1564
- * },
1565
- * _count: {
1566
- * _all: true
1567
- * },
1568
- * })
1569
- *
1570
- **/
1571
- groupBy<
1572
- T extends StateGroupByArgs,
1573
- HasSelectOrTake extends Prisma.Or<
1574
- Prisma.Extends<'skip', Prisma.Keys<T>>,
1575
- Prisma.Extends<'take', Prisma.Keys<T>>
1576
- >,
1577
- OrderByArg extends Prisma.True extends HasSelectOrTake
1578
- ? { orderBy: StateGroupByArgs['orderBy'] }
1579
- : { orderBy?: StateGroupByArgs['orderBy'] },
1580
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1581
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1582
- ByValid extends Prisma.Has<ByFields, OrderFields>,
1583
- HavingFields extends Prisma.GetHavingFields<T['having']>,
1584
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
1585
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1586
- InputErrors extends ByEmpty extends Prisma.True
1587
- ? `Error: "by" must not be empty.`
1588
- : HavingValid extends Prisma.False
1589
- ? {
1590
- [P in HavingFields]: P extends ByFields
1591
- ? never
1592
- : P extends string
1593
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1594
- : [
1595
- Error,
1596
- 'Field ',
1597
- P,
1598
- ` in "having" needs to be provided in "by"`,
1599
- ]
1600
- }[HavingFields]
1601
- : 'take' extends Prisma.Keys<T>
1602
- ? 'orderBy' extends Prisma.Keys<T>
1603
- ? ByValid extends Prisma.True
1604
- ? {}
1605
- : {
1606
- [P in OrderFields]: P extends ByFields
1607
- ? never
1608
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1609
- }[OrderFields]
1610
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1611
- : 'skip' extends Prisma.Keys<T>
1612
- ? 'orderBy' extends Prisma.Keys<T>
1613
- ? ByValid extends Prisma.True
1614
- ? {}
1615
- : {
1616
- [P in OrderFields]: P extends ByFields
1617
- ? never
1618
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1619
- }[OrderFields]
1620
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1621
- : ByValid extends Prisma.True
1622
- ? {}
1623
- : {
1624
- [P in OrderFields]: P extends ByFields
1625
- ? never
1626
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1627
- }[OrderFields]
1628
- >(args: Prisma.SubsetIntersection<T, StateGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStateGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1629
- /**
1630
- * Fields of the State model
1631
- */
1632
- readonly fields: StateFieldRefs;
1633
- }
1634
-
1635
- /**
1636
- * The delegate class that acts as a "Promise-like" for State.
1637
- * Why is this prefixed with `Prisma__`?
1638
- * Because we want to prevent naming conflicts as mentioned in
1639
- * https://github.com/prisma/prisma-client-js/issues/707
1640
- */
1641
- export interface Prisma__StateClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1642
- readonly [Symbol.toStringTag]: "PrismaPromise"
1643
- country<T extends Prisma.State$countryArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.State$countryArgs<ExtArgs>>): Prisma.Prisma__CountryClient<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1644
- cities<T extends Prisma.State$citiesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.State$citiesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1645
- locations<T extends Prisma.State$locationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.State$locationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LocationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1646
- /**
1647
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1648
- * @param onfulfilled The callback to execute when the Promise is resolved.
1649
- * @param onrejected The callback to execute when the Promise is rejected.
1650
- * @returns A Promise for the completion of which ever callback is executed.
1651
- */
1652
- 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>
1653
- /**
1654
- * Attaches a callback for only the rejection of the Promise.
1655
- * @param onrejected The callback to execute when the Promise is rejected.
1656
- * @returns A Promise for the completion of the callback.
1657
- */
1658
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1659
- /**
1660
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1661
- * resolved value cannot be modified from the callback.
1662
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1663
- * @returns A Promise for the completion of the callback.
1664
- */
1665
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1666
- }
1667
-
1668
-
1669
-
1670
-
1671
- /**
1672
- * Fields of the State model
1673
- */
1674
- export interface StateFieldRefs {
1675
- readonly id: Prisma.FieldRef<"State", 'Int'>
1676
- readonly name: Prisma.FieldRef<"State", 'String'>
1677
- readonly state_code: Prisma.FieldRef<"State", 'String'>
1678
- readonly type: Prisma.FieldRef<"State", 'String'>
1679
- readonly latitude: Prisma.FieldRef<"State", 'Decimal'>
1680
- readonly longitude: Prisma.FieldRef<"State", 'Decimal'>
1681
- readonly wikiDataId: Prisma.FieldRef<"State", 'String'>
1682
- readonly status: Prisma.FieldRef<"State", 'Boolean'>
1683
- readonly created_at: Prisma.FieldRef<"State", 'DateTime'>
1684
- readonly created_by: Prisma.FieldRef<"State", 'Int'>
1685
- readonly updated_at: Prisma.FieldRef<"State", 'DateTime'>
1686
- readonly updated_by: Prisma.FieldRef<"State", 'Int'>
1687
- readonly is_deleted: Prisma.FieldRef<"State", 'Boolean'>
1688
- readonly deleted_by: Prisma.FieldRef<"State", 'Int'>
1689
- readonly deleted_at: Prisma.FieldRef<"State", 'DateTime'>
1690
- readonly country_id: Prisma.FieldRef<"State", 'Int'>
1691
- }
1692
-
1693
-
1694
- // Custom InputTypes
1695
- /**
1696
- * State findUnique
1697
- */
1698
- export type StateFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1699
- /**
1700
- * Select specific fields to fetch from the State
1701
- */
1702
- select?: Prisma.StateSelect<ExtArgs> | null
1703
- /**
1704
- * Omit specific fields from the State
1705
- */
1706
- omit?: Prisma.StateOmit<ExtArgs> | null
1707
- /**
1708
- * Choose, which related nodes to fetch as well
1709
- */
1710
- include?: Prisma.StateInclude<ExtArgs> | null
1711
- /**
1712
- * Filter, which State to fetch.
1713
- */
1714
- where: Prisma.StateWhereUniqueInput
1715
- }
1716
-
1717
- /**
1718
- * State findUniqueOrThrow
1719
- */
1720
- export type StateFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1721
- /**
1722
- * Select specific fields to fetch from the State
1723
- */
1724
- select?: Prisma.StateSelect<ExtArgs> | null
1725
- /**
1726
- * Omit specific fields from the State
1727
- */
1728
- omit?: Prisma.StateOmit<ExtArgs> | null
1729
- /**
1730
- * Choose, which related nodes to fetch as well
1731
- */
1732
- include?: Prisma.StateInclude<ExtArgs> | null
1733
- /**
1734
- * Filter, which State to fetch.
1735
- */
1736
- where: Prisma.StateWhereUniqueInput
1737
- }
1738
-
1739
- /**
1740
- * State findFirst
1741
- */
1742
- export type StateFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1743
- /**
1744
- * Select specific fields to fetch from the State
1745
- */
1746
- select?: Prisma.StateSelect<ExtArgs> | null
1747
- /**
1748
- * Omit specific fields from the State
1749
- */
1750
- omit?: Prisma.StateOmit<ExtArgs> | null
1751
- /**
1752
- * Choose, which related nodes to fetch as well
1753
- */
1754
- include?: Prisma.StateInclude<ExtArgs> | null
1755
- /**
1756
- * Filter, which State to fetch.
1757
- */
1758
- where?: Prisma.StateWhereInput
1759
- /**
1760
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1761
- *
1762
- * Determine the order of States to fetch.
1763
- */
1764
- orderBy?: Prisma.StateOrderByWithRelationInput | Prisma.StateOrderByWithRelationInput[]
1765
- /**
1766
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1767
- *
1768
- * Sets the position for searching for States.
1769
- */
1770
- cursor?: Prisma.StateWhereUniqueInput
1771
- /**
1772
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1773
- *
1774
- * Take `±n` States from the position of the cursor.
1775
- */
1776
- take?: number
1777
- /**
1778
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1779
- *
1780
- * Skip the first `n` States.
1781
- */
1782
- skip?: number
1783
- /**
1784
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1785
- *
1786
- * Filter by unique combinations of States.
1787
- */
1788
- distinct?: Prisma.StateScalarFieldEnum | Prisma.StateScalarFieldEnum[]
1789
- }
1790
-
1791
- /**
1792
- * State findFirstOrThrow
1793
- */
1794
- export type StateFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1795
- /**
1796
- * Select specific fields to fetch from the State
1797
- */
1798
- select?: Prisma.StateSelect<ExtArgs> | null
1799
- /**
1800
- * Omit specific fields from the State
1801
- */
1802
- omit?: Prisma.StateOmit<ExtArgs> | null
1803
- /**
1804
- * Choose, which related nodes to fetch as well
1805
- */
1806
- include?: Prisma.StateInclude<ExtArgs> | null
1807
- /**
1808
- * Filter, which State to fetch.
1809
- */
1810
- where?: Prisma.StateWhereInput
1811
- /**
1812
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1813
- *
1814
- * Determine the order of States to fetch.
1815
- */
1816
- orderBy?: Prisma.StateOrderByWithRelationInput | Prisma.StateOrderByWithRelationInput[]
1817
- /**
1818
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1819
- *
1820
- * Sets the position for searching for States.
1821
- */
1822
- cursor?: Prisma.StateWhereUniqueInput
1823
- /**
1824
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1825
- *
1826
- * Take `±n` States from the position of the cursor.
1827
- */
1828
- take?: number
1829
- /**
1830
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1831
- *
1832
- * Skip the first `n` States.
1833
- */
1834
- skip?: number
1835
- /**
1836
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1837
- *
1838
- * Filter by unique combinations of States.
1839
- */
1840
- distinct?: Prisma.StateScalarFieldEnum | Prisma.StateScalarFieldEnum[]
1841
- }
1842
-
1843
- /**
1844
- * State findMany
1845
- */
1846
- export type StateFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1847
- /**
1848
- * Select specific fields to fetch from the State
1849
- */
1850
- select?: Prisma.StateSelect<ExtArgs> | null
1851
- /**
1852
- * Omit specific fields from the State
1853
- */
1854
- omit?: Prisma.StateOmit<ExtArgs> | null
1855
- /**
1856
- * Choose, which related nodes to fetch as well
1857
- */
1858
- include?: Prisma.StateInclude<ExtArgs> | null
1859
- /**
1860
- * Filter, which States to fetch.
1861
- */
1862
- where?: Prisma.StateWhereInput
1863
- /**
1864
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1865
- *
1866
- * Determine the order of States to fetch.
1867
- */
1868
- orderBy?: Prisma.StateOrderByWithRelationInput | Prisma.StateOrderByWithRelationInput[]
1869
- /**
1870
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1871
- *
1872
- * Sets the position for listing States.
1873
- */
1874
- cursor?: Prisma.StateWhereUniqueInput
1875
- /**
1876
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1877
- *
1878
- * Take `±n` States from the position of the cursor.
1879
- */
1880
- take?: number
1881
- /**
1882
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1883
- *
1884
- * Skip the first `n` States.
1885
- */
1886
- skip?: number
1887
- /**
1888
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1889
- *
1890
- * Filter by unique combinations of States.
1891
- */
1892
- distinct?: Prisma.StateScalarFieldEnum | Prisma.StateScalarFieldEnum[]
1893
- }
1894
-
1895
- /**
1896
- * State create
1897
- */
1898
- export type StateCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1899
- /**
1900
- * Select specific fields to fetch from the State
1901
- */
1902
- select?: Prisma.StateSelect<ExtArgs> | null
1903
- /**
1904
- * Omit specific fields from the State
1905
- */
1906
- omit?: Prisma.StateOmit<ExtArgs> | null
1907
- /**
1908
- * Choose, which related nodes to fetch as well
1909
- */
1910
- include?: Prisma.StateInclude<ExtArgs> | null
1911
- /**
1912
- * The data needed to create a State.
1913
- */
1914
- data: Prisma.XOR<Prisma.StateCreateInput, Prisma.StateUncheckedCreateInput>
1915
- }
1916
-
1917
- /**
1918
- * State createMany
1919
- */
1920
- export type StateCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1921
- /**
1922
- * The data used to create many States.
1923
- */
1924
- data: Prisma.StateCreateManyInput | Prisma.StateCreateManyInput[]
1925
- skipDuplicates?: boolean
1926
- }
1927
-
1928
- /**
1929
- * State createManyAndReturn
1930
- */
1931
- export type StateCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1932
- /**
1933
- * Select specific fields to fetch from the State
1934
- */
1935
- select?: Prisma.StateSelectCreateManyAndReturn<ExtArgs> | null
1936
- /**
1937
- * Omit specific fields from the State
1938
- */
1939
- omit?: Prisma.StateOmit<ExtArgs> | null
1940
- /**
1941
- * The data used to create many States.
1942
- */
1943
- data: Prisma.StateCreateManyInput | Prisma.StateCreateManyInput[]
1944
- skipDuplicates?: boolean
1945
- /**
1946
- * Choose, which related nodes to fetch as well
1947
- */
1948
- include?: Prisma.StateIncludeCreateManyAndReturn<ExtArgs> | null
1949
- }
1950
-
1951
- /**
1952
- * State update
1953
- */
1954
- export type StateUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1955
- /**
1956
- * Select specific fields to fetch from the State
1957
- */
1958
- select?: Prisma.StateSelect<ExtArgs> | null
1959
- /**
1960
- * Omit specific fields from the State
1961
- */
1962
- omit?: Prisma.StateOmit<ExtArgs> | null
1963
- /**
1964
- * Choose, which related nodes to fetch as well
1965
- */
1966
- include?: Prisma.StateInclude<ExtArgs> | null
1967
- /**
1968
- * The data needed to update a State.
1969
- */
1970
- data: Prisma.XOR<Prisma.StateUpdateInput, Prisma.StateUncheckedUpdateInput>
1971
- /**
1972
- * Choose, which State to update.
1973
- */
1974
- where: Prisma.StateWhereUniqueInput
1975
- }
1976
-
1977
- /**
1978
- * State updateMany
1979
- */
1980
- export type StateUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1981
- /**
1982
- * The data used to update States.
1983
- */
1984
- data: Prisma.XOR<Prisma.StateUpdateManyMutationInput, Prisma.StateUncheckedUpdateManyInput>
1985
- /**
1986
- * Filter which States to update
1987
- */
1988
- where?: Prisma.StateWhereInput
1989
- /**
1990
- * Limit how many States to update.
1991
- */
1992
- limit?: number
1993
- }
1994
-
1995
- /**
1996
- * State updateManyAndReturn
1997
- */
1998
- export type StateUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1999
- /**
2000
- * Select specific fields to fetch from the State
2001
- */
2002
- select?: Prisma.StateSelectUpdateManyAndReturn<ExtArgs> | null
2003
- /**
2004
- * Omit specific fields from the State
2005
- */
2006
- omit?: Prisma.StateOmit<ExtArgs> | null
2007
- /**
2008
- * The data used to update States.
2009
- */
2010
- data: Prisma.XOR<Prisma.StateUpdateManyMutationInput, Prisma.StateUncheckedUpdateManyInput>
2011
- /**
2012
- * Filter which States to update
2013
- */
2014
- where?: Prisma.StateWhereInput
2015
- /**
2016
- * Limit how many States to update.
2017
- */
2018
- limit?: number
2019
- /**
2020
- * Choose, which related nodes to fetch as well
2021
- */
2022
- include?: Prisma.StateIncludeUpdateManyAndReturn<ExtArgs> | null
2023
- }
2024
-
2025
- /**
2026
- * State upsert
2027
- */
2028
- export type StateUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2029
- /**
2030
- * Select specific fields to fetch from the State
2031
- */
2032
- select?: Prisma.StateSelect<ExtArgs> | null
2033
- /**
2034
- * Omit specific fields from the State
2035
- */
2036
- omit?: Prisma.StateOmit<ExtArgs> | null
2037
- /**
2038
- * Choose, which related nodes to fetch as well
2039
- */
2040
- include?: Prisma.StateInclude<ExtArgs> | null
2041
- /**
2042
- * The filter to search for the State to update in case it exists.
2043
- */
2044
- where: Prisma.StateWhereUniqueInput
2045
- /**
2046
- * In case the State found by the `where` argument doesn't exist, create a new State with this data.
2047
- */
2048
- create: Prisma.XOR<Prisma.StateCreateInput, Prisma.StateUncheckedCreateInput>
2049
- /**
2050
- * In case the State was found with the provided `where` argument, update it with this data.
2051
- */
2052
- update: Prisma.XOR<Prisma.StateUpdateInput, Prisma.StateUncheckedUpdateInput>
2053
- }
2054
-
2055
- /**
2056
- * State delete
2057
- */
2058
- export type StateDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2059
- /**
2060
- * Select specific fields to fetch from the State
2061
- */
2062
- select?: Prisma.StateSelect<ExtArgs> | null
2063
- /**
2064
- * Omit specific fields from the State
2065
- */
2066
- omit?: Prisma.StateOmit<ExtArgs> | null
2067
- /**
2068
- * Choose, which related nodes to fetch as well
2069
- */
2070
- include?: Prisma.StateInclude<ExtArgs> | null
2071
- /**
2072
- * Filter which State to delete.
2073
- */
2074
- where: Prisma.StateWhereUniqueInput
2075
- }
2076
-
2077
- /**
2078
- * State deleteMany
2079
- */
2080
- export type StateDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2081
- /**
2082
- * Filter which States to delete
2083
- */
2084
- where?: Prisma.StateWhereInput
2085
- /**
2086
- * Limit how many States to delete.
2087
- */
2088
- limit?: number
2089
- }
2090
-
2091
- /**
2092
- * State.country
2093
- */
2094
- export type State$countryArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2095
- /**
2096
- * Select specific fields to fetch from the Country
2097
- */
2098
- select?: Prisma.CountrySelect<ExtArgs> | null
2099
- /**
2100
- * Omit specific fields from the Country
2101
- */
2102
- omit?: Prisma.CountryOmit<ExtArgs> | null
2103
- /**
2104
- * Choose, which related nodes to fetch as well
2105
- */
2106
- include?: Prisma.CountryInclude<ExtArgs> | null
2107
- where?: Prisma.CountryWhereInput
2108
- }
2109
-
2110
- /**
2111
- * State.cities
2112
- */
2113
- export type State$citiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2114
- /**
2115
- * Select specific fields to fetch from the City
2116
- */
2117
- select?: Prisma.CitySelect<ExtArgs> | null
2118
- /**
2119
- * Omit specific fields from the City
2120
- */
2121
- omit?: Prisma.CityOmit<ExtArgs> | null
2122
- /**
2123
- * Choose, which related nodes to fetch as well
2124
- */
2125
- include?: Prisma.CityInclude<ExtArgs> | null
2126
- where?: Prisma.CityWhereInput
2127
- orderBy?: Prisma.CityOrderByWithRelationInput | Prisma.CityOrderByWithRelationInput[]
2128
- cursor?: Prisma.CityWhereUniqueInput
2129
- take?: number
2130
- skip?: number
2131
- distinct?: Prisma.CityScalarFieldEnum | Prisma.CityScalarFieldEnum[]
2132
- }
2133
-
2134
- /**
2135
- * State.locations
2136
- */
2137
- export type State$locationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2138
- /**
2139
- * Select specific fields to fetch from the Location
2140
- */
2141
- select?: Prisma.LocationSelect<ExtArgs> | null
2142
- /**
2143
- * Omit specific fields from the Location
2144
- */
2145
- omit?: Prisma.LocationOmit<ExtArgs> | null
2146
- /**
2147
- * Choose, which related nodes to fetch as well
2148
- */
2149
- include?: Prisma.LocationInclude<ExtArgs> | null
2150
- where?: Prisma.LocationWhereInput
2151
- orderBy?: Prisma.LocationOrderByWithRelationInput | Prisma.LocationOrderByWithRelationInput[]
2152
- cursor?: Prisma.LocationWhereUniqueInput
2153
- take?: number
2154
- skip?: number
2155
- distinct?: Prisma.LocationScalarFieldEnum | Prisma.LocationScalarFieldEnum[]
2156
- }
2157
-
2158
- /**
2159
- * State without action
2160
- */
2161
- export type StateDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2162
- /**
2163
- * Select specific fields to fetch from the State
2164
- */
2165
- select?: Prisma.StateSelect<ExtArgs> | null
2166
- /**
2167
- * Omit specific fields from the State
2168
- */
2169
- omit?: Prisma.StateOmit<ExtArgs> | null
2170
- /**
2171
- * Choose, which related nodes to fetch as well
2172
- */
2173
- include?: Prisma.StateInclude<ExtArgs> | null
2174
- }