-
Notifications
You must be signed in to change notification settings - Fork 0
/
micro-portal.sql
41 lines (36 loc) · 1.59 KB
/
micro-portal.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
-- DATABASE
CREATE DATABASE IF NOT EXISTS `micro-portal` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE `micro-portal`;
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for micro_user
-- ----------------------------
DROP TABLE IF EXISTS `micro_user`;
CREATE TABLE `micro_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`money` int(11) DEFAULT '0',
`create_by` varchar(255) DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`update_by` varchar(255) DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Records of micro_user
-- ----------------------------
INSERT INTO `micro_user` VALUES ('1', 'laiyw', '0', 'admin', '2022-04-26 11:56:47', 'admin', '2022-04-26 12:52:13');
-- ----------------------------
-- Table structure for undo_log
-- ----------------------------
DROP TABLE IF EXISTS `undo_log`;
CREATE TABLE `undo_log` (
`branch_id` bigint(20) NOT NULL COMMENT 'branch transaction id',
`xid` varchar(128) NOT NULL COMMENT 'global transaction id',
`context` varchar(128) NOT NULL COMMENT 'undo_log context,such as serialization',
`rollback_info` longblob NOT NULL COMMENT 'rollback info',
`log_status` int(11) NOT NULL COMMENT '0:normal status,1:defense status',
`log_created` datetime(6) NOT NULL COMMENT 'create datetime',
`log_modified` datetime(6) NOT NULL COMMENT 'modify datetime',
UNIQUE KEY `ux_undo_log` (`xid`,`branch_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='AT transaction mode undo table';