diff --git a/db/models/sc_price_history.go b/db/models/sc_price_history.go index 2c2e9e0..af7573b 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,20);index:idx_rate"` + Rate decimal.Decimal `gorm:"type:DECIMAL(30,20);index:idx_rate"` } func (SCPriceHistory) TableName() string {