-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate.sql
More file actions
44 lines (40 loc) · 823 Bytes
/
create.sql
File metadata and controls
44 lines (40 loc) · 823 Bytes
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
drop table if exists creature;
create table creature (
c_id int,
c_name varchar(30),
c_type varchar(20),
reside_t_id varchar(3),
boss_c_id int,
primary key (c_id)
);
drop table if exists skill;
create table skill (
s_code varchar(3),
s_desc varchar(40),
origin_t_id varchar(3),
primary key (s_code)
);
drop table if exists achievement;
create table achievement (
c_id int,
s_code varchar(3),
score smallint,
test_t_id varchar(3),
primary key (c_id, s_code)
);
drop table if exists aspiration;
create table aspiration (
c_id int,
s_code varchar(3),
score smallint,
test_t_id varchar(3),
primary key (c_id, s_code)
);
drop table if exists town;
create table town (
t_id varchar(3),
t_name varchar(24),
mayor_c_id int,
biggest_rival_t_id varchar(4),
primary key (t_id)
);