V4.8.sql 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. -- 用户手持照片
  2. CREATE TABLE `friendship`.`user_auth_hold_pic` (
  3. `id` bigint(10) NOT NULL AUTO_INCREMENT COMMENT 'id',
  4. `user_id` bigint(20) NULL COMMENT '用户id',
  5. `id_number` varchar(255) NULL COMMENT '身份证号码',
  6. `real_name` varchar(255) NULL COMMENT '真实姓名',
  7. `user_hold_pic` varchar(128) NULL COMMENT '用户手持身份证照片地址',
  8. `status` tinyint(2) NULL COMMENT '状态',
  9. PRIMARY KEY (`id`)
  10. ) ENGINE = InnoDB AUTO_INCREMENT = 10001000;
  11. -- 陪玩订单评论表
  12. CREATE TABLE `friendship`.`play_order_comment` (
  13. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  14. `skill_id` bigint(20) NULL COMMENT '陪玩师注册的技能id',
  15. `user_id` bigint(20) NULL DEFAULT 0 COMMENT '评价的用户id,如果为0表示匿名用户',
  16. `start` integer(1) NULL COMMENT '评分',
  17. `tags` varchar(40) NULL COMMENT '标签',
  18. `comment` varchar(140) NULL COMMENT '评论内容',
  19. `create_time` timestamp(0) NULL COMMENT '评论时间',
  20. PRIMARY KEY (`id`)
  21. ) ENGINE = InnoDB AUTO_INCREMENT = 10001000 COMMENT = '陪玩订单评论表';
  22. -- 2020/09/14 10:10 新建陪玩师个性标签表
  23. CREATE TABLE `friendship`.`play_user_character_tags` (
  24. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  25. `user_id` bigint(20) NULL COMMENT '陪玩师id',
  26. `dictionary_id` bigint(20) NULL COMMENT '字典ID',
  27. `tag_name` varchar(64) NULL COMMENT '标签名',
  28. `create_time` timestamp(0) NULL COMMENT '创建时间',
  29. PRIMARY KEY (`id`)
  30. ) COMMENT = '陪玩师个性标签表';
  31. -- 2020/09/17 10:48 新建陪玩师-个性标签中间表
  32. CREATE TABLE `friendship`.`player_choose_tags` (
  33. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  34. `game_id` bigint(20) NULL COMMENT '陪玩师注册的技能id',
  35. `user_id` bigint(20) NULL COMMENT '陪玩师id',
  36. `tag_id` bigint(20) NULL COMMENT '陪玩师个性标签id',
  37. `create_time` timestamp(0) NULL COMMENT '创建时间',
  38. PRIMARY KEY (`id`)
  39. ) ENGINE = InnoDB AUTO_INCREMENT = 10001110 COMMENT = '陪玩师-个性标签中间表';
  40. -- play_user_image_card_last_review
  41. CREATE TABLE `friendship`.`play_user_image_card_last_review` (
  42. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  43. `userId` bigint(20) NULL DEFAULT NULL COMMENT '用户id',
  44. `last_verify_imagecard_pic` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '最新审核通过的图片/视频封面的url',
  45. PRIMARY KEY (`id`) USING BTREE,
  46. UNIQUE INDEX `userIdlastImageCardUrl`(`userId`, `last_verify_imagecard_pic`(10)) USING BTREE COMMENT '用户id和陪玩形象卡封面链接'
  47. ) ENGINE = InnoDB AUTO_INCREMENT = 110010001 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户最新审核通过的陪玩形象卡封面' ROW_FORMAT = Dynamic;
  48. -- 2020/09/17 16:10 技能推荐表
  49. CREATE TABLE `friendship`.`game_skill_recommend` (
  50. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  51. `user_id` bigint(20) NULL COMMENT '用户id',
  52. `game_id` bigint(20) NULL COMMENT '游戏id',
  53. `game_name` varchar(16) NULL COMMENT '游戏名称',
  54. `user_game_level` varchar(32) NULL COMMENT '游戏段位',
  55. `price` int(10) NULL COMMENT '价格',
  56. `billing_way` tinyint(2) NULL COMMENT '计费方式',
  57. PRIMARY KEY (`id`)
  58. ) ENGINE = InnoDB AUTO_INCREMENT = 10001000;
  59. -- 2020/09/19 16:10 陪玩形象卡推荐到首页标记表
  60. CREATE TABLE `friendship`.`play_image_card_recommend_index_flag` (
  61. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  62. `user_id` bigint(20) NULL COMMENT '用户id',
  63. `recommend_status` tinyint(2) NULL COMMENT '推荐状态',
  64. `create_time` timestamp(0) NULL COMMENT '推荐时间',
  65. `update_time` timestamp(0) NULL COMMENT '更新时间',
  66. PRIMARY KEY (`id`)
  67. );