refactor: increase decimal to 30,20
This commit is contained in:
parent
0d9d7d4d98
commit
944cb868b5
|
@ -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,20);index:idx_rate"`
|
Rate decimal.Decimal `gorm:"type:DECIMAL(30,20);index:idx_rate"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (SCPriceHistory) TableName() string {
|
func (SCPriceHistory) TableName() string {
|
||||||
|
|
Loading…
Reference in New Issue