@triskcraft/db 0.1.0

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