|
|
@ -1,3 +1,22 @@ |
|
|
|
CREATE TABLE `invitation_record` ( |
|
|
|
`ID` varchar(64) NOT NULL COMMENT '主键', |
|
|
|
`CUSTOMER_ID` varchar(64) NOT NULL COMMENT '客户id', |
|
|
|
`GRID_ID` varchar(64) NOT NULL COMMENT '小组所属的网格id', |
|
|
|
`GROUP_ID` varchar(64) NOT NULL COMMENT '小组id', |
|
|
|
`SOURCE_TYPE` varchar(32) NOT NULL COMMENT 'act:活动;notice:通知', |
|
|
|
`SOURCE_ID` varchar(64) NOT NULL COMMENT '活动id,或者通知id....', |
|
|
|
`SHARE_USER_ID` varchar(64) NOT NULL COMMENT '分享人id', |
|
|
|
`INVITE_CONTENT` varchar(255) DEFAULT NULL COMMENT '分享内容', |
|
|
|
`DEL_FLAG` int(11) NOT NULL DEFAULT '0' COMMENT '删除标识 0.未删除 1.已删除', |
|
|
|
`REVISION` int(11) NOT NULL COMMENT '乐观锁', |
|
|
|
`CREATED_BY` varchar(32) NOT NULL COMMENT '创建人', |
|
|
|
`CREATED_TIME` datetime NOT NULL COMMENT '创建时间', |
|
|
|
`UPDATED_BY` varchar(32) NOT NULL COMMENT '更新人', |
|
|
|
`UPDATED_TIME` datetime NOT NULL COMMENT '更新时间', |
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='分享记录(话题、通知...后续支持增加)'; |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
Navicat Premium Data Transfer |
|
|
|
|
|
|
@ -65,52 +84,6 @@ INSERT INTO group_message SELECT |
|
|
|
rt.del_flag = '0' |
|
|
|
AND rg.del_flag = '0'; |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
Navicat Premium Data Transfer |
|
|
|
|
|
|
|
Source Server : 192.168.1.130 |
|
|
|
Source Server Type : MySQL |
|
|
|
Source Server Version : 50728 |
|
|
|
Source Host : 192.168.1.130:3306 |
|
|
|
Source Schema : epmet_resi_group |
|
|
|
|
|
|
|
Target Server Type : MySQL |
|
|
|
Target Server Version : 50728 |
|
|
|
File Encoding : 65001 |
|
|
|
|
|
|
|
Date: 26/04/2021 10:30:50 |
|
|
|
*/ |
|
|
|
|
|
|
|
SET NAMES utf8mb4; |
|
|
|
SET FOREIGN_KEY_CHECKS = 0; |
|
|
|
|
|
|
|
-- ---------------------------- |
|
|
|
-- Table structure for group_invitation |
|
|
|
-- ---------------------------- |
|
|
|
DROP TABLE IF EXISTS `group_invitation`; |
|
|
|
CREATE TABLE `group_invitation` ( |
|
|
|
`ID` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键(可能跟epmet-user的personnel_invite的[邀请Id]关联)', |
|
|
|
`INVITER_USER_ID` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '邀请人id(customer_user.id)', |
|
|
|
`INVITER_CUSTOMER_ID` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '邀请人所属客户id', |
|
|
|
`INVITER_GRID_ID` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '邀请网格id', |
|
|
|
`RESI_GROUP_ID` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '邀请小组id(resi_group.id)', |
|
|
|
`INVITATION_TYPE` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'invited' COMMENT '邀请链接:invited;扫码:scancode', |
|
|
|
`INVITER_CONTENT` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邀请内容', |
|
|
|
`VALID_END_TIME` datetime(0) NOT NULL COMMENT '邀请码有效截止时间(暂定XX天)', |
|
|
|
`DEL_FLAG` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '删除标记 0:未删除,1:已删除', |
|
|
|
`REVISION` int(11) NULL DEFAULT NULL COMMENT '乐观锁', |
|
|
|
`CREATED_BY` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '创建人(customer_user.id)', |
|
|
|
`CREATED_TIME` datetime(0) NOT NULL COMMENT '创建时间(邀请时间)', |
|
|
|
`UPDATED_BY` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '更新人', |
|
|
|
`UPDATED_TIME` datetime(0) NOT NULL COMMENT '更新时间', |
|
|
|
`CUSTOMER_ID` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '客户ID', |
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '群邀请记录表' ROW_FORMAT = Compact; |
|
|
|
|
|
|
|
SET FOREIGN_KEY_CHECKS = 1; |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
Navicat Premium Data Transfer |
|
|
|
|