chore(db): clean legacy sql assets and standardize migrations
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
-- =====================================================
|
||||
-- Migration: Create legacy mt_venue table for mini module compatibility
|
||||
-- Version: V10
|
||||
-- Description: Add mt_venue table if not exists
|
||||
-- Date: 2026-02-15
|
||||
-- =====================================================
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `mt_venue` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`competition_id` bigint NOT NULL COMMENT '赛事ID',
|
||||
`venue_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '场地名称',
|
||||
`venue_no` int NOT NULL COMMENT '场地编号',
|
||||
`status` int DEFAULT '1' COMMENT '场地状态:1-正常,2-维护中',
|
||||
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
`is_deleted` tinyint DEFAULT '0' COMMENT '是否删除:0-否,1-是',
|
||||
`tenant_id` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '000000' COMMENT '租户ID',
|
||||
`create_user` bigint DEFAULT NULL COMMENT '创建人',
|
||||
`create_dept` bigint DEFAULT NULL COMMENT '创建部门',
|
||||
`update_user` bigint DEFAULT NULL COMMENT '更新人',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
KEY `idx_competition_id` (`competition_id`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='场地表';
|
||||
Reference in New Issue
Block a user