-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreat.sql
executable file
·25 lines (23 loc) · 1.14 KB
/
creat.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
CREATE TABLE IF NOT EXISTS characters (
id int(11) NOT NULL AUTO_INCREMENT,
name varchar(32) NOT NULL COLLATE utf8_hungarian_ci,
armySize int NOT NULL COLLATE utf8_hungarian_ci,
state tinyint NOT NULL COLLATE utf8_hungarian_ci,
house varchar(32) NOT NULL COLLATE utf8_hungarian_ci,
PRIMARY KEY(id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS houses (
id int(11) NOT NULL AUTO_INCREMENT,
name varchar(32) NOT NULL COLLATE utf8_hungarian_ci,
crest varchar(32) NOT NULL COLLATE utf8_hungarian_ci,
motto varchar(32) NOT NULL COLLATE utf8_hungarian_ci,
PRIMARY KEY(id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS alliances (
id int(11) NOT NULL AUTO_INCREMENT,
houseP varchar(32) NOT NULL COLLATE utf8_hungarian_ci,
houseQ varchar(32) NOT NULL COLLATE utf8_hungarian_ci,
begin datetime NOT NULL COLLATE utf8_hungarian_ci,
end datetime NOT NULL COLLATE utf8_hungarian_ci,
PRIMARY KEY(id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci AUTO_INCREMENT=1 ;