123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- ####################################### MP买量数据源 ##########################################
- DROP TABLE IF EXISTS `mp_conf_ext`;
- CREATE TABLE `mp_conf_ext` (
- `conf_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '配置ID',
- `is_advertiser` tinyint(2) UNSIGNED NOT NULL DEFAULT '1' COMMENT '是否广告主 1否 2是',
- `create_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '创建时间',
- `update_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '修改时间',
- KEY `mce_confid_index` (`conf_id`) USING BTREE,
- KEY `mce_advertiser_index` (`is_advertiser`) USING BTREE
- ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='账号扩展表';
- DROP TABLE IF EXISTS `mp_conf_agent`;
- CREATE TABLE `mp_conf_agent` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `conf_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '配置ID',
- `app_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏ID',
- `agent_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '渠道ID',
- `advertiser_conf_id` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '关联广告主配置ID',
- `create_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '创建时间',
- `update_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '修改时间',
- PRIMARY KEY (`id`) USING BTREE,
- KEY `mce_confid_index` (`conf_id`) USING BTREE,
- KEY `mce_app_index` (`app_id`) USING BTREE,
- KEY `mce_agent_index` (`agent_id`) USING BTREE
- ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='账号渠道表';
- DROP TABLE IF EXISTS `mp_ad_source`;
- CREATE TABLE `mp_ad_source` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `conf_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '配置ID',
- `app_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏ID',
- `agent_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '渠道ID',
- `type` varchar(32) NOT NULL DEFAULT '' COMMENT '行为源类型',
- `name` varchar(32) NOT NULL DEFAULT '' COMMENT '行为源名称',
- `description` varchar(128) NOT NULL DEFAULT '' COMMENT '描述',
- `advertiser_conf_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '关联广告主配置ID',
- `source_id` varchar(32) NOT NULL DEFAULT '' COMMENT '数据源ID',
- `create_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '创建时间',
- `update_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '修改时间',
- PRIMARY KEY (`id`) USING BTREE,
- KEY `mas_conf_type_conf_index` (`conf_id`, `agent_id`, `type`, `advertiser_conf_id`) USING BTREE
- ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='MP买量广告账号数据源';
- DROP TABLE IF EXISTS `h_mpad_report_log`;
- CREATE TABLE `h_mpad_report_log` (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `agent_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '渠道ID',
- `mem_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩家ID',
- `app_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏ID',
- `mg_mem_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩家游戏ID',
- `server_id` varchar(64) NOT NULL DEFAULT '' COMMENT '区服ID',
- `role_id` varchar(64) NOT NULL DEFAULT '' COMMENT '角色ID',
- `advertiser_app_id` varchar(32) NOT NULL DEFAULT '' COMMENT '广告账号APPID',
- `source_id` varchar(32) NOT NULL DEFAULT '' COMMENT '数据源ID',
- `url` varchar(128) NOT NULL DEFAULT '' COMMENT '转化行为发生页面的URL',
- `action_type` varchar(32) NOT NULL DEFAULT '' COMMENT '预定义的行为类型',
- `action_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '行为发生时,客户端的时间点',
- `wechat_app_id` varchar(32) NOT NULL DEFAULT '' COMMENT '转化应用APPID',
- `wechat_openid` varchar(32) NOT NULL DEFAULT '' COMMENT '转化应用openid',
- `action_param_value` varchar(32) NOT NULL DEFAULT '' COMMENT '转化参数值',
- `action_param_source` varchar(32) NOT NULL DEFAULT '' COMMENT '转化数据发生的渠道: 1)Biz,代表公众号内各种服务或网页 2)Web,代表非公众号的其他渠道',
- `action_param_claim_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '归因方式 0:按点击行为归因 1:按关注行为归因',
- `create_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '创建时间',
- PRIMARY KEY (`id`) USING BTREE,
- KEY `mrl_memid_index` (`mem_id`) USING BTREE,
- KEY `mrl_appid_index` (`app_id`) USING BTREE,
- KEY `mrl_mgmemid_index` (`mg_mem_id`) USING BTREE,
- KEY `mrl_advertiserappid_index` (`advertiser_app_id`) USING BTREE,
- KEY `mrl_sourceid_index` (`source_id`) USING BTREE,
- KEY `mrl_actiontype_index` (`action_type`) USING BTREE
- ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='回传记录表';
|