-
Notifications
You must be signed in to change notification settings - Fork 0
/
ddl.sql
51 lines (43 loc) · 1.2 KB
/
ddl.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
48
49
50
51
CREATE TABLE personal_info (
first_name TINYTEXT NOT NULL,
last_name TINYTEXT NOT NULL,
email TINYTEXT NOT NULL,
street1 TINYTEXT NOT NULL,
street2 TINYTEXT,
city TINYTEXT NOT NULL,
state TINYTEXT NOT NULL,
zip TINYTEXT NOT NULL);
CREATE TABLE summary (
summary TINYTEXT NOT NULL);
CREATE TABLE objective (
objective TINYTEXT NOT NULL);
CREATE TABLE education (
id INTEGER NOT NULL PRIMARY KEY,
school_name TINYTEXT NOT NULL,
school_city VARCHAR(20) NOT NULL,
school_state VARCHAR(20) NOT NULL,
degree TINYTEXT NOT NULL,
major TINYTEXT NOT NULL,
grad_month VARCHAR(15) NOT NULL,
grad_year INTEGER NOT NULL,
is_anticipated boolean);
CREATE TABLE experience (
id INTEGER NOT NULL PRIMARY KEY,
cmp_name TINYTEXT NOT NULL,
pos TINYTEXT NOT NULL,
cmp_loc TINYTEXT NOT NULL,
start_date TINYTEXT NOT NULL,
end_date TINYTEXT NOT NULL,
cmp_summ VARCHAR(100) NOT NULL);
CREATE TABLE publication (
id INTEGER NOT NULL PRIMARY KEY,
auth_name TINYTEXT NOT NULL,
title TINYTEXT NOT NULL,
year SMALLINT NOT NULL,
summary VARCHAR(100) NOT NULL);
CREATE TABLE activity (
id INTEGER NOT NULL PRIMARY KEY,
activity TINYTEXT NOT NULL);
CREATE TABLE membership (
id INTEGER NOT NULL PRIMARY KEY,
membership TINYTEXT NOT NULL);