You've already forked openaccounting-server
forked from cybercinch/openaccounting-server
15 lines
497 B
Go
15 lines
497 B
Go
|
|
package models
|
||
|
|
|
||
|
|
// Price represents currency exchange rates
|
||
|
|
type Price struct {
|
||
|
|
ID []byte `gorm:"type:BINARY(16);primaryKey"`
|
||
|
|
OrgID []byte `gorm:"column:orgId;type:BINARY(16);not null"`
|
||
|
|
Currency string `gorm:"column:currency;size:10;not null"`
|
||
|
|
Date uint64 `gorm:"column:date;not null"`
|
||
|
|
Inserted uint64 `gorm:"column:inserted;not null"`
|
||
|
|
Updated uint64 `gorm:"column:updated;not null"`
|
||
|
|
Price float64 `gorm:"column:price;not null"`
|
||
|
|
|
||
|
|
Org Org `gorm:"foreignKey:OrgID"`
|
||
|
|
}
|