-- ---------------------------- -- Table structure for person_record -- ---------------------------- DROP TABLE IF EXISTS `person_record`; CREATE TABLE `person_record` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '人物id', `gate_no` varchar(255) DEFAULT NULL COMMENT '关卡编号', `name` varchar(255) DEFAULT NULL COMMENT '人物名称', `person_id` int(20) DEFAULT NULL COMMENT '人物id', `description` varchar(255) DEFAULT NULL COMMENT '人物描述', `identity_id` int(20) DEFAULT NULL COMMENT '身份id', `identity_name` varchar(255) DEFAULT NULL COMMENT '身份名称', `age` int(2) DEFAULT NULL COMMENT '年龄', `is_key` int(2) DEFAULT NULL COMMENT '是否为关键人物 1 关键人物 2 普通人物', `gender` int(2) DEFAULT NULL COMMENT '性别', `location` int(11) DEFAULT NULL COMMENT '所在地', `disposition` text COMMENT '性格', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` timestamp NULL DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; -- ---------------------------- -- Table structure for relation_record -- ---------------------------- DROP TABLE IF EXISTS `relation_record`; CREATE TABLE `relation_record` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `name` varchar(255) DEFAULT NULL COMMENT '关系名称', `description` varchar(255) DEFAULT NULL COMMENT '关系描述', `type` int(2) DEFAULT NULL COMMENT '关系类型', `relation_id` int(11) DEFAULT NULL COMMENT '关系id', `subject` int(11) DEFAULT NULL COMMENT '关系的主体', `subject_name` varchar(255) DEFAULT NULL COMMENT '主体名称:老王', `object` int(11) DEFAULT NULL COMMENT '关系客体', `object_name` varchar(255) DEFAULT NULL COMMENT '主体名称:老王', `master_info_level` int(2) DEFAULT NULL COMMENT '掌握信息级别', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` timestamp NULL DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; -- ---------------------------- -- Table structure for disposition_record -- ---------------------------- DROP TABLE IF EXISTS `disposition_record`; CREATE TABLE `disposition_record` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `subject` int(11) DEFAULT NULL COMMENT '人物id', `disposition_id` int(11) DEFAULT NULL COMMENT '性格id', `name` varchar(255) DEFAULT NULL COMMENT '性格名称', `description` varchar(255) DEFAULT NULL COMMENT '性格描述', `type` varchar(255) DEFAULT NULL COMMENT '类型', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` timestamp NULL DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; -- ---------------------------- -- Table structure for demand_task_record -- ---------------------------- DROP TABLE IF EXISTS `demand_task_record`; CREATE TABLE `demand_task_record` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `demand_task_id` varchar(255) DEFAULT NULL COMMENT '任务id', `name` varchar(255) DEFAULT NULL COMMENT '名称', `description` varchar(255) DEFAULT NULL COMMENT '描述', `subject` int(11) DEFAULT NULL COMMENT '主体', `object` int(11) DEFAULT NULL COMMENT '客体', `type` int(2) DEFAULT NULL COMMENT '类型: 1:身份 2:场所 3:性格爱好 4:行为 5:关系 6:任务 9:关键线索', `clue_id` int(11) DEFAULT NULL COMMENT '线索id', `info_level` int(2) DEFAULT NULL COMMENT '信息级别', `task_label` int(2) DEFAULT NULL COMMENT '任务标签 1普通任务 2关键任务 3目标任务', `clue_switch` int(2) DEFAULT NULL COMMENT '线索开关 0代表不需要线索就可执行,1代表需要线索才能执行此任务', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` timestamp NULL DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; -- ---------------------------- -- Table structure for clue_record -- ---------------------------- DROP TABLE IF EXISTS `clue_record`; CREATE TABLE `clue_record` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `clue_id` int(11) DEFAULT NULL COMMENT '线索id', `clue_name` varchar(255) DEFAULT NULL COMMENT '线索名称', `subject` int(11) DEFAULT NULL COMMENT '主体', `object` int(11) DEFAULT NULL COMMENT '客体', `description` varchar(255) DEFAULT NULL COMMENT '描述', `type` int(2) DEFAULT NULL COMMENT '类型: 1:身份 2:场所 3:性格爱好 4:行为 5:关系 6:任务 9:关键线索 ', `info_level` int(2) DEFAULT NULL COMMENT '信息级别', `associated_person` int(11) DEFAULT NULL COMMENT '关联人物', `clue_template` varchar(255) DEFAULT NULL COMMENT '线索模板', `trust_degree` int(11) DEFAULT NULL COMMENT '信任度', `deterrence_degree` int(11) DEFAULT NULL COMMENT '威胁', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` timestamp NULL DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; -- ---------------------------- -- Table structure for behaviour_record -- ---------------------------- DROP TABLE IF EXISTS `behaviour_record`; CREATE TABLE `behaviour_record` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '行为记录id', `name` varchar(255) DEFAULT NULL COMMENT '行为名称', `behaviour_id` int(11) DEFAULT NULL COMMENT '行为id', `description` varchar(255) DEFAULT NULL COMMENT '行为描述', `subject` int(11) DEFAULT NULL COMMENT '主体:1', `subject_name` varchar(255) DEFAULT NULL COMMENT '主体名称:老王', `object` int(11) DEFAULT NULL COMMENT '客体:2', `object_name` varchar(255) DEFAULT NULL COMMENT '客体名称:小美', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` timestamp NULL DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;