mirror of https://github.com/dtm-labs/dtm.git
csharpjavadistributed-transactionsdtmgogolangmicroservicenodejsphpdatabasesagaseatatcctransactiontransactionsxapythondistributed
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
678 B
18 lines
678 B
create database if not exists dtm_barrier
|
|
/*!40100 DEFAULT CHARACTER SET utf8mb4 */
|
|
;
|
|
drop table if exists dtm_barrier.barrier;
|
|
create table if not exists dtm_barrier.barrier(
|
|
id bigint(22) PRIMARY KEY AUTO_INCREMENT,
|
|
trans_type varchar(45) default '',
|
|
gid varchar(128) default '',
|
|
branch_id varchar(128) default '',
|
|
op varchar(45) default '',
|
|
barrier_id varchar(45) default '',
|
|
reason varchar(45) default '' comment 'the branch type who insert this record',
|
|
create_time datetime DEFAULT now(),
|
|
update_time datetime DEFAULT now(),
|
|
key(create_time),
|
|
key(update_time),
|
|
UNIQUE key(gid, branch_id, op, barrier_id)
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;
|