##fundInfo新增字段
ALTER TABLE `custody`.`custody_fund_info`
MODIFY COLUMN `trust_no` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '托管外包编码 数据字典：托管人' AFTER `fund_level`,
ADD COLUMN `trust_person_no` varchar(2) NULL COMMENT '托管人编码 数据字典：托管人' AFTER `trust_no`;

## fundInfo新增字段

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for `custody_tenant_email_authorization_info`
-- ----------------------------
DROP TABLE IF EXISTS `custody_tenant_email_authorization_info`;
CREATE TABLE `custody_tenant_email_authorization_info` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `tenant_name` varchar(8) NOT NULL COMMENT '租户名（登记编号）',
  `contact_person` varchar(50) DEFAULT NULL COMMENT '账户联系人',
  `email_agreement` varchar(5) DEFAULT NULL COMMENT '邮箱接受协议',
  `email_host` varchar(200) DEFAULT NULL COMMENT '邮箱服务器',
  `email_server_port` varchar(5) DEFAULT NULL COMMENT '邮箱服务器端口',
  `email_address` varchar(200) DEFAULT NULL COMMENT '邮箱账号',
  `email_secret` varchar(200) DEFAULT NULL COMMENT '邮箱密码',
  `from_email` varchar(200) NOT NULL COMMENT '发件人',
  `email_subject` varchar(255) DEFAULT NULL COMMENT '关键字或者正则表达式确定邮箱',
  `trust_no` varchar(2) NOT NULL COMMENT '托管人id：取自字典表：托管人',
  `version` varchar(36) DEFAULT NULL COMMENT '版本',
  `remark` varchar(255) DEFAULT NULL COMMENT '备注',
  `creat_time` datetime DEFAULT NULL COMMENT '创建日期',
  `update_time` datetime DEFAULT NULL COMMENT '更新日期',
  `is_deleted` int(11) DEFAULT 0 COMMENT '是否删除(有效|0,无效|1)',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `unique_key` (`tenant_name`,`trust_no`) USING BTREE COMMENT '每个租户只能有一个邮箱权限'
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='租户邮箱权限表（custody_tenant_email_authorization_info）';

-- ----------------------------
-- Records of custody_tenant_email_authorization_info
-- ----------------------------
INSERT INTO `custody_tenant_email_authorization_info` VALUES ('1', 'P1000869', 'AUTO', 'pop3s', 'pop.qiye.aliyun.com', '995', 'daxindata@v-invest.cn', '2021Yctz', 'Auto-Disclosure@citics.com', '【基金估值表】', '35', null, '一村', '2022-08-31 18:00:34', '2022-08-31 18:00:34', '0');
INSERT INTO `custody_tenant_email_authorization_info` VALUES ('2', 'P1067183', 'AUTO', 'pop3s', 'pop.exmail.qq.com', '995', 'Lddata_ex@lingdinginc.com.cn', 'aiy3Q3wfkhzXkxDs', 'FAreport@citics.com', '^【每日估值】[0-9A-Z]{6}.+[0-9]{8}$', '35', null, '一村_凌顶', '2022-09-15 16:15:31', '2022-09-15 16:15:34', '0');