
drop table if exists `swspkmas_standalone`.`user`;
CREATE TABLE `swspkmas_standalone`.`user`  (
`id` bigint NOT NULL AUTO_INCREMENT,
`username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户名',
`password` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '密码',
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`create_by` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人id',
`role_code` int NOT NULL DEFAULT 1 COMMENT '角色  1管理员 2普通用户  默认1',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `index_name`(`username`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户表' ROW_FORMAT = Dynamic;


INSERT INTO `swspkmas_standalone`.`user`(`username`, `password`  ) VALUES ('admin', 'MTIzNDU2');