mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-24 06:47:44 +01:00
Previously, we applied replacements to our schema definitions to make them compatible with both SQLite and Postgres backends, as the files were not fully compatible with either. With this change, the only replacement required for SQLite has been moved to the generator script. This adjustment ensures compatibility by enabling auto-incrementing primary keys that are treated as 64-bit integers by sqlc.
104 lines
1.8 KiB
Go
104 lines
1.8 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.25.0
|
|
|
|
package sqlc
|
|
|
|
import (
|
|
"database/sql"
|
|
"time"
|
|
)
|
|
|
|
type AmpSubInvoice struct {
|
|
SetID []byte
|
|
State int16
|
|
CreatedAt time.Time
|
|
SettledAt sql.NullTime
|
|
SettleIndex sql.NullInt64
|
|
InvoiceID int64
|
|
}
|
|
|
|
type AmpSubInvoiceHtlc struct {
|
|
InvoiceID int64
|
|
SetID []byte
|
|
HtlcID int64
|
|
RootShare []byte
|
|
ChildIndex int64
|
|
Hash []byte
|
|
Preimage []byte
|
|
}
|
|
|
|
type Invoice struct {
|
|
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
|
|
}
|
|
|
|
type InvoiceEvent struct {
|
|
ID int64
|
|
AddedAt time.Time
|
|
EventType int32
|
|
InvoiceID int64
|
|
SetID []byte
|
|
}
|
|
|
|
type InvoiceEventType struct {
|
|
ID int64
|
|
Description string
|
|
}
|
|
|
|
type InvoiceFeature struct {
|
|
Feature int32
|
|
InvoiceID int64
|
|
}
|
|
|
|
type InvoiceHtlc struct {
|
|
ID int64
|
|
ChanID string
|
|
HtlcID int64
|
|
AmountMsat int64
|
|
TotalMppMsat sql.NullInt64
|
|
AcceptHeight int32
|
|
AcceptTime time.Time
|
|
ExpiryHeight int32
|
|
State int16
|
|
ResolveTime sql.NullTime
|
|
InvoiceID int64
|
|
}
|
|
|
|
type InvoiceHtlcCustomRecord struct {
|
|
Key int64
|
|
Value []byte
|
|
HtlcID int64
|
|
}
|
|
|
|
type InvoicePaymentHash struct {
|
|
ID int64
|
|
AddIndex int64
|
|
Hash []byte
|
|
}
|
|
|
|
type InvoiceSequence struct {
|
|
Name string
|
|
CurrentValue int64
|
|
}
|
|
|
|
type MigrationTracker struct {
|
|
Version int32
|
|
MigrationTime time.Time
|
|
}
|