Skip to content

Commit

Permalink
添加数据库脚本文件
Browse files Browse the repository at this point in the history
  • Loading branch information
suvvm committed Nov 11, 2019
1 parent 0469624 commit 075fb99
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,24 @@ create table tags (
description nvarchar(200)
)auto_increment=400000001 default charset=utf8;

create table usertag (
uid int not null,
tid int not null,
foreign key(uid) references users(id),
foreign key(tid) references tags(id)
)default charset=utf8;

create table invtag (
iid int not null,
tid int not null,
foreign key(iid) references investigates(id),
foreign key(tid) references tags(id)
)default charset=utf8;

create table userresults (
uid int not null,
iid int not null,
ans mediumtext,
foreign key(iid) references investigates(id),
foreign key(uid) references users(id)
)default charset=utf8;

0 comments on commit 075fb99

Please sign in to comment.