@@ -61,7 +61,15 @@ export type Database = {
61
61
updated_at ?: string
62
62
user_id ?: string | null
63
63
}
64
- Relationships : [ ]
64
+ Relationships : [
65
+ {
66
+ foreignKeyName : "affiliate_stats_user_id_fkey"
67
+ columns : [ "user_id" ]
68
+ isOneToOne : true
69
+ referencedRelation : "profiles"
70
+ referencedColumns : [ "id" ]
71
+ } ,
72
+ ]
65
73
}
66
74
chain_addresses : {
67
75
Row : {
@@ -150,6 +158,20 @@ export type Database = {
150
158
referencedRelation : "distributions"
151
159
referencedColumns : [ "id" ]
152
160
} ,
161
+ {
162
+ foreignKeyName : "distribution_shares_distribution_id_fkey"
163
+ columns : [ "distribution_id" ]
164
+ isOneToOne : false
165
+ referencedRelation : "send_scores_current"
166
+ referencedColumns : [ "distribution_id" ]
167
+ } ,
168
+ {
169
+ foreignKeyName : "distribution_shares_distribution_id_fkey"
170
+ columns : [ "distribution_id" ]
171
+ isOneToOne : false
172
+ referencedRelation : "send_scores_history"
173
+ referencedColumns : [ "distribution_id" ]
174
+ } ,
153
175
]
154
176
}
155
177
distribution_verification_values : {
@@ -194,6 +216,20 @@ export type Database = {
194
216
referencedRelation : "distributions"
195
217
referencedColumns : [ "id" ]
196
218
} ,
219
+ {
220
+ foreignKeyName : "distribution_verification_values_distribution_id_fkey"
221
+ columns : [ "distribution_id" ]
222
+ isOneToOne : false
223
+ referencedRelation : "send_scores_current"
224
+ referencedColumns : [ "distribution_id" ]
225
+ } ,
226
+ {
227
+ foreignKeyName : "distribution_verification_values_distribution_id_fkey"
228
+ columns : [ "distribution_id" ]
229
+ isOneToOne : false
230
+ referencedRelation : "send_scores_history"
231
+ referencedColumns : [ "distribution_id" ]
232
+ } ,
197
233
]
198
234
}
199
235
distribution_verifications : {
@@ -239,6 +275,20 @@ export type Database = {
239
275
referencedRelation : "distributions"
240
276
referencedColumns : [ "id" ]
241
277
} ,
278
+ {
279
+ foreignKeyName : "distribution_verifications_distribution_id_fkey"
280
+ columns : [ "distribution_id" ]
281
+ isOneToOne : false
282
+ referencedRelation : "send_scores_current"
283
+ referencedColumns : [ "distribution_id" ]
284
+ } ,
285
+ {
286
+ foreignKeyName : "distribution_verifications_distribution_id_fkey"
287
+ columns : [ "distribution_id" ]
288
+ isOneToOne : false
289
+ referencedRelation : "send_scores_history"
290
+ referencedColumns : [ "distribution_id" ]
291
+ } ,
242
292
]
243
293
}
244
294
distributions : {
@@ -417,7 +467,22 @@ export type Database = {
417
467
referred_id ?: string
418
468
referrer_id ?: string
419
469
}
420
- Relationships : [ ]
470
+ Relationships : [
471
+ {
472
+ foreignKeyName : "referrals_referred_id_fkey"
473
+ columns : [ "referred_id" ]
474
+ isOneToOne : true
475
+ referencedRelation : "profiles"
476
+ referencedColumns : [ "id" ]
477
+ } ,
478
+ {
479
+ foreignKeyName : "referrals_referrer_id_fkey"
480
+ columns : [ "referrer_id" ]
481
+ isOneToOne : false
482
+ referencedRelation : "profiles"
483
+ referencedColumns : [ "id" ]
484
+ } ,
485
+ ]
421
486
}
422
487
send_account_created : {
423
488
Row : {
@@ -1135,6 +1200,20 @@ export type Database = {
1135
1200
referencedRelation : "distributions"
1136
1201
referencedColumns : [ "id" ]
1137
1202
} ,
1203
+ {
1204
+ foreignKeyName : "send_slash_distribution_id_fkey"
1205
+ columns : [ "distribution_id" ]
1206
+ isOneToOne : false
1207
+ referencedRelation : "send_scores_current"
1208
+ referencedColumns : [ "distribution_id" ]
1209
+ } ,
1210
+ {
1211
+ foreignKeyName : "send_slash_distribution_id_fkey"
1212
+ columns : [ "distribution_id" ]
1213
+ isOneToOne : false
1214
+ referencedRelation : "send_scores_history"
1215
+ referencedColumns : [ "distribution_id" ]
1216
+ } ,
1138
1217
]
1139
1218
}
1140
1219
send_token_transfers : {
@@ -1627,6 +1706,46 @@ export type Database = {
1627
1706
}
1628
1707
Relationships : [ ]
1629
1708
}
1709
+ send_scores : {
1710
+ Row : {
1711
+ distribution_id : number | null
1712
+ score : number | null
1713
+ send_ceiling : number | null
1714
+ unique_sends : number | null
1715
+ user_id : string | null
1716
+ }
1717
+ Relationships : [ ]
1718
+ }
1719
+ send_scores_current : {
1720
+ Row : {
1721
+ distribution_id : number | null
1722
+ score : number | null
1723
+ send_ceiling : number | null
1724
+ unique_sends : number | null
1725
+ user_id : string | null
1726
+ }
1727
+ Relationships : [ ]
1728
+ }
1729
+ send_scores_current_unique : {
1730
+ Row : {
1731
+ capped_amount : number | null
1732
+ distribution_id : number | null
1733
+ from_user_id : string | null
1734
+ send_ceiling : number | null
1735
+ to_user_id : string | null
1736
+ }
1737
+ Relationships : [ ]
1738
+ }
1739
+ send_scores_history : {
1740
+ Row : {
1741
+ distribution_id : number | null
1742
+ score : number | null
1743
+ send_ceiling : number | null
1744
+ unique_sends : number | null
1745
+ user_id : string | null
1746
+ }
1747
+ Relationships : [ ]
1748
+ }
1630
1749
}
1631
1750
Functions : {
1632
1751
calculate_and_insert_send_ceiling_verification : {
@@ -1855,6 +1974,10 @@ export type Database = {
1855
1974
new_referrer : Database [ "public" ] [ "CompositeTypes" ] [ "profile_lookup_result" ]
1856
1975
} [ ]
1857
1976
}
1977
+ refresh_send_scores_history : {
1978
+ Args : Record < PropertyKey , never >
1979
+ Returns : undefined
1980
+ }
1858
1981
register_first_sendtag : {
1859
1982
Args : {
1860
1983
tag_name : string
0 commit comments