add log-system, bug fixed
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
-- mysql
|
||||
CREATE TABLE IF NOT EXISTS topup_req_msg (
|
||||
queue_id VARCHAR(255) NOT NULL,
|
||||
chain VARCHAR(32) NOT NULL,
|
||||
@@ -19,7 +18,7 @@ CREATE TABLE IF NOT EXISTS topup_resp_msg (
|
||||
amount DECIMAL(30,16) NOT NULL,
|
||||
tx_hash VARCHAR(255) DEFAULT NULL,
|
||||
height BIGINT DEFAULT NULL,
|
||||
status TINYINT DEFAULT 5, --遵循constant模块的定义
|
||||
status TINYINT DEFAULT 5,
|
||||
FOREIGN KEY (queue_id) REFERENCES topup_req_msg(queue_id)
|
||||
);
|
||||
|
||||
@@ -33,7 +32,7 @@ CREATE TABLE IF NOT EXISTS withdraw_req_msg (
|
||||
fee DECIMAL(30,16) NOT NULL,
|
||||
timestamp BIGINT,
|
||||
sign VARCHAR(255),
|
||||
status TINYINT DEFAULT 5, --遵循constant模块的定义
|
||||
status TINYINT DEFAULT 5,
|
||||
PRIMARY KEY (queue_id)
|
||||
);
|
||||
|
||||
@@ -47,7 +46,7 @@ CREATE TABLE IF NOT EXISTS withdraw_resp_msg (
|
||||
amount DECIMAL(30,16) DEFAULT NULL,
|
||||
fee DECIMAL(30,16) DEFAULT NULL,
|
||||
height BIGINT DEFAULT NULL,
|
||||
status TINYINT DEFAULT 5, --遵循constant模块的定义
|
||||
status TINYINT DEFAULT 5,
|
||||
FOREIGN KEY (queue_id) REFERENCES withdraw_req_msg(queue_id)
|
||||
);
|
||||
|
||||
@@ -61,7 +60,7 @@ CREATE TABLE IF NOT EXISTS pay_req_msg (
|
||||
fee DECIMAL(30,16) NOT NULL,
|
||||
timestamp BIGINT,
|
||||
sign VARCHAR(255),
|
||||
status TINYINT DEFAULT 5, --遵循constant模块的定义
|
||||
status TINYINT DEFAULT 5,
|
||||
PRIMARY KEY (queue_id)
|
||||
);
|
||||
|
||||
@@ -75,22 +74,10 @@ CREATE TABLE IF NOT EXISTS pay_resp_msg (
|
||||
amount DECIMAL(30,16) DEFAULT NULL,
|
||||
fee DECIMAL(30,16) DEFAULT NULL,
|
||||
height BIGINT DEFAULT NULL,
|
||||
status TINYINT DEFAULT 5, --遵循constant模块的定义
|
||||
status TINYINT DEFAULT 5,
|
||||
FOREIGN KEY (queue_id) REFERENCES pay_req_msg(queue_id)
|
||||
);
|
||||
|
||||
-- pay_msg的交易
|
||||
-- CREATE TABLE IF NOT EXISTS pay_msg_tx (
|
||||
-- queue_id VARCHAR(255) NOT NULL,
|
||||
-- tx_hash VARCHAR(255) DEFAULT NULL,
|
||||
-- to_addr VARCHAR(255) NOT NULL,
|
||||
-- amount DECIMAL(30,16) DEFAULT NULL,
|
||||
-- fee DECIMAL(30,16),
|
||||
-- height BIGINT DEFAULT 0,
|
||||
-- status TINYINT DEFAULT 5, --遵循constant模块的定义
|
||||
-- FOREIGN KEY (queue_id) REFERENCES pay_req_msg(queue_id)
|
||||
-- );
|
||||
|
||||
CREATE TABLE IF NOT EXISTS remove_req_msg(
|
||||
queue_id VARCHAR(255) NOT NULL,
|
||||
msg_type TINYINT NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user