You've already forked openaccounting-server
forked from cybercinch/openaccounting-server
14 lines
460 B
Go
14 lines
460 B
Go
|
|
package models
|
||
|
|
|
||
|
|
// BudgetItem represents budget items
|
||
|
|
type BudgetItem struct {
|
||
|
|
ID uint `gorm:"primaryKey;autoIncrement"`
|
||
|
|
OrgID []byte `gorm:"column:orgId;type:BINARY(16);not null"`
|
||
|
|
AccountID []byte `gorm:"column:accountId;type:BINARY(16);not null"`
|
||
|
|
Inserted uint64 `gorm:"column:inserted;not null"`
|
||
|
|
Amount int64 `gorm:"column:amount;not null"`
|
||
|
|
|
||
|
|
Org Org `gorm:"foreignKey:OrgID"`
|
||
|
|
Account Account `gorm:"foreignKey:AccountID"`
|
||
|
|
}
|