2023-05-30 07:37:48 -07:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
// versions:
|
2023-09-22 12:30:15 -07:00
|
|
|
// sqlc v1.25.0
|
2023-05-30 07:37:48 -07:00
|
|
|
|
|
|
|
package sqlc
|
|
|
|
|
|
|
|
import (
|
|
|
|
"database/sql"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2023-11-22 17:23:23 +01:00
|
|
|
type AmpSubInvoice struct {
|
|
|
|
SetID []byte
|
|
|
|
State int16
|
|
|
|
CreatedAt time.Time
|
|
|
|
SettledAt sql.NullTime
|
|
|
|
SettleIndex sql.NullInt64
|
|
|
|
InvoiceID int64
|
|
|
|
}
|
|
|
|
|
|
|
|
type AmpSubInvoiceHtlc struct {
|
|
|
|
InvoiceID int64
|
2023-05-30 07:37:48 -07:00
|
|
|
SetID []byte
|
|
|
|
HtlcID int64
|
|
|
|
RootShare []byte
|
|
|
|
ChildIndex int64
|
|
|
|
Hash []byte
|
|
|
|
Preimage []byte
|
|
|
|
}
|
|
|
|
|
|
|
|
type Invoice struct {
|
2023-11-22 17:23:23 +01:00
|
|
|
ID int64
|
|
|
|
Hash []byte
|
|
|
|
Preimage []byte
|
|
|
|
SettleIndex sql.NullInt64
|
|
|
|
SettledAt sql.NullTime
|
|
|
|
Memo sql.NullString
|
|
|
|
AmountMsat int64
|
|
|
|
CltvDelta sql.NullInt32
|
|
|
|
Expiry int32
|
|
|
|
PaymentAddr []byte
|
|
|
|
PaymentRequest sql.NullString
|
|
|
|
PaymentRequestHash []byte
|
|
|
|
State int16
|
|
|
|
AmountPaidMsat int64
|
|
|
|
IsAmp bool
|
|
|
|
IsHodl bool
|
|
|
|
IsKeysend bool
|
|
|
|
CreatedAt time.Time
|
2023-05-30 07:37:48 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type InvoiceEvent struct {
|
2023-11-22 17:23:23 +01:00
|
|
|
ID int64
|
|
|
|
AddedAt time.Time
|
|
|
|
EventType int32
|
|
|
|
InvoiceID int64
|
|
|
|
SetID []byte
|
2023-05-30 07:37:48 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type InvoiceEventType struct {
|
2025-01-21 17:00:15 +01:00
|
|
|
ID int64
|
2023-05-30 07:37:48 -07:00
|
|
|
Description string
|
|
|
|
}
|
|
|
|
|
|
|
|
type InvoiceFeature struct {
|
|
|
|
Feature int32
|
2023-11-22 17:23:23 +01:00
|
|
|
InvoiceID int64
|
2023-05-30 07:37:48 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type InvoiceHtlc struct {
|
2023-11-22 17:23:23 +01:00
|
|
|
ID int64
|
2023-05-30 07:37:48 -07:00
|
|
|
ChanID string
|
2023-11-22 17:23:23 +01:00
|
|
|
HtlcID int64
|
2023-05-30 07:37:48 -07:00
|
|
|
AmountMsat int64
|
|
|
|
TotalMppMsat sql.NullInt64
|
|
|
|
AcceptHeight int32
|
|
|
|
AcceptTime time.Time
|
|
|
|
ExpiryHeight int32
|
|
|
|
State int16
|
|
|
|
ResolveTime sql.NullTime
|
2023-11-22 17:23:23 +01:00
|
|
|
InvoiceID int64
|
2023-05-30 07:37:48 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type InvoiceHtlcCustomRecord struct {
|
|
|
|
Key int64
|
|
|
|
Value []byte
|
|
|
|
HtlcID int64
|
|
|
|
}
|
|
|
|
|
2024-09-11 14:14:25 +02:00
|
|
|
type InvoicePaymentHash struct {
|
2025-01-21 17:00:15 +01:00
|
|
|
ID int64
|
2024-09-11 14:14:25 +02:00
|
|
|
AddIndex int64
|
|
|
|
Hash []byte
|
|
|
|
}
|
|
|
|
|
2023-11-22 17:23:23 +01:00
|
|
|
type InvoiceSequence struct {
|
|
|
|
Name string
|
|
|
|
CurrentValue int64
|
2023-05-30 07:37:48 -07:00
|
|
|
}
|
2024-11-12 16:25:29 +01:00
|
|
|
|
|
|
|
type MigrationTracker struct {
|
|
|
|
Version int32
|
|
|
|
MigrationTime time.Time
|
|
|
|
}
|