V5.0.sql 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. CREATE TABLE `friendship`.`banner_and_radio` (
  2. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  3. `title` varchar(255) NULL COMMENT '标题',
  4. `img_url` varchar(255) NULL COMMENT '图片地址',
  5. `type` tinyint(2) NULL COMMENT '类型:0 banner 1 广播',
  6. `seq` int(2) NULL COMMENT '排序',
  7. `address` varchar(255) NULL COMMENT '跳转地址',
  8. `update_time` timestamp(0) NULL COMMENT '更新时间',
  9. `create_time` timestamp(0) NULL COMMENT '创建时间',
  10. `effective_time` timestamp(0) NULL COMMENT '生效时间',
  11. `status` int(2) NULL COMMENT '状态',
  12. PRIMARY KEY (`id`)
  13. ) ENGINE = InnoDB AUTO_INCREMENT = 10010010;
  14. -- 系统靓号
  15. CREATE TABLE `friendship`.`pretty_account` (
  16. `id` bigint(10) NOT NULL AUTO_INCREMENT COMMENT 'id',
  17. `pretty_account` bigint(8) NULL COMMENT '靓号',
  18. `status` tinyint(2) NULL COMMENT '状态',
  19. PRIMARY KEY (`id`)
  20. ) ENGINE = InnoDB AUTO_INCREMENT = 1000 COMMENT = '有期靓号表';
  21. -- 靓号绑定详情
  22. CREATE TABLE `friendship`.`pretty_account_bind_detail` (
  23. `id` bigint(10) NOT NULL AUTO_INCREMENT,
  24. `pretty_account` bigint(10) NULL DEFAULT NULL COMMENT '靓号',
  25. `user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户id',
  26. `create_time` timestamp(0) NULL DEFAULT NULL COMMENT '绑定时间',
  27. `remark` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注信息',
  28. PRIMARY KEY (`id`) USING BTREE
  29. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '靓号绑定详情表' ROW_FORMAT = Dynamic;
  30. CREATE TABLE `yingtao`.`user_draw_detail` (
  31. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  32. `uid` bigint(20) NULL DEFAULT NULL COMMENT '用户id',
  33. `record` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '抽奖记录json',
  34. `create_time` timestamp(0) NULL DEFAULT NULL COMMENT '创建时间',
  35. PRIMARY KEY (`id`) USING BTREE
  36. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户砸蛋记录表' ROW_FORMAT = Dynamic;