refactor: store to 20 decimal places
This commit is contained in:
parent
973c40afb4
commit
0d9d7d4d98
|
@ -18,7 +18,7 @@ func init() {
|
||||||
type SCPriceHistory struct {
|
type SCPriceHistory struct {
|
||||||
gorm.Model
|
gorm.Model
|
||||||
CreatedAt time.Time `gorm:"index:idx_rate"`
|
CreatedAt time.Time `gorm:"index:idx_rate"`
|
||||||
Rate decimal.Decimal `gorm:"type:DECIMAL(10,6);index:idx_rate"`
|
Rate decimal.Decimal `gorm:"type:DECIMAL(10,20);index:idx_rate"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (SCPriceHistory) TableName() string {
|
func (SCPriceHistory) TableName() string {
|
||||||
|
|
Loading…
Reference in New Issue