mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
20 lines
381 B
Go
20 lines
381 B
Go
package models
|
|
|
|
import (
|
|
"math/big"
|
|
"time"
|
|
|
|
"github.com/uptrace/bun"
|
|
)
|
|
|
|
type Balance struct {
|
|
bun.BaseModel `bun:"accounts.balances"`
|
|
|
|
AccountID AccountID `bun:"type:character varying,nullzero"`
|
|
Asset Asset `bun:"currency"`
|
|
Balance *big.Int `bun:"type:numeric"`
|
|
CreatedAt time.Time
|
|
LastUpdatedAt time.Time
|
|
ConnectorID ConnectorID `bun:"-"`
|
|
}
|