@koloseum/types 0.2.10 → 0.3.2
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.
- package/dist/database-generated.d.ts +1381 -344
- package/dist/database.d.ts +3 -3
- package/dist/general.d.ts +8 -1
- package/dist/players/competitions.d.ts +109 -0
- package/dist/public/auth.d.ts +3 -3
- package/package.json +7 -7
- package/dist/backroom/competitions.d.ts +0 -90
|
@@ -2,67 +2,681 @@ export type Json = string | number | boolean | null | {
|
|
|
2
2
|
[key: string]: Json | undefined;
|
|
3
3
|
} | Json[];
|
|
4
4
|
export type Database = {
|
|
5
|
-
|
|
5
|
+
commerce: {
|
|
6
6
|
Tables: {
|
|
7
|
-
|
|
7
|
+
cart_items: {
|
|
8
8
|
Row: {
|
|
9
|
-
|
|
9
|
+
cart_id: string;
|
|
10
|
+
console_id: string | null;
|
|
11
|
+
created_at: string;
|
|
12
|
+
game_console_id: string | null;
|
|
13
|
+
id: string;
|
|
14
|
+
quantity: number;
|
|
15
|
+
};
|
|
16
|
+
Insert: {
|
|
17
|
+
cart_id: string;
|
|
18
|
+
console_id?: string | null;
|
|
19
|
+
created_at?: string;
|
|
20
|
+
game_console_id?: string | null;
|
|
21
|
+
id?: string;
|
|
22
|
+
quantity: number;
|
|
23
|
+
};
|
|
24
|
+
Update: {
|
|
25
|
+
cart_id?: string;
|
|
26
|
+
console_id?: string | null;
|
|
27
|
+
created_at?: string;
|
|
28
|
+
game_console_id?: string | null;
|
|
29
|
+
id?: string;
|
|
30
|
+
quantity?: number;
|
|
31
|
+
};
|
|
32
|
+
Relationships: [
|
|
33
|
+
{
|
|
34
|
+
foreignKeyName: "cart_items_cart_id_fkey";
|
|
35
|
+
columns: ["cart_id"];
|
|
36
|
+
isOneToOne: false;
|
|
37
|
+
referencedRelation: "carts";
|
|
38
|
+
referencedColumns: ["id"];
|
|
39
|
+
}
|
|
40
|
+
];
|
|
41
|
+
};
|
|
42
|
+
carts: {
|
|
43
|
+
Row: {
|
|
44
|
+
created_at: string;
|
|
45
|
+
id: string;
|
|
46
|
+
player_id: string | null;
|
|
47
|
+
temporary_player_id: string | null;
|
|
48
|
+
updated_at: string;
|
|
49
|
+
user_id: string | null;
|
|
50
|
+
};
|
|
51
|
+
Insert: {
|
|
52
|
+
created_at?: string;
|
|
53
|
+
id?: string;
|
|
54
|
+
player_id?: string | null;
|
|
55
|
+
temporary_player_id?: string | null;
|
|
56
|
+
updated_at?: string;
|
|
57
|
+
user_id?: string | null;
|
|
58
|
+
};
|
|
59
|
+
Update: {
|
|
60
|
+
created_at?: string;
|
|
61
|
+
id?: string;
|
|
62
|
+
player_id?: string | null;
|
|
63
|
+
temporary_player_id?: string | null;
|
|
64
|
+
updated_at?: string;
|
|
65
|
+
user_id?: string | null;
|
|
66
|
+
};
|
|
67
|
+
Relationships: [];
|
|
68
|
+
};
|
|
69
|
+
item_listings: {
|
|
70
|
+
Row: {
|
|
71
|
+
condition: Database["commerce"]["Enums"]["item_condition"];
|
|
72
|
+
console_id: string | null;
|
|
73
|
+
created_at: string;
|
|
74
|
+
currency_code: string;
|
|
75
|
+
featured: boolean;
|
|
76
|
+
game_console_id: string | null;
|
|
77
|
+
id: string;
|
|
78
|
+
listing_fee_credits_transaction_id: string | null;
|
|
79
|
+
player_id: string;
|
|
80
|
+
price: number;
|
|
81
|
+
quantity: number;
|
|
82
|
+
status: Database["commerce"]["Enums"]["listing_status"];
|
|
83
|
+
updated_at: string;
|
|
84
|
+
user_id: string | null;
|
|
85
|
+
};
|
|
86
|
+
Insert: {
|
|
87
|
+
condition: Database["commerce"]["Enums"]["item_condition"];
|
|
88
|
+
console_id?: string | null;
|
|
89
|
+
created_at?: string;
|
|
90
|
+
currency_code: string;
|
|
91
|
+
featured?: boolean;
|
|
92
|
+
game_console_id?: string | null;
|
|
93
|
+
id?: string;
|
|
94
|
+
listing_fee_credits_transaction_id?: string | null;
|
|
95
|
+
player_id: string;
|
|
96
|
+
price: number;
|
|
97
|
+
quantity: number;
|
|
98
|
+
status?: Database["commerce"]["Enums"]["listing_status"];
|
|
99
|
+
updated_at?: string;
|
|
100
|
+
user_id?: string | null;
|
|
101
|
+
};
|
|
102
|
+
Update: {
|
|
103
|
+
condition?: Database["commerce"]["Enums"]["item_condition"];
|
|
104
|
+
console_id?: string | null;
|
|
105
|
+
created_at?: string;
|
|
106
|
+
currency_code?: string;
|
|
107
|
+
featured?: boolean;
|
|
108
|
+
game_console_id?: string | null;
|
|
109
|
+
id?: string;
|
|
110
|
+
listing_fee_credits_transaction_id?: string | null;
|
|
111
|
+
player_id?: string;
|
|
112
|
+
price?: number;
|
|
113
|
+
quantity?: number;
|
|
114
|
+
status?: Database["commerce"]["Enums"]["listing_status"];
|
|
115
|
+
updated_at?: string;
|
|
116
|
+
user_id?: string | null;
|
|
117
|
+
};
|
|
118
|
+
Relationships: [];
|
|
119
|
+
};
|
|
120
|
+
item_ownership_transfers: {
|
|
121
|
+
Row: {
|
|
122
|
+
console_id: string | null;
|
|
123
|
+
created_at: string;
|
|
124
|
+
from_player_id: string;
|
|
125
|
+
from_user_id: string | null;
|
|
126
|
+
game_console_id: string | null;
|
|
127
|
+
id: string;
|
|
128
|
+
quantity: number;
|
|
129
|
+
source_order_id: string | null;
|
|
130
|
+
to_player_id: string;
|
|
131
|
+
to_user_id: string | null;
|
|
132
|
+
};
|
|
133
|
+
Insert: {
|
|
134
|
+
console_id?: string | null;
|
|
135
|
+
created_at?: string;
|
|
136
|
+
from_player_id: string;
|
|
137
|
+
from_user_id?: string | null;
|
|
138
|
+
game_console_id?: string | null;
|
|
139
|
+
id?: string;
|
|
140
|
+
quantity: number;
|
|
141
|
+
source_order_id?: string | null;
|
|
142
|
+
to_player_id: string;
|
|
143
|
+
to_user_id?: string | null;
|
|
144
|
+
};
|
|
145
|
+
Update: {
|
|
146
|
+
console_id?: string | null;
|
|
147
|
+
created_at?: string;
|
|
148
|
+
from_player_id?: string;
|
|
149
|
+
from_user_id?: string | null;
|
|
150
|
+
game_console_id?: string | null;
|
|
151
|
+
id?: string;
|
|
152
|
+
quantity?: number;
|
|
153
|
+
source_order_id?: string | null;
|
|
154
|
+
to_player_id?: string;
|
|
155
|
+
to_user_id?: string | null;
|
|
156
|
+
};
|
|
157
|
+
Relationships: [
|
|
158
|
+
{
|
|
159
|
+
foreignKeyName: "item_ownership_transfers_source_order_id_fkey";
|
|
160
|
+
columns: ["source_order_id"];
|
|
161
|
+
isOneToOne: false;
|
|
162
|
+
referencedRelation: "orders";
|
|
163
|
+
referencedColumns: ["id"];
|
|
164
|
+
}
|
|
165
|
+
];
|
|
166
|
+
};
|
|
167
|
+
listing_reservations: {
|
|
168
|
+
Row: {
|
|
169
|
+
buyer_confirmed_at: string | null;
|
|
170
|
+
buyer_player_id: string;
|
|
171
|
+
buyer_user_id: string | null;
|
|
172
|
+
created_at: string;
|
|
173
|
+
id: string;
|
|
174
|
+
listing_id: string;
|
|
175
|
+
seller_completed_at: string | null;
|
|
176
|
+
source_event_id: string | null;
|
|
177
|
+
status: Database["commerce"]["Enums"]["reservation_status"];
|
|
178
|
+
updated_at: string;
|
|
179
|
+
};
|
|
180
|
+
Insert: {
|
|
181
|
+
buyer_confirmed_at?: string | null;
|
|
182
|
+
buyer_player_id: string;
|
|
183
|
+
buyer_user_id?: string | null;
|
|
184
|
+
created_at?: string;
|
|
185
|
+
id?: string;
|
|
186
|
+
listing_id: string;
|
|
187
|
+
seller_completed_at?: string | null;
|
|
188
|
+
source_event_id?: string | null;
|
|
189
|
+
status?: Database["commerce"]["Enums"]["reservation_status"];
|
|
190
|
+
updated_at?: string;
|
|
191
|
+
};
|
|
192
|
+
Update: {
|
|
193
|
+
buyer_confirmed_at?: string | null;
|
|
194
|
+
buyer_player_id?: string;
|
|
195
|
+
buyer_user_id?: string | null;
|
|
196
|
+
created_at?: string;
|
|
197
|
+
id?: string;
|
|
198
|
+
listing_id?: string;
|
|
199
|
+
seller_completed_at?: string | null;
|
|
200
|
+
source_event_id?: string | null;
|
|
201
|
+
status?: Database["commerce"]["Enums"]["reservation_status"];
|
|
202
|
+
updated_at?: string;
|
|
203
|
+
};
|
|
204
|
+
Relationships: [
|
|
205
|
+
{
|
|
206
|
+
foreignKeyName: "listing_reservations_listing_id_fkey";
|
|
207
|
+
columns: ["listing_id"];
|
|
208
|
+
isOneToOne: false;
|
|
209
|
+
referencedRelation: "item_listings";
|
|
210
|
+
referencedColumns: ["id"];
|
|
211
|
+
}
|
|
212
|
+
];
|
|
213
|
+
};
|
|
214
|
+
lounge_payment_methods: {
|
|
215
|
+
Row: {
|
|
216
|
+
created_at: string;
|
|
217
|
+
display_label: string;
|
|
218
|
+
id: string;
|
|
219
|
+
is_default: boolean;
|
|
220
|
+
lounge_id: string;
|
|
221
|
+
method_type: Database["commerce"]["Enums"]["payment_method_type"];
|
|
222
|
+
provider: string;
|
|
223
|
+
provider_customer_id: string;
|
|
224
|
+
provider_payment_method_id: string;
|
|
225
|
+
updated_at: string;
|
|
226
|
+
user_id: string | null;
|
|
227
|
+
};
|
|
228
|
+
Insert: {
|
|
229
|
+
created_at?: string;
|
|
230
|
+
display_label: string;
|
|
231
|
+
id?: string;
|
|
232
|
+
is_default: boolean;
|
|
233
|
+
lounge_id: string;
|
|
234
|
+
method_type: Database["commerce"]["Enums"]["payment_method_type"];
|
|
235
|
+
provider: string;
|
|
236
|
+
provider_customer_id: string;
|
|
237
|
+
provider_payment_method_id: string;
|
|
238
|
+
updated_at?: string;
|
|
239
|
+
user_id?: string | null;
|
|
240
|
+
};
|
|
241
|
+
Update: {
|
|
242
|
+
created_at?: string;
|
|
243
|
+
display_label?: string;
|
|
244
|
+
id?: string;
|
|
245
|
+
is_default?: boolean;
|
|
246
|
+
lounge_id?: string;
|
|
247
|
+
method_type?: Database["commerce"]["Enums"]["payment_method_type"];
|
|
248
|
+
provider?: string;
|
|
249
|
+
provider_customer_id?: string;
|
|
250
|
+
provider_payment_method_id?: string;
|
|
251
|
+
updated_at?: string;
|
|
252
|
+
user_id?: string | null;
|
|
253
|
+
};
|
|
254
|
+
Relationships: [];
|
|
255
|
+
};
|
|
256
|
+
order_items: {
|
|
257
|
+
Row: {
|
|
258
|
+
console_id: string | null;
|
|
259
|
+
created_at: string;
|
|
260
|
+
game_console_id: string | null;
|
|
261
|
+
id: string;
|
|
262
|
+
order_id: string;
|
|
263
|
+
quantity: number;
|
|
264
|
+
unit_price: number;
|
|
265
|
+
};
|
|
266
|
+
Insert: {
|
|
267
|
+
console_id?: string | null;
|
|
268
|
+
created_at?: string;
|
|
269
|
+
game_console_id?: string | null;
|
|
270
|
+
id?: string;
|
|
271
|
+
order_id: string;
|
|
272
|
+
quantity: number;
|
|
273
|
+
unit_price: number;
|
|
274
|
+
};
|
|
275
|
+
Update: {
|
|
276
|
+
console_id?: string | null;
|
|
277
|
+
created_at?: string;
|
|
278
|
+
game_console_id?: string | null;
|
|
279
|
+
id?: string;
|
|
280
|
+
order_id?: string;
|
|
281
|
+
quantity?: number;
|
|
282
|
+
unit_price?: number;
|
|
283
|
+
};
|
|
284
|
+
Relationships: [
|
|
285
|
+
{
|
|
286
|
+
foreignKeyName: "order_items_order_id_fkey";
|
|
287
|
+
columns: ["order_id"];
|
|
288
|
+
isOneToOne: false;
|
|
289
|
+
referencedRelation: "orders";
|
|
290
|
+
referencedColumns: ["id"];
|
|
291
|
+
}
|
|
292
|
+
];
|
|
293
|
+
};
|
|
294
|
+
orders: {
|
|
295
|
+
Row: {
|
|
296
|
+
buyer_player_id: string;
|
|
297
|
+
buyer_user_id: string | null;
|
|
298
|
+
created_at: string;
|
|
299
|
+
currency_code: string;
|
|
300
|
+
id: string;
|
|
301
|
+
listing_id: string;
|
|
302
|
+
order_status: Database["commerce"]["Enums"]["order_status"];
|
|
303
|
+
seller_player_id: string;
|
|
304
|
+
seller_user_id: string | null;
|
|
305
|
+
shipping_address_id: string | null;
|
|
306
|
+
total_amount: number;
|
|
307
|
+
updated_at: string;
|
|
308
|
+
};
|
|
309
|
+
Insert: {
|
|
310
|
+
buyer_player_id: string;
|
|
311
|
+
buyer_user_id?: string | null;
|
|
312
|
+
created_at?: string;
|
|
313
|
+
currency_code: string;
|
|
314
|
+
id?: string;
|
|
315
|
+
listing_id: string;
|
|
316
|
+
order_status?: Database["commerce"]["Enums"]["order_status"];
|
|
317
|
+
seller_player_id: string;
|
|
318
|
+
seller_user_id?: string | null;
|
|
319
|
+
shipping_address_id?: string | null;
|
|
320
|
+
total_amount: number;
|
|
321
|
+
updated_at?: string;
|
|
322
|
+
};
|
|
323
|
+
Update: {
|
|
324
|
+
buyer_player_id?: string;
|
|
325
|
+
buyer_user_id?: string | null;
|
|
326
|
+
created_at?: string;
|
|
327
|
+
currency_code?: string;
|
|
328
|
+
id?: string;
|
|
329
|
+
listing_id?: string;
|
|
330
|
+
order_status?: Database["commerce"]["Enums"]["order_status"];
|
|
331
|
+
seller_player_id?: string;
|
|
332
|
+
seller_user_id?: string | null;
|
|
333
|
+
shipping_address_id?: string | null;
|
|
334
|
+
total_amount?: number;
|
|
335
|
+
updated_at?: string;
|
|
336
|
+
};
|
|
337
|
+
Relationships: [
|
|
338
|
+
{
|
|
339
|
+
foreignKeyName: "orders_listing_id_fkey";
|
|
340
|
+
columns: ["listing_id"];
|
|
341
|
+
isOneToOne: false;
|
|
342
|
+
referencedRelation: "item_listings";
|
|
343
|
+
referencedColumns: ["id"];
|
|
344
|
+
}
|
|
345
|
+
];
|
|
346
|
+
};
|
|
347
|
+
payment_channels: {
|
|
348
|
+
Row: {
|
|
349
|
+
id: string;
|
|
350
|
+
key: string;
|
|
351
|
+
metadata: Json;
|
|
352
|
+
provider: string;
|
|
353
|
+
supports_payouts: boolean;
|
|
354
|
+
};
|
|
355
|
+
Insert: {
|
|
356
|
+
id?: string;
|
|
357
|
+
key: string;
|
|
358
|
+
metadata?: Json;
|
|
359
|
+
provider: string;
|
|
360
|
+
supports_payouts?: boolean;
|
|
361
|
+
};
|
|
362
|
+
Update: {
|
|
363
|
+
id?: string;
|
|
364
|
+
key?: string;
|
|
365
|
+
metadata?: Json;
|
|
366
|
+
provider?: string;
|
|
367
|
+
supports_payouts?: boolean;
|
|
368
|
+
};
|
|
369
|
+
Relationships: [];
|
|
370
|
+
};
|
|
371
|
+
payments: {
|
|
372
|
+
Row: {
|
|
373
|
+
amount: number;
|
|
374
|
+
created_at: string;
|
|
375
|
+
currency_code: string;
|
|
376
|
+
id: string;
|
|
377
|
+
order_id: string;
|
|
378
|
+
payment_status: Database["commerce"]["Enums"]["payment_status"];
|
|
379
|
+
player_id: string;
|
|
380
|
+
provider: string;
|
|
381
|
+
provider_payment_id: string | null;
|
|
382
|
+
user_id: string | null;
|
|
383
|
+
};
|
|
384
|
+
Insert: {
|
|
385
|
+
amount: number;
|
|
386
|
+
created_at?: string;
|
|
387
|
+
currency_code: string;
|
|
388
|
+
id?: string;
|
|
389
|
+
order_id: string;
|
|
390
|
+
payment_status: Database["commerce"]["Enums"]["payment_status"];
|
|
391
|
+
player_id: string;
|
|
392
|
+
provider: string;
|
|
393
|
+
provider_payment_id?: string | null;
|
|
394
|
+
user_id?: string | null;
|
|
395
|
+
};
|
|
396
|
+
Update: {
|
|
397
|
+
amount?: number;
|
|
398
|
+
created_at?: string;
|
|
399
|
+
currency_code?: string;
|
|
400
|
+
id?: string;
|
|
401
|
+
order_id?: string;
|
|
402
|
+
payment_status?: Database["commerce"]["Enums"]["payment_status"];
|
|
403
|
+
player_id?: string;
|
|
404
|
+
provider?: string;
|
|
405
|
+
provider_payment_id?: string | null;
|
|
406
|
+
user_id?: string | null;
|
|
407
|
+
};
|
|
408
|
+
Relationships: [
|
|
409
|
+
{
|
|
410
|
+
foreignKeyName: "payments_order_id_fkey";
|
|
411
|
+
columns: ["order_id"];
|
|
412
|
+
isOneToOne: false;
|
|
413
|
+
referencedRelation: "orders";
|
|
414
|
+
referencedColumns: ["id"];
|
|
415
|
+
}
|
|
416
|
+
];
|
|
417
|
+
};
|
|
418
|
+
player_payment_methods: {
|
|
419
|
+
Row: {
|
|
420
|
+
created_at: string;
|
|
421
|
+
display_label: string;
|
|
422
|
+
id: string;
|
|
423
|
+
is_default: boolean;
|
|
424
|
+
method_type: Database["commerce"]["Enums"]["payment_method_type"];
|
|
425
|
+
player_id: string;
|
|
426
|
+
provider: string;
|
|
427
|
+
provider_customer_id: string;
|
|
428
|
+
provider_payment_method_id: string;
|
|
429
|
+
updated_at: string;
|
|
430
|
+
user_id: string | null;
|
|
431
|
+
};
|
|
432
|
+
Insert: {
|
|
433
|
+
created_at?: string;
|
|
434
|
+
display_label: string;
|
|
435
|
+
id?: string;
|
|
436
|
+
is_default: boolean;
|
|
437
|
+
method_type: Database["commerce"]["Enums"]["payment_method_type"];
|
|
438
|
+
player_id: string;
|
|
439
|
+
provider: string;
|
|
440
|
+
provider_customer_id: string;
|
|
441
|
+
provider_payment_method_id: string;
|
|
442
|
+
updated_at?: string;
|
|
443
|
+
user_id?: string | null;
|
|
444
|
+
};
|
|
445
|
+
Update: {
|
|
446
|
+
created_at?: string;
|
|
447
|
+
display_label?: string;
|
|
448
|
+
id?: string;
|
|
449
|
+
is_default?: boolean;
|
|
450
|
+
method_type?: Database["commerce"]["Enums"]["payment_method_type"];
|
|
451
|
+
player_id?: string;
|
|
452
|
+
provider?: string;
|
|
453
|
+
provider_customer_id?: string;
|
|
454
|
+
provider_payment_method_id?: string;
|
|
455
|
+
updated_at?: string;
|
|
456
|
+
user_id?: string | null;
|
|
457
|
+
};
|
|
458
|
+
Relationships: [];
|
|
459
|
+
};
|
|
460
|
+
prize_money_transactions: {
|
|
461
|
+
Row: {
|
|
462
|
+
amount: number;
|
|
463
|
+
created_at: string;
|
|
464
|
+
credits_transaction_id: string | null;
|
|
465
|
+
currency_code: string;
|
|
10
466
|
id: string;
|
|
11
467
|
metadata: Json | null;
|
|
12
|
-
|
|
468
|
+
player_id: string | null;
|
|
469
|
+
prize_pool_id: string | null;
|
|
470
|
+
provider_payout_id: string | null;
|
|
471
|
+
source_event_id: string | null;
|
|
472
|
+
type: Database["commerce"]["Enums"]["prize_money_transaction_type"];
|
|
473
|
+
user_id: string | null;
|
|
13
474
|
};
|
|
14
475
|
Insert: {
|
|
15
|
-
|
|
476
|
+
amount: number;
|
|
477
|
+
created_at?: string;
|
|
478
|
+
credits_transaction_id?: string | null;
|
|
479
|
+
currency_code: string;
|
|
16
480
|
id?: string;
|
|
17
481
|
metadata?: Json | null;
|
|
18
|
-
|
|
482
|
+
player_id?: string | null;
|
|
483
|
+
prize_pool_id?: string | null;
|
|
484
|
+
provider_payout_id?: string | null;
|
|
485
|
+
source_event_id?: string | null;
|
|
486
|
+
type: Database["commerce"]["Enums"]["prize_money_transaction_type"];
|
|
487
|
+
user_id?: string | null;
|
|
19
488
|
};
|
|
20
489
|
Update: {
|
|
21
|
-
|
|
490
|
+
amount?: number;
|
|
491
|
+
created_at?: string;
|
|
492
|
+
credits_transaction_id?: string | null;
|
|
493
|
+
currency_code?: string;
|
|
22
494
|
id?: string;
|
|
23
495
|
metadata?: Json | null;
|
|
24
|
-
|
|
496
|
+
player_id?: string | null;
|
|
497
|
+
prize_pool_id?: string | null;
|
|
498
|
+
provider_payout_id?: string | null;
|
|
499
|
+
source_event_id?: string | null;
|
|
500
|
+
type?: Database["commerce"]["Enums"]["prize_money_transaction_type"];
|
|
501
|
+
user_id?: string | null;
|
|
502
|
+
};
|
|
503
|
+
Relationships: [];
|
|
504
|
+
};
|
|
505
|
+
shipments: {
|
|
506
|
+
Row: {
|
|
507
|
+
address: Json;
|
|
508
|
+
carrier: string | null;
|
|
509
|
+
created_at: string;
|
|
510
|
+
fulfillment_status: Database["commerce"]["Enums"]["fulfillment_status"];
|
|
511
|
+
id: string;
|
|
512
|
+
order_id: string;
|
|
513
|
+
player_id: string;
|
|
514
|
+
tracking_number: string | null;
|
|
515
|
+
updated_at: string;
|
|
516
|
+
user_id: string | null;
|
|
517
|
+
};
|
|
518
|
+
Insert: {
|
|
519
|
+
address: Json;
|
|
520
|
+
carrier?: string | null;
|
|
521
|
+
created_at?: string;
|
|
522
|
+
fulfillment_status: Database["commerce"]["Enums"]["fulfillment_status"];
|
|
523
|
+
id?: string;
|
|
524
|
+
order_id: string;
|
|
525
|
+
player_id: string;
|
|
526
|
+
tracking_number?: string | null;
|
|
527
|
+
updated_at?: string;
|
|
528
|
+
user_id?: string | null;
|
|
529
|
+
};
|
|
530
|
+
Update: {
|
|
531
|
+
address?: Json;
|
|
532
|
+
carrier?: string | null;
|
|
533
|
+
created_at?: string;
|
|
534
|
+
fulfillment_status?: Database["commerce"]["Enums"]["fulfillment_status"];
|
|
535
|
+
id?: string;
|
|
536
|
+
order_id?: string;
|
|
537
|
+
player_id?: string;
|
|
538
|
+
tracking_number?: string | null;
|
|
539
|
+
updated_at?: string;
|
|
540
|
+
user_id?: string | null;
|
|
541
|
+
};
|
|
542
|
+
Relationships: [
|
|
543
|
+
{
|
|
544
|
+
foreignKeyName: "shipments_order_id_fkey";
|
|
545
|
+
columns: ["order_id"];
|
|
546
|
+
isOneToOne: false;
|
|
547
|
+
referencedRelation: "orders";
|
|
548
|
+
referencedColumns: ["id"];
|
|
549
|
+
}
|
|
550
|
+
];
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
Views: {
|
|
554
|
+
[_ in never]: never;
|
|
555
|
+
};
|
|
556
|
+
Functions: {
|
|
557
|
+
award_xp_for_order: {
|
|
558
|
+
Args: {
|
|
559
|
+
p_order_id: string;
|
|
560
|
+
};
|
|
561
|
+
Returns: undefined;
|
|
562
|
+
};
|
|
563
|
+
convert_xp_to_credits: {
|
|
564
|
+
Args: {
|
|
565
|
+
p_amount_cents: number;
|
|
566
|
+
p_currency_code: string;
|
|
567
|
+
p_player_id: string;
|
|
568
|
+
p_source_event_id?: string;
|
|
569
|
+
p_user_id: string;
|
|
25
570
|
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
571
|
+
Returns: string;
|
|
572
|
+
};
|
|
573
|
+
kxp_order_reward_amount: {
|
|
574
|
+
Args: never;
|
|
575
|
+
Returns: number;
|
|
576
|
+
};
|
|
577
|
+
validate_prize_pool_splits: {
|
|
578
|
+
Args: {
|
|
579
|
+
p_prize_pool_id: string;
|
|
580
|
+
};
|
|
581
|
+
Returns: boolean;
|
|
35
582
|
};
|
|
583
|
+
};
|
|
584
|
+
Enums: {
|
|
585
|
+
fulfillment_status: "pending" | "shipped" | "delivered" | "returned";
|
|
586
|
+
item_condition: "new" | "like_new" | "good" | "fair" | "refurbished";
|
|
587
|
+
listing_status: "pending" | "active" | "sold" | "withdrawn";
|
|
588
|
+
order_status: "pending" | "paid" | "completed" | "cancelled" | "refunded";
|
|
589
|
+
payment_method_type: "mobile_money" | "bank" | "card";
|
|
590
|
+
payment_status: "pending" | "succeeded" | "failed" | "refunded";
|
|
591
|
+
prize_money_transaction_type: "organiser_deposit" | "donation" | "pool_payout" | "winnings" | "withdrawal" | "convert_to_credits";
|
|
592
|
+
reservation_status: "requested" | "approved" | "rejected" | "cancelled_by_buyer";
|
|
593
|
+
};
|
|
594
|
+
CompositeTypes: {
|
|
595
|
+
[_ in never]: never;
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
competitions: {
|
|
599
|
+
Tables: {
|
|
36
600
|
challenges: {
|
|
37
601
|
Row: {
|
|
38
602
|
created_at: string | null;
|
|
39
603
|
created_by: string;
|
|
40
604
|
description: string | null;
|
|
41
605
|
id: string;
|
|
606
|
+
maximum_age_check_type: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
607
|
+
maximum_age_years: number | null;
|
|
42
608
|
metadata: Json | null;
|
|
609
|
+
minimum_age_check_type: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
610
|
+
minimum_age_years: number | null;
|
|
43
611
|
name: string;
|
|
44
612
|
participant_type: Database["competitions"]["Enums"]["event_participant_type"];
|
|
613
|
+
rankings_enabled: boolean;
|
|
45
614
|
};
|
|
46
615
|
Insert: {
|
|
47
616
|
created_at?: string | null;
|
|
48
617
|
created_by: string;
|
|
49
618
|
description?: string | null;
|
|
50
619
|
id?: string;
|
|
620
|
+
maximum_age_check_type?: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
621
|
+
maximum_age_years?: number | null;
|
|
51
622
|
metadata?: Json | null;
|
|
623
|
+
minimum_age_check_type?: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
624
|
+
minimum_age_years?: number | null;
|
|
52
625
|
name: string;
|
|
53
626
|
participant_type: Database["competitions"]["Enums"]["event_participant_type"];
|
|
627
|
+
rankings_enabled?: boolean;
|
|
54
628
|
};
|
|
55
629
|
Update: {
|
|
56
630
|
created_at?: string | null;
|
|
57
631
|
created_by?: string;
|
|
58
632
|
description?: string | null;
|
|
59
633
|
id?: string;
|
|
634
|
+
maximum_age_check_type?: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
635
|
+
maximum_age_years?: number | null;
|
|
60
636
|
metadata?: Json | null;
|
|
637
|
+
minimum_age_check_type?: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
638
|
+
minimum_age_years?: number | null;
|
|
61
639
|
name?: string;
|
|
62
640
|
participant_type?: Database["competitions"]["Enums"]["event_participant_type"];
|
|
641
|
+
rankings_enabled?: boolean;
|
|
63
642
|
};
|
|
64
643
|
Relationships: [];
|
|
65
644
|
};
|
|
645
|
+
challenges_division_participants: {
|
|
646
|
+
Row: {
|
|
647
|
+
created_at: string | null;
|
|
648
|
+
division_id: string;
|
|
649
|
+
id: string;
|
|
650
|
+
player_id: string | null;
|
|
651
|
+
team_id: string | null;
|
|
652
|
+
updated_at: string | null;
|
|
653
|
+
};
|
|
654
|
+
Insert: {
|
|
655
|
+
created_at?: string | null;
|
|
656
|
+
division_id: string;
|
|
657
|
+
id?: string;
|
|
658
|
+
player_id?: string | null;
|
|
659
|
+
team_id?: string | null;
|
|
660
|
+
updated_at?: string | null;
|
|
661
|
+
};
|
|
662
|
+
Update: {
|
|
663
|
+
created_at?: string | null;
|
|
664
|
+
division_id?: string;
|
|
665
|
+
id?: string;
|
|
666
|
+
player_id?: string | null;
|
|
667
|
+
team_id?: string | null;
|
|
668
|
+
updated_at?: string | null;
|
|
669
|
+
};
|
|
670
|
+
Relationships: [
|
|
671
|
+
{
|
|
672
|
+
foreignKeyName: "challenges_division_participants_division_id_fkey";
|
|
673
|
+
columns: ["division_id"];
|
|
674
|
+
isOneToOne: false;
|
|
675
|
+
referencedRelation: "challenges_divisions";
|
|
676
|
+
referencedColumns: ["id"];
|
|
677
|
+
}
|
|
678
|
+
];
|
|
679
|
+
};
|
|
66
680
|
challenges_divisions: {
|
|
67
681
|
Row: {
|
|
68
682
|
created_at: string | null;
|
|
@@ -101,40 +715,51 @@ export type Database = {
|
|
|
101
715
|
}
|
|
102
716
|
];
|
|
103
717
|
};
|
|
104
|
-
|
|
718
|
+
challenges_edition_fixture_requests: {
|
|
105
719
|
Row: {
|
|
720
|
+
challenged_participant_id: string;
|
|
721
|
+
challenger_participant_id: string;
|
|
106
722
|
created_at: string | null;
|
|
107
|
-
disqualification_reason: string | null;
|
|
108
|
-
disqualified_at: string | null;
|
|
109
723
|
edition_id: string;
|
|
110
724
|
id: string;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
team_id: string | null;
|
|
725
|
+
responded_at: string | null;
|
|
726
|
+
status: string;
|
|
114
727
|
};
|
|
115
728
|
Insert: {
|
|
729
|
+
challenged_participant_id: string;
|
|
730
|
+
challenger_participant_id: string;
|
|
116
731
|
created_at?: string | null;
|
|
117
|
-
disqualification_reason?: string | null;
|
|
118
|
-
disqualified_at?: string | null;
|
|
119
732
|
edition_id: string;
|
|
120
733
|
id?: string;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
team_id?: string | null;
|
|
734
|
+
responded_at?: string | null;
|
|
735
|
+
status?: string;
|
|
124
736
|
};
|
|
125
737
|
Update: {
|
|
738
|
+
challenged_participant_id?: string;
|
|
739
|
+
challenger_participant_id?: string;
|
|
126
740
|
created_at?: string | null;
|
|
127
|
-
disqualification_reason?: string | null;
|
|
128
|
-
disqualified_at?: string | null;
|
|
129
741
|
edition_id?: string;
|
|
130
742
|
id?: string;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
team_id?: string | null;
|
|
743
|
+
responded_at?: string | null;
|
|
744
|
+
status?: string;
|
|
134
745
|
};
|
|
135
746
|
Relationships: [
|
|
136
747
|
{
|
|
137
|
-
foreignKeyName: "
|
|
748
|
+
foreignKeyName: "challenges_edition_fixture_requests_challenged_fkey";
|
|
749
|
+
columns: ["challenged_participant_id"];
|
|
750
|
+
isOneToOne: false;
|
|
751
|
+
referencedRelation: "challenges_division_participants";
|
|
752
|
+
referencedColumns: ["id"];
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
foreignKeyName: "challenges_edition_fixture_requests_challenger_fkey";
|
|
756
|
+
columns: ["challenger_participant_id"];
|
|
757
|
+
isOneToOne: false;
|
|
758
|
+
referencedRelation: "challenges_division_participants";
|
|
759
|
+
referencedColumns: ["id"];
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
foreignKeyName: "challenges_edition_fixture_requests_edition_id_fkey";
|
|
138
763
|
columns: ["edition_id"];
|
|
139
764
|
isOneToOne: false;
|
|
140
765
|
referencedRelation: "challenges_editions";
|
|
@@ -147,37 +772,37 @@ export type Database = {
|
|
|
147
772
|
created_at: string | null;
|
|
148
773
|
description: string | null;
|
|
149
774
|
division_id: string;
|
|
150
|
-
edition_order: number;
|
|
151
775
|
end_time: string | null;
|
|
152
776
|
id: string;
|
|
777
|
+
lounge_branch_id: string | null;
|
|
153
778
|
metadata: Json | null;
|
|
154
779
|
name: string;
|
|
155
780
|
start_time: string;
|
|
156
|
-
venue: Json;
|
|
781
|
+
venue: Json | null;
|
|
157
782
|
};
|
|
158
783
|
Insert: {
|
|
159
784
|
created_at?: string | null;
|
|
160
785
|
description?: string | null;
|
|
161
786
|
division_id: string;
|
|
162
|
-
edition_order: number;
|
|
163
787
|
end_time?: string | null;
|
|
164
788
|
id?: string;
|
|
789
|
+
lounge_branch_id?: string | null;
|
|
165
790
|
metadata?: Json | null;
|
|
166
791
|
name: string;
|
|
167
792
|
start_time: string;
|
|
168
|
-
venue
|
|
793
|
+
venue?: Json | null;
|
|
169
794
|
};
|
|
170
795
|
Update: {
|
|
171
796
|
created_at?: string | null;
|
|
172
797
|
description?: string | null;
|
|
173
798
|
division_id?: string;
|
|
174
|
-
edition_order?: number;
|
|
175
799
|
end_time?: string | null;
|
|
176
800
|
id?: string;
|
|
801
|
+
lounge_branch_id?: string | null;
|
|
177
802
|
metadata?: Json | null;
|
|
178
803
|
name?: string;
|
|
179
804
|
start_time?: string;
|
|
180
|
-
venue?: Json;
|
|
805
|
+
venue?: Json | null;
|
|
181
806
|
};
|
|
182
807
|
Relationships: [
|
|
183
808
|
{
|
|
@@ -485,6 +1110,67 @@ export type Database = {
|
|
|
485
1110
|
}
|
|
486
1111
|
];
|
|
487
1112
|
};
|
|
1113
|
+
competition_ratings: {
|
|
1114
|
+
Row: {
|
|
1115
|
+
challenges_edition_id: string | null;
|
|
1116
|
+
created_at: string | null;
|
|
1117
|
+
id: string;
|
|
1118
|
+
league_tournament_id: string | null;
|
|
1119
|
+
locals_tournament_id: string | null;
|
|
1120
|
+
rateable_type: string;
|
|
1121
|
+
rater_id: string;
|
|
1122
|
+
rating: number;
|
|
1123
|
+
review_text: string | null;
|
|
1124
|
+
updated_at: string | null;
|
|
1125
|
+
};
|
|
1126
|
+
Insert: {
|
|
1127
|
+
challenges_edition_id?: string | null;
|
|
1128
|
+
created_at?: string | null;
|
|
1129
|
+
id?: string;
|
|
1130
|
+
league_tournament_id?: string | null;
|
|
1131
|
+
locals_tournament_id?: string | null;
|
|
1132
|
+
rateable_type: string;
|
|
1133
|
+
rater_id: string;
|
|
1134
|
+
rating: number;
|
|
1135
|
+
review_text?: string | null;
|
|
1136
|
+
updated_at?: string | null;
|
|
1137
|
+
};
|
|
1138
|
+
Update: {
|
|
1139
|
+
challenges_edition_id?: string | null;
|
|
1140
|
+
created_at?: string | null;
|
|
1141
|
+
id?: string;
|
|
1142
|
+
league_tournament_id?: string | null;
|
|
1143
|
+
locals_tournament_id?: string | null;
|
|
1144
|
+
rateable_type?: string;
|
|
1145
|
+
rater_id?: string;
|
|
1146
|
+
rating?: number;
|
|
1147
|
+
review_text?: string | null;
|
|
1148
|
+
updated_at?: string | null;
|
|
1149
|
+
};
|
|
1150
|
+
Relationships: [
|
|
1151
|
+
{
|
|
1152
|
+
foreignKeyName: "competition_ratings_challenges_edition_id_fkey";
|
|
1153
|
+
columns: ["challenges_edition_id"];
|
|
1154
|
+
isOneToOne: false;
|
|
1155
|
+
referencedRelation: "challenges_editions";
|
|
1156
|
+
referencedColumns: ["id"];
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
foreignKeyName: "competition_ratings_league_tournament_id_fkey";
|
|
1160
|
+
columns: ["league_tournament_id"];
|
|
1161
|
+
isOneToOne: false;
|
|
1162
|
+
referencedRelation: "league_tournaments";
|
|
1163
|
+
referencedColumns: ["id"];
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
foreignKeyName: "competition_ratings_locals_tournament_id_fkey";
|
|
1167
|
+
columns: ["locals_tournament_id"];
|
|
1168
|
+
isOneToOne: false;
|
|
1169
|
+
referencedRelation: "locals_tournaments";
|
|
1170
|
+
referencedColumns: ["id"];
|
|
1171
|
+
}
|
|
1172
|
+
];
|
|
1173
|
+
};
|
|
488
1174
|
event_participants: {
|
|
489
1175
|
Row: {
|
|
490
1176
|
checked_in_at: string | null;
|
|
@@ -535,8 +1221,8 @@ export type Database = {
|
|
|
535
1221
|
events: {
|
|
536
1222
|
Row: {
|
|
537
1223
|
challenges_edition_id: string | null;
|
|
538
|
-
check_in_buffer:
|
|
539
|
-
check_in_duration:
|
|
1224
|
+
check_in_buffer: string | null;
|
|
1225
|
+
check_in_duration: string | null;
|
|
540
1226
|
console_id: string | null;
|
|
541
1227
|
created_at: string | null;
|
|
542
1228
|
description: string | null;
|
|
@@ -548,17 +1234,22 @@ export type Database = {
|
|
|
548
1234
|
league_tournament_id: string | null;
|
|
549
1235
|
locals_tournament_id: string | null;
|
|
550
1236
|
lounge_branch_id: string | null;
|
|
1237
|
+
maximum_age_check_type: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
1238
|
+
maximum_age_years: number | null;
|
|
551
1239
|
metadata: Json | null;
|
|
1240
|
+
minimum_age_check_type: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
1241
|
+
minimum_age_years: number | null;
|
|
552
1242
|
name: string;
|
|
553
1243
|
participant_type: Database["competitions"]["Enums"]["event_participant_type"];
|
|
1244
|
+
registration_buffer: string | null;
|
|
554
1245
|
start_time: string | null;
|
|
555
1246
|
status: Database["competitions"]["Enums"]["event_status"] | null;
|
|
556
1247
|
venue: Json | null;
|
|
557
1248
|
};
|
|
558
1249
|
Insert: {
|
|
559
1250
|
challenges_edition_id?: string | null;
|
|
560
|
-
check_in_buffer?:
|
|
561
|
-
check_in_duration?:
|
|
1251
|
+
check_in_buffer?: string | null;
|
|
1252
|
+
check_in_duration?: string | null;
|
|
562
1253
|
console_id?: string | null;
|
|
563
1254
|
created_at?: string | null;
|
|
564
1255
|
description?: string | null;
|
|
@@ -570,257 +1261,92 @@ export type Database = {
|
|
|
570
1261
|
league_tournament_id?: string | null;
|
|
571
1262
|
locals_tournament_id?: string | null;
|
|
572
1263
|
lounge_branch_id?: string | null;
|
|
1264
|
+
maximum_age_check_type?: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
1265
|
+
maximum_age_years?: number | null;
|
|
573
1266
|
metadata?: Json | null;
|
|
1267
|
+
minimum_age_check_type?: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
1268
|
+
minimum_age_years?: number | null;
|
|
574
1269
|
name: string;
|
|
575
1270
|
participant_type: Database["competitions"]["Enums"]["event_participant_type"];
|
|
1271
|
+
registration_buffer?: string | null;
|
|
576
1272
|
start_time?: string | null;
|
|
577
|
-
status?: Database["competitions"]["Enums"]["event_status"] | null;
|
|
578
|
-
venue?: Json | null;
|
|
579
|
-
};
|
|
580
|
-
Update: {
|
|
581
|
-
challenges_edition_id?: string | null;
|
|
582
|
-
check_in_buffer?: unknown | null;
|
|
583
|
-
check_in_duration?: unknown | null;
|
|
584
|
-
console_id?: string | null;
|
|
585
|
-
created_at?: string | null;
|
|
586
|
-
description?: string | null;
|
|
587
|
-
end_time?: string | null;
|
|
588
|
-
game_id?: string | null;
|
|
589
|
-
game_title?: string | null;
|
|
590
|
-
id?: string;
|
|
591
|
-
is_online?: boolean | null;
|
|
592
|
-
league_tournament_id?: string | null;
|
|
593
|
-
locals_tournament_id?: string | null;
|
|
594
|
-
lounge_branch_id?: string | null;
|
|
595
|
-
metadata?: Json | null;
|
|
596
|
-
name?: string;
|
|
597
|
-
participant_type?: Database["competitions"]["Enums"]["event_participant_type"];
|
|
598
|
-
start_time?: string | null;
|
|
599
|
-
status?: Database["competitions"]["Enums"]["event_status"] | null;
|
|
600
|
-
venue?: Json | null;
|
|
601
|
-
};
|
|
602
|
-
Relationships: [
|
|
603
|
-
{
|
|
604
|
-
foreignKeyName: "events_challenges_edition_id_fkey";
|
|
605
|
-
columns: ["challenges_edition_id"];
|
|
606
|
-
isOneToOne: false;
|
|
607
|
-
referencedRelation: "challenges_editions";
|
|
608
|
-
referencedColumns: ["id"];
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
foreignKeyName: "events_league_tournament_id_fkey";
|
|
612
|
-
columns: ["league_tournament_id"];
|
|
613
|
-
isOneToOne: false;
|
|
614
|
-
referencedRelation: "league_tournaments";
|
|
615
|
-
referencedColumns: ["id"];
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
foreignKeyName: "events_locals_tournament_id_fkey";
|
|
619
|
-
columns: ["locals_tournament_id"];
|
|
620
|
-
isOneToOne: false;
|
|
621
|
-
referencedRelation: "locals_tournaments";
|
|
622
|
-
referencedColumns: ["id"];
|
|
623
|
-
}
|
|
624
|
-
];
|
|
625
|
-
};
|
|
626
|
-
external_providers: {
|
|
627
|
-
Row: {
|
|
628
|
-
created_at: string | null;
|
|
629
|
-
metadata: Json | null;
|
|
630
|
-
provider: string;
|
|
631
|
-
provider_id: string;
|
|
632
|
-
user_id: string;
|
|
633
|
-
};
|
|
634
|
-
Insert: {
|
|
635
|
-
created_at?: string | null;
|
|
636
|
-
metadata?: Json | null;
|
|
637
|
-
provider: string;
|
|
638
|
-
provider_id: string;
|
|
639
|
-
user_id: string;
|
|
640
|
-
};
|
|
641
|
-
Update: {
|
|
642
|
-
created_at?: string | null;
|
|
643
|
-
metadata?: Json | null;
|
|
644
|
-
provider?: string;
|
|
645
|
-
provider_id?: string;
|
|
646
|
-
user_id?: string;
|
|
647
|
-
};
|
|
648
|
-
Relationships: [];
|
|
649
|
-
};
|
|
650
|
-
fighting_game_match_rounds: {
|
|
651
|
-
Row: {
|
|
652
|
-
created_at: string | null;
|
|
653
|
-
duration: unknown | null;
|
|
654
|
-
fighting_game_match_id: string;
|
|
655
|
-
metadata: Json | null;
|
|
656
|
-
round_number: number;
|
|
657
|
-
winner_id: string | null;
|
|
658
|
-
};
|
|
659
|
-
Insert: {
|
|
660
|
-
created_at?: string | null;
|
|
661
|
-
duration?: unknown | null;
|
|
662
|
-
fighting_game_match_id: string;
|
|
663
|
-
metadata?: Json | null;
|
|
664
|
-
round_number: number;
|
|
665
|
-
winner_id?: string | null;
|
|
666
|
-
};
|
|
667
|
-
Update: {
|
|
668
|
-
created_at?: string | null;
|
|
669
|
-
duration?: unknown | null;
|
|
670
|
-
fighting_game_match_id?: string;
|
|
671
|
-
metadata?: Json | null;
|
|
672
|
-
round_number?: number;
|
|
673
|
-
winner_id?: string | null;
|
|
674
|
-
};
|
|
675
|
-
Relationships: [
|
|
676
|
-
{
|
|
677
|
-
foreignKeyName: "fighting_game_match_rounds_fighting_game_match_id_fkey";
|
|
678
|
-
columns: ["fighting_game_match_id"];
|
|
679
|
-
isOneToOne: false;
|
|
680
|
-
referencedRelation: "fighting_game_matches";
|
|
681
|
-
referencedColumns: ["id"];
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
foreignKeyName: "fighting_game_match_rounds_winner_id_fkey";
|
|
685
|
-
columns: ["winner_id"];
|
|
686
|
-
isOneToOne: false;
|
|
687
|
-
referencedRelation: "event_participants";
|
|
688
|
-
referencedColumns: ["id"];
|
|
689
|
-
}
|
|
690
|
-
];
|
|
691
|
-
};
|
|
692
|
-
fighting_game_matches: {
|
|
693
|
-
Row: {
|
|
694
|
-
characters1_ids: string[];
|
|
695
|
-
characters2_ids: string[];
|
|
696
|
-
created_at: string | null;
|
|
697
|
-
generic_match_id: string;
|
|
698
|
-
id: string;
|
|
699
|
-
};
|
|
700
|
-
Insert: {
|
|
701
|
-
characters1_ids: string[];
|
|
702
|
-
characters2_ids: string[];
|
|
703
|
-
created_at?: string | null;
|
|
704
|
-
generic_match_id: string;
|
|
705
|
-
id?: string;
|
|
706
|
-
};
|
|
707
|
-
Update: {
|
|
708
|
-
characters1_ids?: string[];
|
|
709
|
-
characters2_ids?: string[];
|
|
710
|
-
created_at?: string | null;
|
|
711
|
-
generic_match_id?: string;
|
|
712
|
-
id?: string;
|
|
713
|
-
};
|
|
714
|
-
Relationships: [
|
|
715
|
-
{
|
|
716
|
-
foreignKeyName: "fighting_game_matches_generic_match_id_fkey";
|
|
717
|
-
columns: ["generic_match_id"];
|
|
718
|
-
isOneToOne: false;
|
|
719
|
-
referencedRelation: "generic_matches";
|
|
720
|
-
referencedColumns: ["id"];
|
|
721
|
-
}
|
|
722
|
-
];
|
|
723
|
-
};
|
|
724
|
-
football_match_goals: {
|
|
725
|
-
Row: {
|
|
726
|
-
created_at: string | null;
|
|
727
|
-
generic_match_id: string;
|
|
728
|
-
goal_number: number;
|
|
729
|
-
scorer_id: string;
|
|
730
|
-
time_scored: unknown;
|
|
731
|
-
};
|
|
732
|
-
Insert: {
|
|
733
|
-
created_at?: string | null;
|
|
734
|
-
generic_match_id: string;
|
|
735
|
-
goal_number: number;
|
|
736
|
-
scorer_id: string;
|
|
737
|
-
time_scored: unknown;
|
|
1273
|
+
status?: Database["competitions"]["Enums"]["event_status"] | null;
|
|
1274
|
+
venue?: Json | null;
|
|
738
1275
|
};
|
|
739
1276
|
Update: {
|
|
1277
|
+
challenges_edition_id?: string | null;
|
|
1278
|
+
check_in_buffer?: string | null;
|
|
1279
|
+
check_in_duration?: string | null;
|
|
1280
|
+
console_id?: string | null;
|
|
740
1281
|
created_at?: string | null;
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
1282
|
+
description?: string | null;
|
|
1283
|
+
end_time?: string | null;
|
|
1284
|
+
game_id?: string | null;
|
|
1285
|
+
game_title?: string | null;
|
|
1286
|
+
id?: string;
|
|
1287
|
+
is_online?: boolean | null;
|
|
1288
|
+
league_tournament_id?: string | null;
|
|
1289
|
+
locals_tournament_id?: string | null;
|
|
1290
|
+
lounge_branch_id?: string | null;
|
|
1291
|
+
maximum_age_check_type?: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
1292
|
+
maximum_age_years?: number | null;
|
|
1293
|
+
metadata?: Json | null;
|
|
1294
|
+
minimum_age_check_type?: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
1295
|
+
minimum_age_years?: number | null;
|
|
1296
|
+
name?: string;
|
|
1297
|
+
participant_type?: Database["competitions"]["Enums"]["event_participant_type"];
|
|
1298
|
+
registration_buffer?: string | null;
|
|
1299
|
+
start_time?: string | null;
|
|
1300
|
+
status?: Database["competitions"]["Enums"]["event_status"] | null;
|
|
1301
|
+
venue?: Json | null;
|
|
745
1302
|
};
|
|
746
1303
|
Relationships: [
|
|
747
1304
|
{
|
|
748
|
-
foreignKeyName: "
|
|
749
|
-
columns: ["
|
|
1305
|
+
foreignKeyName: "events_challenges_edition_id_fkey";
|
|
1306
|
+
columns: ["challenges_edition_id"];
|
|
1307
|
+
isOneToOne: false;
|
|
1308
|
+
referencedRelation: "challenges_editions";
|
|
1309
|
+
referencedColumns: ["id"];
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
foreignKeyName: "events_league_tournament_id_fkey";
|
|
1313
|
+
columns: ["league_tournament_id"];
|
|
750
1314
|
isOneToOne: false;
|
|
751
|
-
referencedRelation: "
|
|
1315
|
+
referencedRelation: "league_tournaments";
|
|
752
1316
|
referencedColumns: ["id"];
|
|
753
1317
|
},
|
|
754
1318
|
{
|
|
755
|
-
foreignKeyName: "
|
|
756
|
-
columns: ["
|
|
1319
|
+
foreignKeyName: "events_locals_tournament_id_fkey";
|
|
1320
|
+
columns: ["locals_tournament_id"];
|
|
757
1321
|
isOneToOne: false;
|
|
758
|
-
referencedRelation: "
|
|
1322
|
+
referencedRelation: "locals_tournaments";
|
|
759
1323
|
referencedColumns: ["id"];
|
|
760
1324
|
}
|
|
761
1325
|
];
|
|
762
1326
|
};
|
|
763
|
-
|
|
1327
|
+
external_providers: {
|
|
764
1328
|
Row: {
|
|
765
|
-
base_match_id: string;
|
|
766
1329
|
created_at: string | null;
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
score2: number;
|
|
772
|
-
winner_id: string | null;
|
|
1330
|
+
metadata: Json | null;
|
|
1331
|
+
provider: string;
|
|
1332
|
+
provider_id: string;
|
|
1333
|
+
user_id: string;
|
|
773
1334
|
};
|
|
774
1335
|
Insert: {
|
|
775
|
-
base_match_id: string;
|
|
776
1336
|
created_at?: string | null;
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
score2: number;
|
|
782
|
-
winner_id?: string | null;
|
|
1337
|
+
metadata?: Json | null;
|
|
1338
|
+
provider: string;
|
|
1339
|
+
provider_id: string;
|
|
1340
|
+
user_id: string;
|
|
783
1341
|
};
|
|
784
1342
|
Update: {
|
|
785
|
-
base_match_id?: string;
|
|
786
1343
|
created_at?: string | null;
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
score2?: number;
|
|
792
|
-
winner_id?: string | null;
|
|
1344
|
+
metadata?: Json | null;
|
|
1345
|
+
provider?: string;
|
|
1346
|
+
provider_id?: string;
|
|
1347
|
+
user_id?: string;
|
|
793
1348
|
};
|
|
794
|
-
Relationships: [
|
|
795
|
-
{
|
|
796
|
-
foreignKeyName: "generic_matches_base_match_id_fkey";
|
|
797
|
-
columns: ["base_match_id"];
|
|
798
|
-
isOneToOne: false;
|
|
799
|
-
referencedRelation: "base_matches";
|
|
800
|
-
referencedColumns: ["id"];
|
|
801
|
-
},
|
|
802
|
-
{
|
|
803
|
-
foreignKeyName: "generic_matches_participant1_id_fkey";
|
|
804
|
-
columns: ["participant1_id"];
|
|
805
|
-
isOneToOne: false;
|
|
806
|
-
referencedRelation: "event_participants";
|
|
807
|
-
referencedColumns: ["id"];
|
|
808
|
-
},
|
|
809
|
-
{
|
|
810
|
-
foreignKeyName: "generic_matches_participant2_id_fkey";
|
|
811
|
-
columns: ["participant2_id"];
|
|
812
|
-
isOneToOne: false;
|
|
813
|
-
referencedRelation: "event_participants";
|
|
814
|
-
referencedColumns: ["id"];
|
|
815
|
-
},
|
|
816
|
-
{
|
|
817
|
-
foreignKeyName: "generic_matches_winner_id_fkey";
|
|
818
|
-
columns: ["winner_id"];
|
|
819
|
-
isOneToOne: false;
|
|
820
|
-
referencedRelation: "event_participants";
|
|
821
|
-
referencedColumns: ["id"];
|
|
822
|
-
}
|
|
823
|
-
];
|
|
1349
|
+
Relationships: [];
|
|
824
1350
|
};
|
|
825
1351
|
league_divisions: {
|
|
826
1352
|
Row: {
|
|
@@ -898,59 +1424,6 @@ export type Database = {
|
|
|
898
1424
|
}
|
|
899
1425
|
];
|
|
900
1426
|
};
|
|
901
|
-
league_rankings: {
|
|
902
|
-
Row: {
|
|
903
|
-
event_id: string;
|
|
904
|
-
event_participant_id: string;
|
|
905
|
-
league_id: string;
|
|
906
|
-
points: number;
|
|
907
|
-
season_id: string;
|
|
908
|
-
};
|
|
909
|
-
Insert: {
|
|
910
|
-
event_id: string;
|
|
911
|
-
event_participant_id: string;
|
|
912
|
-
league_id: string;
|
|
913
|
-
points?: number;
|
|
914
|
-
season_id: string;
|
|
915
|
-
};
|
|
916
|
-
Update: {
|
|
917
|
-
event_id?: string;
|
|
918
|
-
event_participant_id?: string;
|
|
919
|
-
league_id?: string;
|
|
920
|
-
points?: number;
|
|
921
|
-
season_id?: string;
|
|
922
|
-
};
|
|
923
|
-
Relationships: [
|
|
924
|
-
{
|
|
925
|
-
foreignKeyName: "league_rankings_event_id_fkey";
|
|
926
|
-
columns: ["event_id"];
|
|
927
|
-
isOneToOne: false;
|
|
928
|
-
referencedRelation: "events";
|
|
929
|
-
referencedColumns: ["id"];
|
|
930
|
-
},
|
|
931
|
-
{
|
|
932
|
-
foreignKeyName: "league_rankings_event_participant_id_fkey";
|
|
933
|
-
columns: ["event_participant_id"];
|
|
934
|
-
isOneToOne: false;
|
|
935
|
-
referencedRelation: "event_participants";
|
|
936
|
-
referencedColumns: ["id"];
|
|
937
|
-
},
|
|
938
|
-
{
|
|
939
|
-
foreignKeyName: "league_rankings_league_id_fkey";
|
|
940
|
-
columns: ["league_id"];
|
|
941
|
-
isOneToOne: false;
|
|
942
|
-
referencedRelation: "leagues";
|
|
943
|
-
referencedColumns: ["id"];
|
|
944
|
-
},
|
|
945
|
-
{
|
|
946
|
-
foreignKeyName: "league_rankings_season_id_fkey";
|
|
947
|
-
columns: ["season_id"];
|
|
948
|
-
isOneToOne: false;
|
|
949
|
-
referencedRelation: "league_seasons";
|
|
950
|
-
referencedColumns: ["id"];
|
|
951
|
-
}
|
|
952
|
-
];
|
|
953
|
-
};
|
|
954
1427
|
league_season_participants: {
|
|
955
1428
|
Row: {
|
|
956
1429
|
created_at: string | null;
|
|
@@ -1000,9 +1473,15 @@ export type Database = {
|
|
|
1000
1473
|
division_id: string;
|
|
1001
1474
|
end_date: string | null;
|
|
1002
1475
|
id: string;
|
|
1476
|
+
include_decider: boolean;
|
|
1477
|
+
include_redemption: boolean;
|
|
1478
|
+
maximum_age_check_type: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
1479
|
+
maximum_age_years: number | null;
|
|
1003
1480
|
metadata: Json | null;
|
|
1481
|
+
minimum_age_check_type: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
1482
|
+
minimum_age_years: number | null;
|
|
1004
1483
|
name: string;
|
|
1005
|
-
|
|
1484
|
+
regular_phase_scoring: Database["competitions"]["Enums"]["league_regular_scoring_type"];
|
|
1006
1485
|
start_date: string | null;
|
|
1007
1486
|
status: Database["competitions"]["Enums"]["event_status"] | null;
|
|
1008
1487
|
suspended_at: string | null;
|
|
@@ -1014,9 +1493,15 @@ export type Database = {
|
|
|
1014
1493
|
division_id: string;
|
|
1015
1494
|
end_date?: string | null;
|
|
1016
1495
|
id?: string;
|
|
1496
|
+
include_decider?: boolean;
|
|
1497
|
+
include_redemption?: boolean;
|
|
1498
|
+
maximum_age_check_type?: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
1499
|
+
maximum_age_years?: number | null;
|
|
1017
1500
|
metadata?: Json | null;
|
|
1501
|
+
minimum_age_check_type?: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
1502
|
+
minimum_age_years?: number | null;
|
|
1018
1503
|
name: string;
|
|
1019
|
-
|
|
1504
|
+
regular_phase_scoring?: Database["competitions"]["Enums"]["league_regular_scoring_type"];
|
|
1020
1505
|
start_date?: string | null;
|
|
1021
1506
|
status?: Database["competitions"]["Enums"]["event_status"] | null;
|
|
1022
1507
|
suspended_at?: string | null;
|
|
@@ -1028,9 +1513,15 @@ export type Database = {
|
|
|
1028
1513
|
division_id?: string;
|
|
1029
1514
|
end_date?: string | null;
|
|
1030
1515
|
id?: string;
|
|
1516
|
+
include_decider?: boolean;
|
|
1517
|
+
include_redemption?: boolean;
|
|
1518
|
+
maximum_age_check_type?: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
1519
|
+
maximum_age_years?: number | null;
|
|
1031
1520
|
metadata?: Json | null;
|
|
1521
|
+
minimum_age_check_type?: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
1522
|
+
minimum_age_years?: number | null;
|
|
1032
1523
|
name?: string;
|
|
1033
|
-
|
|
1524
|
+
regular_phase_scoring?: Database["competitions"]["Enums"]["league_regular_scoring_type"];
|
|
1034
1525
|
start_date?: string | null;
|
|
1035
1526
|
status?: Database["competitions"]["Enums"]["event_status"] | null;
|
|
1036
1527
|
suspended_at?: string | null;
|
|
@@ -1086,39 +1577,87 @@ export type Database = {
|
|
|
1086
1577
|
}
|
|
1087
1578
|
];
|
|
1088
1579
|
};
|
|
1580
|
+
league_tournament_event_placings: {
|
|
1581
|
+
Row: {
|
|
1582
|
+
created_at: string | null;
|
|
1583
|
+
event_id: string;
|
|
1584
|
+
event_participant_id: string;
|
|
1585
|
+
final_place: number;
|
|
1586
|
+
id: string;
|
|
1587
|
+
points: number;
|
|
1588
|
+
};
|
|
1589
|
+
Insert: {
|
|
1590
|
+
created_at?: string | null;
|
|
1591
|
+
event_id: string;
|
|
1592
|
+
event_participant_id: string;
|
|
1593
|
+
final_place: number;
|
|
1594
|
+
id?: string;
|
|
1595
|
+
points: number;
|
|
1596
|
+
};
|
|
1597
|
+
Update: {
|
|
1598
|
+
created_at?: string | null;
|
|
1599
|
+
event_id?: string;
|
|
1600
|
+
event_participant_id?: string;
|
|
1601
|
+
final_place?: number;
|
|
1602
|
+
id?: string;
|
|
1603
|
+
points?: number;
|
|
1604
|
+
};
|
|
1605
|
+
Relationships: [
|
|
1606
|
+
{
|
|
1607
|
+
foreignKeyName: "league_tournament_event_placings_event_id_fkey";
|
|
1608
|
+
columns: ["event_id"];
|
|
1609
|
+
isOneToOne: false;
|
|
1610
|
+
referencedRelation: "events";
|
|
1611
|
+
referencedColumns: ["id"];
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
foreignKeyName: "league_tournament_event_placings_event_participant_id_fkey";
|
|
1615
|
+
columns: ["event_participant_id"];
|
|
1616
|
+
isOneToOne: false;
|
|
1617
|
+
referencedRelation: "event_participants";
|
|
1618
|
+
referencedColumns: ["id"];
|
|
1619
|
+
}
|
|
1620
|
+
];
|
|
1621
|
+
};
|
|
1089
1622
|
league_tournaments: {
|
|
1090
1623
|
Row: {
|
|
1091
1624
|
created_at: string;
|
|
1092
1625
|
description: string | null;
|
|
1093
1626
|
end_time: string | null;
|
|
1094
1627
|
id: string;
|
|
1628
|
+
lounge_branch_id: string | null;
|
|
1095
1629
|
metadata: Json | null;
|
|
1096
1630
|
name: string;
|
|
1097
1631
|
season_id: string;
|
|
1632
|
+
season_phase: Database["competitions"]["Enums"]["season_phase_type"];
|
|
1098
1633
|
start_time: string;
|
|
1099
|
-
venue: Json;
|
|
1634
|
+
venue: Json | null;
|
|
1100
1635
|
};
|
|
1101
1636
|
Insert: {
|
|
1102
1637
|
created_at?: string;
|
|
1103
1638
|
description?: string | null;
|
|
1104
1639
|
end_time?: string | null;
|
|
1105
1640
|
id?: string;
|
|
1641
|
+
lounge_branch_id?: string | null;
|
|
1106
1642
|
metadata?: Json | null;
|
|
1107
1643
|
name: string;
|
|
1108
1644
|
season_id: string;
|
|
1645
|
+
season_phase?: Database["competitions"]["Enums"]["season_phase_type"];
|
|
1109
1646
|
start_time: string;
|
|
1110
|
-
venue
|
|
1647
|
+
venue?: Json | null;
|
|
1111
1648
|
};
|
|
1112
1649
|
Update: {
|
|
1113
1650
|
created_at?: string;
|
|
1114
1651
|
description?: string | null;
|
|
1115
1652
|
end_time?: string | null;
|
|
1116
1653
|
id?: string;
|
|
1654
|
+
lounge_branch_id?: string | null;
|
|
1117
1655
|
metadata?: Json | null;
|
|
1118
1656
|
name?: string;
|
|
1119
1657
|
season_id?: string;
|
|
1658
|
+
season_phase?: Database["competitions"]["Enums"]["season_phase_type"];
|
|
1120
1659
|
start_time?: string;
|
|
1121
|
-
venue?: Json;
|
|
1660
|
+
venue?: Json | null;
|
|
1122
1661
|
};
|
|
1123
1662
|
Relationships: [
|
|
1124
1663
|
{
|
|
@@ -1136,7 +1675,11 @@ export type Database = {
|
|
|
1136
1675
|
created_by: string;
|
|
1137
1676
|
description: string | null;
|
|
1138
1677
|
id: string;
|
|
1678
|
+
maximum_age_check_type: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
1679
|
+
maximum_age_years: number | null;
|
|
1139
1680
|
metadata: Json | null;
|
|
1681
|
+
minimum_age_check_type: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
1682
|
+
minimum_age_years: number | null;
|
|
1140
1683
|
name: string;
|
|
1141
1684
|
participant_type: Database["competitions"]["Enums"]["event_participant_type"];
|
|
1142
1685
|
};
|
|
@@ -1145,7 +1688,11 @@ export type Database = {
|
|
|
1145
1688
|
created_by: string;
|
|
1146
1689
|
description?: string | null;
|
|
1147
1690
|
id?: string;
|
|
1691
|
+
maximum_age_check_type?: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
1692
|
+
maximum_age_years?: number | null;
|
|
1148
1693
|
metadata?: Json | null;
|
|
1694
|
+
minimum_age_check_type?: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
1695
|
+
minimum_age_years?: number | null;
|
|
1149
1696
|
name: string;
|
|
1150
1697
|
participant_type: Database["competitions"]["Enums"]["event_participant_type"];
|
|
1151
1698
|
};
|
|
@@ -1154,7 +1701,11 @@ export type Database = {
|
|
|
1154
1701
|
created_by?: string;
|
|
1155
1702
|
description?: string | null;
|
|
1156
1703
|
id?: string;
|
|
1704
|
+
maximum_age_check_type?: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
1705
|
+
maximum_age_years?: number | null;
|
|
1157
1706
|
metadata?: Json | null;
|
|
1707
|
+
minimum_age_check_type?: Database["competitions"]["Enums"]["age_check_type"] | null;
|
|
1708
|
+
minimum_age_years?: number | null;
|
|
1158
1709
|
name?: string;
|
|
1159
1710
|
participant_type?: Database["competitions"]["Enums"]["event_participant_type"];
|
|
1160
1711
|
};
|
|
@@ -1275,11 +1826,11 @@ export type Database = {
|
|
|
1275
1826
|
description: string | null;
|
|
1276
1827
|
end_time: string | null;
|
|
1277
1828
|
id: string;
|
|
1278
|
-
lounge_branch_id: string;
|
|
1829
|
+
lounge_branch_id: string | null;
|
|
1279
1830
|
metadata: Json | null;
|
|
1280
1831
|
name: string;
|
|
1281
|
-
participant_type: Database["competitions"]["Enums"]["event_participant_type"];
|
|
1282
1832
|
start_time: string;
|
|
1833
|
+
venue: Json | null;
|
|
1283
1834
|
};
|
|
1284
1835
|
Insert: {
|
|
1285
1836
|
created_at?: string;
|
|
@@ -1287,11 +1838,11 @@ export type Database = {
|
|
|
1287
1838
|
description?: string | null;
|
|
1288
1839
|
end_time?: string | null;
|
|
1289
1840
|
id?: string;
|
|
1290
|
-
lounge_branch_id
|
|
1841
|
+
lounge_branch_id?: string | null;
|
|
1291
1842
|
metadata?: Json | null;
|
|
1292
1843
|
name: string;
|
|
1293
|
-
participant_type: Database["competitions"]["Enums"]["event_participant_type"];
|
|
1294
1844
|
start_time: string;
|
|
1845
|
+
venue?: Json | null;
|
|
1295
1846
|
};
|
|
1296
1847
|
Update: {
|
|
1297
1848
|
created_at?: string;
|
|
@@ -1299,14 +1850,53 @@ export type Database = {
|
|
|
1299
1850
|
description?: string | null;
|
|
1300
1851
|
end_time?: string | null;
|
|
1301
1852
|
id?: string;
|
|
1302
|
-
lounge_branch_id?: string;
|
|
1853
|
+
lounge_branch_id?: string | null;
|
|
1303
1854
|
metadata?: Json | null;
|
|
1304
1855
|
name?: string;
|
|
1305
|
-
participant_type?: Database["competitions"]["Enums"]["event_participant_type"];
|
|
1306
1856
|
start_time?: string;
|
|
1857
|
+
venue?: Json | null;
|
|
1307
1858
|
};
|
|
1308
1859
|
Relationships: [];
|
|
1309
1860
|
};
|
|
1861
|
+
matches: {
|
|
1862
|
+
Row: {
|
|
1863
|
+
created_at: string | null;
|
|
1864
|
+
id: string;
|
|
1865
|
+
metadata: Json | null;
|
|
1866
|
+
set_id: string;
|
|
1867
|
+
winner_id: string | null;
|
|
1868
|
+
};
|
|
1869
|
+
Insert: {
|
|
1870
|
+
created_at?: string | null;
|
|
1871
|
+
id?: string;
|
|
1872
|
+
metadata?: Json | null;
|
|
1873
|
+
set_id: string;
|
|
1874
|
+
winner_id?: string | null;
|
|
1875
|
+
};
|
|
1876
|
+
Update: {
|
|
1877
|
+
created_at?: string | null;
|
|
1878
|
+
id?: string;
|
|
1879
|
+
metadata?: Json | null;
|
|
1880
|
+
set_id?: string;
|
|
1881
|
+
winner_id?: string | null;
|
|
1882
|
+
};
|
|
1883
|
+
Relationships: [
|
|
1884
|
+
{
|
|
1885
|
+
foreignKeyName: "matches_set_id_fkey";
|
|
1886
|
+
columns: ["set_id"];
|
|
1887
|
+
isOneToOne: false;
|
|
1888
|
+
referencedRelation: "sets";
|
|
1889
|
+
referencedColumns: ["id"];
|
|
1890
|
+
},
|
|
1891
|
+
{
|
|
1892
|
+
foreignKeyName: "matches_winner_id_fkey";
|
|
1893
|
+
columns: ["winner_id"];
|
|
1894
|
+
isOneToOne: false;
|
|
1895
|
+
referencedRelation: "event_participants";
|
|
1896
|
+
referencedColumns: ["id"];
|
|
1897
|
+
}
|
|
1898
|
+
];
|
|
1899
|
+
};
|
|
1310
1900
|
phase_entrants: {
|
|
1311
1901
|
Row: {
|
|
1312
1902
|
created_at: string | null;
|
|
@@ -1514,10 +2104,106 @@ export type Database = {
|
|
|
1514
2104
|
};
|
|
1515
2105
|
Relationships: [
|
|
1516
2106
|
{
|
|
1517
|
-
foreignKeyName: "phases_event_id_fkey";
|
|
1518
|
-
columns: ["event_id"];
|
|
2107
|
+
foreignKeyName: "phases_event_id_fkey";
|
|
2108
|
+
columns: ["event_id"];
|
|
2109
|
+
isOneToOne: false;
|
|
2110
|
+
referencedRelation: "events";
|
|
2111
|
+
referencedColumns: ["id"];
|
|
2112
|
+
}
|
|
2113
|
+
];
|
|
2114
|
+
};
|
|
2115
|
+
prize_pool_splits: {
|
|
2116
|
+
Row: {
|
|
2117
|
+
amount_cents: number | null;
|
|
2118
|
+
created_at: string | null;
|
|
2119
|
+
id: string;
|
|
2120
|
+
percentage: number | null;
|
|
2121
|
+
prize_pool_id: string;
|
|
2122
|
+
reference_id: string | null;
|
|
2123
|
+
split_kind: string;
|
|
2124
|
+
};
|
|
2125
|
+
Insert: {
|
|
2126
|
+
amount_cents?: number | null;
|
|
2127
|
+
created_at?: string | null;
|
|
2128
|
+
id?: string;
|
|
2129
|
+
percentage?: number | null;
|
|
2130
|
+
prize_pool_id: string;
|
|
2131
|
+
reference_id?: string | null;
|
|
2132
|
+
split_kind: string;
|
|
2133
|
+
};
|
|
2134
|
+
Update: {
|
|
2135
|
+
amount_cents?: number | null;
|
|
2136
|
+
created_at?: string | null;
|
|
2137
|
+
id?: string;
|
|
2138
|
+
percentage?: number | null;
|
|
2139
|
+
prize_pool_id?: string;
|
|
2140
|
+
reference_id?: string | null;
|
|
2141
|
+
split_kind?: string;
|
|
2142
|
+
};
|
|
2143
|
+
Relationships: [
|
|
2144
|
+
{
|
|
2145
|
+
foreignKeyName: "prize_pool_splits_prize_pool_id_fkey";
|
|
2146
|
+
columns: ["prize_pool_id"];
|
|
2147
|
+
isOneToOne: false;
|
|
2148
|
+
referencedRelation: "prize_pools";
|
|
2149
|
+
referencedColumns: ["id"];
|
|
2150
|
+
}
|
|
2151
|
+
];
|
|
2152
|
+
};
|
|
2153
|
+
prize_pools: {
|
|
2154
|
+
Row: {
|
|
2155
|
+
allow_donations: boolean;
|
|
2156
|
+
base_total: number;
|
|
2157
|
+
challenges_edition_id: string | null;
|
|
2158
|
+
created_at: string | null;
|
|
2159
|
+
id: string;
|
|
2160
|
+
league_tournament_id: string | null;
|
|
2161
|
+
locals_tournament_id: string | null;
|
|
2162
|
+
max_total: number | null;
|
|
2163
|
+
updated_at: string | null;
|
|
2164
|
+
};
|
|
2165
|
+
Insert: {
|
|
2166
|
+
allow_donations?: boolean;
|
|
2167
|
+
base_total: number;
|
|
2168
|
+
challenges_edition_id?: string | null;
|
|
2169
|
+
created_at?: string | null;
|
|
2170
|
+
id?: string;
|
|
2171
|
+
league_tournament_id?: string | null;
|
|
2172
|
+
locals_tournament_id?: string | null;
|
|
2173
|
+
max_total?: number | null;
|
|
2174
|
+
updated_at?: string | null;
|
|
2175
|
+
};
|
|
2176
|
+
Update: {
|
|
2177
|
+
allow_donations?: boolean;
|
|
2178
|
+
base_total?: number;
|
|
2179
|
+
challenges_edition_id?: string | null;
|
|
2180
|
+
created_at?: string | null;
|
|
2181
|
+
id?: string;
|
|
2182
|
+
league_tournament_id?: string | null;
|
|
2183
|
+
locals_tournament_id?: string | null;
|
|
2184
|
+
max_total?: number | null;
|
|
2185
|
+
updated_at?: string | null;
|
|
2186
|
+
};
|
|
2187
|
+
Relationships: [
|
|
2188
|
+
{
|
|
2189
|
+
foreignKeyName: "prize_pools_challenges_edition_id_fkey";
|
|
2190
|
+
columns: ["challenges_edition_id"];
|
|
1519
2191
|
isOneToOne: false;
|
|
1520
|
-
referencedRelation: "
|
|
2192
|
+
referencedRelation: "challenges_editions";
|
|
2193
|
+
referencedColumns: ["id"];
|
|
2194
|
+
},
|
|
2195
|
+
{
|
|
2196
|
+
foreignKeyName: "prize_pools_league_tournament_id_fkey";
|
|
2197
|
+
columns: ["league_tournament_id"];
|
|
2198
|
+
isOneToOne: false;
|
|
2199
|
+
referencedRelation: "league_tournaments";
|
|
2200
|
+
referencedColumns: ["id"];
|
|
2201
|
+
},
|
|
2202
|
+
{
|
|
2203
|
+
foreignKeyName: "prize_pools_locals_tournament_id_fkey";
|
|
2204
|
+
columns: ["locals_tournament_id"];
|
|
2205
|
+
isOneToOne: false;
|
|
2206
|
+
referencedRelation: "locals_tournaments";
|
|
1521
2207
|
referencedColumns: ["id"];
|
|
1522
2208
|
}
|
|
1523
2209
|
];
|
|
@@ -1527,6 +2213,7 @@ export type Database = {
|
|
|
1527
2213
|
challenges_phase_id: string | null;
|
|
1528
2214
|
created_at: string | null;
|
|
1529
2215
|
id: string;
|
|
2216
|
+
is_head_to_head: boolean;
|
|
1530
2217
|
length: number;
|
|
1531
2218
|
length_type: Database["competitions"]["Enums"]["set_length_type"];
|
|
1532
2219
|
metadata: Json | null;
|
|
@@ -1537,6 +2224,7 @@ export type Database = {
|
|
|
1537
2224
|
challenges_phase_id?: string | null;
|
|
1538
2225
|
created_at?: string | null;
|
|
1539
2226
|
id?: string;
|
|
2227
|
+
is_head_to_head?: boolean;
|
|
1540
2228
|
length: number;
|
|
1541
2229
|
length_type?: Database["competitions"]["Enums"]["set_length_type"];
|
|
1542
2230
|
metadata?: Json | null;
|
|
@@ -1547,6 +2235,7 @@ export type Database = {
|
|
|
1547
2235
|
challenges_phase_id?: string | null;
|
|
1548
2236
|
created_at?: string | null;
|
|
1549
2237
|
id?: string;
|
|
2238
|
+
is_head_to_head?: boolean;
|
|
1550
2239
|
length?: number;
|
|
1551
2240
|
length_type?: Database["competitions"]["Enums"]["set_length_type"];
|
|
1552
2241
|
metadata?: Json | null;
|
|
@@ -1614,7 +2303,68 @@ export type Database = {
|
|
|
1614
2303
|
};
|
|
1615
2304
|
};
|
|
1616
2305
|
Views: {
|
|
1617
|
-
|
|
2306
|
+
league_season_rankings: {
|
|
2307
|
+
Row: {
|
|
2308
|
+
event_participant_id: string | null;
|
|
2309
|
+
league_id: string | null;
|
|
2310
|
+
points: number | null;
|
|
2311
|
+
season_id: string | null;
|
|
2312
|
+
};
|
|
2313
|
+
Relationships: [
|
|
2314
|
+
{
|
|
2315
|
+
foreignKeyName: "league_tiers_league_id_fkey";
|
|
2316
|
+
columns: ["league_id"];
|
|
2317
|
+
isOneToOne: false;
|
|
2318
|
+
referencedRelation: "leagues";
|
|
2319
|
+
referencedColumns: ["id"];
|
|
2320
|
+
},
|
|
2321
|
+
{
|
|
2322
|
+
foreignKeyName: "league_tournament_event_placings_event_participant_id_fkey";
|
|
2323
|
+
columns: ["event_participant_id"];
|
|
2324
|
+
isOneToOne: false;
|
|
2325
|
+
referencedRelation: "event_participants";
|
|
2326
|
+
referencedColumns: ["id"];
|
|
2327
|
+
},
|
|
2328
|
+
{
|
|
2329
|
+
foreignKeyName: "league_tournaments_season_id_fkey";
|
|
2330
|
+
columns: ["season_id"];
|
|
2331
|
+
isOneToOne: false;
|
|
2332
|
+
referencedRelation: "league_seasons";
|
|
2333
|
+
referencedColumns: ["id"];
|
|
2334
|
+
}
|
|
2335
|
+
];
|
|
2336
|
+
};
|
|
2337
|
+
league_season_regular_rankings: {
|
|
2338
|
+
Row: {
|
|
2339
|
+
event_participant_id: string | null;
|
|
2340
|
+
league_id: string | null;
|
|
2341
|
+
points: number | null;
|
|
2342
|
+
season_id: string | null;
|
|
2343
|
+
};
|
|
2344
|
+
Relationships: [
|
|
2345
|
+
{
|
|
2346
|
+
foreignKeyName: "league_tiers_league_id_fkey";
|
|
2347
|
+
columns: ["league_id"];
|
|
2348
|
+
isOneToOne: false;
|
|
2349
|
+
referencedRelation: "leagues";
|
|
2350
|
+
referencedColumns: ["id"];
|
|
2351
|
+
},
|
|
2352
|
+
{
|
|
2353
|
+
foreignKeyName: "league_tournament_event_placings_event_participant_id_fkey";
|
|
2354
|
+
columns: ["event_participant_id"];
|
|
2355
|
+
isOneToOne: false;
|
|
2356
|
+
referencedRelation: "event_participants";
|
|
2357
|
+
referencedColumns: ["id"];
|
|
2358
|
+
},
|
|
2359
|
+
{
|
|
2360
|
+
foreignKeyName: "league_tournaments_season_id_fkey";
|
|
2361
|
+
columns: ["season_id"];
|
|
2362
|
+
isOneToOne: false;
|
|
2363
|
+
referencedRelation: "league_seasons";
|
|
2364
|
+
referencedColumns: ["id"];
|
|
2365
|
+
}
|
|
2366
|
+
];
|
|
2367
|
+
};
|
|
1618
2368
|
};
|
|
1619
2369
|
Functions: {
|
|
1620
2370
|
authorise_competition: {
|
|
@@ -1633,6 +2383,24 @@ export type Database = {
|
|
|
1633
2383
|
};
|
|
1634
2384
|
Returns: string;
|
|
1635
2385
|
};
|
|
2386
|
+
get_effective_maximum_age: {
|
|
2387
|
+
Args: {
|
|
2388
|
+
p_event_id: string;
|
|
2389
|
+
};
|
|
2390
|
+
Returns: {
|
|
2391
|
+
maximum_age_check_type: Database["competitions"]["Enums"]["age_check_type"];
|
|
2392
|
+
maximum_age_years: number;
|
|
2393
|
+
}[];
|
|
2394
|
+
};
|
|
2395
|
+
get_effective_minimum_age: {
|
|
2396
|
+
Args: {
|
|
2397
|
+
p_event_id: string;
|
|
2398
|
+
};
|
|
2399
|
+
Returns: {
|
|
2400
|
+
minimum_age_check_type: Database["competitions"]["Enums"]["age_check_type"];
|
|
2401
|
+
minimum_age_years: number;
|
|
2402
|
+
}[];
|
|
2403
|
+
};
|
|
1636
2404
|
get_league_id: {
|
|
1637
2405
|
Args: {
|
|
1638
2406
|
search: string;
|
|
@@ -1708,6 +2476,13 @@ export type Database = {
|
|
|
1708
2476
|
};
|
|
1709
2477
|
Returns: boolean;
|
|
1710
2478
|
};
|
|
2479
|
+
is_prize_pool_organiser: {
|
|
2480
|
+
Args: {
|
|
2481
|
+
p_prize_pool_id: string;
|
|
2482
|
+
p_user_id?: string;
|
|
2483
|
+
};
|
|
2484
|
+
Returns: boolean;
|
|
2485
|
+
};
|
|
1711
2486
|
perform_phase_seeding: {
|
|
1712
2487
|
Args: {
|
|
1713
2488
|
p_config_id: string;
|
|
@@ -1715,12 +2490,24 @@ export type Database = {
|
|
|
1715
2490
|
};
|
|
1716
2491
|
Returns: undefined;
|
|
1717
2492
|
};
|
|
2493
|
+
validate_competition_organiser: {
|
|
2494
|
+
Args: {
|
|
2495
|
+
p_competition_id: string;
|
|
2496
|
+
p_competition_type: string;
|
|
2497
|
+
p_user_id: string;
|
|
2498
|
+
};
|
|
2499
|
+
Returns: boolean;
|
|
2500
|
+
};
|
|
1718
2501
|
};
|
|
1719
2502
|
Enums: {
|
|
2503
|
+
age_check_type: "competition_start" | "season_start" | "year_start";
|
|
1720
2504
|
event_participant_type: "player" | "team";
|
|
1721
2505
|
event_status: "scheduled" | "active" | "completed" | "suspended" | "cancelled";
|
|
2506
|
+
issued_challenge_status: "pending" | "accepted" | "declined" | "forfeit";
|
|
2507
|
+
league_regular_scoring_type: "fpd" | "manual";
|
|
1722
2508
|
phase_registration_status: "pending" | "active" | "withdrawn" | "disqualified";
|
|
1723
2509
|
phase_type: "progression" | "playoff";
|
|
2510
|
+
season_phase_type: "regular" | "redemption" | "decider";
|
|
1724
2511
|
set_length_type: "first_to" | "best_of" | "fixed";
|
|
1725
2512
|
set_scoring_type: "aggregate_score" | "match_wins";
|
|
1726
2513
|
};
|
|
@@ -3229,7 +4016,7 @@ export type Database = {
|
|
|
3229
4016
|
Returns: boolean;
|
|
3230
4017
|
};
|
|
3231
4018
|
complete_registration: {
|
|
3232
|
-
Args:
|
|
4019
|
+
Args: never;
|
|
3233
4020
|
Returns: undefined;
|
|
3234
4021
|
};
|
|
3235
4022
|
create_lounge: {
|
|
@@ -3310,7 +4097,7 @@ export type Database = {
|
|
|
3310
4097
|
Returns: string;
|
|
3311
4098
|
};
|
|
3312
4099
|
get_active_registration: {
|
|
3313
|
-
Args:
|
|
4100
|
+
Args: never;
|
|
3314
4101
|
Returns: Json;
|
|
3315
4102
|
};
|
|
3316
4103
|
get_competition_organiser_ids: {
|
|
@@ -3362,6 +4149,12 @@ export type Database = {
|
|
|
3362
4149
|
phone: string;
|
|
3363
4150
|
user_id: string;
|
|
3364
4151
|
}[];
|
|
4152
|
+
SetofOptions: {
|
|
4153
|
+
from: "*";
|
|
4154
|
+
to: "lounge_branches";
|
|
4155
|
+
isOneToOne: false;
|
|
4156
|
+
isSetofReturn: true;
|
|
4157
|
+
};
|
|
3365
4158
|
};
|
|
3366
4159
|
get_lounge_ids: {
|
|
3367
4160
|
Args: {
|
|
@@ -3370,11 +4163,11 @@ export type Database = {
|
|
|
3370
4163
|
Returns: Json;
|
|
3371
4164
|
};
|
|
3372
4165
|
get_minor_rep_non_platform_id: {
|
|
3373
|
-
Args:
|
|
4166
|
+
Args: never;
|
|
3374
4167
|
Returns: string;
|
|
3375
4168
|
};
|
|
3376
4169
|
get_minor_rep_phone: {
|
|
3377
|
-
Args:
|
|
4170
|
+
Args: never;
|
|
3378
4171
|
Returns: string;
|
|
3379
4172
|
};
|
|
3380
4173
|
get_player_ids: {
|
|
@@ -3401,6 +4194,12 @@ export type Database = {
|
|
|
3401
4194
|
};
|
|
3402
4195
|
Returns: string;
|
|
3403
4196
|
};
|
|
4197
|
+
grant_daily_login_kxp: {
|
|
4198
|
+
Args: {
|
|
4199
|
+
p_user_id: string;
|
|
4200
|
+
};
|
|
4201
|
+
Returns: undefined;
|
|
4202
|
+
};
|
|
3404
4203
|
is_current_user_permanent: {
|
|
3405
4204
|
Args: {
|
|
3406
4205
|
user_id: string;
|
|
@@ -3408,6 +4207,14 @@ export type Database = {
|
|
|
3408
4207
|
};
|
|
3409
4208
|
Returns: boolean;
|
|
3410
4209
|
};
|
|
4210
|
+
kxp_daily_login_grant_amount: {
|
|
4211
|
+
Args: never;
|
|
4212
|
+
Returns: number;
|
|
4213
|
+
};
|
|
4214
|
+
kxp_registration_grant_amount: {
|
|
4215
|
+
Args: never;
|
|
4216
|
+
Returns: number;
|
|
4217
|
+
};
|
|
3411
4218
|
link_existing_minor_rep: {
|
|
3412
4219
|
Args: {
|
|
3413
4220
|
p_minor_relation: Database["compliance"]["Enums"]["minor_relation"];
|
|
@@ -3708,14 +4515,17 @@ export type Database = {
|
|
|
3708
4515
|
Row: {
|
|
3709
4516
|
console_id: string;
|
|
3710
4517
|
game_id: string;
|
|
4518
|
+
id: string;
|
|
3711
4519
|
};
|
|
3712
4520
|
Insert: {
|
|
3713
4521
|
console_id: string;
|
|
3714
4522
|
game_id: string;
|
|
4523
|
+
id?: string;
|
|
3715
4524
|
};
|
|
3716
4525
|
Update: {
|
|
3717
4526
|
console_id?: string;
|
|
3718
4527
|
game_id?: string;
|
|
4528
|
+
id?: string;
|
|
3719
4529
|
};
|
|
3720
4530
|
Relationships: [
|
|
3721
4531
|
{
|
|
@@ -3860,6 +4670,7 @@ export type Database = {
|
|
|
3860
4670
|
owner: string | null;
|
|
3861
4671
|
owner_id: string | null;
|
|
3862
4672
|
public: boolean | null;
|
|
4673
|
+
type: Database["storage"]["Enums"]["buckettype"];
|
|
3863
4674
|
updated_at: string | null;
|
|
3864
4675
|
};
|
|
3865
4676
|
Insert: {
|
|
@@ -3872,6 +4683,7 @@ export type Database = {
|
|
|
3872
4683
|
owner?: string | null;
|
|
3873
4684
|
owner_id?: string | null;
|
|
3874
4685
|
public?: boolean | null;
|
|
4686
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
3875
4687
|
updated_at?: string | null;
|
|
3876
4688
|
};
|
|
3877
4689
|
Update: {
|
|
@@ -3884,10 +4696,157 @@ export type Database = {
|
|
|
3884
4696
|
owner?: string | null;
|
|
3885
4697
|
owner_id?: string | null;
|
|
3886
4698
|
public?: boolean | null;
|
|
4699
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
3887
4700
|
updated_at?: string | null;
|
|
3888
4701
|
};
|
|
3889
4702
|
Relationships: [];
|
|
3890
4703
|
};
|
|
4704
|
+
buckets_analytics: {
|
|
4705
|
+
Row: {
|
|
4706
|
+
created_at: string;
|
|
4707
|
+
deleted_at: string | null;
|
|
4708
|
+
format: string;
|
|
4709
|
+
id: string;
|
|
4710
|
+
name: string;
|
|
4711
|
+
type: Database["storage"]["Enums"]["buckettype"];
|
|
4712
|
+
updated_at: string;
|
|
4713
|
+
};
|
|
4714
|
+
Insert: {
|
|
4715
|
+
created_at?: string;
|
|
4716
|
+
deleted_at?: string | null;
|
|
4717
|
+
format?: string;
|
|
4718
|
+
id?: string;
|
|
4719
|
+
name: string;
|
|
4720
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
4721
|
+
updated_at?: string;
|
|
4722
|
+
};
|
|
4723
|
+
Update: {
|
|
4724
|
+
created_at?: string;
|
|
4725
|
+
deleted_at?: string | null;
|
|
4726
|
+
format?: string;
|
|
4727
|
+
id?: string;
|
|
4728
|
+
name?: string;
|
|
4729
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
4730
|
+
updated_at?: string;
|
|
4731
|
+
};
|
|
4732
|
+
Relationships: [];
|
|
4733
|
+
};
|
|
4734
|
+
buckets_vectors: {
|
|
4735
|
+
Row: {
|
|
4736
|
+
created_at: string;
|
|
4737
|
+
id: string;
|
|
4738
|
+
type: Database["storage"]["Enums"]["buckettype"];
|
|
4739
|
+
updated_at: string;
|
|
4740
|
+
};
|
|
4741
|
+
Insert: {
|
|
4742
|
+
created_at?: string;
|
|
4743
|
+
id: string;
|
|
4744
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
4745
|
+
updated_at?: string;
|
|
4746
|
+
};
|
|
4747
|
+
Update: {
|
|
4748
|
+
created_at?: string;
|
|
4749
|
+
id?: string;
|
|
4750
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
4751
|
+
updated_at?: string;
|
|
4752
|
+
};
|
|
4753
|
+
Relationships: [];
|
|
4754
|
+
};
|
|
4755
|
+
iceberg_namespaces: {
|
|
4756
|
+
Row: {
|
|
4757
|
+
bucket_name: string;
|
|
4758
|
+
catalog_id: string;
|
|
4759
|
+
created_at: string;
|
|
4760
|
+
id: string;
|
|
4761
|
+
metadata: Json;
|
|
4762
|
+
name: string;
|
|
4763
|
+
updated_at: string;
|
|
4764
|
+
};
|
|
4765
|
+
Insert: {
|
|
4766
|
+
bucket_name: string;
|
|
4767
|
+
catalog_id: string;
|
|
4768
|
+
created_at?: string;
|
|
4769
|
+
id?: string;
|
|
4770
|
+
metadata?: Json;
|
|
4771
|
+
name: string;
|
|
4772
|
+
updated_at?: string;
|
|
4773
|
+
};
|
|
4774
|
+
Update: {
|
|
4775
|
+
bucket_name?: string;
|
|
4776
|
+
catalog_id?: string;
|
|
4777
|
+
created_at?: string;
|
|
4778
|
+
id?: string;
|
|
4779
|
+
metadata?: Json;
|
|
4780
|
+
name?: string;
|
|
4781
|
+
updated_at?: string;
|
|
4782
|
+
};
|
|
4783
|
+
Relationships: [
|
|
4784
|
+
{
|
|
4785
|
+
foreignKeyName: "iceberg_namespaces_catalog_id_fkey";
|
|
4786
|
+
columns: ["catalog_id"];
|
|
4787
|
+
isOneToOne: false;
|
|
4788
|
+
referencedRelation: "buckets_analytics";
|
|
4789
|
+
referencedColumns: ["id"];
|
|
4790
|
+
}
|
|
4791
|
+
];
|
|
4792
|
+
};
|
|
4793
|
+
iceberg_tables: {
|
|
4794
|
+
Row: {
|
|
4795
|
+
bucket_name: string;
|
|
4796
|
+
catalog_id: string;
|
|
4797
|
+
created_at: string;
|
|
4798
|
+
id: string;
|
|
4799
|
+
location: string;
|
|
4800
|
+
name: string;
|
|
4801
|
+
namespace_id: string;
|
|
4802
|
+
remote_table_id: string | null;
|
|
4803
|
+
shard_id: string | null;
|
|
4804
|
+
shard_key: string | null;
|
|
4805
|
+
updated_at: string;
|
|
4806
|
+
};
|
|
4807
|
+
Insert: {
|
|
4808
|
+
bucket_name: string;
|
|
4809
|
+
catalog_id: string;
|
|
4810
|
+
created_at?: string;
|
|
4811
|
+
id?: string;
|
|
4812
|
+
location: string;
|
|
4813
|
+
name: string;
|
|
4814
|
+
namespace_id: string;
|
|
4815
|
+
remote_table_id?: string | null;
|
|
4816
|
+
shard_id?: string | null;
|
|
4817
|
+
shard_key?: string | null;
|
|
4818
|
+
updated_at?: string;
|
|
4819
|
+
};
|
|
4820
|
+
Update: {
|
|
4821
|
+
bucket_name?: string;
|
|
4822
|
+
catalog_id?: string;
|
|
4823
|
+
created_at?: string;
|
|
4824
|
+
id?: string;
|
|
4825
|
+
location?: string;
|
|
4826
|
+
name?: string;
|
|
4827
|
+
namespace_id?: string;
|
|
4828
|
+
remote_table_id?: string | null;
|
|
4829
|
+
shard_id?: string | null;
|
|
4830
|
+
shard_key?: string | null;
|
|
4831
|
+
updated_at?: string;
|
|
4832
|
+
};
|
|
4833
|
+
Relationships: [
|
|
4834
|
+
{
|
|
4835
|
+
foreignKeyName: "iceberg_tables_catalog_id_fkey";
|
|
4836
|
+
columns: ["catalog_id"];
|
|
4837
|
+
isOneToOne: false;
|
|
4838
|
+
referencedRelation: "buckets_analytics";
|
|
4839
|
+
referencedColumns: ["id"];
|
|
4840
|
+
},
|
|
4841
|
+
{
|
|
4842
|
+
foreignKeyName: "iceberg_tables_namespace_id_fkey";
|
|
4843
|
+
columns: ["namespace_id"];
|
|
4844
|
+
isOneToOne: false;
|
|
4845
|
+
referencedRelation: "iceberg_namespaces";
|
|
4846
|
+
referencedColumns: ["id"];
|
|
4847
|
+
}
|
|
4848
|
+
];
|
|
4849
|
+
};
|
|
3891
4850
|
migrations: {
|
|
3892
4851
|
Row: {
|
|
3893
4852
|
executed_at: string | null;
|
|
@@ -4060,6 +5019,50 @@ export type Database = {
|
|
|
4060
5019
|
}
|
|
4061
5020
|
];
|
|
4062
5021
|
};
|
|
5022
|
+
vector_indexes: {
|
|
5023
|
+
Row: {
|
|
5024
|
+
bucket_id: string;
|
|
5025
|
+
created_at: string;
|
|
5026
|
+
data_type: string;
|
|
5027
|
+
dimension: number;
|
|
5028
|
+
distance_metric: string;
|
|
5029
|
+
id: string;
|
|
5030
|
+
metadata_configuration: Json | null;
|
|
5031
|
+
name: string;
|
|
5032
|
+
updated_at: string;
|
|
5033
|
+
};
|
|
5034
|
+
Insert: {
|
|
5035
|
+
bucket_id: string;
|
|
5036
|
+
created_at?: string;
|
|
5037
|
+
data_type: string;
|
|
5038
|
+
dimension: number;
|
|
5039
|
+
distance_metric: string;
|
|
5040
|
+
id?: string;
|
|
5041
|
+
metadata_configuration?: Json | null;
|
|
5042
|
+
name: string;
|
|
5043
|
+
updated_at?: string;
|
|
5044
|
+
};
|
|
5045
|
+
Update: {
|
|
5046
|
+
bucket_id?: string;
|
|
5047
|
+
created_at?: string;
|
|
5048
|
+
data_type?: string;
|
|
5049
|
+
dimension?: number;
|
|
5050
|
+
distance_metric?: string;
|
|
5051
|
+
id?: string;
|
|
5052
|
+
metadata_configuration?: Json | null;
|
|
5053
|
+
name?: string;
|
|
5054
|
+
updated_at?: string;
|
|
5055
|
+
};
|
|
5056
|
+
Relationships: [
|
|
5057
|
+
{
|
|
5058
|
+
foreignKeyName: "vector_indexes_bucket_id_fkey";
|
|
5059
|
+
columns: ["bucket_id"];
|
|
5060
|
+
isOneToOne: false;
|
|
5061
|
+
referencedRelation: "buckets_vectors";
|
|
5062
|
+
referencedColumns: ["id"];
|
|
5063
|
+
}
|
|
5064
|
+
];
|
|
5065
|
+
};
|
|
4063
5066
|
};
|
|
4064
5067
|
Views: {
|
|
4065
5068
|
[_ in never]: never;
|
|
@@ -4093,7 +5096,7 @@ export type Database = {
|
|
|
4093
5096
|
Returns: string[];
|
|
4094
5097
|
};
|
|
4095
5098
|
get_size_by_bucket: {
|
|
4096
|
-
Args:
|
|
5099
|
+
Args: never;
|
|
4097
5100
|
Returns: {
|
|
4098
5101
|
bucket_id: string;
|
|
4099
5102
|
size: number;
|
|
@@ -4131,10 +5134,26 @@ export type Database = {
|
|
|
4131
5134
|
}[];
|
|
4132
5135
|
};
|
|
4133
5136
|
operation: {
|
|
4134
|
-
Args:
|
|
5137
|
+
Args: never;
|
|
4135
5138
|
Returns: string;
|
|
4136
5139
|
};
|
|
4137
5140
|
search: {
|
|
5141
|
+
Args: {
|
|
5142
|
+
bucketname: string;
|
|
5143
|
+
levels?: number;
|
|
5144
|
+
limits?: number;
|
|
5145
|
+
offsets?: number;
|
|
5146
|
+
prefix: string;
|
|
5147
|
+
};
|
|
5148
|
+
Returns: {
|
|
5149
|
+
created_at: string;
|
|
5150
|
+
id: string;
|
|
5151
|
+
last_accessed_at: string;
|
|
5152
|
+
metadata: Json;
|
|
5153
|
+
name: string;
|
|
5154
|
+
updated_at: string;
|
|
5155
|
+
}[];
|
|
5156
|
+
} | {
|
|
4138
5157
|
Args: {
|
|
4139
5158
|
bucketname: string;
|
|
4140
5159
|
levels?: number;
|
|
@@ -4156,7 +5175,7 @@ export type Database = {
|
|
|
4156
5175
|
};
|
|
4157
5176
|
};
|
|
4158
5177
|
Enums: {
|
|
4159
|
-
|
|
5178
|
+
buckettype: "STANDARD" | "ANALYTICS" | "VECTOR";
|
|
4160
5179
|
};
|
|
4161
5180
|
CompositeTypes: {
|
|
4162
5181
|
[_ in never]: never;
|
|
@@ -4213,12 +5232,28 @@ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof Defaul
|
|
|
4213
5232
|
schema: keyof DatabaseWithoutInternals;
|
|
4214
5233
|
} ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
4215
5234
|
export declare const Constants: {
|
|
5235
|
+
readonly commerce: {
|
|
5236
|
+
readonly Enums: {
|
|
5237
|
+
readonly fulfillment_status: readonly ["pending", "shipped", "delivered", "returned"];
|
|
5238
|
+
readonly item_condition: readonly ["new", "like_new", "good", "fair", "refurbished"];
|
|
5239
|
+
readonly listing_status: readonly ["pending", "active", "sold", "withdrawn"];
|
|
5240
|
+
readonly order_status: readonly ["pending", "paid", "completed", "cancelled", "refunded"];
|
|
5241
|
+
readonly payment_method_type: readonly ["mobile_money", "bank", "card"];
|
|
5242
|
+
readonly payment_status: readonly ["pending", "succeeded", "failed", "refunded"];
|
|
5243
|
+
readonly prize_money_transaction_type: readonly ["organiser_deposit", "donation", "pool_payout", "winnings", "withdrawal", "convert_to_credits"];
|
|
5244
|
+
readonly reservation_status: readonly ["requested", "approved", "rejected", "cancelled_by_buyer"];
|
|
5245
|
+
};
|
|
5246
|
+
};
|
|
4216
5247
|
readonly competitions: {
|
|
4217
5248
|
readonly Enums: {
|
|
5249
|
+
readonly age_check_type: readonly ["competition_start", "season_start", "year_start"];
|
|
4218
5250
|
readonly event_participant_type: readonly ["player", "team"];
|
|
4219
5251
|
readonly event_status: readonly ["scheduled", "active", "completed", "suspended", "cancelled"];
|
|
5252
|
+
readonly issued_challenge_status: readonly ["pending", "accepted", "declined", "forfeit"];
|
|
5253
|
+
readonly league_regular_scoring_type: readonly ["fpd", "manual"];
|
|
4220
5254
|
readonly phase_registration_status: readonly ["pending", "active", "withdrawn", "disqualified"];
|
|
4221
5255
|
readonly phase_type: readonly ["progression", "playoff"];
|
|
5256
|
+
readonly season_phase_type: readonly ["regular", "redemption", "decider"];
|
|
4222
5257
|
readonly set_length_type: readonly ["first_to", "best_of", "fixed"];
|
|
4223
5258
|
readonly set_scoring_type: readonly ["aggregate_score", "match_wins"];
|
|
4224
5259
|
};
|
|
@@ -4247,7 +5282,9 @@ export declare const Constants: {
|
|
|
4247
5282
|
};
|
|
4248
5283
|
};
|
|
4249
5284
|
readonly storage: {
|
|
4250
|
-
readonly Enums: {
|
|
5285
|
+
readonly Enums: {
|
|
5286
|
+
readonly buckettype: readonly ["STANDARD", "ANALYTICS", "VECTOR"];
|
|
5287
|
+
};
|
|
4251
5288
|
};
|
|
4252
5289
|
};
|
|
4253
5290
|
export {};
|