| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- /**
- 活动结束时间修改为 8月7日24点结束
- */
- UPDATE `awards_activity` SET `end_at` = '1659887999' WHERE `id` = '1';
- /**
- 每个用户增加 2次参与游戏时间
- */
- UPDATE `awards_user_info` SET `count` = `count` + 2;
- /**
- 用户参与游戏记录表
- */
- CREATE TABLE `awards_user_game` (
- `id` int unsigned NOT NULL AUTO_INCREMENT,
- `game_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '游戏ID',
- `uid` bigint DEFAULT '0' COMMENT '用户ID',
- `begin_at` int DEFAULT '0' COMMENT '开始时间',
- `end_at` int DEFAULT '0' COMMENT '结束时间',
- `state` int DEFAULT '0' COMMENT '状态:1 有效 2无效',
- `number` int DEFAULT '0' COMMENT '彩蛋数量',
- `duration` int DEFAULT '0' COMMENT '时长',
- `create_at` int DEFAULT '0' COMMENT '创建时间',
- `update_at` int DEFAULT '0' COMMENT '修改时间',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- /**
- 用户点击彩蛋记录表
- */
- CREATE TABLE `awards_user_game_log` (
- `id` int unsigned NOT NULL AUTO_INCREMENT,
- `game_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '0' COMMENT '游戏ID',
- `uid` bigint DEFAULT NULL COMMENT '用户ID',
- `draw` int DEFAULT '0' COMMENT '彩蛋',
- `duration` int DEFAULT '0' COMMENT '时长',
- `create_at` int DEFAULT '0' COMMENT '创建时间',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|