diff --git a/mallinkAdmin/src/main/resources/db/migration/V202101060001__update_wx_credit_history.sql b/mallinkAdmin/src/main/resources/db/migration/V202101060001__update_wx_credit_history.sql new file mode 100644 index 000000000..8bb63e079 --- /dev/null +++ b/mallinkAdmin/src/main/resources/db/migration/V202101060001__update_wx_credit_history.sql @@ -0,0 +1,100 @@ +update wx_credit_history_0 set operator_type = 2 where operator_type = 1; +update wx_credit_history_1 set operator_type = 2 where operator_type = 1; +update wx_credit_history_2 set operator_type = 2 where operator_type = 1; +update wx_credit_history_3 set operator_type = 2 where operator_type = 1; +update wx_credit_history_4 set operator_type = 2 where operator_type = 1; +update wx_credit_history_5 set operator_type = 2 where operator_type = 1; +update wx_credit_history_6 set operator_type = 2 where operator_type = 1; +update wx_credit_history_7 set operator_type = 2 where operator_type = 1; +update wx_credit_history_8 set operator_type = 2 where operator_type = 1; +update wx_credit_history_9 set operator_type = 2 where operator_type = 1; +update wx_credit_history_10 set operator_type = 2 where operator_type = 1; +update wx_credit_history_11 set operator_type = 2 where operator_type = 1; +update wx_credit_history_12 set operator_type = 2 where operator_type = 1; +update wx_credit_history_13 set operator_type = 2 where operator_type = 1; +update wx_credit_history_14 set operator_type = 2 where operator_type = 1; +update wx_credit_history_15 set operator_type = 2 where operator_type = 1; +update wx_credit_history_16 set operator_type = 2 where operator_type = 1; +update wx_credit_history_17 set operator_type = 2 where operator_type = 1; +update wx_credit_history_18 set operator_type = 2 where operator_type = 1; +update wx_credit_history_19 set operator_type = 2 where operator_type = 1; +update wx_credit_history_20 set operator_type = 2 where operator_type = 1; +update wx_credit_history_21 set operator_type = 2 where operator_type = 1; +update wx_credit_history_22 set operator_type = 2 where operator_type = 1; +update wx_credit_history_23 set operator_type = 2 where operator_type = 1; +update wx_credit_history_24 set operator_type = 2 where operator_type = 1; +update wx_credit_history_25 set operator_type = 2 where operator_type = 1; +update wx_credit_history_26 set operator_type = 2 where operator_type = 1; +update wx_credit_history_27 set operator_type = 2 where operator_type = 1; +update wx_credit_history_28 set operator_type = 2 where operator_type = 1; +update wx_credit_history_29 set operator_type = 2 where operator_type = 1; +update wx_credit_history_30 set operator_type = 2 where operator_type = 1; +update wx_credit_history_31 set operator_type = 2 where operator_type = 1; +update wx_credit_history_32 set operator_type = 2 where operator_type = 1; +update wx_credit_history_33 set operator_type = 2 where operator_type = 1; +update wx_credit_history_34 set operator_type = 2 where operator_type = 1; +update wx_credit_history_35 set operator_type = 2 where operator_type = 1; +update wx_credit_history_36 set operator_type = 2 where operator_type = 1; +update wx_credit_history_37 set operator_type = 2 where operator_type = 1; +update wx_credit_history_38 set operator_type = 2 where operator_type = 1; +update wx_credit_history_39 set operator_type = 2 where operator_type = 1; +update wx_credit_history_40 set operator_type = 2 where operator_type = 1; +update wx_credit_history_41 set operator_type = 2 where operator_type = 1; +update wx_credit_history_42 set operator_type = 2 where operator_type = 1; +update wx_credit_history_43 set operator_type = 2 where operator_type = 1; +update wx_credit_history_44 set operator_type = 2 where operator_type = 1; +update wx_credit_history_45 set operator_type = 2 where operator_type = 1; +update wx_credit_history_46 set operator_type = 2 where operator_type = 1; +update wx_credit_history_47 set operator_type = 2 where operator_type = 1; +update wx_credit_history_48 set operator_type = 2 where operator_type = 1; +update wx_credit_history_49 set operator_type = 2 where operator_type = 1; +update wx_credit_history_50 set operator_type = 2 where operator_type = 1; +update wx_credit_history_51 set operator_type = 2 where operator_type = 1; +update wx_credit_history_52 set operator_type = 2 where operator_type = 1; +update wx_credit_history_53 set operator_type = 2 where operator_type = 1; +update wx_credit_history_54 set operator_type = 2 where operator_type = 1; +update wx_credit_history_55 set operator_type = 2 where operator_type = 1; +update wx_credit_history_56 set operator_type = 2 where operator_type = 1; +update wx_credit_history_57 set operator_type = 2 where operator_type = 1; +update wx_credit_history_58 set operator_type = 2 where operator_type = 1; +update wx_credit_history_59 set operator_type = 2 where operator_type = 1; +update wx_credit_history_60 set operator_type = 2 where operator_type = 1; +update wx_credit_history_61 set operator_type = 2 where operator_type = 1; +update wx_credit_history_62 set operator_type = 2 where operator_type = 1; +update wx_credit_history_63 set operator_type = 2 where operator_type = 1; +update wx_credit_history_64 set operator_type = 2 where operator_type = 1; +update wx_credit_history_65 set operator_type = 2 where operator_type = 1; +update wx_credit_history_66 set operator_type = 2 where operator_type = 1; +update wx_credit_history_67 set operator_type = 2 where operator_type = 1; +update wx_credit_history_68 set operator_type = 2 where operator_type = 1; +update wx_credit_history_69 set operator_type = 2 where operator_type = 1; +update wx_credit_history_70 set operator_type = 2 where operator_type = 1; +update wx_credit_history_71 set operator_type = 2 where operator_type = 1; +update wx_credit_history_72 set operator_type = 2 where operator_type = 1; +update wx_credit_history_73 set operator_type = 2 where operator_type = 1; +update wx_credit_history_74 set operator_type = 2 where operator_type = 1; +update wx_credit_history_75 set operator_type = 2 where operator_type = 1; +update wx_credit_history_76 set operator_type = 2 where operator_type = 1; +update wx_credit_history_77 set operator_type = 2 where operator_type = 1; +update wx_credit_history_78 set operator_type = 2 where operator_type = 1; +update wx_credit_history_79 set operator_type = 2 where operator_type = 1; +update wx_credit_history_80 set operator_type = 2 where operator_type = 1; +update wx_credit_history_81 set operator_type = 2 where operator_type = 1; +update wx_credit_history_82 set operator_type = 2 where operator_type = 1; +update wx_credit_history_83 set operator_type = 2 where operator_type = 1; +update wx_credit_history_84 set operator_type = 2 where operator_type = 1; +update wx_credit_history_85 set operator_type = 2 where operator_type = 1; +update wx_credit_history_86 set operator_type = 2 where operator_type = 1; +update wx_credit_history_87 set operator_type = 2 where operator_type = 1; +update wx_credit_history_88 set operator_type = 2 where operator_type = 1; +update wx_credit_history_89 set operator_type = 2 where operator_type = 1; +update wx_credit_history_90 set operator_type = 2 where operator_type = 1; +update wx_credit_history_91 set operator_type = 2 where operator_type = 1; +update wx_credit_history_92 set operator_type = 2 where operator_type = 1; +update wx_credit_history_93 set operator_type = 2 where operator_type = 1; +update wx_credit_history_94 set operator_type = 2 where operator_type = 1; +update wx_credit_history_95 set operator_type = 2 where operator_type = 1; +update wx_credit_history_96 set operator_type = 2 where operator_type = 1; +update wx_credit_history_97 set operator_type = 2 where operator_type = 1; +update wx_credit_history_98 set operator_type = 2 where operator_type = 1; +update wx_credit_history_99 set operator_type = 2 where operator_type = 1; \ No newline at end of file diff --git a/mallinkAdmin/src/main/resources/db/migration/V202101060002__create_wx_c_user_from.sql b/mallinkAdmin/src/main/resources/db/migration/V202101060002__create_wx_c_user_from.sql new file mode 100644 index 000000000..ccc759c5c --- /dev/null +++ b/mallinkAdmin/src/main/resources/db/migration/V202101060002__create_wx_c_user_from.sql @@ -0,0 +1,1799 @@ +CREATE TABLE `wx_c_user_from_0` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_1` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_2` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_3` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_4` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_5` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_6` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_7` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_8` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_9` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_10` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_11` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_12` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_13` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_14` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_15` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_16` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_17` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_18` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_19` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_20` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_21` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_22` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_23` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_24` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_25` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_26` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_27` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_28` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_29` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_30` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_31` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_32` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_33` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_34` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_35` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_36` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_37` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_38` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_39` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_40` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_41` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_42` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_43` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_44` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_45` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_46` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_47` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_48` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_49` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_50` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_51` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_52` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_53` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_54` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_55` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_56` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_57` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_58` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_59` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_60` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_61` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_62` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_63` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_64` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_65` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_66` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_67` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_68` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_69` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_70` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_71` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_72` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_73` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_74` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_75` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_76` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_77` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_78` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_79` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_80` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_81` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_82` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_83` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_84` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_85` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_86` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_87` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_88` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_89` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_90` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_91` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_92` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_93` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_94` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_95` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_96` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_97` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_98` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `wx_c_user_from_99` ( + `id` bigint(20) NOT NULL, + `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `c_user_id` bigint(20) NOT NULL COMMENT 'wx_c_user表ID', + `scene` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `scene_address` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '来源渠道wx_user_channel', + `from_type` int(11) NOT NULL COMMENT '来源类型EnumCUserFrom', + `from_id` bigint(20) DEFAULT NULL COMMENT '来源ID根据from_type判断', + `is_new_user` smallint(1) NOT NULL DEFAULT 0 COMMENT '首次是否新用户(默认否)', + `count` int(11) NOT NULL COMMENT '次数', + `share_user_type` int(11) DEFAULT NULL COMMENT '分享者用户类型EnumUserType', + `share_user` bigint(20) DEFAULT NULL COMMENT '分享者', + `create_date` datetime(0) NOT NULL, + `update_date` datetime(0) NOT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; \ No newline at end of file diff --git a/mallinkCApi/src/main/java/com/iformall/controller/WxCreditHistoryController.java b/mallinkCApi/src/main/java/com/iformall/controller/WxCreditHistoryController.java index 70f065fbb..3a46339ce 100644 --- a/mallinkCApi/src/main/java/com/iformall/controller/WxCreditHistoryController.java +++ b/mallinkCApi/src/main/java/com/iformall/controller/WxCreditHistoryController.java @@ -71,7 +71,7 @@ public class WxCreditHistoryController extends BaseController{ wxCreditHistory.setTenantId(wxCUser.getFinalTenantId()); wxCreditHistory.setCUserId(wxCUser.getUserId()); wxCreditHistory.setOperatorId(wxCUser.getUserId()); - wxCreditHistory.setOperatorType(EnumUserType.CUSER.getCode()); + wxCreditHistory.setOperatorType(EnumUserType.CUSERBASIC.getCode()); if(wxCreditHistory.getCreditType().equals(EnumScoreType.GAME_ADD_CREDIT.getCode())){ wxCreditHistory.setChangePurpose(EnumScoreType.GAME_ADD_CREDIT.getMessage()); diff --git a/mallinkCApi/src/main/java/com/iformall/controller/WxUserGrantController.java b/mallinkCApi/src/main/java/com/iformall/controller/WxUserGrantController.java index 2a2a157ad..9320d364b 100755 --- a/mallinkCApi/src/main/java/com/iformall/controller/WxUserGrantController.java +++ b/mallinkCApi/src/main/java/com/iformall/controller/WxUserGrantController.java @@ -959,7 +959,7 @@ public class WxUserGrantController extends BaseController { wxCreditHistory.setCreateDate(new Date()); wxCreditHistory.setCreditType(EnumScoreType.COMPLETE_INFO.getCode()); wxCreditHistory.setChangePurpose(EnumScoreType.COMPLETE_INFO.getMessage()); - wxCreditHistory.setOperatorType(EnumUserType.CUSER.getCode()); + wxCreditHistory.setOperatorType(EnumUserType.CUSERBASIC.getCode()); wxCreditHistory.setOperatorId(memberId); wxCreditHistoryService.saveOrUpdate(wxCreditHistory); wxCUserTagsService.triggerAssignTags(EnumAssignTagsTrigger.ASSIGN_TAGS_TRIGGER_IMPORT, record,tenantEntity); diff --git a/mallinkService/src/main/java/com/iformall/enums/EnumCUserFrom.java b/mallinkService/src/main/java/com/iformall/enums/EnumCUserFrom.java new file mode 100644 index 000000000..e78a5e46f --- /dev/null +++ b/mallinkService/src/main/java/com/iformall/enums/EnumCUserFrom.java @@ -0,0 +1,40 @@ +package com.iformall.enums; + + +/** + * @author Stormeye + */ + +public enum EnumCUserFrom { + + FROM_C_USER(1,"来源于微信用户"), + FROM_C_USER_BASIC_INFO(2,"来源于会员"), + FROM_MERCHANT(3,"来源于微信用户"), + FROM_COUPON_CHANNEL(4,"来源于卷"), + ; + + public static EnumCUserFrom getEnum(Integer code) { + for (EnumCUserFrom value : values()) { + if (value.getCode().equals(code)) { + return value; + } + } + return null; + } + + private Integer code; + private String message; + + EnumCUserFrom(Integer code, String message) { + this.code = code; + this.message = message; + } + + public Integer getCode() { + return code; + } + + public String getMessage() { + return message; + } +} diff --git a/mallinkService/src/main/java/com/iformall/enums/EnumUserType.java b/mallinkService/src/main/java/com/iformall/enums/EnumUserType.java index a41dcd459..fcb3d1d57 100644 --- a/mallinkService/src/main/java/com/iformall/enums/EnumUserType.java +++ b/mallinkService/src/main/java/com/iformall/enums/EnumUserType.java @@ -3,7 +3,7 @@ package com.iformall.enums; public enum EnumUserType { CUSER(1, "C端用户"), - CUSERBASIC(2, "C端用户(偏向A端)"), + CUSERBASIC(2, "C端用户(会员)"), BUSER(3, "B端用户"), MALLUSER(4, "A端用户") ; diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java index 9aff46933..26e941e66 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java @@ -467,7 +467,7 @@ public class WxGameServiceImpl implements WxGameService { wxCreditHistory.setTenantId(wxGame.getFinalTenantId()); wxCreditHistory.setCUserId(userId); wxCreditHistory.setOperatorId(userId); - wxCreditHistory.setOperatorType(EnumUserType.CUSER.getCode()); + wxCreditHistory.setOperatorType(EnumUserType.CUSERBASIC.getCode()); wxCreditHistory.setCreditNum(credit); wxCreditHistory.setCreditType(EnumScoreType.GAME_ADD_CREDIT.getCode()); wxCreditHistory.setChangePurpose(EnumScoreType.GAME_ADD_CREDIT.getMessage()); @@ -512,7 +512,7 @@ public class WxGameServiceImpl implements WxGameService { wxCreditHistory.setTenantId(wxGame.getFinalTenantId()); wxCreditHistory.setCUserId(userId); wxCreditHistory.setOperatorId(userId); - wxCreditHistory.setOperatorType(EnumUserType.CUSER.getCode()); + wxCreditHistory.setOperatorType(EnumUserType.CUSERBASIC.getCode()); wxCreditHistory.setCreditNum(wxGame.getPlayCredit()); wxCreditHistory.setCreditType(EnumScoreType.GAME_LES_CREDIT.getCode()); wxCreditHistory.setChangePurpose(EnumScoreType.GAME_LES_CREDIT.getMessage()); diff --git a/mallinkService/src/main/java/com/iformall/service/park/impl/util/ParkHelper.java b/mallinkService/src/main/java/com/iformall/service/park/impl/util/ParkHelper.java index b0def6f5a..5e05636e8 100644 --- a/mallinkService/src/main/java/com/iformall/service/park/impl/util/ParkHelper.java +++ b/mallinkService/src/main/java/com/iformall/service/park/impl/util/ParkHelper.java @@ -86,7 +86,7 @@ public class ParkHelper { // wxCreditHistory.setCreateDate(new Date()); wxCreditHistory.setCreditType(EnumScoreType.BIND_CAR.getCode()); wxCreditHistory.setChangePurpose(EnumScoreType.BIND_CAR.getMessage()); - wxCreditHistory.setOperatorType(EnumUserType.CUSER.getCode()); + wxCreditHistory.setOperatorType(EnumUserType.CUSERBASIC.getCode()); wxCreditHistory.setOperatorId(cuUserId); wxCreditHistoryService.saveOrUpdate(wxCreditHistory); } diff --git a/mallinkService/src/main/resources/mapper/WxCreditHistoryMapper.xml b/mallinkService/src/main/resources/mapper/WxCreditHistoryMapper.xml index 91f355615..bba2d6f98 100644 --- a/mallinkService/src/main/resources/mapper/WxCreditHistoryMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCreditHistoryMapper.xml @@ -160,7 +160,7 @@ credit.ticket_number ticketNumber, case when credit.operator_type=4 then (select name from mall_user_info where id=credit.operator_id) when credit.operator_type=3 then (select name from wx_merchant_b_user where id=credit.operator_id) - when credit.operator_type=1 then (select nick_name from wx_c_user_basic_info where id=credit.operator_id) + when credit.operator_type=2 then (select nick_name from wx_c_user_basic_info where id=credit.operator_id) else '' end operator, credit.change_purpose changePurpose FROM