加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
sql.sql 2.17 KB
一键复制 编辑 原始数据 按行查看 历史
So1aric 提交于 2022-09-20 20:53 . fix
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;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化