2-advanced/dubbo-samples-seata/deploy/All.yml [29:86]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
apiVersion: v1
kind: ConfigMap
metadata:
  name: seata-mysql-init
  namespace: dubbo-demo
data:
  # Set the properties you want to override, properties not set here will be using the default values
  # check application.properties inside dubbo-admin project for the keys supported
  dubbo-biz.sql: |
    DROP TABLE IF EXISTS `storage_tbl`;
    CREATE TABLE `storage_tbl`
    (
        `id`             int(11) NOT NULL AUTO_INCREMENT,
        `commodity_code` varchar(255) DEFAULT NULL,
        `count`          int(11)      DEFAULT 0,
        PRIMARY KEY (`id`),
        UNIQUE KEY (`commodity_code`)
    ) ENGINE = InnoDB
    DEFAULT CHARSET = utf8;
    
    
    DROP TABLE IF EXISTS `order_tbl`;
    CREATE TABLE `order_tbl`
    (
        `id`             int(11) NOT NULL AUTO_INCREMENT,
        `user_id`        varchar(255) DEFAULT NULL,
        `commodity_code` varchar(255) DEFAULT NULL,
        `count`          int(11)      DEFAULT 0,
        `money`          int(11)      DEFAULT 0,
        PRIMARY KEY (`id`)
    ) ENGINE = InnoDB
    DEFAULT CHARSET = utf8;
    
    
    DROP TABLE IF EXISTS `account_tbl`;
    CREATE TABLE `account_tbl`
    (
        `id`      int(11) NOT NULL AUTO_INCREMENT,
        `user_id` varchar(255) DEFAULT NULL,
        `money`   int(11)      DEFAULT 0,
        PRIMARY KEY (`id`)
    ) ENGINE = InnoDB
    DEFAULT CHARSET = utf8;

  undo-log.sql: |
    CREATE TABLE `undo_log`
    (
        `id`            bigint(20) NOT NULL AUTO_INCREMENT,
        `branch_id`     bigint(20) NOT NULL,
        `xid`           varchar(100) NOT NULL,
        `context`       varchar(128) NOT NULL,
        `rollback_info` longblob     NOT NULL,
        `log_status`    int(11) NOT NULL,
        `log_created`   datetime     NOT NULL,
        `log_modified`  datetime     NOT NULL,
        PRIMARY KEY (`id`),
        UNIQUE KEY `ux_undo_log` (`xid`,`branch_id`)
    ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



2-advanced/dubbo-samples-seata/deploy/seata-mysql/ConfigMap.yml [16:73]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
apiVersion: v1
kind: ConfigMap
metadata:
  name: seata-mysql-init
  namespace: dubbo-demo
data:
  # Set the properties you want to override, properties not set here will be using the default values
  # check application.properties inside dubbo-admin project for the keys supported
  dubbo-biz.sql: |
    DROP TABLE IF EXISTS `storage_tbl`;
    CREATE TABLE `storage_tbl`
    (
    `id`             int(11) NOT NULL AUTO_INCREMENT,
    `commodity_code` varchar(255) DEFAULT NULL,
    `count`          int(11)      DEFAULT 0,
    PRIMARY KEY (`id`),
    UNIQUE KEY (`commodity_code`)
    ) ENGINE = InnoDB
    DEFAULT CHARSET = utf8;
    
    
    DROP TABLE IF EXISTS `order_tbl`;
    CREATE TABLE `order_tbl`
    (
    `id`             int(11) NOT NULL AUTO_INCREMENT,
    `user_id`        varchar(255) DEFAULT NULL,
    `commodity_code` varchar(255) DEFAULT NULL,
    `count`          int(11)      DEFAULT 0,
    `money`          int(11)      DEFAULT 0,
    PRIMARY KEY (`id`)
    ) ENGINE = InnoDB
    DEFAULT CHARSET = utf8;
    
    
    DROP TABLE IF EXISTS `account_tbl`;
    CREATE TABLE `account_tbl`
    (
    `id`      int(11) NOT NULL AUTO_INCREMENT,
    `user_id` varchar(255) DEFAULT NULL,
    `money`   int(11)      DEFAULT 0,
    PRIMARY KEY (`id`)
    ) ENGINE = InnoDB
    DEFAULT CHARSET = utf8;

  undo-log.sql: |
    CREATE TABLE `undo_log`
    (
        `id`            bigint(20) NOT NULL AUTO_INCREMENT,
        `branch_id`     bigint(20) NOT NULL,
        `xid`           varchar(100) NOT NULL,
        `context`       varchar(128) NOT NULL,
        `rollback_info` longblob     NOT NULL,
        `log_status`    int(11) NOT NULL,
        `log_created`   datetime     NOT NULL,
        `log_modified`  datetime     NOT NULL,
        PRIMARY KEY (`id`),
        UNIQUE KEY `ux_undo_log` (`xid`,`branch_id`)
    ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



