feat: now pulls platform information and stores it in the database

This commit is contained in:
Michael Green
2023-04-09 01:19:50 +10:00
parent 1ad840750e
commit b36b3a8f57
14 changed files with 686 additions and 15 deletions

View File

@@ -0,0 +1,24 @@

CREATE TABLE `platforms` (
`id` bigint unsigned NOT NULL,
`abbreviation` varchar(45) DEFAULT NULL,
`alternative_name` varchar(45) DEFAULT NULL,
`category` int DEFAULT NULL,
`checksum` varchar(45) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`generation` int DEFAULT NULL,
`name` varchar(45) DEFAULT NULL,
`platform_family` int DEFAULT NULL,
`platform_logo` int DEFAULT NULL,
`slug` varchar(45) DEFAULT NULL,
`summary` varchar(255) DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`versions` json DEFAULT NULL,
`websites` json DEFAULT NULL,
`dateAdded` datetime DEFAULT NULL,
`lastUpdated` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
SELECT * FROM gaseous.platforms;