refactor: store to 20 decimal places

This commit is contained in:
Derrick Hammer 2024-03-11 07:54:52 -04:00
parent 973c40afb4
commit 0d9d7d4d98
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,6);index:idx_rate"`
Rate decimal.Decimal `gorm:"type:DECIMAL(10,20);index:idx_rate"`
}
func (SCPriceHistory) TableName() string {