-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
CREATE TABLE tutorial_category ( | ||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, | ||
`category_key` VARCHAR(255) NOT NULL | ||
); | ||
|
||
CREATE TABLE tutorial ( | ||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, | ||
`map_version_id` MEDIUMINT(8) UNSIGNED, | ||
CONSTRAINT tutorial_map_version FOREIGN KEY (`map_version_id`) REFERENCES map_version (id), | ||
`title_key` VARCHAR(255) NOT NULL | ||
COMMENT 'The key for the title of the tutorial shown in client', | ||
`description_key` VARCHAR(255) | ||
COMMENT 'The key for the description of the tutorial, the text in the messages table must be in HTML', | ||
`category` INT UNSIGNED NOT NULL, | ||
CONSTRAINT tutorial_category FOREIGN KEY (`category`) REFERENCES tutorial_category (id), | ||
`image` VARCHAR(255) | ||
COMMENT 'The ''image''-path for to a preview image of the tutorial, relative to the base url defined in the api', | ||
`ordinal` INT NOT NULL | ||
COMMENT 'The ''ordinal'' which defines in which order the tutorials are shown in the client (within their category)', | ||
`launchable` TINYINT(1) NOT NULL | ||
COMMENT 'Boolean that defines whether or not the tutorial can be launched', | ||
`technical_name` VARCHAR(255) NOT NULL | ||
COMMENT 'The ''technical_name'' of the tutorial given to the tutorial mod to decide what tutorial to start, when implemented', | ||
`create_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
`update_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP | ||
); |