数据库text类型字段统一修改为比较长的mediumtext类型

This commit is contained in:
HDM58\hdm58 2024-02-27 17:45:06 +08:00
parent 26016534a8
commit 4fc796cfdd

View File

@ -43,7 +43,7 @@ CREATE TABLE `oa_admin` (
`education` varchar(255) NOT NULL DEFAULT '' COMMENT '学历', `education` varchar(255) NOT NULL DEFAULT '' COMMENT '学历',
`bank_account` varchar(255) NOT NULL DEFAULT '' COMMENT '银行账号', `bank_account` varchar(255) NOT NULL DEFAULT '' COMMENT '银行账号',
`bank_info` varchar(255) NOT NULL DEFAULT '' COMMENT '银行卡信息', `bank_info` varchar(255) NOT NULL DEFAULT '' COMMENT '银行卡信息',
`desc` text NULL COMMENT '员工个人简介', `desc` mediumtext NULL COMMENT '员工个人简介',
`is_hide` int(1) NOT NULL DEFAULT 0 COMMENT '是否隐藏联系方式:0否,1是', `is_hide` int(1) NOT NULL DEFAULT 0 COMMENT '是否隐藏联系方式:0否,1是',
`entry_time` int(11) NOT NULL DEFAULT 0 COMMENT '员工入职日期', `entry_time` int(11) NOT NULL DEFAULT 0 COMMENT '员工入职日期',
`create_time` int(11) NOT NULL DEFAULT 0 COMMENT '注册时间', `create_time` int(11) NOT NULL DEFAULT 0 COMMENT '注册时间',
@ -72,7 +72,7 @@ CREATE TABLE `oa_admin_log` (
`function` varchar(32) NOT NULL DEFAULT '' COMMENT '方法', `function` varchar(32) NOT NULL DEFAULT '' COMMENT '方法',
`ip` varchar(64) NOT NULL DEFAULT '' COMMENT '登录ip', `ip` varchar(64) NOT NULL DEFAULT '' COMMENT '登录ip',
`param_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作数据id', `param_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作数据id',
`param` text NULL COMMENT '参数json格式', `param` mediumtext NULL COMMENT '参数json格式',
`create_time` int(11) NOT NULL DEFAULT 0 COMMENT '创建时间', `create_time` int(11) NOT NULL DEFAULT 0 COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COMMENT = '员工操作日志表'; ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COMMENT = '员工操作日志表';
@ -393,9 +393,9 @@ CREATE TABLE `oa_admin_group` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL DEFAULT '', `title` varchar(255) NOT NULL DEFAULT '',
`status` int(1) NOT NULL DEFAULT 1, `status` int(1) NOT NULL DEFAULT 1,
`rules` text NULL COMMENT '用户组拥有的规则id', `rules` mediumtext NULL COMMENT '用户组拥有的规则id',
`layouts` text NULL COMMENT '首页展示模块', `layouts` mediumtext NULL COMMENT '首页展示模块',
`desc` text NULL COMMENT '备注', `desc` mediumtext NULL COMMENT '备注',
`create_time` int(11) NOT NULL DEFAULT 0, `create_time` int(11) NOT NULL DEFAULT 0,
`update_time` int(11) NOT NULL DEFAULT 0, `update_time` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE, PRIMARY KEY (`id`) USING BTREE,
@ -417,19 +417,19 @@ CREATE TABLE `oa_data_auth` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '权限名称', `title` varchar(255) NOT NULL DEFAULT '' COMMENT '权限名称',
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '权限标识唯一,字母', `name` varchar(255) NOT NULL DEFAULT '' COMMENT '权限标识唯一,字母',
`desc` text NULL COMMENT '备注描述', `desc` mediumtext NULL COMMENT '备注描述',
`module` varchar(255) NOT NULL DEFAULT '' COMMENT '所属模块,唯一,字母', `module` varchar(255) NOT NULL DEFAULT '' COMMENT '所属模块,唯一,字母',
`uids` text NULL COMMENT '权限用户1,2,3', `uids` mediumtext NULL COMMENT '权限用户1,2,3',
`expected_1` int(11) NOT NULL DEFAULT 0 COMMENT '预备字段1可作为预备权限的控制', `expected_1` int(11) NOT NULL DEFAULT 0 COMMENT '预备字段1可作为预备权限的控制',
`expected_2` int(11) NOT NULL DEFAULT 0 COMMENT '预备字段2可作为预备权限的控制', `expected_2` int(11) NOT NULL DEFAULT 0 COMMENT '预备字段2可作为预备权限的控制',
`expected_3` int(11) NOT NULL DEFAULT 0 COMMENT '预备字段3可作为预备权限的控制', `expected_3` int(11) NOT NULL DEFAULT 0 COMMENT '预备字段3可作为预备权限的控制',
`expected_4` int(11) NOT NULL DEFAULT 0 COMMENT '预备字段4可作为预备权限的控制', `expected_4` int(11) NOT NULL DEFAULT 0 COMMENT '预备字段4可作为预备权限的控制',
`expected_5` int(11) NOT NULL DEFAULT 0 COMMENT '预备字段5可作为预备权限的控制', `expected_5` int(11) NOT NULL DEFAULT 0 COMMENT '预备字段5可作为预备权限的控制',
`conf_1` text NULL COMMENT '配置字段1可作为预配置内容', `conf_1` mediumtext NULL COMMENT '配置字段1可作为预配置内容',
`conf_2` text NULL COMMENT '配置字段2可作为预配置内容', `conf_2` mediumtext NULL COMMENT '配置字段2可作为预配置内容',
`conf_3` text NULL COMMENT '配置字段3可作为预配置内容', `conf_3` mediumtext NULL COMMENT '配置字段3可作为预配置内容',
`conf_4` text NULL COMMENT '配置字段4可作为预配置内容', `conf_4` mediumtext NULL COMMENT '配置字段4可作为预配置内容',
`conf_5` text NULL COMMENT '配置字段5可作为预配置内容', `conf_5` mediumtext NULL COMMENT '配置字段5可作为预配置内容',
`create_time` int(11) NOT NULL DEFAULT 0 COMMENT '创建时间', `create_time` int(11) NOT NULL DEFAULT 0 COMMENT '创建时间',
`update_time` int(11) NOT NULL DEFAULT 0 COMMENT '更新时间', `update_time` int(11) NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
@ -451,7 +451,7 @@ CREATE TABLE `oa_config` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '配置名称', `title` varchar(255) NOT NULL DEFAULT '' COMMENT '配置名称',
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '配置标识', `name` varchar(255) NOT NULL DEFAULT '' COMMENT '配置标识',
`content` text NULL COMMENT '配置内容', `content` mediumtext NULL COMMENT '配置内容',
`status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '状态:-1删除 0禁用 1启用', `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '状态:-1删除 0禁用 1启用',
`create_time` int(11) NOT NULL DEFAULT 0 COMMENT '创建时间', `create_time` int(11) NOT NULL DEFAULT 0 COMMENT '创建时间',
`update_time` int(11) NOT NULL DEFAULT 0 COMMENT '更新时间', `update_time` int(11) NOT NULL DEFAULT 0 COMMENT '更新时间',
@ -833,7 +833,7 @@ CREATE TABLE `oa_expense_interfix` (
`exid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '报销ID', `exid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '报销ID',
`amount` decimal(15, 2) NULL DEFAULT 0.00 COMMENT '金额', `amount` decimal(15, 2) NULL DEFAULT 0.00 COMMENT '金额',
`cate_id` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '报销类型ID', `cate_id` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '报销类型ID',
`remarks` text NULL COMMENT '备注', `remarks` mediumtext NULL COMMENT '备注',
`admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '登记人', `admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '登记人',
`create_time` int(11) NOT NULL DEFAULT 0 COMMENT '创建时间', `create_time` int(11) NOT NULL DEFAULT 0 COMMENT '创建时间',
`update_time` int(11) NOT NULL DEFAULT 0 COMMENT '更新时间', `update_time` int(11) NOT NULL DEFAULT 0 COMMENT '更新时间',
@ -930,8 +930,8 @@ CREATE TABLE `oa_invoice` (
`other_file_ids` varchar(500) NOT NULL DEFAULT '' COMMENT '其他附件ID如:1,2,3', `other_file_ids` varchar(500) NOT NULL DEFAULT '' COMMENT '其他附件ID如:1,2,3',
`check_status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '状态 0待审核,1审核中,2审核通过,3审核不通过,4已撤销,5已开具,10已作废', `check_status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '状态 0待审核,1审核中,2审核通过,3审核不通过,4已撤销,5已开具,10已作废',
`last_admin_id` varchar(200) NOT NULL DEFAULT '0' COMMENT '上一审批人', `last_admin_id` varchar(200) NOT NULL DEFAULT '0' COMMENT '上一审批人',
`check_remark` text NULL COMMENT '撤销的理由', `check_remark` mediumtext NULL COMMENT '撤销的理由',
`remark` text NULL COMMENT '备注', `remark` mediumtext NULL COMMENT '备注',
`enter_time` int(11) NOT NULL DEFAULT 0 COMMENT '最新到账时间', `enter_time` int(11) NOT NULL DEFAULT 0 COMMENT '最新到账时间',
`create_time` int(11) NOT NULL DEFAULT 0 COMMENT '创建时间', `create_time` int(11) NOT NULL DEFAULT 0 COMMENT '创建时间',
`update_time` int(11) NOT NULL DEFAULT 0 COMMENT '更新时间', `update_time` int(11) NOT NULL DEFAULT 0 COMMENT '更新时间',
@ -949,7 +949,7 @@ CREATE TABLE `oa_invoice_income` (
`amount` decimal(15, 2) NULL DEFAULT 0.00 COMMENT '到账金额', `amount` decimal(15, 2) NULL DEFAULT 0.00 COMMENT '到账金额',
`admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '到账登记人', `admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '到账登记人',
`enter_time` int(11) NOT NULL DEFAULT 0 COMMENT '到账时间', `enter_time` int(11) NOT NULL DEFAULT 0 COMMENT '到账时间',
`remarks` text NULL COMMENT '备注', `remarks` mediumtext NULL COMMENT '备注',
`create_time` int(11) NOT NULL DEFAULT 0 COMMENT '创建时间', `create_time` int(11) NOT NULL DEFAULT 0 COMMENT '创建时间',
`update_time` int(11) NOT NULL DEFAULT 0 COMMENT '更新时间', `update_time` int(11) NOT NULL DEFAULT 0 COMMENT '更新时间',
`status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '状态:-1删除 0禁用 1正常 6作废', `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '状态:-1删除 0禁用 1正常 6作废',
@ -1004,12 +1004,12 @@ CREATE TABLE `oa_message` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '消息主题', `title` varchar(100) NOT NULL DEFAULT '' COMMENT '消息主题',
`template` tinyint(2) NOT NULL DEFAULT 0 COMMENT '消息模板用于前端拼接消息0私人消息,1公告,2办公审批,3报销审批,4发票审批,5合同审批', `template` tinyint(2) NOT NULL DEFAULT 0 COMMENT '消息模板用于前端拼接消息0私人消息,1公告,2办公审批,3报销审批,4发票审批,5合同审批',
`content` text NULL COMMENT '消息内容', `content` mediumtext NULL COMMENT '消息内容',
`file_ids` text NULL COMMENT '消息附件', `file_ids` mediumtext NULL COMMENT '消息附件',
`from_uid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '发送人id', `from_uid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '发送人id',
`to_uid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '接收人id', `to_uid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '接收人id',
`type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '阅览人类型1 人员 2部门 3岗位 4全部', `type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '阅览人类型1 人员 2部门 3岗位 4全部',
`type_user` text NULL COMMENT '人员ID或部门ID或角色ID全员则为空', `type_user` mediumtext NULL COMMENT '人员ID或部门ID或角色ID全员则为空',
`send_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '发送日期', `send_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '发送日期',
`read_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '阅读时间', `read_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '阅读时间',
`pid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '来源发件id', `pid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '来源发件id',
@ -1293,10 +1293,10 @@ DROP TABLE IF EXISTS `oa_work`;
CREATE TABLE `oa_work` ( CREATE TABLE `oa_work` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '类型1 日报 2周报 3月报', `type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '类型1 日报 2周报 3月报',
`type_user` text NULL COMMENT '接受人员ID', `type_user` mediumtext NULL COMMENT '接受人员ID',
`works` text NULL COMMENT '汇报工作内容', `works` mediumtext NULL COMMENT '汇报工作内容',
`plans` text NULL COMMENT '计划工作内容', `plans` mediumtext NULL COMMENT '计划工作内容',
`remark` text NULL COMMENT '其他事项', `remark` mediumtext NULL COMMENT '其他事项',
`admin_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建人id', `admin_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建人id',
`create_time` int(11) NOT NULL DEFAULT 0 COMMENT '创建时间', `create_time` int(11) NOT NULL DEFAULT 0 COMMENT '创建时间',
`update_time` int(11) NOT NULL DEFAULT 0 COMMENT '更新时间', `update_time` int(11) NOT NULL DEFAULT 0 COMMENT '更新时间',
@ -1340,7 +1340,7 @@ CREATE TABLE `oa_work_comment` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`work_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '工作汇报id', `work_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '工作汇报id',
`admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建人', `admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建人',
`content` text NULL COMMENT '点评内容', `content` mediumtext NULL COMMENT '点评内容',
`create_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间', `create_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`update_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '修改时间', `update_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '修改时间',
`delete_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '删除时间', `delete_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '删除时间',
@ -1419,9 +1419,9 @@ CREATE TABLE `oa_customer` (
`belong_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '获取时间', `belong_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '获取时间',
`distribute_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '分配时间', `distribute_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '分配时间',
`share_ids` varchar(500) NOT NULL DEFAULT '' COMMENT '共享人员,如:1,2,3', `share_ids` varchar(500) NOT NULL DEFAULT '' COMMENT '共享人员,如:1,2,3',
`content` text NULL COMMENT '客户描述', `content` mediumtext NULL COMMENT '客户描述',
`market` text NULL COMMENT '主要经营业务', `market` mediumtext NULL COMMENT '主要经营业务',
`remark` text NULL COMMENT '备注信息', `remark` mediumtext NULL COMMENT '备注信息',
`bank` varchar(60) NOT NULL DEFAULT '' COMMENT '开户银行', `bank` varchar(60) NOT NULL DEFAULT '' COMMENT '开户银行',
`bank_sn` varchar(60) NOT NULL DEFAULT '' COMMENT '银行帐号', `bank_sn` varchar(60) NOT NULL DEFAULT '' COMMENT '银行帐号',
`tax_num` varchar(100) NOT NULL DEFAULT '' COMMENT '纳税人识别号', `tax_num` varchar(100) NOT NULL DEFAULT '' COMMENT '纳税人识别号',
@ -1445,7 +1445,7 @@ CREATE TABLE `oa_customer_trace` (
`chance_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '销售机会id', `chance_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '销售机会id',
`type` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '跟进方式:0其他,1电话,2微信,3QQ,4上门', `type` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '跟进方式:0其他,1电话,2微信,3QQ,4上门',
`stage` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '当前阶段:0未设置,1立项评估,2初期沟通,3需求分析,4方案制定,5商务谈判,6合同签订,7失单', `stage` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '当前阶段:0未设置,1立项评估,2初期沟通,3需求分析,4方案制定,5商务谈判,6合同签订,7失单',
`content` text NULL COMMENT '跟进内容', `content` mediumtext NULL COMMENT '跟进内容',
`follow_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '跟进时间', `follow_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '跟进时间',
`next_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '下次跟进时间', `next_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '下次跟进时间',
`admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建人', `admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建人',
@ -1490,7 +1490,7 @@ CREATE TABLE `oa_customer_chance` (
`contact_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '联系人id', `contact_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '联系人id',
`services_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '需求服务id', `services_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '需求服务id',
`stage` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '当前阶段:0未设置,1立项评估,2初期沟通,3需求分析,4方案制定,5商务谈判,6合同签订,7失单', `stage` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '当前阶段:0未设置,1立项评估,2初期沟通,3需求分析,4方案制定,5商务谈判,6合同签订,7失单',
`content` text NULL COMMENT '需求描述', `content` mediumtext NULL COMMENT '需求描述',
`discovery_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '发现时间', `discovery_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '发现时间',
`expected_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '预计签单时间', `expected_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '预计签单时间',
`expected_amount` decimal(15, 2) NULL DEFAULT 0.00 COMMENT '预计签单金额', `expected_amount` decimal(15, 2) NULL DEFAULT 0.00 COMMENT '预计签单金额',
@ -1532,9 +1532,9 @@ CREATE TABLE `oa_customer_log` (
`contact_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '客户联系人id', `contact_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '客户联系人id',
`chance_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '销售机会id', `chance_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '销售机会id',
`admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作人', `admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作人',
`old_content` text NULL COMMENT '修改前的内容', `old_content` mediumtext NULL COMMENT '修改前的内容',
`new_content` text NULL COMMENT '修改后的内容', `new_content` mediumtext NULL COMMENT '修改后的内容',
`remark` text NULL COMMENT '补充备注', `remark` mediumtext NULL COMMENT '补充备注',
`create_time` int(11) NOT NULL DEFAULT 0 COMMENT '创建时间', `create_time` int(11) NOT NULL DEFAULT 0 COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COMMENT = '客户操作记录表'; ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COMMENT = '客户操作记录表';
@ -1600,17 +1600,17 @@ CREATE TABLE `oa_contract` (
`copy_uids` varchar(500) NOT NULL DEFAULT '' COMMENT '抄送人ID如:1,2,3', `copy_uids` varchar(500) NOT NULL DEFAULT '' COMMENT '抄送人ID如:1,2,3',
`check_uid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '审核人', `check_uid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '审核人',
`check_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '审核时间', `check_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '审核时间',
`check_remark` text NULL COMMENT '审核备注信息', `check_remark` mediumtext NULL COMMENT '审核备注信息',
`stop_uid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '中止人', `stop_uid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '中止人',
`stop_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '中止时间', `stop_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '中止时间',
`stop_remark` text NULL COMMENT '中止备注信息', `stop_remark` mediumtext NULL COMMENT '中止备注信息',
`void_uid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '作废人', `void_uid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '作废人',
`void_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '作废时间', `void_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '作废时间',
`void_remark` text NULL COMMENT '作废备注信息', `void_remark` mediumtext NULL COMMENT '作废备注信息',
`archive_status` tinyint(1) NOT NULL DEFAULT 0 COMMENT '归档状态0未归档,1已归档', `archive_status` tinyint(1) NOT NULL DEFAULT 0 COMMENT '归档状态0未归档,1已归档',
`archive_uid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '归档人', `archive_uid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '归档人',
`archive_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '归档时间', `archive_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '归档时间',
`remark` text NULL COMMENT '备注信息', `remark` mediumtext NULL COMMENT '备注信息',
`create_time` int(11) NOT NULL DEFAULT 0 COMMENT '添加时间', `create_time` int(11) NOT NULL DEFAULT 0 COMMENT '添加时间',
`update_time` int(11) NOT NULL DEFAULT 0 COMMENT '修改时间', `update_time` int(11) NOT NULL DEFAULT 0 COMMENT '修改时间',
`delete_time` int(11) NOT NULL DEFAULT 0 COMMENT '删除时间', `delete_time` int(11) NOT NULL DEFAULT 0 COMMENT '删除时间',
@ -1642,9 +1642,9 @@ CREATE TABLE `oa_contract_log` (
`field` varchar(100) NOT NULL DEFAULT '' COMMENT '字段', `field` varchar(100) NOT NULL DEFAULT '' COMMENT '字段',
`contract_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '关联合同id', `contract_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '关联合同id',
`admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作人', `admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作人',
`old_content` text NULL COMMENT '修改前的内容', `old_content` mediumtext NULL COMMENT '修改前的内容',
`new_content` text NULL COMMENT '修改后的内容', `new_content` mediumtext NULL COMMENT '修改后的内容',
`remark` text NULL COMMENT '补充备注', `remark` mediumtext NULL COMMENT '补充备注',
`create_time` int(11) NOT NULL DEFAULT 0 COMMENT '创建时间', `create_time` int(11) NOT NULL DEFAULT 0 COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COMMENT = '合同操作记录表'; ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COMMENT = '合同操作记录表';
@ -1700,8 +1700,8 @@ CREATE TABLE `oa_project` (
`end_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '项目结束时间', `end_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '项目结束时间',
`status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '状态状态0未设置,1未开始,2进行中,3已完成,4已关闭', `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '状态状态0未设置,1未开始,2进行中,3已完成,4已关闭',
`step_sort` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '当前审核步骤', `step_sort` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '当前审核步骤',
`content` text NULL COMMENT '项目描述', `content` mediumtext NULL COMMENT '项目描述',
`md_content` text NULL COMMENT 'markdown项目描述', `md_content` mediumtext NULL COMMENT 'markdown项目描述',
`create_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间', `create_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`update_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '修改时间', `update_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '修改时间',
`delete_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '删除时间', `delete_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '删除时间',
@ -1744,8 +1744,8 @@ CREATE TABLE `oa_project_task` (
`before_task` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '前置任务id', `before_task` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '前置任务id',
`flow_status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '流转状态1待办的,2进行中,3已完成,4已拒绝,5已关闭', `flow_status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '流转状态1待办的,2进行中,3已完成,4已拒绝,5已关闭',
`done_ratio` int(2) NOT NULL DEFAULT 0 COMMENT '完成进度0,20,40,50,60,80,100', `done_ratio` int(2) NOT NULL DEFAULT 0 COMMENT '完成进度0,20,40,50,60,80,100',
`content` text NULL COMMENT '任务描述', `content` mediumtext NULL COMMENT '任务描述',
`md_content` text NULL COMMENT 'markdown任务描述', `md_content` mediumtext NULL COMMENT 'markdown任务描述',
`create_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间', `create_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`update_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '修改时间', `update_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '修改时间',
`delete_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '删除时间', `delete_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '删除时间',
@ -1762,8 +1762,8 @@ CREATE TABLE `oa_project_document` (
`admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建人', `admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建人',
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '标题', `title` varchar(255) NOT NULL DEFAULT '' COMMENT '标题',
`file_ids` varchar(500) NOT NULL DEFAULT '' COMMENT '附件ids', `file_ids` varchar(500) NOT NULL DEFAULT '' COMMENT '附件ids',
`content` text NULL COMMENT '文档内容', `content` mediumtext NULL COMMENT '文档内容',
`md_content` text NULL COMMENT 'markdown文档内容', `md_content` mediumtext NULL COMMENT 'markdown文档内容',
`create_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间', `create_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`update_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '修改时间', `update_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '修改时间',
`delete_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '删除时间', `delete_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '删除时间',
@ -1814,8 +1814,8 @@ CREATE TABLE `oa_project_comment` (
`pid` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '回复内容id', `pid` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '回复内容id',
`padmin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '回复内容用户id', `padmin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '回复内容用户id',
`admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建人', `admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建人',
`content` text NULL COMMENT '评论内容', `content` mediumtext NULL COMMENT '评论内容',
`md_content` text NULL COMMENT 'markdown评论内容', `md_content` mediumtext NULL COMMENT 'markdown评论内容',
`create_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间', `create_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`update_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '修改时间', `update_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '修改时间',
`delete_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '删除时间', `delete_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '删除时间',
@ -1835,9 +1835,9 @@ CREATE TABLE `oa_project_log` (
`task_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '关联任务id', `task_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '关联任务id',
`document_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '关联文档id', `document_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '关联文档id',
`admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作人', `admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作人',
`old_content` text NULL COMMENT '修改前的内容', `old_content` mediumtext NULL COMMENT '修改前的内容',
`new_content` text NULL COMMENT '修改后的内容', `new_content` mediumtext NULL COMMENT '修改后的内容',
`remark` text NULL COMMENT '补充备注', `remark` mediumtext NULL COMMENT '补充备注',
`create_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间', `create_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COMMENT = '项目任务操作记录表'; ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COMMENT = '项目任务操作记录表';
@ -1936,7 +1936,7 @@ CREATE TABLE `oa_article_comment` (
`pid` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '回复内容id', `pid` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '回复内容id',
`padmin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '回复内容用户id', `padmin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '回复内容用户id',
`admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建人', `admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建人',
`content` text NULL COMMENT '评论内容', `content` mediumtext NULL COMMENT '评论内容',
`create_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间', `create_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`update_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '修改时间', `update_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '修改时间',
`delete_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '删除时间', `delete_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '删除时间',