/*
 Navicat Premium Data Transfer

 Source Server         : 0_47.113.200.81
 Source Server Type    : MySQL
 Source Server Version : 50716
 Source Host           : 47.113.200.81:3306
 Source Schema         : idea_pecw

 Target Server Type    : MySQL
 Target Server Version : 50716
 File Encoding         : 65001

 Date: 02/03/2023 10:31:32
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for pecw_address_record
-- ----------------------------
DROP TABLE IF EXISTS `pecw_address_record`;
CREATE TABLE `pecw_address_record`  (
  `recordid` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主键',
  `userid` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '申请人id',
  `extendid` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户扩展表id',
  `submitdate` datetime NULL DEFAULT NULL COMMENT '提交日期',
  `oldaddress` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '原地址',
  `newaddress` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '新地址',
  `effectivedate` datetime DEFAULT NULL COMMENT '生效日期',
  `state` int(11) NULL DEFAULT NULL COMMENT '审批状态（0待提交1已提交2已审核3已退回）',
  `operation_reason` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '操作/退回原因',
  `operatetime` datetime NULL DEFAULT NULL COMMENT '审核时间',
  `audituser` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '审批人id',
  `createuser` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建人',
  `createtime` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `updateuser` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  `updatetime` datetime NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`recordid`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '地址变更记录' ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;
