mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 22:27:22 +01:00
We need to explicitly store the entire bitfield types since we may have channel_updates with bitfields containing bits we just dont need or understand but we still need to store the entire bitfield so that the reconstructed announcement remains valid. This commit only adds the new columns but does not use them yet. NOTE: this is ok since the migration adding this schema is not available in the production build yet.
205 lines
3.6 KiB
Go
205 lines
3.6 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.29.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 Channel struct {
|
|
ID int64
|
|
Version int16
|
|
Scid []byte
|
|
NodeID1 int64
|
|
NodeID2 int64
|
|
Outpoint string
|
|
Capacity sql.NullInt64
|
|
BitcoinKey1 []byte
|
|
BitcoinKey2 []byte
|
|
Node1Signature []byte
|
|
Node2Signature []byte
|
|
Bitcoin1Signature []byte
|
|
Bitcoin2Signature []byte
|
|
}
|
|
|
|
type ChannelExtraType struct {
|
|
ChannelID int64
|
|
Type int64
|
|
Value []byte
|
|
}
|
|
|
|
type ChannelFeature struct {
|
|
ChannelID int64
|
|
FeatureBit int32
|
|
}
|
|
|
|
type ChannelPolicy struct {
|
|
ID int64
|
|
Version int16
|
|
ChannelID int64
|
|
NodeID int64
|
|
Timelock int32
|
|
FeePpm int64
|
|
BaseFeeMsat int64
|
|
MinHtlcMsat int64
|
|
MaxHtlcMsat sql.NullInt64
|
|
LastUpdate sql.NullInt64
|
|
Disabled sql.NullBool
|
|
InboundBaseFeeMsat sql.NullInt64
|
|
InboundFeeRateMilliMsat sql.NullInt64
|
|
MessageFlags sql.NullInt16
|
|
ChannelFlags sql.NullInt16
|
|
Signature []byte
|
|
}
|
|
|
|
type ChannelPolicyExtraType struct {
|
|
ChannelPolicyID int64
|
|
Type int64
|
|
Value []byte
|
|
}
|
|
|
|
type ClosedScid struct {
|
|
Scid []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
|
|
}
|
|
|
|
type Node struct {
|
|
ID int64
|
|
Version int16
|
|
PubKey []byte
|
|
Alias sql.NullString
|
|
LastUpdate sql.NullInt64
|
|
Color sql.NullString
|
|
Signature []byte
|
|
}
|
|
|
|
type NodeAddress struct {
|
|
NodeID int64
|
|
Type int16
|
|
Position int32
|
|
Address string
|
|
}
|
|
|
|
type NodeExtraType struct {
|
|
NodeID int64
|
|
Type int64
|
|
Value []byte
|
|
}
|
|
|
|
type NodeFeature struct {
|
|
NodeID int64
|
|
FeatureBit int32
|
|
}
|
|
|
|
type PruneLog struct {
|
|
BlockHeight int64
|
|
BlockHash []byte
|
|
}
|
|
|
|
type SourceNode struct {
|
|
NodeID int64
|
|
}
|
|
|
|
type ZombieChannel struct {
|
|
Scid []byte
|
|
Version int16
|
|
NodeKey1 []byte
|
|
NodeKey2 []byte
|
|
}
|