-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgamedb.sql
25 lines (24 loc) · 841 Bytes
/
gamedb.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
-- -----------------------------------------------------
-- Table `games`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `games` ;
CREATE TABLE IF NOT EXISTS `games` (
`ID` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`title` VARCHAR(32) NOT NULL,
`producer` VARCHAR(32) NOT NULL,
`year` INT UNSIGNED NOT NULL,
`Type` ENUM(
'FIRST_PERSON_SHOOTER',
'THIRD_PERSON_SHOOTER',
'ADVENTURE','PUZZLE',
'COMBAT',
'UNKNOWN'
) NOT NULL DEFAULT 'UNKNOWN',
`LaatstGewijzigdOp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`ID`)
)
ENGINE = InnoDB;
INSERT INTO `games` (`title`, `producer`, `year`, `type`) VALUES
('Battlefield 5', 'EA', 2018, 'FIRST_PERSON_SHOOTER'),
('Fortnite', 'Epic Games', 2017, 'THIRD_PERSON_SHOOTER'),
('Minecraft', 'Mojang', 2009, 'ADVENTURE');