21 lines
1.2 KiB
SQL
21 lines
1.2 KiB
SQL
-- 板块详情表
|
|
CREATE TABLE `yifan_section_details` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
|
`created_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
|
`updated_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
|
`created_id` int(11) DEFAULT NULL COMMENT '创建人ID',
|
|
`updated_id` int(11) DEFAULT NULL COMMENT '更新人ID',
|
|
`is_deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除(0否 1是)',
|
|
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态(0禁用 1启用)',
|
|
|
|
`section_id` int(11) NOT NULL COMMENT '关联板块ID',
|
|
`detail_type` varchar(50) NOT NULL COMMENT '详情类型(life_guide:生活开运指南 poetry_base:诗词底蕴 hexagram_meaning:卦象释义 depth_analysis:深度字义解读 zodiac_analysis:生肖喜忌分析 master_comment:大师总评)',
|
|
`title` varchar(100) DEFAULT NULL COMMENT '详情标题',
|
|
`content` json DEFAULT NULL COMMENT '详细内容',
|
|
`sort_order` int(11) DEFAULT '0' COMMENT '排序',
|
|
|
|
PRIMARY KEY (`id`),
|
|
KEY `idx_section_id` (`section_id`),
|
|
KEY `idx_detail_type` (`detail_type`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='板块详情表';
|