-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.sql
44 lines (37 loc) · 1.08 KB
/
script.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
create table s_admin
(
uaid int auto_increment
primary key,
adminname varchar(255) not null,
adminpassword varchar(255) not null
)
comment 'tablet include all administrators' collate = utf8mb4_bin;
grant alter on table s_admin to 'JavaWeb-T';
create table s_request
(
uid int auto_increment
primary key,
username varchar(255) not null,
userpassword varchar(255) not null
)
comment 'tablet include all signup account' collate = utf8mb4_bin;
create table s_user
(
uid int auto_increment
primary key,
username varchar(255) not null,
userpassword varchar(255) not null,
permissionid int not null,
constraint s_user_s_admin_uaid_fk
foreign key (permissionid) references s_admin (uaid)
)
comment 'tablet include all users' collate = utf8mb4_bin;
create table scheofuid1
(
uscheid int auto_increment
primary key,
tital varchar(255) not null,
addtime date not null,
deadline date not null,
state varchar(255) null
);