Files
gaseous-server/gaseous-tools/Database/MySQL/gaseous-1001.sql
Michael Green 25f1895fe5 Added feature to build collections of ROM's based on a filter (#76)
* fix: added visual feed back for mass rom matching

* chore(deps): EmulatorJS version bump

* chore(deps): nuget package version bump

* feat: added cover art to the emulator

* ci: updated .gitignore

* ci: remove .DS_Store files

* feat: updated the about box, and labeled the IGDB user score

* chore(deps): EmulatorJS version bump

* feat: start of collections build, and styling changes

* fix: updated PlatformMap.json file with more platforms and fixed SNES extensions

* feat: more progress on romsets

* doc: updated readme to include new screenshots and discord link

* fix: repairs an issue where the author column in signatures was too narrow

* chore(deps): EmulatorJS version bump

* feat: Collection build code mostly complete

* fix: renamed collection classes to avoid conflicts in Swagger

* Re-wrote collection builder to correct major bugs and performance

* Completed collection builder and zipper

* API changes completed

* Fixed some last minute Collections API bugs

* Collections mostly complete. Todo: delete button

* Completed collections build
2023-09-01 21:02:15 +10:00

87 lines
2.5 KiB
SQL

DROP TABLE IF EXISTS `GameMode`;
CREATE TABLE `gaseous`.`GameMode` (
`Id` BIGINT NOT NULL,
`CreatedAt` DATETIME NULL,
`Checksum` VARCHAR(45) NULL,
`Name` VARCHAR(100) NULL,
`Slug` VARCHAR(100) NULL,
`UpdatedAt` DATETIME NULL,
`Url` VARCHAR(255) NULL,
`dateAdded` DATETIME NULL,
`lastUpdated` DATETIME NULL,
PRIMARY KEY (`Id`)
);
DROP TABLE IF EXISTS `MultiplayerMode`;
CREATE TABLE `MultiplayerMode` (
`Id` bigint NOT NULL,
`CreatedAt` datetime DEFAULT NULL,
`Checksum` varchar(45) DEFAULT NULL,
`CampaignCoop` boolean DEFAULT NULL,
`DropIn` boolean DEFAULT NULL,
`Game` bigint DEFAULT NULL,
`LanCoop` boolean DEFAULT NULL,
`OfflineCoop` boolean DEFAULT NULL,
`OfflineCoopMax` int DEFAULT NULL,
`OfflineMax` int DEFAULT NULL,
`OnlineCoop` boolean DEFAULT NULL,
`OnlineCoopMax` int DEFAULT NULL,
`OnlineMax` int DEFAULT NULL,
`Platform` bigint DEFAULT NULL,
`SplitScreen` boolean DEFAULT NULL,
`SplitScreenOnline` boolean DEFAULT NULL,
`UpdatedAt` datetime DEFAULT NULL,
`dateAdded` datetime DEFAULT NULL,
`lastUpdated` datetime DEFAULT NULL,
PRIMARY KEY (`Id`)
);
DROP TABLE IF EXISTS `PlayerPerspective`;
CREATE TABLE `PlayerPerspective` (
`Id` bigint NOT NULL,
`CreatedAt` datetime DEFAULT NULL,
`Checksum` varchar(45) DEFAULT NULL,
`Name` varchar(100) DEFAULT NULL,
`Slug` varchar(45) DEFAULT NULL,
`UpdatedAt` datetime DEFAULT NULL,
`Url` varchar(255) DEFAULT NULL,
`dateAdded` datetime DEFAULT NULL,
`lastUpdated` datetime DEFAULT NULL,
PRIMARY KEY (`Id`)
);
DROP TABLE IF EXISTS `Theme`;
CREATE TABLE `Theme` (
`Id` bigint NOT NULL,
`CreatedAt` datetime DEFAULT NULL,
`Checksum` varchar(45) DEFAULT NULL,
`Name` varchar(100) DEFAULT NULL,
`Slug` varchar(45) DEFAULT NULL,
`UpdatedAt` datetime DEFAULT NULL,
`Url` varchar(255) DEFAULT NULL,
`dateAdded` datetime DEFAULT NULL,
`lastUpdated` datetime DEFAULT NULL,
PRIMARY KEY (`Id`)
);
DROP TABLE IF EXISTS `RomCollections`;
CREATE TABLE `RomCollections` (
`Id` BIGINT NOT NULL AUTO_INCREMENT,
`Name` VARCHAR(255) NULL,
`Description` LONGTEXT NULL,
`Platforms` JSON NULL,
`Genres` JSON NULL,
`Players` JSON NULL,
`PlayerPerspectives` JSON NULL,
`Themes` JSON NULL,
`MinimumRating` INT NULL,
`MaximumRating` INT NULL,
`MaximumRomsPerPlatform` INT NULL,
`MaximumBytesPerPlatform` BIGINT NULL,
`MaximumCollectionSizeInBytes` BIGINT NULL,
`BuiltStatus` INT NULL,
PRIMARY KEY (`Id`));
ALTER TABLE `gaseous`.`Signatures_Sources`
CHANGE COLUMN `Author` `Author` LONGTEXT NULL DEFAULT NULL ;