123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- -- 微博广告表
- CREATE TABLE `advertiser_device_weibo` (
- `ad_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '逻辑主键,没什么含义',
- `campaignid` VARCHAR(32) DEFAULT NULL COMMENT '广告主自定义监控id',
- `devicetype` VARCHAR(64) DEFAULT NULL COMMENT '设备机型信息',
- `osversion` VARCHAR(64) DEFAULT NULL COMMENT '设备操作系统信息',
- `ip` VARCHAR(64) DEFAULT NULL COMMENT '点击广告的设备 IP {ip} 信息(ipv6 ipv4)',
- `clicktime` VARCHAR(16) DEFAULT NULL COMMENT '点 击 的 时 间 , unix {clicktime}时间戳,13 位(毫秒',
- `idfa_md5` VARCHAR(32) DEFAULT NULL COMMENT 'idfa_md5',
- `imei_md5` VARCHAR(32) DEFAULT NULL COMMENT 'imei_md5',
- `oaid` VARCHAR(64) DEFAULT NULL COMMENT 'oaid',
- `androidid_md5` VARCHAR(32) DEFAULT NULL COMMENT 'androidid_MD5',
- `imp` VARCHAR(256) DEFAULT NULL COMMENT '新浪微博广告系统 {IMP}的内部参数,需要广告主在激活消息中回传',
- `mac_md5` VARCHAR(32) DEFAULT NULL COMMENT '终 端 eth0 接口 的 {mac_MD5}MAC 地址',
- `ua` VARCHAR(256) DEFAULT NULL COMMENT 'User-Agent',
- `sorted_type` VARCHAR(8) DEFAULT NULL COMMENT '点击行为',
- `adid` VARCHAR(32) DEFAULT NULL COMMENT '计划 id',
- `creative_id` VARCHAR(32) DEFAULT NULL COMMENT '创意 id',
- `brand` VARCHAR(32) DEFAULT NULL COMMENT '设备品牌信息',
- `open_notify_status` TINYINT(4) UNSIGNED NOT NULL COMMENT '打开通知状态,NotifyStatusEnum',
- `register_notify_status` TINYINT(4) UNSIGNED NOT NULL COMMENT '注册通知状态,NotifyStatusEnum',
- `order_notify_status` TINYINT(4) UNSIGNED NOT NULL COMMENT '下单通知状态,NotifyStatusEnum',
- `pay_notify_status` TINYINT(4) UNSIGNED NOT NULL COMMENT '支付通知状态,NotifyStatusEnum',
- `create_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- PRIMARY KEY (`ad_id`),
- KEY (`idfa_md5`),
- KEY (`imei_md5`),
- KEY (`oaid`),
- KEY (`androidid_md5`)
- ) ENGINE=InnoDB AUTO_INCREMENT=10000001 DEFAULT CHARSET=utf8mb4 COMMENT='微博广告表';
- -- 趣头条事件表
- CREATE TABLE `advertiser_device_qtt` (
- `ad_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '逻辑主键,没什么含义',
- `cid` VARCHAR(64) DEFAULT NULL COMMENT '广告创意 ID',
- `os` TINYINT(4) DEFAULT NULL COMMENT '客户端操作系统类型 0 代表安卓,1 代表 Ios',
- `idfa` VARCHAR(64) DEFAULT NULL COMMENT 'idfa',
- `imeimd5` VARCHAR(32) DEFAULT NULL COMMENT 'imei md5',
- `oaid` VARCHAR(64) DEFAULT NULL COMMENT 'oaid',
- `androididmd5` VARCHAR(32) DEFAULT NULL COMMENT 'androidid md5',
- `callback_url` VARCHAR(512) DEFAULT NULL COMMENT '回调地址',
- `unit` VARCHAR(64) DEFAULT NULL COMMENT '单元 ID',
- `plan` VARCHAR(64) DEFAULT NULL COMMENT '计划 ID',
- `uid` VARCHAR(64) DEFAULT NULL COMMENT '账户 ID',
- `ip` VARCHAR(64) DEFAULT NULL COMMENT 'IP地址',
- `ua` VARCHAR(256) DEFAULT NULL COMMENT 'User-Agent encode',
- `open_notify_status` TINYINT(4) UNSIGNED NOT NULL COMMENT '打开通知状态,NotifyStatusEnum',
- `register_notify_status` TINYINT(4) UNSIGNED NOT NULL COMMENT '注册通知状态,NotifyStatusEnum',
- `next_notify_status` TINYINT(4) UNSIGNED NOT NULL COMMENT '次日留存通知状态,NotifyStatusEnum',
- `pay_notify_status` TINYINT(4) UNSIGNED NOT NULL COMMENT '支付通知状态,NotifyStatusEnum',
- `create_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
- PRIMARY KEY (`ad_id`),
- KEY (`idfa`),
- KEY (`imeimd5`),
- KEY (`oaid`),
- KEY (`androididmd5`)
- ) ENGINE=InnoDB AUTO_INCREMENT=10000001 DEFAULT CHARSET=utf8mb4 COMMENT='趣头条事件表';
- RENAME TABLE `user_device_advertiser` TO `advertiser_device_juz`;
- ALTER TABLE `user_device` add COLUMN `idfa` VARCHAR(64) DEFAULT NULL COMMENT '苹果IDFA(广告标识符)' AFTER `device_id`;
- ALTER TABLE `user_device` add COLUMN `imei` VARCHAR(64) DEFAULT NULL COMMENT '安卓IMEI' AFTER `idfa`;
- ALTER TABLE `user_device` add COLUMN `oaid` VARCHAR(64) DEFAULT NULL COMMENT '安卓OAID' AFTER `imei`;
- ALTER TABLE `user_device` add COLUMN `androidid` VARCHAR(64) DEFAULT NULL COMMENT '安卓AndroidId' AFTER `oaid`;
- ALTER TABLE `user_device` add COLUMN `advertiser_id` BIGINT(20) UNSIGNED DEFAULT NULL COMMENT '广告商主键' AFTER `advertiser`;
- ALTER TABLE `user` add COLUMN `ud_id` BIGINT(20) UNSIGNED DEFAULT NULL COMMENT '用户设备编号' AFTER `reg_channel`;
|