diff --git a/models/mysql/shared_params.go b/models/mysql/shared_params.go index 4acb6b21..2321102f 100644 --- a/models/mysql/shared_params.go +++ b/models/mysql/shared_params.go @@ -16,9 +16,9 @@ type mysqlSharedParams struct { ID uint `gorm:"primary_key;column:id;type:SMALLINT(2) unsigned AUTO_INCREMENT;NOT NULL" json:"id"` GasOverEstimation float64 `gorm:"column:gas_over_estimation;type:DOUBLE;NOT NULL"` - MaxFee mtypes.Int `gorm:"column:max_fee;type:varchar(256);NOT NULL"` - GasFeeCap mtypes.Int `gorm:"column:gas_fee_cap;type:varchar(256);NOT NULL"` - GasOverPremium float64 `gorm:"column:gas_over_premium;type:DOUBLE;NOT NULL;default:0;"` + MaxFee mtypes.Int `gorm:"column:max_fee;type:varchar(256);NOT NULL;default:0"` + GasFeeCap mtypes.Int `gorm:"column:gas_fee_cap;type:varchar(256);NOT NULL;default:0"` + GasOverPremium float64 `gorm:"column:gas_over_premium;type:DOUBLE;NOT NULL;default:0"` SelMsgNum uint64 `gorm:"column:sel_msg_num;type:BIGINT(20) UNSIGNED;NOT NULL"` } diff --git a/models/sqlite/shared_params.go b/models/sqlite/shared_params.go index 54ec783c..2501cb90 100644 --- a/models/sqlite/shared_params.go +++ b/models/sqlite/shared_params.go @@ -16,9 +16,9 @@ type sqliteSharedParams struct { ID uint `gorm:"primary_key;column:id;type:INT unsigned AUTO_INCREMENT;NOT NULL" json:"id"` GasOverEstimation float64 `gorm:"column:gas_over_estimation;type:REAL;NOT NULL"` - MaxFee mtypes.Int `gorm:"column:max_fee;type:varchar(256);NOT NULL"` - GasFeeCap mtypes.Int `gorm:"column:gas_fee_cap;type:varchar(256);NOT NULL"` - GasOverPremium float64 `gorm:"column:gas_over_premium;type:REAL;"` + MaxFee mtypes.Int `gorm:"column:max_fee;type:varchar(256);NOT NULL;default:0"` + GasFeeCap mtypes.Int `gorm:"column:gas_fee_cap;type:varchar(256);NOT NULL;default:0"` + GasOverPremium float64 `gorm:"column:gas_over_premium;type:REAL;NOT NULL;default:0"` SelMsgNum uint64 `gorm:"column:sel_msg_num;type:UNSIGNED BIG INT;NOT NULL"` }