forked from sjhingan/wePro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb.sql
47 lines (41 loc) · 1.01 KB
/
db.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
42
43
44
45
46
47
create table assessment(
question_id int not null auto_increment,
assessment_id varchar(255),
question varchar(10240) not null,
option1 varchar(1024) not null,
option2 varchar(1024) not null,
option3 varchar(1024),
option4 varchar(1024),
correct_answer int not null,
marks int,
primary key(question_id)
);
create table project(
id int not null auto_increment,
name varchar(1024) not null,
description varchar(10240),
status_id int not null,
duration int,
due_date date not null,
owner int not null,
assessment_id int,
positions int,
pay int,
primary key(id)
);
create table skills(
id int not null auto_increment,
name varchar(255) not null,
primary key(id)
);
create table project_skills(
project_id int not null,
skill_name varchar(255) not null
);
create table assessment_result(
user_id varchar(255),
assessment_id varchar(255),
result float(4,2),
primary key (user_id,assessment_id),
FOREIGN KEY (user_id) REFERENCES user(user_id)
);