-- 作业评审维度表
CREATE TABLE IF NOT EXISTS `t_biz_homework_review_dimension` (
    `id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键 ID',
    `rule_id` BIGINT NOT NULL COMMENT '规则 ID',
    `tenant_id` BIGINT NOT NULL COMMENT '租户 ID',
    `name` VARCHAR(100) NOT NULL COMMENT '维度名称',
    `max_score` DECIMAL(10,2) NOT NULL COMMENT '满分',
    `description` VARCHAR(500) DEFAULT NULL COMMENT '维度描述',
    `sort_order` INT DEFAULT 0 COMMENT '排序顺序',
    `create_time` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    `deleted` TINYINT DEFAULT 0 COMMENT '逻辑删除标识',
    PRIMARY KEY (`id`),
    KEY `idx_rule_id` (`rule_id`),
    KEY `idx_tenant_id` (`tenant_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='作业评审维度表';
