/*
 Navicat Premium Data Transfer

 Source Server         : 智慧社区dev
 Source Server Type    : MySQL
 Source Server Version : 50729
 Source Host           : 10.1.241.110:3306
 Source Schema         : normal_scommunity

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

 Date: 28/06/2022 16:54:30
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for res_company_decode
-- ----------------------------
DROP TABLE IF EXISTS `res_company_decode`;
CREATE TABLE `res_company_decode`  (
  `company_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主键id',
  `community_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '小区id',
  `image` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '营业执照',
  `company_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '单位名称',
  `credit_no` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '统一社会信用代码',
  `legal_person_name` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '法人代表人',
  `legal_person_phone` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '法人联系方式',
  `legal_phone_no_encode` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '加密电话号码',
  `established_time` datetime(0) DEFAULT NULL COMMENT '成立时间',
  `company_address` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '注册地址',
  `company_type` int(1) NOT NULL COMMENT '单位类别：1-国有企业;2-国有控股企业;3-外资企业;4-合资企业;5-私营企业;6-事业单位;7-国有行政机关;8-政府;',
  `registered_capital` int(11) DEFAULT NULL COMMENT '注册资本',
  `employee_num` int(5) NOT NULL DEFAULT 0 COMMENT '单位员工数',
  `business_scope` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '经营范围',
  `create_time` datetime(0) DEFAULT NULL COMMENT '创建时间',
  `create_user` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建用户',
  `update_time` datetime(0) DEFAULT NULL COMMENT '更新时间',
  `update_user` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '更新用户',
  PRIMARY KEY (`company_id`) USING BTREE,
  INDEX `company_type_idx`(`company_type`) USING BTREE,
  INDEX `create_time_idx`(`create_time`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '单位表' ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;
