mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-09 06:54:32 +02:00
sqlc: generate go code from SQL
run `make sqlc` All the code in this commit is auto-generated.
This commit is contained in:
93
sqldb/sqlc/models.go
Normal file
93
sqldb/sqlc/models.go
Normal file
@ -0,0 +1,93 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.18.0
|
||||
|
||||
package sqlc
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"time"
|
||||
)
|
||||
|
||||
type AmpInvoiceHtlc struct {
|
||||
SetID []byte
|
||||
HtlcID int64
|
||||
InvoiceID int32
|
||||
RootShare []byte
|
||||
ChildIndex int64
|
||||
Hash []byte
|
||||
Preimage []byte
|
||||
}
|
||||
|
||||
type AmpInvoicePayment struct {
|
||||
SetID []byte
|
||||
State int16
|
||||
CreatedAt time.Time
|
||||
SettledIndex sql.NullInt32
|
||||
InvoiceID int32
|
||||
}
|
||||
|
||||
type Invoice struct {
|
||||
ID int32
|
||||
Hash []byte
|
||||
Preimage []byte
|
||||
Memo sql.NullString
|
||||
AmountMsat int64
|
||||
CltvDelta sql.NullInt32
|
||||
Expiry int32
|
||||
PaymentAddr []byte
|
||||
PaymentRequest sql.NullString
|
||||
State int16
|
||||
AmountPaidMsat int64
|
||||
IsAmp bool
|
||||
IsHodl bool
|
||||
IsKeysend bool
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
type InvoiceEvent struct {
|
||||
ID int32
|
||||
CreatedAt time.Time
|
||||
InvoiceID int32
|
||||
HtlcID sql.NullInt64
|
||||
SetID []byte
|
||||
EventType int32
|
||||
EventMetadata []byte
|
||||
}
|
||||
|
||||
type InvoiceEventType struct {
|
||||
ID int32
|
||||
Description string
|
||||
}
|
||||
|
||||
type InvoiceFeature struct {
|
||||
Feature int32
|
||||
InvoiceID int32
|
||||
}
|
||||
|
||||
type InvoiceHtlc struct {
|
||||
ID int32
|
||||
HtlcID int64
|
||||
ChanID string
|
||||
AmountMsat int64
|
||||
TotalMppMsat sql.NullInt64
|
||||
AcceptHeight int32
|
||||
AcceptTime time.Time
|
||||
ExpiryHeight int32
|
||||
State int16
|
||||
ResolveTime sql.NullTime
|
||||
InvoiceID int32
|
||||
}
|
||||
|
||||
type InvoiceHtlcCustomRecord struct {
|
||||
Key int64
|
||||
Value []byte
|
||||
HtlcID int64
|
||||
}
|
||||
|
||||
type InvoicePayment struct {
|
||||
ID int32
|
||||
SettledAt time.Time
|
||||
AmountPaidMsat int64
|
||||
InvoiceID int32
|
||||
}
|
Reference in New Issue
Block a user