add trading state
This commit is contained in:
parent
f9aeb49107
commit
d26a5d82bb
@ -12,3 +12,16 @@ create table if not exists user_account(
|
||||
);
|
||||
|
||||
insert into user_account (user_id, balance) values (1, 10000), (2, 10000) on DUPLICATE KEY UPDATE balance=values (balance);
|
||||
|
||||
drop table if exists user_account_trading;
|
||||
create table if not exists user_account_trading( -- 表示交易中被冻结的金额
|
||||
id int(11) PRIMARY KEY AUTO_INCREMENT,
|
||||
user_id int(11) UNIQUE ,
|
||||
frozen DECIMAL(10, 2) not null default '0',
|
||||
create_time datetime DEFAULT now(),
|
||||
update_time datetime DEFAULT now(),
|
||||
key(create_time),
|
||||
key(update_time)
|
||||
);
|
||||
|
||||
insert into user_account_trading (user_id, balance) values (1, 0), (2, 0) on DUPLICATE KEY UPDATE balance=values (balance);
|
||||
Loading…
x
Reference in New Issue
Block a user