diff --git a/db/models/sc_price_history.go b/db/models/sc_price_history.go index 998b186..2c2e9e0 100644 --- a/db/models/sc_price_history.go +++ b/db/models/sc_price_history.go @@ -18,7 +18,7 @@ func init() { type SCPriceHistory struct { gorm.Model 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 {