You've already forked openaccounting-server
forked from cybercinch/openaccounting-server
12 lines
367 B
Go
12 lines
367 B
Go
|
|
package models
|
||
|
|
|
||
|
|
// Balance represents an account balance at a point in time
|
||
|
|
type Balance struct {
|
||
|
|
ID uint `gorm:"primaryKey;autoIncrement"`
|
||
|
|
Date uint64 `gorm:"column:date;not null"`
|
||
|
|
AccountID []byte `gorm:"column:accountId;type:BINARY(16);not null"`
|
||
|
|
Amount int64 `gorm:"column:amount;not null"`
|
||
|
|
|
||
|
|
Account Account `gorm:"foreignKey:AccountID"`
|
||
|
|
}
|