# 选择数据库USE springbootdata;# 创建表t_customer,并插入相关记录DROP TABLE IF EXISTS `t_customer`;CREATE TABLE `t_customer`(`id` int(20) NOT NULL AUTO_INCREMENT,`username` varchar(200) DEFAULT NULL,`password` varchar(200) DEFAULT NULL,`valid` tinyint(1) NOT NULL DEFAULT '1',PRIMARY KEY (`id`)) ENGINE = InnoDBAUTO_INCREMENT = 4DEFAULT CHARSET = utf8mb4;INSERT INTO `t_customer`VALUES (1, 'shitou', '2ドルa10ドル$k0EroadoIQsn2Tq2u3JndeaDfyZpvD22IX2snqspX0hfw4.jhSBly', '1');INSERT INTO `t_customer`VALUES (2, 'lisi', '2ドルa10ドル$k0EroadoIQsn2Tq2u3JndeaDfyZpvD22IX2snqspX0hfw4.jhSBly', '1');#创建表t_authority,并插入记录DROP TABLE IF EXISTS `t_authority`;CREATE TABLE `t_authority`(`id` int(20) NOT NULL AUTO_INCREMENT,`authority` varchar(200) DEFAULT NULL,PRIMARY KEY (`id`)) ENGINE = InnoDBAUTO_INCREMENT = 4DEFAULT CHARSET = utf8mb4;INSERT INTO `t_authority`VALUES (1,'ROLE_common');INSERT INTO `t_authority`VALUES (2,'ROLE_vip');#创建表t_authority,并插入记录DROP TABLE IF EXISTS `t_customer_authority`;CREATE TABLE `t_customer_authority`(`id` int(20) NOT NULL AUTO_INCREMENT,`customer_id` int(20) DEFAULT NULL,`authority_id` int(20) DEFAULT NULL,PRIMARY KEY (`id`)) ENGINE = InnoDBAUTO_INCREMENT = 4DEFAULT CHARSET = utf8mb4;INSERT INTO `t_customer_authority`VALUES (1,'1','1');INSERT INTO `t_customer_authority`VALUES (2,'2','2');CREATE TABLE persistent_logins(username varchar(64) not null ,series varchar(64) primary key ,token varchar(64) not null ,last_used timestamp not null);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。