lightning-terminal/db/sqlc/models.go
Elle Mouton caec0742db
db/sqlc: add account related tables and queries
This commit also contains the sqlc.yaml file, the `make sqlc` command
and the script for generating sqlc code. This must be done in this
commit as the script only works if there are queries to generate from.
2025-01-29 16:37:20 +02:00

38 lines
616 B
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
}