/*
Navicat MySQL Data Transfer
Source Server : Mysql
Source Server Version : 80019
Source Host : localhost:3306
Source Database : seata
Target Server Type : MYSQL
Target Server Version : 80019
File Encoding : 65001
Date: 2020-05-21 16:22:26
*/SETFOREIGN_KEY_CHECKS=0;--------------------------------Tablestructureforaccount_tbl------------------------------DROPTABLEIFEXISTSaccount_tbl;CREATETABLEaccount_tbl(idintNOTNULLAUTO_INCREMENT,user_idvarchar(255)DEFAULTNULL,moneyintDEFAULT'0',PRIMARYKEY(id))ENGINE=InnoDBAUTO_INCREMENT=3DEFAULTCHARSET=utf8;--------------------------------Recordsofaccount_tbl------------------------------INSERTINTOaccount_tblVALUES('1','DQCGM_USER_1','10000');INSERTINTOaccount_tblVALUES('2','DQCGM_USER_2','10000');--------------------------------Tablestructurefororder_tbl------------------------------DROPTABLEIFEXISTSorder_tbl;CREATETABLEorder_tbl(idintNOTNULLAUTO_INCREMENT,user_idvarchar(255)DEFAULTNULL,commodity_codevarchar(255)DEFAULTNULL,countintDEFAULT'0',moneyintDEFAULT'0',PRIMARYKEY(id))ENGINE=InnoDBDEFAULTCHARSET=utf8;--------------------------------Recordsoforder_tbl--------------------------------------------------------------Tablestructureforstorage_tbl------------------------------DROPTABLEIFEXISTSstorage_tbl;CREATETABLEstorage_tbl(idintNOTNULLAUTO_INCREMENT,commodity_codevarchar(255)DEFAULTNULL,countintDEFAULT'0',PRIMARYKEY(id),UNIQUEKEYcommodity_code(commodity_code))ENGINE=InnoDBAUTO_INCREMENT=3DEFAULTCHARSET=utf8;--------------------------------Recordsofstorage_tbl------------------------------INSERTINTOstorage_tblVALUES('1','HUAWEI_0001','10');INSERTINTOstorage_tblVALUES('2','XIAOMI_002','10');--------------------------------Tablestructureforundo_log------------------------------DROPTABLEIFEXISTSundo_log;CREATETABLEundo_log(idbigintNOTNULLAUTO_INCREMENT,branch_idbigintNOTNULL,xidvarchar(100)NOTNULL,contextvarchar(128)NOTNULL,rollback_infolongblobNOTNULL,log_statusintNOTNULL,log_createddatetimeNOTNULL,log_modifieddatetimeNOTNULL,extvarchar(100)DEFAULTNULL,PRIMARYKEY(id),UNIQUEKEYux_undo_log(xid,branch_id))ENGINE=InnoDBDEFAULTCHARSET=utf8;--------------------------------Recordsofundo_log------------------------