| | |
| | | `address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL, |
| | | `rating_scheme_id` bigint NOT NULL, |
| | | `player_max` int DEFAULT NULL COMMENT '人数上限', |
| | | `sort_order` int DEFAULT NULL COMMENT '阶段排序,从1开始连续', |
| | | `state` int NOT NULL DEFAULT '1' COMMENT '0:未发布, 1:发布:2:关闭', |
| | | `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| | | `create_user_id` bigint DEFAULT NULL, |
| | |
| | | PRIMARY KEY (`id`) USING BTREE, |
| | | KEY `fk_t_activity_rating_scheme` (`rating_scheme_id`) USING BTREE, |
| | | KEY `idx_t_activity_deadline` (`signup_deadline`) USING BTREE, |
| | | KEY `idx_t_activity_sort` (`pid`, `sort_order`) USING BTREE, |
| | | CONSTRAINT `fk_t_activity_rating_scheme` FOREIGN KEY (`rating_scheme_id`) REFERENCES `t_rating_scheme` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT |
| | | ) ENGINE=InnoDB AUTO_INCREMENT=62 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; |
| | | |