Created
April 12, 2013 20:39
-
-
Save mrorii/5374962 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP TABLE IF EXISTS user; | |
CREATE TABLE user ( | |
id int NOT NULL auto_increment, | |
name varchar(100) NOT NULL default '', | |
registerDate timestamp NOT NULL default CURRENT_TIMESTAMP, | |
group int NOT NULL default '0', | |
PRIMARY KEY (id) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
DROP TABLE IF EXISTS decoration_binary; | |
CREATE TABLE decoration_binary ( | |
id int NOT NULL auto_increment, | |
casId int NOT NULL, | |
xmiId int NOT NULL, | |
userId int NOT NULL, | |
value tinyint(1) NOT NULL, | |
date timestamp NOT NULL default CURRENT_TIMESTAMP, | |
PRIMARY KEY (id), | |
UNIQUE KEY (casId, xmiId, userId) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
DROP TABLE IF EXISTS decoration_real; | |
CREATE TABLE decoration_real ( | |
id int NOT NULL auto_increment, | |
casId int NOT NULL, | |
xmiId int NOT NULL, | |
userId int NOT NULL, | |
value float NOT NULL, | |
date timestamp NOT NULL default CURRENT_TIMESTAMP, | |
PRIMARY KEY (id), | |
UNIQUE KEY (casId, xmiId, userId) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
DROP TABLE IF EXISTS decoration_span; | |
CREATE TABLE decoration_span ( | |
id int NOT NULL auto_increment, | |
casId int NOT NULL, | |
xmiId int NOT NULL, | |
userId int NOT NULL, | |
spanStart int NOT NULL, | |
spanEnd int NOT NULL, | |
date timestamp NOT NULL default CURRENT_TIMESTAMP, | |
PRIMARY KEY (id), | |
UNIQUE KEY (casId, xmiId, userId) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment