123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- -- 2020-08-19 动态评论表
- CREATE TABLE `friendship`.`dynamic_comment` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `dynamic_id` bigint(20) NOT NULL COMMENT '动态id',
- `user_id` bigint(20) NULL COMMENT '评论的用户id',
- `content` varchar(140) NULL COMMENT '评论的内容',
- `create_time` timestamp(0) NULL COMMENT '创建时间',
- PRIMARY KEY (`id`)
- ) COMMENT = '动态评论表';
- -- 2020-08-19 动态评论点赞表
- CREATE TABLE `friendship`.`dynamic_comment_like_detail` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `dynamic_comment_id` bigint(20) NULL COMMENT '动态评论id',
- `user_id` bigint(20) NULL COMMENT '用户id',
- `create_time` timestamp(0) NULL COMMENT '点赞时间',
- PRIMARY KEY (`id`)
- ) COMMENT = '动态评论点赞表';
- -- 工会
- CREATE TABLE `friendship`.`club` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '工会id',
- `user_id` bigint(20) NOT NULL COMMENT '会长id',
- `club_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '工会名字',
- `wechat_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '微信名字',
- `club_des` varchar(140) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '工会介绍',
- `create_time` timestamp(0) NULL DEFAULT NULL COMMENT '创建时间',
- `update_time` timestamp(0) NULL DEFAULT NULL COMMENT '更新时间',
- `verify_user_id` bigint(20) NULL DEFAULT NULL COMMENT '审核用户id',
- `verify_time` timestamp(0) NULL DEFAULT NULL COMMENT '审核时间',
- `status` tinyint(2) NULL DEFAULT NULL COMMENT '状态',
- `logo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'logo地址',
- `code` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邀请码',
- PRIMARY KEY (`id`) USING BTREE
- ) ENGINE = InnoDB AUTO_INCREMENT = 10000000 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '工会' ROW_FORMAT = Dynamic;
- -- 工会成员
- CREATE TABLE `friendship`.`club_user` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
- `club_id` bigint(20) NULL COMMENT '工会id',
- `user_id` bigint(20) NULL COMMENT '用户id',
- `request_join_time` timestamp(0) NULL COMMENT '申请加入的时间',
- `refuse_time` timestamp(0) NULL COMMENT '拒绝时间',
- `pass_time` timestamp(0) NULL COMMENT '审核通过时间',
- `status` tinyint(2) NULL COMMENT '状态',
- `out_club_time` timestamp(0) NULL COMMENT '退出工会时间',
- PRIMARY KEY (`id`)
- ) ENGINE = InnoDB AUTO_INCREMENT = 10001000;
- -- 工会账户
- CREATE TABLE `friendship`.`club_account` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
- `club_id` bigint(20) NULL DEFAULT NULL COMMENT '工会id',
- `income_total` double(10, 2) NULL DEFAULT NULL COMMENT '总收益(单位元)',
- `with_draw_total` double(10, 2) NULL DEFAULT NULL COMMENT '总提现(单位元)',
- `balance` double(10, 2) NULL DEFAULT NULL COMMENT '余额(单位元)',
- `update_time` timestamp(0) NULL DEFAULT NULL COMMENT '更细腻时间',
- PRIMARY KEY (`id`) USING BTREE
- ) ENGINE = InnoDB AUTO_INCREMENT = 10001000 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
- -- 工会账户详情表
- CREATE TABLE `friendship`.`club_account_detail` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
- `club_id` bigint(20) NULL DEFAULT NULL COMMENT '工会id',
- `user_id` bigint(20) NULL DEFAULT NULL COMMENT '获取收入的用户id',
- `trade_beans` int(10) NULL DEFAULT 0 COMMENT '交易豆子',
- `before_balance` double(20, 2) NULL DEFAULT 0.00 COMMENT '交易前余额',
- `trade_money` double(10, 2) NULL DEFAULT 0.00 COMMENT '交易金额',
- `after_balance` double(20, 2) NULL DEFAULT 0.00 COMMENT '交易后的余额',
- `create_time` timestamp(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间',
- `des` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
- `type` tinyint(2) NULL DEFAULT NULL COMMENT '类型',
- PRIMARY KEY (`id`) USING BTREE
- ) ENGINE = InnoDB AUTO_INCREMENT = 24714 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '工会账户详情表' ROW_FORMAT = Dynamic;
- ) ENGINE = InnoDB AUTO_INCREMENT = 24714 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '工会账户详情表' ROW_FORMAT = Dynamic;
- -- 2020-08-24 收集头条监测信息
- CREATE TABLE `friendship`.`byte_dance_monitoring` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `aid` varchar(64) NULL COMMENT '广告计划id',
- `aid_name` varchar(64) NULL COMMENT '广告计划名称',
- `advertiser_id` varchar(64) NULL COMMENT '广告主id',
- `cid` varchar(64) NULL COMMENT '广告创意 id,长整型',
- `cid_name` varchar(64) NULL COMMENT '广告创意名称',
- `campaign_id` varchar(64) NULL COMMENT '广告组 id',
- `campaign_name` varchar(64) NULL COMMENT '广告组名称',
- `imei` varchar(64) NULL COMMENT '安卓的设备 ID 的 md5 摘要,32位',
- `idfa` varchar(64) NULL COMMENT 'IOS 6+的设备id字段,32位',
- `androidid` varchar(64) NULL COMMENT '安卓id原值的md5,32位',
- `oaid` varchar(64) NULL COMMENT 'Android Q及更高版本的设备号,32位',
- `os` varchar(64) NULL COMMENT '操作系统平台安卓:0,IOS:1,其他:3',
- `ip` varchar(64) NULL COMMENT 'ip',
- `ua` varchar(64) NULL COMMENT 'ua',
- `ts` varchar(64) NULL COMMENT '客户端发生广告点击事件的时间,以毫秒为单位时间戳',
- `callback_url` varchar(140) NULL COMMENT '直接把调用事件回传接口的url生成出来,广告主可以直接使用',
- `model` varchar(64) NULL COMMENT '手机型号代码',
- PRIMARY KEY (`id`)
- )COMMENT = '头条监测信息表';
- -- 2020-08-27 17:27 闯奇排重接口接收数据
- CREATE TABLE `friendship`.`ad_chuangqi` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `oaid` varchar(64) NULL COMMENT 'Android Q及更高版本的设备号,32位',
- `imei` varchar(64) NULL COMMENT '安卓的设备 ID 的 md5 摘要,32位',
- `idfa` varchar(64) NULL COMMENT 'IOS 6+的设备id字段,32位',
- `androidid` varchar(64) NULL COMMENT '安卓id原值的md5,32位',
- `create_time` timestamp(0) NULL COMMENT '创建时间',
- PRIMARY KEY (`id`)
- )COMMENT = '闯奇排重接口接收数据';
- -- 2020-08-31 16:22 广告推广用户的设备信息
- CREATE TABLE `friendship`.`advert_promote_user_device` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `a_id` bigint(20) NULL COMMENT '广告组ID',
- `d_id` bigint(20) NULL COMMENT '广告计划ID',
- `track_id` bigint(20) NULL COMMENT 'b站用于追踪来源广告的追 踪ID',
- `imei` varchar(64) NULL COMMENT 'imei',
- `oaid` varchar(64) NULL COMMENT 'oaid',
- `idfa` varchar(64) NULL COMMENT 'IOS 6+的设备id字段,32位',
- `android_id` varchar(64) NULL COMMENT '安卓id原值的md5,32位',
- `os` tinyint(2) NULL COMMENT '操作系统平台安卓:0,IOS:1,其他:3',
- `ip` varchar(64) NULL COMMENT '设备ip地址',
- `ad_channel` tinyint(2) NULL COMMENT '广告渠道',
- `create_time` timestamp(0) NULL COMMENT '创建时间',
- `callback` varchar(400) null comment 'callbackurl',
- PRIMARY KEY (`id`)
- )COMMENT = '广告推广用户的设备信息';
- -- 2020-09-02 14:43 用户绑定的微信信息表
- CREATE TABLE `friendship`.`user_wechat_info` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `user_id` bigint(20) NULL COMMENT '用户id',
- `open_id` bigint(20) NULL COMMENT '微信openid',
- `wx_nick_name` varchar(32) NULL COMMENT '微信昵称',
- `wx_head_img` varchar(255) NULL COMMENT '微信头像',
- `create_time` timestamp(0) NULL COMMENT '创建时间',
- PRIMARY KEY (`id`)
- )COMMENT = '用户绑定的微信信息表';
- -- 2020-09-02 18:09 提现审核日志
- CREATE TABLE `friendship`.`with_draw_verify_log` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `order_id` bigint(20) NULL COMMENT '订单id',
- `operating_time` timestamp(0) NULL COMMENT '操作时间',
- `des` varchar(120) NULL COMMENT '状态说明',
- PRIMARY KEY (`id`)
- )COMMENT = '提现审核日志';
|