faraday/db/sqlc/models.go
bitromortac 53148c5232
chanevents+db: add sync row
We want to know if an update came from an initial sync. This also helps
us to identify data gaps and one can be sure it was not due to an actual
event. Modify the migration as it's unreleased.
2026-04-02 12:25:36 +02:00

32 lines
503 B
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.25.0
package sqlc
import (
"database/sql"
"time"
)
type Channel struct {
ID int64
ChannelPoint string
ShortChannelID int64
PeerID int64
}
type ChannelEvent struct {
ID int64
ChannelID int64
EventType int16
Timestamp time.Time
LocalBalanceSat sql.NullInt64
RemoteBalanceSat sql.NullInt64
IsSync bool
}
type Peer struct {
ID int64
Pubkey string
}