@simonarcher/fika-types 1.5.1 → 1.6.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.
- package/dist/supabase-helpers.d.ts +0 -7
- package/dist/supabase.d.ts +782 -445
- package/package.json +1 -1
package/dist/supabase.d.ts
CHANGED
|
@@ -277,7 +277,7 @@ export type Database = {
|
|
|
277
277
|
bean_id: string | null;
|
|
278
278
|
bean_name: string | null;
|
|
279
279
|
country: string | null;
|
|
280
|
-
created_at: string;
|
|
280
|
+
created_at: string | null;
|
|
281
281
|
decaf_method: string | null;
|
|
282
282
|
id: string;
|
|
283
283
|
image: string | null;
|
|
@@ -295,7 +295,7 @@ export type Database = {
|
|
|
295
295
|
shop_id: string | null;
|
|
296
296
|
status: string;
|
|
297
297
|
tasting_notes: string[] | null;
|
|
298
|
-
updated_at: string;
|
|
298
|
+
updated_at: string | null;
|
|
299
299
|
user_id: string | null;
|
|
300
300
|
};
|
|
301
301
|
Insert: {
|
|
@@ -304,7 +304,7 @@ export type Database = {
|
|
|
304
304
|
bean_id?: string | null;
|
|
305
305
|
bean_name?: string | null;
|
|
306
306
|
country?: string | null;
|
|
307
|
-
created_at?: string;
|
|
307
|
+
created_at?: string | null;
|
|
308
308
|
decaf_method?: string | null;
|
|
309
309
|
id?: string;
|
|
310
310
|
image?: string | null;
|
|
@@ -322,7 +322,7 @@ export type Database = {
|
|
|
322
322
|
shop_id?: string | null;
|
|
323
323
|
status?: string;
|
|
324
324
|
tasting_notes?: string[] | null;
|
|
325
|
-
updated_at?: string;
|
|
325
|
+
updated_at?: string | null;
|
|
326
326
|
user_id?: string | null;
|
|
327
327
|
};
|
|
328
328
|
Update: {
|
|
@@ -331,7 +331,7 @@ export type Database = {
|
|
|
331
331
|
bean_id?: string | null;
|
|
332
332
|
bean_name?: string | null;
|
|
333
333
|
country?: string | null;
|
|
334
|
-
created_at?: string;
|
|
334
|
+
created_at?: string | null;
|
|
335
335
|
decaf_method?: string | null;
|
|
336
336
|
id?: string;
|
|
337
337
|
image?: string | null;
|
|
@@ -349,81 +349,10 @@ export type Database = {
|
|
|
349
349
|
shop_id?: string | null;
|
|
350
350
|
status?: string;
|
|
351
351
|
tasting_notes?: string[] | null;
|
|
352
|
-
updated_at?: string;
|
|
352
|
+
updated_at?: string | null;
|
|
353
353
|
user_id?: string | null;
|
|
354
354
|
};
|
|
355
|
-
Relationships: [
|
|
356
|
-
{
|
|
357
|
-
foreignKeyName: "coffee_bean_submissions_approved_bean_id_fkey";
|
|
358
|
-
columns: ["approved_bean_id"];
|
|
359
|
-
isOneToOne: false;
|
|
360
|
-
referencedRelation: "coffee_beans";
|
|
361
|
-
referencedColumns: ["id"];
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
foreignKeyName: "coffee_bean_submissions_reviewed_by_fkey";
|
|
365
|
-
columns: ["reviewed_by"];
|
|
366
|
-
isOneToOne: false;
|
|
367
|
-
referencedRelation: "leaderboard";
|
|
368
|
-
referencedColumns: ["id"];
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
foreignKeyName: "coffee_bean_submissions_reviewed_by_fkey";
|
|
372
|
-
columns: ["reviewed_by"];
|
|
373
|
-
isOneToOne: false;
|
|
374
|
-
referencedRelation: "user_activity_summary";
|
|
375
|
-
referencedColumns: ["id"];
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
foreignKeyName: "coffee_bean_submissions_reviewed_by_fkey";
|
|
379
|
-
columns: ["reviewed_by"];
|
|
380
|
-
isOneToOne: false;
|
|
381
|
-
referencedRelation: "users";
|
|
382
|
-
referencedColumns: ["id"];
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
foreignKeyName: "coffee_bean_submissions_roaster_id_fkey";
|
|
386
|
-
columns: ["roaster_id"];
|
|
387
|
-
isOneToOne: false;
|
|
388
|
-
referencedRelation: "roasters";
|
|
389
|
-
referencedColumns: ["id"];
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
foreignKeyName: "coffee_bean_submissions_shop_id_fkey";
|
|
393
|
-
columns: ["shop_id"];
|
|
394
|
-
isOneToOne: false;
|
|
395
|
-
referencedRelation: "shop_stats";
|
|
396
|
-
referencedColumns: ["id"];
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
foreignKeyName: "coffee_bean_submissions_shop_id_fkey";
|
|
400
|
-
columns: ["shop_id"];
|
|
401
|
-
isOneToOne: false;
|
|
402
|
-
referencedRelation: "shops";
|
|
403
|
-
referencedColumns: ["id"];
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
foreignKeyName: "coffee_bean_submissions_user_id_fkey";
|
|
407
|
-
columns: ["user_id"];
|
|
408
|
-
isOneToOne: false;
|
|
409
|
-
referencedRelation: "leaderboard";
|
|
410
|
-
referencedColumns: ["id"];
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
foreignKeyName: "coffee_bean_submissions_user_id_fkey";
|
|
414
|
-
columns: ["user_id"];
|
|
415
|
-
isOneToOne: false;
|
|
416
|
-
referencedRelation: "user_activity_summary";
|
|
417
|
-
referencedColumns: ["id"];
|
|
418
|
-
},
|
|
419
|
-
{
|
|
420
|
-
foreignKeyName: "coffee_bean_submissions_user_id_fkey";
|
|
421
|
-
columns: ["user_id"];
|
|
422
|
-
isOneToOne: false;
|
|
423
|
-
referencedRelation: "users";
|
|
424
|
-
referencedColumns: ["id"];
|
|
425
|
-
}
|
|
426
|
-
];
|
|
355
|
+
Relationships: [];
|
|
427
356
|
};
|
|
428
357
|
coffee_beans: {
|
|
429
358
|
Row: {
|
|
@@ -556,6 +485,422 @@ export type Database = {
|
|
|
556
485
|
}
|
|
557
486
|
];
|
|
558
487
|
};
|
|
488
|
+
event_checkins: {
|
|
489
|
+
Row: {
|
|
490
|
+
checked_in_at: string;
|
|
491
|
+
event_id: string;
|
|
492
|
+
id: string;
|
|
493
|
+
user_city: string | null;
|
|
494
|
+
user_country: string | null;
|
|
495
|
+
user_display_name: string | null;
|
|
496
|
+
user_id: string;
|
|
497
|
+
user_photo_url: string | null;
|
|
498
|
+
username: string | null;
|
|
499
|
+
};
|
|
500
|
+
Insert: {
|
|
501
|
+
checked_in_at?: string;
|
|
502
|
+
event_id: string;
|
|
503
|
+
id?: string;
|
|
504
|
+
user_city?: string | null;
|
|
505
|
+
user_country?: string | null;
|
|
506
|
+
user_display_name?: string | null;
|
|
507
|
+
user_id: string;
|
|
508
|
+
user_photo_url?: string | null;
|
|
509
|
+
username?: string | null;
|
|
510
|
+
};
|
|
511
|
+
Update: {
|
|
512
|
+
checked_in_at?: string;
|
|
513
|
+
event_id?: string;
|
|
514
|
+
id?: string;
|
|
515
|
+
user_city?: string | null;
|
|
516
|
+
user_country?: string | null;
|
|
517
|
+
user_display_name?: string | null;
|
|
518
|
+
user_id?: string;
|
|
519
|
+
user_photo_url?: string | null;
|
|
520
|
+
username?: string | null;
|
|
521
|
+
};
|
|
522
|
+
Relationships: [
|
|
523
|
+
{
|
|
524
|
+
foreignKeyName: "event_checkins_event_id_fkey";
|
|
525
|
+
columns: ["event_id"];
|
|
526
|
+
isOneToOne: false;
|
|
527
|
+
referencedRelation: "events";
|
|
528
|
+
referencedColumns: ["id"];
|
|
529
|
+
}
|
|
530
|
+
];
|
|
531
|
+
};
|
|
532
|
+
event_photo_reports: {
|
|
533
|
+
Row: {
|
|
534
|
+
created_at: string;
|
|
535
|
+
photo_id: string;
|
|
536
|
+
user_id: string;
|
|
537
|
+
};
|
|
538
|
+
Insert: {
|
|
539
|
+
created_at?: string;
|
|
540
|
+
photo_id: string;
|
|
541
|
+
user_id: string;
|
|
542
|
+
};
|
|
543
|
+
Update: {
|
|
544
|
+
created_at?: string;
|
|
545
|
+
photo_id?: string;
|
|
546
|
+
user_id?: string;
|
|
547
|
+
};
|
|
548
|
+
Relationships: [
|
|
549
|
+
{
|
|
550
|
+
foreignKeyName: "event_photo_reports_photo_id_fkey";
|
|
551
|
+
columns: ["photo_id"];
|
|
552
|
+
isOneToOne: false;
|
|
553
|
+
referencedRelation: "event_photos";
|
|
554
|
+
referencedColumns: ["id"];
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
foreignKeyName: "event_photo_reports_user_id_fkey";
|
|
558
|
+
columns: ["user_id"];
|
|
559
|
+
isOneToOne: false;
|
|
560
|
+
referencedRelation: "leaderboard";
|
|
561
|
+
referencedColumns: ["id"];
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
foreignKeyName: "event_photo_reports_user_id_fkey";
|
|
565
|
+
columns: ["user_id"];
|
|
566
|
+
isOneToOne: false;
|
|
567
|
+
referencedRelation: "user_activity_summary";
|
|
568
|
+
referencedColumns: ["id"];
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
foreignKeyName: "event_photo_reports_user_id_fkey";
|
|
572
|
+
columns: ["user_id"];
|
|
573
|
+
isOneToOne: false;
|
|
574
|
+
referencedRelation: "users";
|
|
575
|
+
referencedColumns: ["id"];
|
|
576
|
+
}
|
|
577
|
+
];
|
|
578
|
+
};
|
|
579
|
+
event_photos: {
|
|
580
|
+
Row: {
|
|
581
|
+
created_at: string;
|
|
582
|
+
event_id: string;
|
|
583
|
+
id: string;
|
|
584
|
+
is_removed: boolean;
|
|
585
|
+
photo_url: string;
|
|
586
|
+
report_count: number;
|
|
587
|
+
reviewed_at: string | null;
|
|
588
|
+
user_id: string;
|
|
589
|
+
};
|
|
590
|
+
Insert: {
|
|
591
|
+
created_at?: string;
|
|
592
|
+
event_id: string;
|
|
593
|
+
id?: string;
|
|
594
|
+
is_removed?: boolean;
|
|
595
|
+
photo_url: string;
|
|
596
|
+
report_count?: number;
|
|
597
|
+
reviewed_at?: string | null;
|
|
598
|
+
user_id: string;
|
|
599
|
+
};
|
|
600
|
+
Update: {
|
|
601
|
+
created_at?: string;
|
|
602
|
+
event_id?: string;
|
|
603
|
+
id?: string;
|
|
604
|
+
is_removed?: boolean;
|
|
605
|
+
photo_url?: string;
|
|
606
|
+
report_count?: number;
|
|
607
|
+
reviewed_at?: string | null;
|
|
608
|
+
user_id?: string;
|
|
609
|
+
};
|
|
610
|
+
Relationships: [
|
|
611
|
+
{
|
|
612
|
+
foreignKeyName: "event_photos_event_id_fkey";
|
|
613
|
+
columns: ["event_id"];
|
|
614
|
+
isOneToOne: false;
|
|
615
|
+
referencedRelation: "events";
|
|
616
|
+
referencedColumns: ["id"];
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
foreignKeyName: "event_photos_user_id_fkey";
|
|
620
|
+
columns: ["user_id"];
|
|
621
|
+
isOneToOne: false;
|
|
622
|
+
referencedRelation: "leaderboard";
|
|
623
|
+
referencedColumns: ["id"];
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
foreignKeyName: "event_photos_user_id_fkey";
|
|
627
|
+
columns: ["user_id"];
|
|
628
|
+
isOneToOne: false;
|
|
629
|
+
referencedRelation: "user_activity_summary";
|
|
630
|
+
referencedColumns: ["id"];
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
foreignKeyName: "event_photos_user_id_fkey";
|
|
634
|
+
columns: ["user_id"];
|
|
635
|
+
isOneToOne: false;
|
|
636
|
+
referencedRelation: "users";
|
|
637
|
+
referencedColumns: ["id"];
|
|
638
|
+
}
|
|
639
|
+
];
|
|
640
|
+
};
|
|
641
|
+
event_post_reactions: {
|
|
642
|
+
Row: {
|
|
643
|
+
created_at: string;
|
|
644
|
+
id: string;
|
|
645
|
+
post_id: string;
|
|
646
|
+
type: string;
|
|
647
|
+
user_id: string;
|
|
648
|
+
};
|
|
649
|
+
Insert: {
|
|
650
|
+
created_at?: string;
|
|
651
|
+
id?: string;
|
|
652
|
+
post_id: string;
|
|
653
|
+
type?: string;
|
|
654
|
+
user_id: string;
|
|
655
|
+
};
|
|
656
|
+
Update: {
|
|
657
|
+
created_at?: string;
|
|
658
|
+
id?: string;
|
|
659
|
+
post_id?: string;
|
|
660
|
+
type?: string;
|
|
661
|
+
user_id?: string;
|
|
662
|
+
};
|
|
663
|
+
Relationships: [
|
|
664
|
+
{
|
|
665
|
+
foreignKeyName: "event_post_reactions_post_id_fkey";
|
|
666
|
+
columns: ["post_id"];
|
|
667
|
+
isOneToOne: false;
|
|
668
|
+
referencedRelation: "event_posts";
|
|
669
|
+
referencedColumns: ["id"];
|
|
670
|
+
}
|
|
671
|
+
];
|
|
672
|
+
};
|
|
673
|
+
event_post_reports: {
|
|
674
|
+
Row: {
|
|
675
|
+
created_at: string;
|
|
676
|
+
id: string;
|
|
677
|
+
post_id: string;
|
|
678
|
+
user_id: string;
|
|
679
|
+
};
|
|
680
|
+
Insert: {
|
|
681
|
+
created_at?: string;
|
|
682
|
+
id?: string;
|
|
683
|
+
post_id: string;
|
|
684
|
+
user_id: string;
|
|
685
|
+
};
|
|
686
|
+
Update: {
|
|
687
|
+
created_at?: string;
|
|
688
|
+
id?: string;
|
|
689
|
+
post_id?: string;
|
|
690
|
+
user_id?: string;
|
|
691
|
+
};
|
|
692
|
+
Relationships: [
|
|
693
|
+
{
|
|
694
|
+
foreignKeyName: "event_post_reports_post_id_fkey";
|
|
695
|
+
columns: ["post_id"];
|
|
696
|
+
isOneToOne: false;
|
|
697
|
+
referencedRelation: "event_posts";
|
|
698
|
+
referencedColumns: ["id"];
|
|
699
|
+
}
|
|
700
|
+
];
|
|
701
|
+
};
|
|
702
|
+
event_posts: {
|
|
703
|
+
Row: {
|
|
704
|
+
caption: string | null;
|
|
705
|
+
created_at: string;
|
|
706
|
+
event_id: string;
|
|
707
|
+
id: string;
|
|
708
|
+
is_removed: boolean;
|
|
709
|
+
photo_url: string | null;
|
|
710
|
+
report_count: number;
|
|
711
|
+
user_display_name: string | null;
|
|
712
|
+
user_id: string;
|
|
713
|
+
user_photo_url: string | null;
|
|
714
|
+
username: string | null;
|
|
715
|
+
};
|
|
716
|
+
Insert: {
|
|
717
|
+
caption?: string | null;
|
|
718
|
+
created_at?: string;
|
|
719
|
+
event_id: string;
|
|
720
|
+
id?: string;
|
|
721
|
+
is_removed?: boolean;
|
|
722
|
+
photo_url?: string | null;
|
|
723
|
+
report_count?: number;
|
|
724
|
+
user_display_name?: string | null;
|
|
725
|
+
user_id: string;
|
|
726
|
+
user_photo_url?: string | null;
|
|
727
|
+
username?: string | null;
|
|
728
|
+
};
|
|
729
|
+
Update: {
|
|
730
|
+
caption?: string | null;
|
|
731
|
+
created_at?: string;
|
|
732
|
+
event_id?: string;
|
|
733
|
+
id?: string;
|
|
734
|
+
is_removed?: boolean;
|
|
735
|
+
photo_url?: string | null;
|
|
736
|
+
report_count?: number;
|
|
737
|
+
user_display_name?: string | null;
|
|
738
|
+
user_id?: string;
|
|
739
|
+
user_photo_url?: string | null;
|
|
740
|
+
username?: string | null;
|
|
741
|
+
};
|
|
742
|
+
Relationships: [
|
|
743
|
+
{
|
|
744
|
+
foreignKeyName: "event_posts_event_id_fkey";
|
|
745
|
+
columns: ["event_id"];
|
|
746
|
+
isOneToOne: false;
|
|
747
|
+
referencedRelation: "events";
|
|
748
|
+
referencedColumns: ["id"];
|
|
749
|
+
}
|
|
750
|
+
];
|
|
751
|
+
};
|
|
752
|
+
event_sessions: {
|
|
753
|
+
Row: {
|
|
754
|
+
created_at: string;
|
|
755
|
+
description: string | null;
|
|
756
|
+
display_order: number;
|
|
757
|
+
end_time: string;
|
|
758
|
+
event_id: string;
|
|
759
|
+
host_image_url: string | null;
|
|
760
|
+
host_name: string | null;
|
|
761
|
+
id: string;
|
|
762
|
+
location_detail: string | null;
|
|
763
|
+
session_type: string;
|
|
764
|
+
start_time: string;
|
|
765
|
+
title: string;
|
|
766
|
+
track: string;
|
|
767
|
+
updated_at: string;
|
|
768
|
+
};
|
|
769
|
+
Insert: {
|
|
770
|
+
created_at?: string;
|
|
771
|
+
description?: string | null;
|
|
772
|
+
display_order?: number;
|
|
773
|
+
end_time: string;
|
|
774
|
+
event_id: string;
|
|
775
|
+
host_image_url?: string | null;
|
|
776
|
+
host_name?: string | null;
|
|
777
|
+
id?: string;
|
|
778
|
+
location_detail?: string | null;
|
|
779
|
+
session_type?: string;
|
|
780
|
+
start_time: string;
|
|
781
|
+
title: string;
|
|
782
|
+
track: string;
|
|
783
|
+
updated_at?: string;
|
|
784
|
+
};
|
|
785
|
+
Update: {
|
|
786
|
+
created_at?: string;
|
|
787
|
+
description?: string | null;
|
|
788
|
+
display_order?: number;
|
|
789
|
+
end_time?: string;
|
|
790
|
+
event_id?: string;
|
|
791
|
+
host_image_url?: string | null;
|
|
792
|
+
host_name?: string | null;
|
|
793
|
+
id?: string;
|
|
794
|
+
location_detail?: string | null;
|
|
795
|
+
session_type?: string;
|
|
796
|
+
start_time?: string;
|
|
797
|
+
title?: string;
|
|
798
|
+
track?: string;
|
|
799
|
+
updated_at?: string;
|
|
800
|
+
};
|
|
801
|
+
Relationships: [
|
|
802
|
+
{
|
|
803
|
+
foreignKeyName: "event_sessions_event_id_fkey";
|
|
804
|
+
columns: ["event_id"];
|
|
805
|
+
isOneToOne: false;
|
|
806
|
+
referencedRelation: "events";
|
|
807
|
+
referencedColumns: ["id"];
|
|
808
|
+
}
|
|
809
|
+
];
|
|
810
|
+
};
|
|
811
|
+
event_submissions: {
|
|
812
|
+
Row: {
|
|
813
|
+
active: boolean | null;
|
|
814
|
+
address: string | null;
|
|
815
|
+
approved_event_id: string | null;
|
|
816
|
+
city: string | null;
|
|
817
|
+
country_code: string | null;
|
|
818
|
+
created_at: string | null;
|
|
819
|
+
cta: string | null;
|
|
820
|
+
date: string | null;
|
|
821
|
+
description: string | null;
|
|
822
|
+
end_date: string | null;
|
|
823
|
+
event_url: string | null;
|
|
824
|
+
extraction_model: string | null;
|
|
825
|
+
extraction_raw: Json | null;
|
|
826
|
+
host_id: string | null;
|
|
827
|
+
id: string;
|
|
828
|
+
image_url: string | null;
|
|
829
|
+
latitude: number | null;
|
|
830
|
+
location_name: string | null;
|
|
831
|
+
longitude: number | null;
|
|
832
|
+
name: string | null;
|
|
833
|
+
review_notes: string | null;
|
|
834
|
+
reviewed_at: string | null;
|
|
835
|
+
reviewed_by: string | null;
|
|
836
|
+
source_image_url: string;
|
|
837
|
+
spaces: number | null;
|
|
838
|
+
status: string;
|
|
839
|
+
updated_at: string | null;
|
|
840
|
+
user_id: string | null;
|
|
841
|
+
};
|
|
842
|
+
Insert: {
|
|
843
|
+
active?: boolean | null;
|
|
844
|
+
address?: string | null;
|
|
845
|
+
approved_event_id?: string | null;
|
|
846
|
+
city?: string | null;
|
|
847
|
+
country_code?: string | null;
|
|
848
|
+
created_at?: string | null;
|
|
849
|
+
cta?: string | null;
|
|
850
|
+
date?: string | null;
|
|
851
|
+
description?: string | null;
|
|
852
|
+
end_date?: string | null;
|
|
853
|
+
event_url?: string | null;
|
|
854
|
+
extraction_model?: string | null;
|
|
855
|
+
extraction_raw?: Json | null;
|
|
856
|
+
host_id?: string | null;
|
|
857
|
+
id?: string;
|
|
858
|
+
image_url?: string | null;
|
|
859
|
+
latitude?: number | null;
|
|
860
|
+
location_name?: string | null;
|
|
861
|
+
longitude?: number | null;
|
|
862
|
+
name?: string | null;
|
|
863
|
+
review_notes?: string | null;
|
|
864
|
+
reviewed_at?: string | null;
|
|
865
|
+
reviewed_by?: string | null;
|
|
866
|
+
source_image_url: string;
|
|
867
|
+
spaces?: number | null;
|
|
868
|
+
status?: string;
|
|
869
|
+
updated_at?: string | null;
|
|
870
|
+
user_id?: string | null;
|
|
871
|
+
};
|
|
872
|
+
Update: {
|
|
873
|
+
active?: boolean | null;
|
|
874
|
+
address?: string | null;
|
|
875
|
+
approved_event_id?: string | null;
|
|
876
|
+
city?: string | null;
|
|
877
|
+
country_code?: string | null;
|
|
878
|
+
created_at?: string | null;
|
|
879
|
+
cta?: string | null;
|
|
880
|
+
date?: string | null;
|
|
881
|
+
description?: string | null;
|
|
882
|
+
end_date?: string | null;
|
|
883
|
+
event_url?: string | null;
|
|
884
|
+
extraction_model?: string | null;
|
|
885
|
+
extraction_raw?: Json | null;
|
|
886
|
+
host_id?: string | null;
|
|
887
|
+
id?: string;
|
|
888
|
+
image_url?: string | null;
|
|
889
|
+
latitude?: number | null;
|
|
890
|
+
location_name?: string | null;
|
|
891
|
+
longitude?: number | null;
|
|
892
|
+
name?: string | null;
|
|
893
|
+
review_notes?: string | null;
|
|
894
|
+
reviewed_at?: string | null;
|
|
895
|
+
reviewed_by?: string | null;
|
|
896
|
+
source_image_url?: string;
|
|
897
|
+
spaces?: number | null;
|
|
898
|
+
status?: string;
|
|
899
|
+
updated_at?: string | null;
|
|
900
|
+
user_id?: string | null;
|
|
901
|
+
};
|
|
902
|
+
Relationships: [];
|
|
903
|
+
};
|
|
559
904
|
event_updates: {
|
|
560
905
|
Row: {
|
|
561
906
|
event_id: string | null;
|
|
@@ -617,6 +962,7 @@ export type Database = {
|
|
|
617
962
|
events: {
|
|
618
963
|
Row: {
|
|
619
964
|
active: boolean | null;
|
|
965
|
+
address: string | null;
|
|
620
966
|
city: string | null;
|
|
621
967
|
coordinates: Json | null;
|
|
622
968
|
country_code: string | null;
|
|
@@ -624,20 +970,24 @@ export type Database = {
|
|
|
624
970
|
cta: string | null;
|
|
625
971
|
date: string | null;
|
|
626
972
|
description: string | null;
|
|
973
|
+
end_date: string | null;
|
|
627
974
|
event_url: string | null;
|
|
628
975
|
host_id: string | null;
|
|
629
976
|
id: string;
|
|
630
977
|
image_url: string | null;
|
|
978
|
+
images: string[] | null;
|
|
631
979
|
latitude: number | null;
|
|
632
980
|
location_name: string | null;
|
|
633
981
|
longitude: number | null;
|
|
634
982
|
name: string | null;
|
|
983
|
+
reward_sticker_id: string | null;
|
|
635
984
|
spaces: number | null;
|
|
636
985
|
updated_at: string | null;
|
|
637
986
|
url: string | null;
|
|
638
987
|
};
|
|
639
988
|
Insert: {
|
|
640
989
|
active?: boolean | null;
|
|
990
|
+
address?: string | null;
|
|
641
991
|
city?: string | null;
|
|
642
992
|
coordinates?: Json | null;
|
|
643
993
|
country_code?: string | null;
|
|
@@ -645,20 +995,24 @@ export type Database = {
|
|
|
645
995
|
cta?: string | null;
|
|
646
996
|
date?: string | null;
|
|
647
997
|
description?: string | null;
|
|
998
|
+
end_date?: string | null;
|
|
648
999
|
event_url?: string | null;
|
|
649
1000
|
host_id?: string | null;
|
|
650
1001
|
id: string;
|
|
651
1002
|
image_url?: string | null;
|
|
1003
|
+
images?: string[] | null;
|
|
652
1004
|
latitude?: number | null;
|
|
653
1005
|
location_name?: string | null;
|
|
654
1006
|
longitude?: number | null;
|
|
655
1007
|
name?: string | null;
|
|
1008
|
+
reward_sticker_id?: string | null;
|
|
656
1009
|
spaces?: number | null;
|
|
657
1010
|
updated_at?: string | null;
|
|
658
1011
|
url?: string | null;
|
|
659
1012
|
};
|
|
660
1013
|
Update: {
|
|
661
1014
|
active?: boolean | null;
|
|
1015
|
+
address?: string | null;
|
|
662
1016
|
city?: string | null;
|
|
663
1017
|
coordinates?: Json | null;
|
|
664
1018
|
country_code?: string | null;
|
|
@@ -666,14 +1020,17 @@ export type Database = {
|
|
|
666
1020
|
cta?: string | null;
|
|
667
1021
|
date?: string | null;
|
|
668
1022
|
description?: string | null;
|
|
1023
|
+
end_date?: string | null;
|
|
669
1024
|
event_url?: string | null;
|
|
670
1025
|
host_id?: string | null;
|
|
671
1026
|
id?: string;
|
|
672
1027
|
image_url?: string | null;
|
|
1028
|
+
images?: string[] | null;
|
|
673
1029
|
latitude?: number | null;
|
|
674
1030
|
location_name?: string | null;
|
|
675
1031
|
longitude?: number | null;
|
|
676
1032
|
name?: string | null;
|
|
1033
|
+
reward_sticker_id?: string | null;
|
|
677
1034
|
spaces?: number | null;
|
|
678
1035
|
updated_at?: string | null;
|
|
679
1036
|
url?: string | null;
|
|
@@ -692,6 +1049,13 @@ export type Database = {
|
|
|
692
1049
|
isOneToOne: false;
|
|
693
1050
|
referencedRelation: "shops";
|
|
694
1051
|
referencedColumns: ["id"];
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
foreignKeyName: "events_reward_sticker_id_fkey";
|
|
1055
|
+
columns: ["reward_sticker_id"];
|
|
1056
|
+
isOneToOne: false;
|
|
1057
|
+
referencedRelation: "stickers";
|
|
1058
|
+
referencedColumns: ["id"];
|
|
695
1059
|
}
|
|
696
1060
|
];
|
|
697
1061
|
};
|
|
@@ -943,31 +1307,16 @@ export type Database = {
|
|
|
943
1307
|
description?: string | null;
|
|
944
1308
|
event_details?: Json | null;
|
|
945
1309
|
event_type?: string;
|
|
946
|
-
id?: string;
|
|
947
|
-
outcome?: string | null;
|
|
948
|
-
request_metadata?: Json | null;
|
|
949
|
-
severity?: string | null;
|
|
950
|
-
shop_id?: string | null;
|
|
951
|
-
source?: string | null;
|
|
952
|
-
staff_id?: string | null;
|
|
953
|
-
timestamp?: string | null;
|
|
954
|
-
};
|
|
955
|
-
Relationships: [
|
|
956
|
-
{
|
|
957
|
-
foreignKeyName: "loyalty_audit_logs_shop_id_fkey";
|
|
958
|
-
columns: ["shop_id"];
|
|
959
|
-
isOneToOne: false;
|
|
960
|
-
referencedRelation: "shop_stats";
|
|
961
|
-
referencedColumns: ["id"];
|
|
962
|
-
},
|
|
963
|
-
{
|
|
964
|
-
foreignKeyName: "loyalty_audit_logs_shop_id_fkey";
|
|
965
|
-
columns: ["shop_id"];
|
|
966
|
-
isOneToOne: false;
|
|
967
|
-
referencedRelation: "shops";
|
|
968
|
-
referencedColumns: ["id"];
|
|
969
|
-
}
|
|
970
|
-
];
|
|
1310
|
+
id?: string;
|
|
1311
|
+
outcome?: string | null;
|
|
1312
|
+
request_metadata?: Json | null;
|
|
1313
|
+
severity?: string | null;
|
|
1314
|
+
shop_id?: string | null;
|
|
1315
|
+
source?: string | null;
|
|
1316
|
+
staff_id?: string | null;
|
|
1317
|
+
timestamp?: string | null;
|
|
1318
|
+
};
|
|
1319
|
+
Relationships: [];
|
|
971
1320
|
};
|
|
972
1321
|
loyalty_stamps: {
|
|
973
1322
|
Row: {
|
|
@@ -1013,20 +1362,6 @@ export type Database = {
|
|
|
1013
1362
|
voucher_id?: string | null;
|
|
1014
1363
|
};
|
|
1015
1364
|
Relationships: [
|
|
1016
|
-
{
|
|
1017
|
-
foreignKeyName: "loyalty_stamps_shop_id_fkey";
|
|
1018
|
-
columns: ["shop_id"];
|
|
1019
|
-
isOneToOne: false;
|
|
1020
|
-
referencedRelation: "shop_stats";
|
|
1021
|
-
referencedColumns: ["id"];
|
|
1022
|
-
},
|
|
1023
|
-
{
|
|
1024
|
-
foreignKeyName: "loyalty_stamps_shop_id_fkey";
|
|
1025
|
-
columns: ["shop_id"];
|
|
1026
|
-
isOneToOne: false;
|
|
1027
|
-
referencedRelation: "shops";
|
|
1028
|
-
referencedColumns: ["id"];
|
|
1029
|
-
},
|
|
1030
1365
|
{
|
|
1031
1366
|
foreignKeyName: "loyalty_stamps_user_id_fkey";
|
|
1032
1367
|
columns: ["user_id"];
|
|
@@ -1537,7 +1872,7 @@ export type Database = {
|
|
|
1537
1872
|
created_at: string;
|
|
1538
1873
|
field_path: string;
|
|
1539
1874
|
id: string;
|
|
1540
|
-
ip_address:
|
|
1875
|
+
ip_address: unknown;
|
|
1541
1876
|
shop_id: string;
|
|
1542
1877
|
token_id: string | null;
|
|
1543
1878
|
user_agent: string | null;
|
|
@@ -1549,7 +1884,7 @@ export type Database = {
|
|
|
1549
1884
|
created_at?: string;
|
|
1550
1885
|
field_path: string;
|
|
1551
1886
|
id?: string;
|
|
1552
|
-
ip_address?:
|
|
1887
|
+
ip_address?: unknown;
|
|
1553
1888
|
shop_id: string;
|
|
1554
1889
|
token_id?: string | null;
|
|
1555
1890
|
user_agent?: string | null;
|
|
@@ -1561,18 +1896,32 @@ export type Database = {
|
|
|
1561
1896
|
created_at?: string;
|
|
1562
1897
|
field_path?: string;
|
|
1563
1898
|
id?: string;
|
|
1564
|
-
ip_address?:
|
|
1899
|
+
ip_address?: unknown;
|
|
1565
1900
|
shop_id?: string;
|
|
1566
1901
|
token_id?: string | null;
|
|
1567
1902
|
user_agent?: string | null;
|
|
1568
1903
|
};
|
|
1569
1904
|
Relationships: [
|
|
1905
|
+
{
|
|
1906
|
+
foreignKeyName: "owner_edit_log_shop_id_fkey";
|
|
1907
|
+
columns: ["shop_id"];
|
|
1908
|
+
isOneToOne: false;
|
|
1909
|
+
referencedRelation: "shop_stats";
|
|
1910
|
+
referencedColumns: ["id"];
|
|
1911
|
+
},
|
|
1570
1912
|
{
|
|
1571
1913
|
foreignKeyName: "owner_edit_log_shop_id_fkey";
|
|
1572
1914
|
columns: ["shop_id"];
|
|
1573
1915
|
isOneToOne: false;
|
|
1574
1916
|
referencedRelation: "shops";
|
|
1575
1917
|
referencedColumns: ["id"];
|
|
1918
|
+
},
|
|
1919
|
+
{
|
|
1920
|
+
foreignKeyName: "owner_edit_log_token_id_fkey";
|
|
1921
|
+
columns: ["token_id"];
|
|
1922
|
+
isOneToOne: false;
|
|
1923
|
+
referencedRelation: "staff_invites";
|
|
1924
|
+
referencedColumns: ["id"];
|
|
1576
1925
|
}
|
|
1577
1926
|
];
|
|
1578
1927
|
};
|
|
@@ -1581,7 +1930,7 @@ export type Database = {
|
|
|
1581
1930
|
actor_email: string | null;
|
|
1582
1931
|
created_at: string;
|
|
1583
1932
|
id: string;
|
|
1584
|
-
ip_address:
|
|
1933
|
+
ip_address: unknown;
|
|
1585
1934
|
message: string | null;
|
|
1586
1935
|
reason: string;
|
|
1587
1936
|
resolution_note: string | null;
|
|
@@ -1595,7 +1944,7 @@ export type Database = {
|
|
|
1595
1944
|
actor_email?: string | null;
|
|
1596
1945
|
created_at?: string;
|
|
1597
1946
|
id?: string;
|
|
1598
|
-
ip_address?:
|
|
1947
|
+
ip_address?: unknown;
|
|
1599
1948
|
message?: string | null;
|
|
1600
1949
|
reason: string;
|
|
1601
1950
|
resolution_note?: string | null;
|
|
@@ -1609,7 +1958,7 @@ export type Database = {
|
|
|
1609
1958
|
actor_email?: string | null;
|
|
1610
1959
|
created_at?: string;
|
|
1611
1960
|
id?: string;
|
|
1612
|
-
ip_address?:
|
|
1961
|
+
ip_address?: unknown;
|
|
1613
1962
|
message?: string | null;
|
|
1614
1963
|
reason?: string;
|
|
1615
1964
|
resolution_note?: string | null;
|
|
@@ -1620,12 +1969,26 @@ export type Database = {
|
|
|
1620
1969
|
user_agent?: string | null;
|
|
1621
1970
|
};
|
|
1622
1971
|
Relationships: [
|
|
1972
|
+
{
|
|
1973
|
+
foreignKeyName: "owner_listing_reports_shop_id_fkey";
|
|
1974
|
+
columns: ["shop_id"];
|
|
1975
|
+
isOneToOne: false;
|
|
1976
|
+
referencedRelation: "shop_stats";
|
|
1977
|
+
referencedColumns: ["id"];
|
|
1978
|
+
},
|
|
1623
1979
|
{
|
|
1624
1980
|
foreignKeyName: "owner_listing_reports_shop_id_fkey";
|
|
1625
1981
|
columns: ["shop_id"];
|
|
1626
1982
|
isOneToOne: false;
|
|
1627
1983
|
referencedRelation: "shops";
|
|
1628
1984
|
referencedColumns: ["id"];
|
|
1985
|
+
},
|
|
1986
|
+
{
|
|
1987
|
+
foreignKeyName: "owner_listing_reports_token_id_fkey";
|
|
1988
|
+
columns: ["token_id"];
|
|
1989
|
+
isOneToOne: false;
|
|
1990
|
+
referencedRelation: "staff_invites";
|
|
1991
|
+
referencedColumns: ["id"];
|
|
1629
1992
|
}
|
|
1630
1993
|
];
|
|
1631
1994
|
};
|
|
@@ -1636,7 +1999,7 @@ export type Database = {
|
|
|
1636
1999
|
current_value: Json | null;
|
|
1637
2000
|
field_path: string;
|
|
1638
2001
|
id: string;
|
|
1639
|
-
ip_address:
|
|
2002
|
+
ip_address: unknown;
|
|
1640
2003
|
proposed_value: Json | null;
|
|
1641
2004
|
rejection_reason: string | null;
|
|
1642
2005
|
reviewed_at: string | null;
|
|
@@ -1652,7 +2015,7 @@ export type Database = {
|
|
|
1652
2015
|
current_value?: Json | null;
|
|
1653
2016
|
field_path: string;
|
|
1654
2017
|
id?: string;
|
|
1655
|
-
ip_address?:
|
|
2018
|
+
ip_address?: unknown;
|
|
1656
2019
|
proposed_value?: Json | null;
|
|
1657
2020
|
rejection_reason?: string | null;
|
|
1658
2021
|
reviewed_at?: string | null;
|
|
@@ -1668,7 +2031,7 @@ export type Database = {
|
|
|
1668
2031
|
current_value?: Json | null;
|
|
1669
2032
|
field_path?: string;
|
|
1670
2033
|
id?: string;
|
|
1671
|
-
ip_address?:
|
|
2034
|
+
ip_address?: unknown;
|
|
1672
2035
|
proposed_value?: Json | null;
|
|
1673
2036
|
rejection_reason?: string | null;
|
|
1674
2037
|
reviewed_at?: string | null;
|
|
@@ -1679,12 +2042,26 @@ export type Database = {
|
|
|
1679
2042
|
user_agent?: string | null;
|
|
1680
2043
|
};
|
|
1681
2044
|
Relationships: [
|
|
2045
|
+
{
|
|
2046
|
+
foreignKeyName: "owner_pending_field_changes_shop_id_fkey";
|
|
2047
|
+
columns: ["shop_id"];
|
|
2048
|
+
isOneToOne: false;
|
|
2049
|
+
referencedRelation: "shop_stats";
|
|
2050
|
+
referencedColumns: ["id"];
|
|
2051
|
+
},
|
|
1682
2052
|
{
|
|
1683
2053
|
foreignKeyName: "owner_pending_field_changes_shop_id_fkey";
|
|
1684
2054
|
columns: ["shop_id"];
|
|
1685
2055
|
isOneToOne: false;
|
|
1686
2056
|
referencedRelation: "shops";
|
|
1687
2057
|
referencedColumns: ["id"];
|
|
2058
|
+
},
|
|
2059
|
+
{
|
|
2060
|
+
foreignKeyName: "owner_pending_field_changes_token_id_fkey";
|
|
2061
|
+
columns: ["token_id"];
|
|
2062
|
+
isOneToOne: false;
|
|
2063
|
+
referencedRelation: "staff_invites";
|
|
2064
|
+
referencedColumns: ["id"];
|
|
1688
2065
|
}
|
|
1689
2066
|
];
|
|
1690
2067
|
};
|
|
@@ -2136,7 +2513,7 @@ export type Database = {
|
|
|
2136
2513
|
reported_item_id: string | null;
|
|
2137
2514
|
reporter_id: string | null;
|
|
2138
2515
|
status: string;
|
|
2139
|
-
updated_at: string;
|
|
2516
|
+
updated_at: string | null;
|
|
2140
2517
|
};
|
|
2141
2518
|
Insert: {
|
|
2142
2519
|
assigned_to?: string | null;
|
|
@@ -2154,7 +2531,7 @@ export type Database = {
|
|
|
2154
2531
|
reported_item_id?: string | null;
|
|
2155
2532
|
reporter_id?: string | null;
|
|
2156
2533
|
status?: string;
|
|
2157
|
-
updated_at?: string;
|
|
2534
|
+
updated_at?: string | null;
|
|
2158
2535
|
};
|
|
2159
2536
|
Update: {
|
|
2160
2537
|
assigned_to?: string | null;
|
|
@@ -2172,7 +2549,7 @@ export type Database = {
|
|
|
2172
2549
|
reported_item_id?: string | null;
|
|
2173
2550
|
reporter_id?: string | null;
|
|
2174
2551
|
status?: string;
|
|
2175
|
-
updated_at?: string;
|
|
2552
|
+
updated_at?: string | null;
|
|
2176
2553
|
};
|
|
2177
2554
|
Relationships: [
|
|
2178
2555
|
{
|
|
@@ -2313,6 +2690,44 @@ export type Database = {
|
|
|
2313
2690
|
}
|
|
2314
2691
|
];
|
|
2315
2692
|
};
|
|
2693
|
+
reward_rules: {
|
|
2694
|
+
Row: {
|
|
2695
|
+
created_at: string;
|
|
2696
|
+
id: string;
|
|
2697
|
+
is_active: boolean;
|
|
2698
|
+
sticker_id: string;
|
|
2699
|
+
threshold: number;
|
|
2700
|
+
type: string;
|
|
2701
|
+
updated_at: string;
|
|
2702
|
+
};
|
|
2703
|
+
Insert: {
|
|
2704
|
+
created_at?: string;
|
|
2705
|
+
id?: string;
|
|
2706
|
+
is_active?: boolean;
|
|
2707
|
+
sticker_id: string;
|
|
2708
|
+
threshold: number;
|
|
2709
|
+
type: string;
|
|
2710
|
+
updated_at?: string;
|
|
2711
|
+
};
|
|
2712
|
+
Update: {
|
|
2713
|
+
created_at?: string;
|
|
2714
|
+
id?: string;
|
|
2715
|
+
is_active?: boolean;
|
|
2716
|
+
sticker_id?: string;
|
|
2717
|
+
threshold?: number;
|
|
2718
|
+
type?: string;
|
|
2719
|
+
updated_at?: string;
|
|
2720
|
+
};
|
|
2721
|
+
Relationships: [
|
|
2722
|
+
{
|
|
2723
|
+
foreignKeyName: "reward_rules_sticker_id_fkey";
|
|
2724
|
+
columns: ["sticker_id"];
|
|
2725
|
+
isOneToOne: false;
|
|
2726
|
+
referencedRelation: "stickers";
|
|
2727
|
+
referencedColumns: ["id"];
|
|
2728
|
+
}
|
|
2729
|
+
];
|
|
2730
|
+
};
|
|
2316
2731
|
rewards: {
|
|
2317
2732
|
Row: {
|
|
2318
2733
|
created_at: string | null;
|
|
@@ -2401,7 +2816,7 @@ export type Database = {
|
|
|
2401
2816
|
contact_details: Json | null;
|
|
2402
2817
|
country: string | null;
|
|
2403
2818
|
country_code: string | null;
|
|
2404
|
-
created_at: string;
|
|
2819
|
+
created_at: string | null;
|
|
2405
2820
|
description: string | null;
|
|
2406
2821
|
evidence_urls: string[] | null;
|
|
2407
2822
|
id: string;
|
|
@@ -2415,9 +2830,10 @@ export type Database = {
|
|
|
2415
2830
|
reviewed_at: string | null;
|
|
2416
2831
|
reviewed_by: string | null;
|
|
2417
2832
|
roaster_id: string | null;
|
|
2833
|
+
shop_id: string | null;
|
|
2418
2834
|
status: string;
|
|
2419
2835
|
suggested_tier: number | null;
|
|
2420
|
-
updated_at: string;
|
|
2836
|
+
updated_at: string | null;
|
|
2421
2837
|
user_id: string | null;
|
|
2422
2838
|
website: string | null;
|
|
2423
2839
|
};
|
|
@@ -2429,7 +2845,7 @@ export type Database = {
|
|
|
2429
2845
|
contact_details?: Json | null;
|
|
2430
2846
|
country?: string | null;
|
|
2431
2847
|
country_code?: string | null;
|
|
2432
|
-
created_at?: string;
|
|
2848
|
+
created_at?: string | null;
|
|
2433
2849
|
description?: string | null;
|
|
2434
2850
|
evidence_urls?: string[] | null;
|
|
2435
2851
|
id?: string;
|
|
@@ -2443,9 +2859,10 @@ export type Database = {
|
|
|
2443
2859
|
reviewed_at?: string | null;
|
|
2444
2860
|
reviewed_by?: string | null;
|
|
2445
2861
|
roaster_id?: string | null;
|
|
2862
|
+
shop_id?: string | null;
|
|
2446
2863
|
status?: string;
|
|
2447
2864
|
suggested_tier?: number | null;
|
|
2448
|
-
updated_at?: string;
|
|
2865
|
+
updated_at?: string | null;
|
|
2449
2866
|
user_id?: string | null;
|
|
2450
2867
|
website?: string | null;
|
|
2451
2868
|
};
|
|
@@ -2457,7 +2874,7 @@ export type Database = {
|
|
|
2457
2874
|
contact_details?: Json | null;
|
|
2458
2875
|
country?: string | null;
|
|
2459
2876
|
country_code?: string | null;
|
|
2460
|
-
created_at?: string;
|
|
2877
|
+
created_at?: string | null;
|
|
2461
2878
|
description?: string | null;
|
|
2462
2879
|
evidence_urls?: string[] | null;
|
|
2463
2880
|
id?: string;
|
|
@@ -2471,60 +2888,26 @@ export type Database = {
|
|
|
2471
2888
|
reviewed_at?: string | null;
|
|
2472
2889
|
reviewed_by?: string | null;
|
|
2473
2890
|
roaster_id?: string | null;
|
|
2891
|
+
shop_id?: string | null;
|
|
2474
2892
|
status?: string;
|
|
2475
2893
|
suggested_tier?: number | null;
|
|
2476
|
-
updated_at?: string;
|
|
2894
|
+
updated_at?: string | null;
|
|
2477
2895
|
user_id?: string | null;
|
|
2478
2896
|
website?: string | null;
|
|
2479
2897
|
};
|
|
2480
2898
|
Relationships: [
|
|
2481
2899
|
{
|
|
2482
|
-
foreignKeyName: "
|
|
2483
|
-
columns: ["
|
|
2484
|
-
isOneToOne: false;
|
|
2485
|
-
referencedRelation: "roasters";
|
|
2486
|
-
referencedColumns: ["id"];
|
|
2487
|
-
},
|
|
2488
|
-
{
|
|
2489
|
-
foreignKeyName: "roaster_submissions_reviewed_by_fkey";
|
|
2490
|
-
columns: ["reviewed_by"];
|
|
2491
|
-
isOneToOne: false;
|
|
2492
|
-
referencedRelation: "leaderboard";
|
|
2493
|
-
referencedColumns: ["id"];
|
|
2494
|
-
},
|
|
2495
|
-
{
|
|
2496
|
-
foreignKeyName: "roaster_submissions_reviewed_by_fkey";
|
|
2497
|
-
columns: ["reviewed_by"];
|
|
2498
|
-
isOneToOne: false;
|
|
2499
|
-
referencedRelation: "user_activity_summary";
|
|
2500
|
-
referencedColumns: ["id"];
|
|
2501
|
-
},
|
|
2502
|
-
{
|
|
2503
|
-
foreignKeyName: "roaster_submissions_reviewed_by_fkey";
|
|
2504
|
-
columns: ["reviewed_by"];
|
|
2505
|
-
isOneToOne: false;
|
|
2506
|
-
referencedRelation: "users";
|
|
2507
|
-
referencedColumns: ["id"];
|
|
2508
|
-
},
|
|
2509
|
-
{
|
|
2510
|
-
foreignKeyName: "roaster_submissions_user_id_fkey";
|
|
2511
|
-
columns: ["user_id"];
|
|
2512
|
-
isOneToOne: false;
|
|
2513
|
-
referencedRelation: "leaderboard";
|
|
2514
|
-
referencedColumns: ["id"];
|
|
2515
|
-
},
|
|
2516
|
-
{
|
|
2517
|
-
foreignKeyName: "roaster_submissions_user_id_fkey";
|
|
2518
|
-
columns: ["user_id"];
|
|
2900
|
+
foreignKeyName: "roaster_submissions_shop_id_fkey";
|
|
2901
|
+
columns: ["shop_id"];
|
|
2519
2902
|
isOneToOne: false;
|
|
2520
|
-
referencedRelation: "
|
|
2903
|
+
referencedRelation: "shop_stats";
|
|
2521
2904
|
referencedColumns: ["id"];
|
|
2522
2905
|
},
|
|
2523
2906
|
{
|
|
2524
|
-
foreignKeyName: "
|
|
2525
|
-
columns: ["
|
|
2907
|
+
foreignKeyName: "roaster_submissions_shop_id_fkey";
|
|
2908
|
+
columns: ["shop_id"];
|
|
2526
2909
|
isOneToOne: false;
|
|
2527
|
-
referencedRelation: "
|
|
2910
|
+
referencedRelation: "shops";
|
|
2528
2911
|
referencedColumns: ["id"];
|
|
2529
2912
|
}
|
|
2530
2913
|
];
|
|
@@ -2586,84 +2969,56 @@ export type Database = {
|
|
|
2586
2969
|
};
|
|
2587
2970
|
Relationships: [];
|
|
2588
2971
|
};
|
|
2589
|
-
|
|
2590
|
-
Row: {
|
|
2591
|
-
bean_id: string;
|
|
2592
|
-
shop_id: string;
|
|
2593
|
-
};
|
|
2594
|
-
Insert: {
|
|
2595
|
-
bean_id: string;
|
|
2596
|
-
shop_id: string;
|
|
2597
|
-
};
|
|
2598
|
-
Update: {
|
|
2599
|
-
bean_id?: string;
|
|
2600
|
-
shop_id?: string;
|
|
2601
|
-
};
|
|
2602
|
-
Relationships: [
|
|
2603
|
-
{
|
|
2604
|
-
foreignKeyName: "shop_beans_bean_id_fkey";
|
|
2605
|
-
columns: ["bean_id"];
|
|
2606
|
-
isOneToOne: false;
|
|
2607
|
-
referencedRelation: "coffee_beans";
|
|
2608
|
-
referencedColumns: ["id"];
|
|
2609
|
-
},
|
|
2610
|
-
{
|
|
2611
|
-
foreignKeyName: "shop_beans_shop_id_fkey";
|
|
2612
|
-
columns: ["shop_id"];
|
|
2613
|
-
isOneToOne: false;
|
|
2614
|
-
referencedRelation: "shop_stats";
|
|
2615
|
-
referencedColumns: ["id"];
|
|
2616
|
-
},
|
|
2617
|
-
{
|
|
2618
|
-
foreignKeyName: "shop_beans_shop_id_fkey";
|
|
2619
|
-
columns: ["shop_id"];
|
|
2620
|
-
isOneToOne: false;
|
|
2621
|
-
referencedRelation: "shops";
|
|
2622
|
-
referencedColumns: ["id"];
|
|
2623
|
-
}
|
|
2624
|
-
];
|
|
2625
|
-
};
|
|
2626
|
-
shop_daily_visitor_stats: {
|
|
2972
|
+
shop_awards: {
|
|
2627
2973
|
Row: {
|
|
2974
|
+
award_type: string;
|
|
2628
2975
|
created_at: string | null;
|
|
2629
|
-
date: string;
|
|
2630
2976
|
id: string;
|
|
2977
|
+
image_url: string | null;
|
|
2978
|
+
issued_by: string | null;
|
|
2979
|
+
notes: string | null;
|
|
2631
2980
|
shop_id: string;
|
|
2632
|
-
|
|
2633
|
-
|
|
2981
|
+
title: string;
|
|
2982
|
+
type: string;
|
|
2634
2983
|
updated_at: string | null;
|
|
2635
|
-
|
|
2984
|
+
year: number | null;
|
|
2636
2985
|
};
|
|
2637
2986
|
Insert: {
|
|
2987
|
+
award_type: string;
|
|
2638
2988
|
created_at?: string | null;
|
|
2639
|
-
date: string;
|
|
2640
2989
|
id?: string;
|
|
2990
|
+
image_url?: string | null;
|
|
2991
|
+
issued_by?: string | null;
|
|
2992
|
+
notes?: string | null;
|
|
2641
2993
|
shop_id: string;
|
|
2642
|
-
|
|
2643
|
-
|
|
2994
|
+
title: string;
|
|
2995
|
+
type: string;
|
|
2644
2996
|
updated_at?: string | null;
|
|
2645
|
-
|
|
2997
|
+
year?: number | null;
|
|
2646
2998
|
};
|
|
2647
2999
|
Update: {
|
|
3000
|
+
award_type?: string;
|
|
2648
3001
|
created_at?: string | null;
|
|
2649
|
-
date?: string;
|
|
2650
3002
|
id?: string;
|
|
3003
|
+
image_url?: string | null;
|
|
3004
|
+
issued_by?: string | null;
|
|
3005
|
+
notes?: string | null;
|
|
2651
3006
|
shop_id?: string;
|
|
2652
|
-
|
|
2653
|
-
|
|
3007
|
+
title?: string;
|
|
3008
|
+
type?: string;
|
|
2654
3009
|
updated_at?: string | null;
|
|
2655
|
-
|
|
3010
|
+
year?: number | null;
|
|
2656
3011
|
};
|
|
2657
3012
|
Relationships: [
|
|
2658
3013
|
{
|
|
2659
|
-
foreignKeyName: "
|
|
3014
|
+
foreignKeyName: "shop_awards_shop_id_fkey";
|
|
2660
3015
|
columns: ["shop_id"];
|
|
2661
3016
|
isOneToOne: false;
|
|
2662
3017
|
referencedRelation: "shop_stats";
|
|
2663
3018
|
referencedColumns: ["id"];
|
|
2664
3019
|
},
|
|
2665
3020
|
{
|
|
2666
|
-
foreignKeyName: "
|
|
3021
|
+
foreignKeyName: "shop_awards_shop_id_fkey";
|
|
2667
3022
|
columns: ["shop_id"];
|
|
2668
3023
|
isOneToOne: false;
|
|
2669
3024
|
referencedRelation: "shops";
|
|
@@ -2671,103 +3026,84 @@ export type Database = {
|
|
|
2671
3026
|
}
|
|
2672
3027
|
];
|
|
2673
3028
|
};
|
|
2674
|
-
|
|
3029
|
+
shop_beans: {
|
|
2675
3030
|
Row: {
|
|
2676
|
-
|
|
3031
|
+
bean_id: string;
|
|
2677
3032
|
shop_id: string;
|
|
2678
|
-
user_id: string;
|
|
2679
3033
|
};
|
|
2680
3034
|
Insert: {
|
|
2681
|
-
|
|
3035
|
+
bean_id: string;
|
|
2682
3036
|
shop_id: string;
|
|
2683
|
-
user_id: string;
|
|
2684
3037
|
};
|
|
2685
3038
|
Update: {
|
|
2686
|
-
|
|
3039
|
+
bean_id?: string;
|
|
2687
3040
|
shop_id?: string;
|
|
2688
|
-
user_id?: string;
|
|
2689
3041
|
};
|
|
2690
3042
|
Relationships: [
|
|
2691
|
-
{
|
|
2692
|
-
foreignKeyName: "
|
|
2693
|
-
columns: ["
|
|
2694
|
-
isOneToOne: false;
|
|
2695
|
-
referencedRelation: "shop_stats";
|
|
2696
|
-
referencedColumns: ["id"];
|
|
2697
|
-
},
|
|
2698
|
-
{
|
|
2699
|
-
foreignKeyName: "shop_favourites_shop_id_fkey";
|
|
2700
|
-
columns: ["shop_id"];
|
|
2701
|
-
isOneToOne: false;
|
|
2702
|
-
referencedRelation: "shops";
|
|
2703
|
-
referencedColumns: ["id"];
|
|
2704
|
-
},
|
|
2705
|
-
{
|
|
2706
|
-
foreignKeyName: "shop_favourites_user_id_fkey";
|
|
2707
|
-
columns: ["user_id"];
|
|
3043
|
+
{
|
|
3044
|
+
foreignKeyName: "shop_beans_bean_id_fkey";
|
|
3045
|
+
columns: ["bean_id"];
|
|
2708
3046
|
isOneToOne: false;
|
|
2709
|
-
referencedRelation: "
|
|
3047
|
+
referencedRelation: "coffee_beans";
|
|
2710
3048
|
referencedColumns: ["id"];
|
|
2711
3049
|
},
|
|
2712
3050
|
{
|
|
2713
|
-
foreignKeyName: "
|
|
2714
|
-
columns: ["
|
|
3051
|
+
foreignKeyName: "shop_beans_shop_id_fkey";
|
|
3052
|
+
columns: ["shop_id"];
|
|
2715
3053
|
isOneToOne: false;
|
|
2716
|
-
referencedRelation: "
|
|
3054
|
+
referencedRelation: "shop_stats";
|
|
2717
3055
|
referencedColumns: ["id"];
|
|
2718
3056
|
},
|
|
2719
3057
|
{
|
|
2720
|
-
foreignKeyName: "
|
|
2721
|
-
columns: ["
|
|
3058
|
+
foreignKeyName: "shop_beans_shop_id_fkey";
|
|
3059
|
+
columns: ["shop_id"];
|
|
2722
3060
|
isOneToOne: false;
|
|
2723
|
-
referencedRelation: "
|
|
3061
|
+
referencedRelation: "shops";
|
|
2724
3062
|
referencedColumns: ["id"];
|
|
2725
3063
|
}
|
|
2726
3064
|
];
|
|
2727
3065
|
};
|
|
2728
|
-
|
|
3066
|
+
shop_daily_visitor_stats: {
|
|
2729
3067
|
Row: {
|
|
3068
|
+
created_at: string | null;
|
|
3069
|
+
date: string;
|
|
2730
3070
|
id: string;
|
|
2731
3071
|
shop_id: string;
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
title: string;
|
|
2735
|
-
year: number | null;
|
|
2736
|
-
notes: string | null;
|
|
2737
|
-
image_url: string | null;
|
|
2738
|
-
issued_by: string | null;
|
|
2739
|
-
created_at: string | null;
|
|
3072
|
+
total_check_ins: number | null;
|
|
3073
|
+
unique_visitors: number | null;
|
|
2740
3074
|
updated_at: string | null;
|
|
3075
|
+
user_check_ins: Json | null;
|
|
2741
3076
|
};
|
|
2742
3077
|
Insert: {
|
|
3078
|
+
created_at?: string | null;
|
|
3079
|
+
date: string;
|
|
2743
3080
|
id?: string;
|
|
2744
3081
|
shop_id: string;
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
title: string;
|
|
2748
|
-
year?: number | null;
|
|
2749
|
-
notes?: string | null;
|
|
2750
|
-
image_url?: string | null;
|
|
2751
|
-
issued_by?: string | null;
|
|
2752
|
-
created_at?: string | null;
|
|
3082
|
+
total_check_ins?: number | null;
|
|
3083
|
+
unique_visitors?: number | null;
|
|
2753
3084
|
updated_at?: string | null;
|
|
3085
|
+
user_check_ins?: Json | null;
|
|
2754
3086
|
};
|
|
2755
3087
|
Update: {
|
|
3088
|
+
created_at?: string | null;
|
|
3089
|
+
date?: string;
|
|
2756
3090
|
id?: string;
|
|
2757
3091
|
shop_id?: string;
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
title?: string;
|
|
2761
|
-
year?: number | null;
|
|
2762
|
-
notes?: string | null;
|
|
2763
|
-
image_url?: string | null;
|
|
2764
|
-
issued_by?: string | null;
|
|
2765
|
-
created_at?: string | null;
|
|
3092
|
+
total_check_ins?: number | null;
|
|
3093
|
+
unique_visitors?: number | null;
|
|
2766
3094
|
updated_at?: string | null;
|
|
3095
|
+
user_check_ins?: Json | null;
|
|
2767
3096
|
};
|
|
2768
3097
|
Relationships: [
|
|
2769
3098
|
{
|
|
2770
|
-
foreignKeyName: "
|
|
3099
|
+
foreignKeyName: "shop_daily_visitor_stats_shop_id_fkey";
|
|
3100
|
+
columns: ["shop_id"];
|
|
3101
|
+
isOneToOne: false;
|
|
3102
|
+
referencedRelation: "shop_stats";
|
|
3103
|
+
referencedColumns: ["id"];
|
|
3104
|
+
},
|
|
3105
|
+
{
|
|
3106
|
+
foreignKeyName: "shop_daily_visitor_stats_shop_id_fkey";
|
|
2771
3107
|
columns: ["shop_id"];
|
|
2772
3108
|
isOneToOne: false;
|
|
2773
3109
|
referencedRelation: "shops";
|
|
@@ -2775,7 +3111,7 @@ export type Database = {
|
|
|
2775
3111
|
}
|
|
2776
3112
|
];
|
|
2777
3113
|
};
|
|
2778
|
-
|
|
3114
|
+
shop_favourites: {
|
|
2779
3115
|
Row: {
|
|
2780
3116
|
created_at: string | null;
|
|
2781
3117
|
shop_id: string;
|
|
@@ -2793,35 +3129,35 @@ export type Database = {
|
|
|
2793
3129
|
};
|
|
2794
3130
|
Relationships: [
|
|
2795
3131
|
{
|
|
2796
|
-
foreignKeyName: "
|
|
3132
|
+
foreignKeyName: "shop_favourites_shop_id_fkey";
|
|
2797
3133
|
columns: ["shop_id"];
|
|
2798
3134
|
isOneToOne: false;
|
|
2799
3135
|
referencedRelation: "shop_stats";
|
|
2800
3136
|
referencedColumns: ["id"];
|
|
2801
3137
|
},
|
|
2802
3138
|
{
|
|
2803
|
-
foreignKeyName: "
|
|
3139
|
+
foreignKeyName: "shop_favourites_shop_id_fkey";
|
|
2804
3140
|
columns: ["shop_id"];
|
|
2805
3141
|
isOneToOne: false;
|
|
2806
3142
|
referencedRelation: "shops";
|
|
2807
3143
|
referencedColumns: ["id"];
|
|
2808
3144
|
},
|
|
2809
3145
|
{
|
|
2810
|
-
foreignKeyName: "
|
|
3146
|
+
foreignKeyName: "shop_favourites_user_id_fkey";
|
|
2811
3147
|
columns: ["user_id"];
|
|
2812
3148
|
isOneToOne: false;
|
|
2813
3149
|
referencedRelation: "leaderboard";
|
|
2814
3150
|
referencedColumns: ["id"];
|
|
2815
3151
|
},
|
|
2816
3152
|
{
|
|
2817
|
-
foreignKeyName: "
|
|
3153
|
+
foreignKeyName: "shop_favourites_user_id_fkey";
|
|
2818
3154
|
columns: ["user_id"];
|
|
2819
3155
|
isOneToOne: false;
|
|
2820
3156
|
referencedRelation: "user_activity_summary";
|
|
2821
3157
|
referencedColumns: ["id"];
|
|
2822
3158
|
},
|
|
2823
3159
|
{
|
|
2824
|
-
foreignKeyName: "
|
|
3160
|
+
foreignKeyName: "shop_favourites_user_id_fkey";
|
|
2825
3161
|
columns: ["user_id"];
|
|
2826
3162
|
isOneToOne: false;
|
|
2827
3163
|
referencedRelation: "users";
|
|
@@ -2908,19 +3244,28 @@ export type Database = {
|
|
|
2908
3244
|
};
|
|
2909
3245
|
shop_roasters: {
|
|
2910
3246
|
Row: {
|
|
3247
|
+
available_for_purchase: boolean;
|
|
3248
|
+
in_grinder: boolean;
|
|
2911
3249
|
is_house_roaster: boolean | null;
|
|
2912
3250
|
roaster_id: string;
|
|
2913
3251
|
shop_id: string;
|
|
3252
|
+
show_on_public_profile: boolean;
|
|
2914
3253
|
};
|
|
2915
3254
|
Insert: {
|
|
3255
|
+
available_for_purchase?: boolean;
|
|
3256
|
+
in_grinder?: boolean;
|
|
2916
3257
|
is_house_roaster?: boolean | null;
|
|
2917
3258
|
roaster_id: string;
|
|
2918
3259
|
shop_id: string;
|
|
3260
|
+
show_on_public_profile?: boolean;
|
|
2919
3261
|
};
|
|
2920
3262
|
Update: {
|
|
3263
|
+
available_for_purchase?: boolean;
|
|
3264
|
+
in_grinder?: boolean;
|
|
2921
3265
|
is_house_roaster?: boolean | null;
|
|
2922
3266
|
roaster_id?: string;
|
|
2923
3267
|
shop_id?: string;
|
|
3268
|
+
show_on_public_profile?: boolean;
|
|
2924
3269
|
};
|
|
2925
3270
|
Relationships: [
|
|
2926
3271
|
{
|
|
@@ -3026,6 +3371,7 @@ export type Database = {
|
|
|
3026
3371
|
fika_rating: number | null;
|
|
3027
3372
|
flag_for_review: boolean;
|
|
3028
3373
|
flag_reason: string | null;
|
|
3374
|
+
franchise_id: string | null;
|
|
3029
3375
|
geo_point: Json | null;
|
|
3030
3376
|
google_rating: number | null;
|
|
3031
3377
|
id: string;
|
|
@@ -3044,6 +3390,7 @@ export type Database = {
|
|
|
3044
3390
|
roasting_and_beans_info: Json | null;
|
|
3045
3391
|
signals: Json | null;
|
|
3046
3392
|
slug: string | null;
|
|
3393
|
+
socials: Json | null;
|
|
3047
3394
|
speciality_level: string | null;
|
|
3048
3395
|
specialties: Json | null;
|
|
3049
3396
|
specialty: Json | null;
|
|
@@ -3069,6 +3416,7 @@ export type Database = {
|
|
|
3069
3416
|
fika_rating?: number | null;
|
|
3070
3417
|
flag_for_review?: boolean;
|
|
3071
3418
|
flag_reason?: string | null;
|
|
3419
|
+
franchise_id?: string | null;
|
|
3072
3420
|
geo_point?: Json | null;
|
|
3073
3421
|
google_rating?: number | null;
|
|
3074
3422
|
id: string;
|
|
@@ -3087,6 +3435,7 @@ export type Database = {
|
|
|
3087
3435
|
roasting_and_beans_info?: Json | null;
|
|
3088
3436
|
signals?: Json | null;
|
|
3089
3437
|
slug?: string | null;
|
|
3438
|
+
socials?: Json | null;
|
|
3090
3439
|
speciality_level?: string | null;
|
|
3091
3440
|
specialties?: Json | null;
|
|
3092
3441
|
specialty?: Json | null;
|
|
@@ -3112,6 +3461,7 @@ export type Database = {
|
|
|
3112
3461
|
fika_rating?: number | null;
|
|
3113
3462
|
flag_for_review?: boolean;
|
|
3114
3463
|
flag_reason?: string | null;
|
|
3464
|
+
franchise_id?: string | null;
|
|
3115
3465
|
geo_point?: Json | null;
|
|
3116
3466
|
google_rating?: number | null;
|
|
3117
3467
|
id?: string;
|
|
@@ -3130,6 +3480,7 @@ export type Database = {
|
|
|
3130
3480
|
roasting_and_beans_info?: Json | null;
|
|
3131
3481
|
signals?: Json | null;
|
|
3132
3482
|
slug?: string | null;
|
|
3483
|
+
socials?: Json | null;
|
|
3133
3484
|
speciality_level?: string | null;
|
|
3134
3485
|
specialties?: Json | null;
|
|
3135
3486
|
specialty?: Json | null;
|
|
@@ -3157,121 +3508,12 @@ export type Database = {
|
|
|
3157
3508
|
isOneToOne: false;
|
|
3158
3509
|
referencedRelation: "users";
|
|
3159
3510
|
referencedColumns: ["id"];
|
|
3160
|
-
}
|
|
3161
|
-
];
|
|
3162
|
-
};
|
|
3163
|
-
shot_likes: {
|
|
3164
|
-
Row: {
|
|
3165
|
-
created_at: string | null;
|
|
3166
|
-
shot_id: string;
|
|
3167
|
-
user_id: string;
|
|
3168
|
-
};
|
|
3169
|
-
Insert: {
|
|
3170
|
-
created_at?: string | null;
|
|
3171
|
-
shot_id: string;
|
|
3172
|
-
user_id: string;
|
|
3173
|
-
};
|
|
3174
|
-
Update: {
|
|
3175
|
-
created_at?: string | null;
|
|
3176
|
-
shot_id?: string;
|
|
3177
|
-
user_id?: string;
|
|
3178
|
-
};
|
|
3179
|
-
Relationships: [
|
|
3180
|
-
{
|
|
3181
|
-
foreignKeyName: "shot_likes_shot_id_fkey";
|
|
3182
|
-
columns: ["shot_id"];
|
|
3183
|
-
isOneToOne: false;
|
|
3184
|
-
referencedRelation: "shots";
|
|
3185
|
-
referencedColumns: ["id"];
|
|
3186
|
-
},
|
|
3187
|
-
{
|
|
3188
|
-
foreignKeyName: "shot_likes_user_id_fkey";
|
|
3189
|
-
columns: ["user_id"];
|
|
3190
|
-
isOneToOne: false;
|
|
3191
|
-
referencedRelation: "leaderboard";
|
|
3192
|
-
referencedColumns: ["id"];
|
|
3193
|
-
},
|
|
3194
|
-
{
|
|
3195
|
-
foreignKeyName: "shot_likes_user_id_fkey";
|
|
3196
|
-
columns: ["user_id"];
|
|
3197
|
-
isOneToOne: false;
|
|
3198
|
-
referencedRelation: "user_activity_summary";
|
|
3199
|
-
referencedColumns: ["id"];
|
|
3200
|
-
},
|
|
3201
|
-
{
|
|
3202
|
-
foreignKeyName: "shot_likes_user_id_fkey";
|
|
3203
|
-
columns: ["user_id"];
|
|
3204
|
-
isOneToOne: false;
|
|
3205
|
-
referencedRelation: "users";
|
|
3206
|
-
referencedColumns: ["id"];
|
|
3207
|
-
}
|
|
3208
|
-
];
|
|
3209
|
-
};
|
|
3210
|
-
shots: {
|
|
3211
|
-
Row: {
|
|
3212
|
-
coffee_shop_id: string | null;
|
|
3213
|
-
coffee_shop_name: string | null;
|
|
3214
|
-
created_at: string | null;
|
|
3215
|
-
date: string | null;
|
|
3216
|
-
geo_point: Json | null;
|
|
3217
|
-
id: string;
|
|
3218
|
-
image: string | null;
|
|
3219
|
-
user_id: string | null;
|
|
3220
|
-
};
|
|
3221
|
-
Insert: {
|
|
3222
|
-
coffee_shop_id?: string | null;
|
|
3223
|
-
coffee_shop_name?: string | null;
|
|
3224
|
-
created_at?: string | null;
|
|
3225
|
-
date?: string | null;
|
|
3226
|
-
geo_point?: Json | null;
|
|
3227
|
-
id: string;
|
|
3228
|
-
image?: string | null;
|
|
3229
|
-
user_id?: string | null;
|
|
3230
|
-
};
|
|
3231
|
-
Update: {
|
|
3232
|
-
coffee_shop_id?: string | null;
|
|
3233
|
-
coffee_shop_name?: string | null;
|
|
3234
|
-
created_at?: string | null;
|
|
3235
|
-
date?: string | null;
|
|
3236
|
-
geo_point?: Json | null;
|
|
3237
|
-
id?: string;
|
|
3238
|
-
image?: string | null;
|
|
3239
|
-
user_id?: string | null;
|
|
3240
|
-
};
|
|
3241
|
-
Relationships: [
|
|
3242
|
-
{
|
|
3243
|
-
foreignKeyName: "shots_coffee_shop_id_fkey";
|
|
3244
|
-
columns: ["coffee_shop_id"];
|
|
3245
|
-
isOneToOne: false;
|
|
3246
|
-
referencedRelation: "shop_stats";
|
|
3247
|
-
referencedColumns: ["id"];
|
|
3248
|
-
},
|
|
3249
|
-
{
|
|
3250
|
-
foreignKeyName: "shots_coffee_shop_id_fkey";
|
|
3251
|
-
columns: ["coffee_shop_id"];
|
|
3252
|
-
isOneToOne: false;
|
|
3253
|
-
referencedRelation: "shops";
|
|
3254
|
-
referencedColumns: ["id"];
|
|
3255
|
-
},
|
|
3256
|
-
{
|
|
3257
|
-
foreignKeyName: "shots_user_id_fkey";
|
|
3258
|
-
columns: ["user_id"];
|
|
3259
|
-
isOneToOne: false;
|
|
3260
|
-
referencedRelation: "leaderboard";
|
|
3261
|
-
referencedColumns: ["id"];
|
|
3262
|
-
},
|
|
3263
|
-
{
|
|
3264
|
-
foreignKeyName: "shots_user_id_fkey";
|
|
3265
|
-
columns: ["user_id"];
|
|
3266
|
-
isOneToOne: false;
|
|
3267
|
-
referencedRelation: "user_activity_summary";
|
|
3268
|
-
referencedColumns: ["id"];
|
|
3269
3511
|
},
|
|
3270
3512
|
{
|
|
3271
|
-
foreignKeyName: "
|
|
3272
|
-
columns: ["
|
|
3513
|
+
foreignKeyName: "shops_franchise_id_fkey";
|
|
3514
|
+
columns: ["franchise_id"];
|
|
3273
3515
|
isOneToOne: false;
|
|
3274
|
-
referencedRelation: "
|
|
3516
|
+
referencedRelation: "franchises";
|
|
3275
3517
|
referencedColumns: ["id"];
|
|
3276
3518
|
}
|
|
3277
3519
|
];
|
|
@@ -3327,6 +3569,27 @@ export type Database = {
|
|
|
3327
3569
|
};
|
|
3328
3570
|
Relationships: [];
|
|
3329
3571
|
};
|
|
3572
|
+
specialty_scoring_config: {
|
|
3573
|
+
Row: {
|
|
3574
|
+
description: string | null;
|
|
3575
|
+
key: string;
|
|
3576
|
+
updated_at: string | null;
|
|
3577
|
+
value: Json;
|
|
3578
|
+
};
|
|
3579
|
+
Insert: {
|
|
3580
|
+
description?: string | null;
|
|
3581
|
+
key: string;
|
|
3582
|
+
updated_at?: string | null;
|
|
3583
|
+
value: Json;
|
|
3584
|
+
};
|
|
3585
|
+
Update: {
|
|
3586
|
+
description?: string | null;
|
|
3587
|
+
key?: string;
|
|
3588
|
+
updated_at?: string | null;
|
|
3589
|
+
value?: Json;
|
|
3590
|
+
};
|
|
3591
|
+
Relationships: [];
|
|
3592
|
+
};
|
|
3330
3593
|
staff: {
|
|
3331
3594
|
Row: {
|
|
3332
3595
|
accepted_at: string | null;
|
|
@@ -3455,7 +3718,7 @@ export type Database = {
|
|
|
3455
3718
|
accepted_at: string | null;
|
|
3456
3719
|
accepted_by: string | null;
|
|
3457
3720
|
created_at: string;
|
|
3458
|
-
email: string;
|
|
3721
|
+
email: string | null;
|
|
3459
3722
|
expires_at: string;
|
|
3460
3723
|
id: string;
|
|
3461
3724
|
invited_by: string | null;
|
|
@@ -3465,12 +3728,13 @@ export type Database = {
|
|
|
3465
3728
|
shop_id: string;
|
|
3466
3729
|
status: string;
|
|
3467
3730
|
token: string;
|
|
3731
|
+
updated_at: string | null;
|
|
3468
3732
|
};
|
|
3469
3733
|
Insert: {
|
|
3470
3734
|
accepted_at?: string | null;
|
|
3471
3735
|
accepted_by?: string | null;
|
|
3472
3736
|
created_at?: string;
|
|
3473
|
-
email
|
|
3737
|
+
email?: string | null;
|
|
3474
3738
|
expires_at: string;
|
|
3475
3739
|
id?: string;
|
|
3476
3740
|
invited_by?: string | null;
|
|
@@ -3480,12 +3744,13 @@ export type Database = {
|
|
|
3480
3744
|
shop_id: string;
|
|
3481
3745
|
status?: string;
|
|
3482
3746
|
token: string;
|
|
3747
|
+
updated_at?: string | null;
|
|
3483
3748
|
};
|
|
3484
3749
|
Update: {
|
|
3485
3750
|
accepted_at?: string | null;
|
|
3486
3751
|
accepted_by?: string | null;
|
|
3487
3752
|
created_at?: string;
|
|
3488
|
-
email?: string;
|
|
3753
|
+
email?: string | null;
|
|
3489
3754
|
expires_at?: string;
|
|
3490
3755
|
id?: string;
|
|
3491
3756
|
invited_by?: string | null;
|
|
@@ -3495,6 +3760,7 @@ export type Database = {
|
|
|
3495
3760
|
shop_id?: string;
|
|
3496
3761
|
status?: string;
|
|
3497
3762
|
token?: string;
|
|
3763
|
+
updated_at?: string | null;
|
|
3498
3764
|
};
|
|
3499
3765
|
Relationships: [
|
|
3500
3766
|
{
|
|
@@ -3563,6 +3829,7 @@ export type Database = {
|
|
|
3563
3829
|
id: string;
|
|
3564
3830
|
image_url: string | null;
|
|
3565
3831
|
is_active: boolean | null;
|
|
3832
|
+
is_default: boolean | null;
|
|
3566
3833
|
name: string;
|
|
3567
3834
|
rarity: string | null;
|
|
3568
3835
|
unlock_criteria: Json | null;
|
|
@@ -3574,6 +3841,7 @@ export type Database = {
|
|
|
3574
3841
|
id: string;
|
|
3575
3842
|
image_url?: string | null;
|
|
3576
3843
|
is_active?: boolean | null;
|
|
3844
|
+
is_default?: boolean | null;
|
|
3577
3845
|
name: string;
|
|
3578
3846
|
rarity?: string | null;
|
|
3579
3847
|
unlock_criteria?: Json | null;
|
|
@@ -3585,6 +3853,7 @@ export type Database = {
|
|
|
3585
3853
|
id?: string;
|
|
3586
3854
|
image_url?: string | null;
|
|
3587
3855
|
is_active?: boolean | null;
|
|
3856
|
+
is_default?: boolean | null;
|
|
3588
3857
|
name?: string;
|
|
3589
3858
|
rarity?: string | null;
|
|
3590
3859
|
unlock_criteria?: Json | null;
|
|
@@ -3597,7 +3866,7 @@ export type Database = {
|
|
|
3597
3866
|
city: string | null;
|
|
3598
3867
|
contact_details: Json | null;
|
|
3599
3868
|
country_code: string | null;
|
|
3600
|
-
created_at: string;
|
|
3869
|
+
created_at: string | null;
|
|
3601
3870
|
custom_roasters: string[] | null;
|
|
3602
3871
|
data: Json | null;
|
|
3603
3872
|
geo_point: Json | null;
|
|
@@ -3617,7 +3886,7 @@ export type Database = {
|
|
|
3617
3886
|
shop_name: string | null;
|
|
3618
3887
|
status: string;
|
|
3619
3888
|
type: string | null;
|
|
3620
|
-
updated_at: string;
|
|
3889
|
+
updated_at: string | null;
|
|
3621
3890
|
user_id: string;
|
|
3622
3891
|
};
|
|
3623
3892
|
Insert: {
|
|
@@ -3625,7 +3894,7 @@ export type Database = {
|
|
|
3625
3894
|
city?: string | null;
|
|
3626
3895
|
contact_details?: Json | null;
|
|
3627
3896
|
country_code?: string | null;
|
|
3628
|
-
created_at?: string;
|
|
3897
|
+
created_at?: string | null;
|
|
3629
3898
|
custom_roasters?: string[] | null;
|
|
3630
3899
|
data?: Json | null;
|
|
3631
3900
|
geo_point?: Json | null;
|
|
@@ -3645,7 +3914,7 @@ export type Database = {
|
|
|
3645
3914
|
shop_name?: string | null;
|
|
3646
3915
|
status?: string;
|
|
3647
3916
|
type?: string | null;
|
|
3648
|
-
updated_at?: string;
|
|
3917
|
+
updated_at?: string | null;
|
|
3649
3918
|
user_id: string;
|
|
3650
3919
|
};
|
|
3651
3920
|
Update: {
|
|
@@ -3653,7 +3922,7 @@ export type Database = {
|
|
|
3653
3922
|
city?: string | null;
|
|
3654
3923
|
contact_details?: Json | null;
|
|
3655
3924
|
country_code?: string | null;
|
|
3656
|
-
created_at?: string;
|
|
3925
|
+
created_at?: string | null;
|
|
3657
3926
|
custom_roasters?: string[] | null;
|
|
3658
3927
|
data?: Json | null;
|
|
3659
3928
|
geo_point?: Json | null;
|
|
@@ -3673,7 +3942,7 @@ export type Database = {
|
|
|
3673
3942
|
shop_name?: string | null;
|
|
3674
3943
|
status?: string;
|
|
3675
3944
|
type?: string | null;
|
|
3676
|
-
updated_at?: string;
|
|
3945
|
+
updated_at?: string | null;
|
|
3677
3946
|
user_id?: string;
|
|
3678
3947
|
};
|
|
3679
3948
|
Relationships: [
|
|
@@ -3697,27 +3966,6 @@ export type Database = {
|
|
|
3697
3966
|
isOneToOne: false;
|
|
3698
3967
|
referencedRelation: "users";
|
|
3699
3968
|
referencedColumns: ["id"];
|
|
3700
|
-
},
|
|
3701
|
-
{
|
|
3702
|
-
foreignKeyName: "submissions_user_id_fkey";
|
|
3703
|
-
columns: ["user_id"];
|
|
3704
|
-
isOneToOne: false;
|
|
3705
|
-
referencedRelation: "leaderboard";
|
|
3706
|
-
referencedColumns: ["id"];
|
|
3707
|
-
},
|
|
3708
|
-
{
|
|
3709
|
-
foreignKeyName: "submissions_user_id_fkey";
|
|
3710
|
-
columns: ["user_id"];
|
|
3711
|
-
isOneToOne: false;
|
|
3712
|
-
referencedRelation: "user_activity_summary";
|
|
3713
|
-
referencedColumns: ["id"];
|
|
3714
|
-
},
|
|
3715
|
-
{
|
|
3716
|
-
foreignKeyName: "submissions_user_id_fkey";
|
|
3717
|
-
columns: ["user_id"];
|
|
3718
|
-
isOneToOne: false;
|
|
3719
|
-
referencedRelation: "users";
|
|
3720
|
-
referencedColumns: ["id"];
|
|
3721
3969
|
}
|
|
3722
3970
|
];
|
|
3723
3971
|
};
|
|
@@ -4280,13 +4528,6 @@ export type Database = {
|
|
|
4280
4528
|
user_id?: string;
|
|
4281
4529
|
};
|
|
4282
4530
|
Relationships: [
|
|
4283
|
-
{
|
|
4284
|
-
foreignKeyName: "user_stickers_sticker_id_fkey";
|
|
4285
|
-
columns: ["sticker_id"];
|
|
4286
|
-
isOneToOne: false;
|
|
4287
|
-
referencedRelation: "stickers";
|
|
4288
|
-
referencedColumns: ["id"];
|
|
4289
|
-
},
|
|
4290
4531
|
{
|
|
4291
4532
|
foreignKeyName: "user_stickers_user_id_fkey";
|
|
4292
4533
|
columns: ["user_id"];
|
|
@@ -4378,6 +4619,7 @@ export type Database = {
|
|
|
4378
4619
|
unread_notification_count: number | null;
|
|
4379
4620
|
updated_at: string | null;
|
|
4380
4621
|
username: string | null;
|
|
4622
|
+
username_is_generated: boolean;
|
|
4381
4623
|
};
|
|
4382
4624
|
Insert: {
|
|
4383
4625
|
created_at?: string | null;
|
|
@@ -4406,6 +4648,7 @@ export type Database = {
|
|
|
4406
4648
|
unread_notification_count?: number | null;
|
|
4407
4649
|
updated_at?: string | null;
|
|
4408
4650
|
username?: string | null;
|
|
4651
|
+
username_is_generated?: boolean;
|
|
4409
4652
|
};
|
|
4410
4653
|
Update: {
|
|
4411
4654
|
created_at?: string | null;
|
|
@@ -4434,6 +4677,7 @@ export type Database = {
|
|
|
4434
4677
|
unread_notification_count?: number | null;
|
|
4435
4678
|
updated_at?: string | null;
|
|
4436
4679
|
username?: string | null;
|
|
4680
|
+
username_is_generated?: boolean;
|
|
4437
4681
|
};
|
|
4438
4682
|
Relationships: [];
|
|
4439
4683
|
};
|
|
@@ -4587,12 +4831,12 @@ export type Database = {
|
|
|
4587
4831
|
leaderboard: {
|
|
4588
4832
|
Row: {
|
|
4589
4833
|
display_name: string | null;
|
|
4834
|
+
home_country: string | null;
|
|
4590
4835
|
id: string | null;
|
|
4591
4836
|
profile_image: string | null;
|
|
4592
4837
|
rank: number | null;
|
|
4593
4838
|
total_points: number | null;
|
|
4594
4839
|
total_reviews: number | null;
|
|
4595
|
-
total_shots: number | null;
|
|
4596
4840
|
username: string | null;
|
|
4597
4841
|
};
|
|
4598
4842
|
Relationships: [];
|
|
@@ -4601,11 +4845,9 @@ export type Database = {
|
|
|
4601
4845
|
Row: {
|
|
4602
4846
|
avg_craft_rating: number | null;
|
|
4603
4847
|
favourite_count: number | null;
|
|
4604
|
-
follower_count: number | null;
|
|
4605
4848
|
id: string | null;
|
|
4606
4849
|
name: string | null;
|
|
4607
4850
|
review_count: number | null;
|
|
4608
|
-
shot_count: number | null;
|
|
4609
4851
|
};
|
|
4610
4852
|
Relationships: [];
|
|
4611
4853
|
};
|
|
@@ -4615,7 +4857,6 @@ export type Database = {
|
|
|
4615
4857
|
following_count: number | null;
|
|
4616
4858
|
id: string | null;
|
|
4617
4859
|
review_count: number | null;
|
|
4618
|
-
shot_count: number | null;
|
|
4619
4860
|
stamp_count: number | null;
|
|
4620
4861
|
total_points: number | null;
|
|
4621
4862
|
username: string | null;
|
|
@@ -4624,7 +4865,103 @@ export type Database = {
|
|
|
4624
4865
|
};
|
|
4625
4866
|
};
|
|
4626
4867
|
Functions: {
|
|
4627
|
-
|
|
4868
|
+
calculate_brew_method_score: {
|
|
4869
|
+
Args: {
|
|
4870
|
+
p_shop_id: string;
|
|
4871
|
+
};
|
|
4872
|
+
Returns: number;
|
|
4873
|
+
};
|
|
4874
|
+
calculate_community_score: {
|
|
4875
|
+
Args: {
|
|
4876
|
+
p_shop_id: string;
|
|
4877
|
+
};
|
|
4878
|
+
Returns: number;
|
|
4879
|
+
};
|
|
4880
|
+
calculate_crowd_score: {
|
|
4881
|
+
Args: {
|
|
4882
|
+
p_shop_id: string;
|
|
4883
|
+
};
|
|
4884
|
+
Returns: number;
|
|
4885
|
+
};
|
|
4886
|
+
calculate_roaster_score: {
|
|
4887
|
+
Args: {
|
|
4888
|
+
p_shop_id: string;
|
|
4889
|
+
};
|
|
4890
|
+
Returns: number;
|
|
4891
|
+
};
|
|
4892
|
+
calculate_semantic_score: {
|
|
4893
|
+
Args: {
|
|
4894
|
+
p_shop_id: string;
|
|
4895
|
+
};
|
|
4896
|
+
Returns: number;
|
|
4897
|
+
};
|
|
4898
|
+
generate_specialty_explanations: {
|
|
4899
|
+
Args: {
|
|
4900
|
+
p_brew_score: number;
|
|
4901
|
+
p_community_score: number;
|
|
4902
|
+
p_crowd_score: number;
|
|
4903
|
+
p_highest_tier: number;
|
|
4904
|
+
p_roaster_score: number;
|
|
4905
|
+
p_semantic_score: number;
|
|
4906
|
+
p_shop_id: string;
|
|
4907
|
+
};
|
|
4908
|
+
Returns: Json;
|
|
4909
|
+
};
|
|
4910
|
+
get_scoring_config: {
|
|
4911
|
+
Args: {
|
|
4912
|
+
p_key: string;
|
|
4913
|
+
};
|
|
4914
|
+
Returns: Json;
|
|
4915
|
+
};
|
|
4916
|
+
get_tier_from_score: {
|
|
4917
|
+
Args: {
|
|
4918
|
+
p_score: number;
|
|
4919
|
+
};
|
|
4920
|
+
Returns: string;
|
|
4921
|
+
};
|
|
4922
|
+
increment_event_photo_report_count: {
|
|
4923
|
+
Args: {
|
|
4924
|
+
photo_id_arg: string;
|
|
4925
|
+
};
|
|
4926
|
+
Returns: undefined;
|
|
4927
|
+
};
|
|
4928
|
+
increment_event_post_report_count: {
|
|
4929
|
+
Args: {
|
|
4930
|
+
post_id_arg: string;
|
|
4931
|
+
};
|
|
4932
|
+
Returns: undefined;
|
|
4933
|
+
};
|
|
4934
|
+
is_fika_auth_jwt: {
|
|
4935
|
+
Args: never;
|
|
4936
|
+
Returns: boolean;
|
|
4937
|
+
};
|
|
4938
|
+
process_specialty_jobs: {
|
|
4939
|
+
Args: {
|
|
4940
|
+
p_limit?: number;
|
|
4941
|
+
};
|
|
4942
|
+
Returns: number;
|
|
4943
|
+
};
|
|
4944
|
+
recalculate_shop_aggregates: {
|
|
4945
|
+
Args: {
|
|
4946
|
+
p_shop_id: string;
|
|
4947
|
+
};
|
|
4948
|
+
Returns: undefined;
|
|
4949
|
+
};
|
|
4950
|
+
recompute_shop_specialty: {
|
|
4951
|
+
Args: {
|
|
4952
|
+
p_force?: boolean;
|
|
4953
|
+
p_shop_id: string;
|
|
4954
|
+
};
|
|
4955
|
+
Returns: undefined;
|
|
4956
|
+
};
|
|
4957
|
+
request_is_admin: {
|
|
4958
|
+
Args: never;
|
|
4959
|
+
Returns: boolean;
|
|
4960
|
+
};
|
|
4961
|
+
request_jwt_uid: {
|
|
4962
|
+
Args: never;
|
|
4963
|
+
Returns: string;
|
|
4964
|
+
};
|
|
4628
4965
|
};
|
|
4629
4966
|
Enums: {
|
|
4630
4967
|
menu_item_category: "drink" | "food";
|