@@ -165,13 +165,6 @@ export type Database = {
165
165
referencedRelation : "send_scores_current"
166
166
referencedColumns : [ "distribution_id" ]
167
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
- } ,
175
168
]
176
169
}
177
170
distribution_verification_values : {
@@ -223,13 +216,6 @@ export type Database = {
223
216
referencedRelation : "send_scores_current"
224
217
referencedColumns : [ "distribution_id" ]
225
218
} ,
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
- } ,
233
219
]
234
220
}
235
221
distribution_verifications : {
@@ -282,13 +268,6 @@ export type Database = {
282
268
referencedRelation : "send_scores_current"
283
269
referencedColumns : [ "distribution_id" ]
284
270
} ,
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
- } ,
292
271
]
293
272
}
294
273
distributions : {
@@ -1207,13 +1186,6 @@ export type Database = {
1207
1186
referencedRelation : "send_scores_current"
1208
1187
referencedColumns : [ "distribution_id" ]
1209
1188
} ,
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
- } ,
1217
1189
]
1218
1190
}
1219
1191
send_token_transfers : {
@@ -1736,16 +1708,6 @@ export type Database = {
1736
1708
}
1737
1709
Relationships : [ ]
1738
1710
}
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
- }
1749
1711
}
1750
1712
Functions : {
1751
1713
calculate_and_insert_send_ceiling_verification : {
@@ -1851,6 +1813,16 @@ export type Database = {
1851
1813
Args : Record < PropertyKey , never >
1852
1814
Returns : number
1853
1815
}
1816
+ get_send_scores_history : {
1817
+ Args : Record < PropertyKey , never >
1818
+ Returns : {
1819
+ user_id : string
1820
+ distribution_id : number
1821
+ score : number
1822
+ unique_sends : number
1823
+ send_ceiling : number
1824
+ } [ ]
1825
+ }
1854
1826
get_user_jackpot_summary : {
1855
1827
Args : { num_runs : number }
1856
1828
Returns : {
0 commit comments