代码拉取完成,页面将自动刷新
create user 'zvms'@'127.0.0.1' identified by '123456';
grant SELECT,INSERT,UPDATE,DELETE,CREATE,DROP
on *.* to 'zvms'@'127.0.0.1' with grant option;
flush privileges;
create database zvms;
use zvms;
create table user (
userId int AUTO_INCREMENT,
userName char(64),
class int,
permission smallint,
notices text,
password char(255),
primary key (userId)
)charset=utf8;
insert into user (userName,class,permission,password)
values ("高一1班",202001,0,"e10adc3949ba59abbe56e057f20f883e");
insert into user (userName,class,permission,password)
values ("高一2班",202002,0,"e10adc3949ba59abbe56e057f20f883e");
insert into user (userName,class,permission,password)
values ("Admin",110001,3,"e10adc3949ba59abbe56e057f20f883e");
create table student (
stuId int,
stuName char(64),
volTimeInside int,
volTimeOutside int,
volTimeLarge int,
primary key (stuId)
)charset=utf8;
insert into student (stuId,stuName,volTimeInside,volTimeOutside,volTimeLarge)
values (20200101,"张三",0,0,0);
insert into student (stuId,stuName,volTimeInside,volTimeOutside,volTimeLarge)
values (20200102,"张",10,0,0);
insert into student (stuId,stuName,volTimeInside,volTimeOutside,volTimeLarge)
values (20200201,"三",100,0,0);
insert into student (stuId,stuName,volTimeInside,volTimeOutside,volTimeLarge)
values (20200202,"三张",20,36,4);
create table volunteer (
volId int AUTO_INCREMENT,
volName char(255),
volDate char(64),
volTime char(64),
stuMax int,
nowStuCount int,
description text,
status smallint,
volTimeInside int,
volTimeOutside int,
volTimeLarge int,
holderId int,
primary key (volId)
)charset=utf8;
create table stu_vol (
volId int,
stuId int,
status smallint,
volTimeInside int,
volTimeOutside int,
volTimeLarge int,
thought text,
picture text /* 图片的md5 */
)charset=utf8;
create table class_vol (
volId int,
class int,
stuMax int,
nowStuCount int
)charset=utf8;
create table user_notice (
noticeTitle text,
noticeText text,
deadTime text,
noticeId int AUTO_INCREMENT,
primary key (noticeId)
)charset=utf8;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。