25_20241011.sql 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. CREATE TABLE `jpush_message_log` (
  2. `id` bigint NOT NULL AUTO_INCREMENT COMMENT '消息记录ID,自增主键',
  3. `reg_id` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '接收消息用户的appID',
  4. `member_user_id` bigint NOT NULL COMMENT '会员用户ID',
  5. `system_user_id` bigint DEFAULT NULL COMMENT '系统用户ID',
  6. `jpush_params` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '极光消息推送参数',
  7. `object_id` bigint NOT NULL DEFAULT '0' COMMENT '对应的业务对象ID,如订单ID、售后订单ID',
  8. `send_time` datetime DEFAULT NULL COMMENT '发送时间',
  9. `response_result` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '极光返回的消息响应结果',
  10. `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '创建者',
  11. `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  12. `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '更新者',
  13. `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  14. `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  15. PRIMARY KEY (`id`) USING BTREE
  16. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='极光推送记录表';
  17. ALTER TABLE member_user
  18. ADD COLUMN `language` varchar(20) default null comment '语言';
  19. ALTER TABLE system_users
  20. ADD COLUMN `language` varchar(20) default null comment '语言';
  21. ALTER TABLE distri_order_percentage
  22. ADD COLUMN `agent_quota` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '成为代理商所需金额';
  23. ALTER TABLE member_user
  24. ADD COLUMN `agent` bit(1) DEFAULT b'0' COMMENT '是否是代理商 0:否 1:是';
  25. ALTER TABLE member_user
  26. ADD COLUMN `visitor` bit(1) DEFAULT b'0' COMMENT '是否是游客 0:否 1:是';
  27. ALTER TABLE trade_order
  28. ADD COLUMN `user_deleted` bit(1) DEFAULT b'0' COMMENT '用户是否删除';
  29. ALTER TABLE distri_pt_profit
  30. ADD COLUMN `visitor_earnings` bigint NOT NULL DEFAULT '0' COMMENT '游客收益';