-- 邮件4.00版本 新增开放日类型数据字典
INSERT INTO `custody_data_dictionary_type_of_open_day_details`(`dic_id`, `trust_no`, `origin_value`, `version`, `remark`, `create_time`, `update_time`, `is_deleted`) VALUES (1, '54', '0/0', NULL, NULL, '2023-01-12 14:55:30', '2023-01-12 14:55:37', 0);
INSERT INTO `custody_data_dictionary_type_of_open_day_details`(`dic_id`, `trust_no`, `origin_value`, `version`, `remark`, `create_time`, `update_time`, `is_deleted`) VALUES (2, '54', '0/1', NULL, NULL, '2023-01-12 14:55:34', '2023-01-12 14:55:39', 0);
-- 邮件4.00版本 新增开放状态数据字典
INSERT INTO `custody_data_dictionary_open_state_details`(`dic_id`, `trust_no`, `origin_value`, `version`, `remark`, `create_time`, `update_time`, `is_deleted`) VALUES (1, '54', '0', NULL, NULL, '2023-01-12 15:12:39', '2023-01-12 15:12:39', 0);
INSERT INTO `custody_data_dictionary_open_state_details`(`dic_id`, `trust_no`, `origin_value`, `version`, `remark`, `create_time`, `update_time`, `is_deleted`) VALUES (2, '54', '1', NULL, NULL, '2023-01-12 15:12:39', '2023-01-12 15:12:39', 0);
INSERT INTO `custody_data_dictionary_open_state_details`(`dic_id`, `trust_no`, `origin_value`, `version`, `remark`, `create_time`, `update_time`, `is_deleted`) VALUES (3, '54', '2', NULL, NULL, '2023-01-12 15:12:39', '2023-01-12 15:12:39', 0);
INSERT INTO `custody_data_dictionary_open_state_details`(`dic_id`, `trust_no`, `origin_value`, `version`, `remark`, `create_time`, `update_time`, `is_deleted`) VALUES (4, '54', '3', NULL, NULL, '2023-01-12 15:12:39', '2023-01-12 15:12:39', 0);
INSERT INTO `custody_data_dictionary_open_state_details`(`dic_id`, `trust_no`, `origin_value`, `version`, `remark`, `create_time`, `update_time`, `is_deleted`) VALUES (5, '54', '4', NULL, NULL, '2023-01-12 15:12:39', '2023-01-12 15:12:39', 0);
INSERT INTO `custody_data_dictionary_open_state_details`(`dic_id`, `trust_no`, `origin_value`, `version`, `remark`, `create_time`, `update_time`, `is_deleted`) VALUES (6, '54', '5', NULL, NULL, '2023-01-12 15:12:39', '2023-01-12 15:12:39', 0);
INSERT INTO `custody_data_dictionary_open_state_details`(`dic_id`, `trust_no`, `origin_value`, `version`, `remark`, `create_time`, `update_time`, `is_deleted`) VALUES (7, '54', '6', NULL, NULL, '2023-01-12 15:12:39', '2023-01-12 15:12:39', 0);
INSERT INTO `custody_data_dictionary_open_state_details`(`dic_id`, `trust_no`, `origin_value`, `version`, `remark`, `create_time`, `update_time`, `is_deleted`) VALUES (9, '54', 'a', NULL, NULL, '2023-01-12 15:12:39', '2023-01-12 15:12:39', 0);
INSERT INTO `custody_data_dictionary_open_state_details`(`dic_id`, `trust_no`, `origin_value`, `version`, `remark`, `create_time`, `update_time`, `is_deleted`) VALUES (10, '54', '7', NULL, NULL, '2023-01-12 15:12:39', '2023-01-12 15:12:39', 0);
INSERT INTO `custody_data_dictionary_open_state_details`(`dic_id`, `trust_no`, `origin_value`, `version`, `remark`, `create_time`, `update_time`, `is_deleted`) VALUES (11, '54', '8', NULL, NULL, '2023-01-12 15:12:39', '2023-01-12 15:12:39', 0);
INSERT INTO `custody_data_dictionary_open_state_details`(`dic_id`, `trust_no`, `origin_value`, `version`, `remark`, `create_time`, `update_time`, `is_deleted`) VALUES (16, '54', '0', NULL, NULL, '2023-01-12 15:12:39', '2023-01-12 15:12:39', 0);
INSERT INTO `custody_data_dictionary_open_state_details`(`dic_id`, `trust_no`, `origin_value`, `version`, `remark`, `create_time`, `update_time`, `is_deleted`) VALUES (20, '54', '5', NULL, NULL, '2023-01-12 15:12:39', '2023-01-12 15:12:39', 0);
INSERT INTO `custody_data_dictionary_open_state_details`(`dic_id`, `trust_no`, `origin_value`, `version`, `remark`, `create_time`, `update_time`, `is_deleted`) VALUES (21, '54', '6', NULL, NULL, '2023-01-12 15:12:39', '2023-01-12 15:12:39', 0);
INSERT INTO `custody_data_dictionary_open_state_details`(`dic_id`, `trust_no`, `origin_value`, `version`, `remark`, `create_time`, `update_time`, `is_deleted`) VALUES (23, '54', '0', NULL, NULL, '2023-01-12 15:12:39', '2023-01-12 15:12:39', 0);

-- 官网映射新增表
DROP TABLE IF EXISTS `custody_tenant_mapping`;
CREATE TABLE `custody_tenant_mapping`  (
  `id` int(20) NOT NULL DEFAULT 0 AUTO_INCREMENT COMMENT 'id',
  `tenant` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '官网租户',
  `admin` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ' 私募基金的备案编号',
  `company_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '公司名称',
  `version` varchar(36) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '版本',
  `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `is_deleted` int(1) NULL DEFAULT 0 COMMENT '是否删除(有效|0,无效|1)',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `unique_key`(`tenant`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '官网租户映射表' ROW_FORMAT = Dynamic;