diff --git a/db/init_mysql.sql b/db/init_mysql.sql index dfc2284..8f5b02c 100644 --- a/db/init_mysql.sql +++ b/db/init_mysql.sql @@ -168,7 +168,6 @@ CREATE TABLE `block` `block_hash` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `block_number` bigint NOT NULL, `block_time` timestamp NOT NULL, - `busy` tinyint(1) default 0 NOT NULL, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`chain`) USING BTREE, UNIQUE KEY `uqx_chain` (`chain`) diff --git a/model/status.go b/model/status.go index b4d6b4e..6bf3492 100644 --- a/model/status.go +++ b/model/status.go @@ -29,7 +29,6 @@ type BlockStatus struct { BlockHash string `json:"block_hash" gorm:"column:block_hash"` // block hash BlockNumber uint64 `json:"block_number" gorm:"column:block_number"` // block height BlockTime time.Time `json:"block_time" gorm:"column:block_time"` // block time - Busy uint8 `json:"busy" gorm:"column:busy"` // busy } func (BlockStatus) TableName() string {