lightning-terminal/db/sqlc/models.go
Viktor Tigerström 75f6137d80
multi: rename sql kvstores session_id to group_id
Rename the session_id to group_id in kvstores table in the SQL store, to
better represent how the field is actually used.

Note that this is a breaking change, and would normally require a new
migration. But as the SQL store is not used in production, and only
enabled under the dev build flag, we can rename it without a new
migration, as there's no users of the SQL store in production.
2025-07-21 14:45:45 +02:00

128 lines
2.3 KiB
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.25.0
package sqlc
import (
"database/sql"
"time"
)
type Account struct {
ID int64
Alias int64
Label sql.NullString
Type int16
InitialBalanceMsat int64
CurrentBalanceMsat int64
LastUpdated time.Time
Expiration time.Time
}
type AccountIndex struct {
Name string
Value int64
}
type AccountInvoice struct {
AccountID int64
Hash []byte
}
type AccountPayment struct {
AccountID int64
Hash []byte
Status int16
FullAmountMsat int64
}
type Action struct {
ID int64
SessionID sql.NullInt64
AccountID sql.NullInt64
MacaroonIdentifier []byte
ActorName sql.NullString
FeatureName sql.NullString
ActionTrigger sql.NullString
Intent sql.NullString
StructuredJsonData []byte
RpcMethod string
RpcParamsJson []byte
CreatedAt time.Time
ActionState int16
ErrorReason sql.NullString
}
type Feature struct {
ID int64
Name string
}
type Kvstore struct {
ID int64
Perm bool
RuleID int64
GroupID sql.NullInt64
FeatureID sql.NullInt64
EntryKey string
Value []byte
}
type PrivacyPair struct {
GroupID int64
RealVal string
PseudoVal string
}
type Rule struct {
ID int64
Name string
}
type Session struct {
ID int64
Alias []byte
Label string
State int16
Type int16
Expiry time.Time
CreatedAt time.Time
RevokedAt sql.NullTime
ServerAddress string
DevServer bool
MacaroonRootKey int64
PairingSecret []byte
LocalPrivateKey []byte
LocalPublicKey []byte
RemotePublicKey []byte
Privacy bool
AccountID sql.NullInt64
GroupID sql.NullInt64
}
type SessionFeatureConfig struct {
SessionID int64
FeatureName string
Config []byte
}
type SessionMacaroonCaveat struct {
ID int64
SessionID int64
CaveatID []byte
VerificationID []byte
Location sql.NullString
}
type SessionMacaroonPermission struct {
ID int64
SessionID int64
Entity string
Action string
}
type SessionPrivacyFlag struct {
SessionID int64
Flag int32
}