@@ -63,7 +63,7 @@ export type Database = {
63
63
description ?: string | null ;
64
64
expires_at : string ;
65
65
id : string ;
66
- index ? : number ;
66
+ index : number ;
67
67
metadata ?: Json | null ;
68
68
pay_address ?: string | null ;
69
69
price : number ;
@@ -103,6 +103,107 @@ export type Database = {
103
103
}
104
104
] ;
105
105
} ;
106
+ notifications : {
107
+ Row : {
108
+ archived : boolean ;
109
+ created_at : string ;
110
+ id : string ;
111
+ notification_event_id : string ;
112
+ read : boolean ;
113
+ service_id : string ;
114
+ user_id : string ;
115
+ } ;
116
+ Insert : {
117
+ archived ?: boolean ;
118
+ created_at ?: string ;
119
+ id ?: string ;
120
+ notification_event_id : string ;
121
+ read ?: boolean ;
122
+ service_id : string ;
123
+ user_id : string ;
124
+ } ;
125
+ Update : {
126
+ archived ?: boolean ;
127
+ created_at ?: string ;
128
+ id ?: string ;
129
+ notification_event_id ?: string ;
130
+ read ?: boolean ;
131
+ service_id ?: string ;
132
+ user_id ?: string ;
133
+ } ;
134
+ Relationships : [
135
+ {
136
+ foreignKeyName : 'notifications_notification_event_id_fkey' ;
137
+ columns : [ 'notification_event_id' ] ;
138
+ isOneToOne : false ;
139
+ referencedRelation : 'notifications_events' ;
140
+ referencedColumns : [ 'id' ] ;
141
+ } ,
142
+ {
143
+ foreignKeyName : 'notifications_service_id_fkey' ;
144
+ columns : [ 'service_id' ] ;
145
+ isOneToOne : false ;
146
+ referencedRelation : 'services' ;
147
+ referencedColumns : [ 'id' ] ;
148
+ } ,
149
+ {
150
+ foreignKeyName : 'notifications_user_id_fkey' ;
151
+ columns : [ 'user_id' ] ;
152
+ isOneToOne : false ;
153
+ referencedRelation : 'users' ;
154
+ referencedColumns : [ 'id' ] ;
155
+ }
156
+ ] ;
157
+ } ;
158
+ notifications_events : {
159
+ Row : {
160
+ created_at : string ;
161
+ id : string ;
162
+ invoice_id : string | null ;
163
+ service_id : string ;
164
+ type : Database [ 'public' ] [ 'Enums' ] [ 'notification_type' ] ;
165
+ webhook_delivery_id : string | null ;
166
+ } ;
167
+ Insert : {
168
+ created_at ?: string ;
169
+ id : string ;
170
+ invoice_id ?: string | null ;
171
+ service_id : string ;
172
+ type : Database [ 'public' ] [ 'Enums' ] [ 'notification_type' ] ;
173
+ webhook_delivery_id ?: string | null ;
174
+ } ;
175
+ Update : {
176
+ created_at ?: string ;
177
+ id ?: string ;
178
+ invoice_id ?: string | null ;
179
+ service_id ?: string ;
180
+ type ?: Database [ 'public' ] [ 'Enums' ] [ 'notification_type' ] ;
181
+ webhook_delivery_id ?: string | null ;
182
+ } ;
183
+ Relationships : [
184
+ {
185
+ foreignKeyName : 'notifications_events_invoice_id_fkey' ;
186
+ columns : [ 'invoice_id' ] ;
187
+ isOneToOne : false ;
188
+ referencedRelation : 'invoices' ;
189
+ referencedColumns : [ 'id' ] ;
190
+ } ,
191
+ {
192
+ foreignKeyName : 'notifications_events_service_id_fkey' ;
193
+ columns : [ 'service_id' ] ;
194
+ isOneToOne : false ;
195
+ referencedRelation : 'services' ;
196
+ referencedColumns : [ 'id' ] ;
197
+ } ,
198
+ {
199
+ foreignKeyName : 'notifications_events_webhook_delivery_id_fkey' ;
200
+ columns : [ 'webhook_delivery_id' ] ;
201
+ isOneToOne : false ;
202
+ referencedRelation : 'webhooks_deliveries' ;
203
+ referencedColumns : [ 'id' ] ;
204
+ }
205
+ ] ;
206
+ } ;
106
207
payments : {
107
208
Row : {
108
209
amount : number ;
@@ -262,6 +363,44 @@ export type Database = {
262
363
} ;
263
364
Relationships : [ ] ;
264
365
} ;
366
+ sponsors : {
367
+ Row : {
368
+ amount : number ;
369
+ avatar_url : string | null ;
370
+ created_at : string ;
371
+ id : string ;
372
+ invoice_id : string ;
373
+ message : string | null ;
374
+ name : string ;
375
+ } ;
376
+ Insert : {
377
+ amount : number ;
378
+ avatar_url ?: string | null ;
379
+ created_at ?: string ;
380
+ id ?: string ;
381
+ invoice_id : string ;
382
+ message ?: string | null ;
383
+ name : string ;
384
+ } ;
385
+ Update : {
386
+ amount ?: number ;
387
+ avatar_url ?: string | null ;
388
+ created_at ?: string ;
389
+ id ?: string ;
390
+ invoice_id ?: string ;
391
+ message ?: string | null ;
392
+ name ?: string ;
393
+ } ;
394
+ Relationships : [
395
+ {
396
+ foreignKeyName : 'sponsors_invoice_id_fkey' ;
397
+ columns : [ 'invoice_id' ] ;
398
+ isOneToOne : false ;
399
+ referencedRelation : 'invoices' ;
400
+ referencedColumns : [ 'id' ] ;
401
+ }
402
+ ] ;
403
+ } ;
265
404
webhooks : {
266
405
Row : {
267
406
active : boolean ;
@@ -402,6 +541,7 @@ export type Database = {
402
541
} ;
403
542
Enums : {
404
543
invoice_status : 'pending' | 'paid' | 'expired' | 'error' ;
544
+ notification_type : 'INVOICE_PAID' | 'INVOICE_ERROR' | 'INVOICE_EXPIRED' | 'WEBHOOK_FAILURE' ;
405
545
} ;
406
546
CompositeTypes : {
407
547
[ _ in never ] : never ;
0 commit comments