优化数据库表结构

结构优化
648540858 2023-11-30 17:40:53 +08:00
parent e44be505d9
commit 628bffd21a
1 changed files with 6 additions and 13 deletions

View File

@ -70,8 +70,8 @@ CREATE TABLE `wvp_common_region`
CREATE TABLE `wvp_common_platform_channel`
(
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
`platform_id` varchar(50) NOT NULL,
`common_gb_channel_id` varchar(50) NOT NULL,
`platform_id` bigint unsigned NOT NULL,
`common_gb_channel_id` bigint unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
UNIQUE KEY `uk_platform_id_common_gb_channel_id` (`platform_id`,`common_gb_channel_id`)
@ -79,17 +79,10 @@ CREATE TABLE `wvp_common_platform_channel`
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
CREATE TABLE `wvp_common_platform_region`
(
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
`platform_id` varchar(50) NOT NULL,
`region_id` varchar(50) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
UNIQUE KEY `uk_platform_region_id` (`platform_id`,`region_id`)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
drop table `wvp_platform_catalog`;
drop table `wvp_platform_gb_channel`;
drop table `wvp_platform_gb_stream`;
drop table `wvp_resources_tree`;