-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfluffy.sql
48 lines (41 loc) · 954 Bytes
/
fluffy.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
--
-- The database for fluffy engine
--
--
-- create the table for true or false
--
CREATE TABLE table_true_or_false
( key_id SERIAL PRIMARY KEY
, key_body TEXT NOT NULL
, key_answer BOOL NOT NULL
, key_rationale TEXT NULL
, key_difficulty TEXT NULL
, key_references Int NULL
, key_learning_objectives TEXT NULL
, key_national_standards TEXT NULL
, key_topics TEXT NULL
, key_words TEXT[] NOT NULL DEFAULT '{}'
);
--
-- create table for gap filling
--
CREATE TABLE table_gap_filling
( key_id SERIAL PRIMARY KEY
, key_body TEXT NOT NULL
, key_answer TEXT NOT NULL
, key_difficulty TEXT NULL
, key_references Int NULL
, key_learning_objectives TEXT NULL
, key_national_standards TEXT NULL
, key_topics TEXT NULL
, key_words TEXT[] NOT NULL DEFAULT '{}'
);
--
-- create table for multiple choice
--
CREATE TABLE table_multiple_choice
( key_id SERIAL PRIMARY KEY
, key_body TEXT NOT NULL
, key_answer INT NOT NULL
, key_choices TEXT[] NOT NULL
);