新增競賽前台呈現、刪除競賽、修改競賽狀態

This commit is contained in:
2025-09-16 14:57:40 +08:00
parent 1f2fb14bd0
commit b4386dc481
21 changed files with 1714 additions and 127 deletions

View File

@@ -89,12 +89,13 @@ CREATE TABLE `competitions` (
`month` INT NOT NULL,
`start_date` DATE NOT NULL,
`end_date` DATE NOT NULL,
`status` ENUM('upcoming', 'active', 'judging', 'completed') DEFAULT 'upcoming',
`status` ENUM('upcoming', 'ongoing', 'active', 'judging', 'completed') DEFAULT 'upcoming',
`description` TEXT,
`type` ENUM('individual', 'team', 'mixed', 'proposal') NOT NULL,
`evaluation_focus` TEXT,
`max_team_size` INT NULL,
`is_active` BOOLEAN DEFAULT TRUE,
`is_current` BOOLEAN DEFAULT FALSE,
`created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
`updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
INDEX `idx_year_month` (`year`, `month`),