refactor: increase decimal to 30,20

This commit is contained in:
Derrick Hammer 2024-03-11 07:57:09 -04:00
parent 0d9d7d4d98
commit 944cb868b5
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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 {