7_20240506.sql 1.7 KB

1234567891011121314151617181920
  1. /* 物流系统相关扩展 */
  2. ALTER TABLE `trade_order`
  3. ADD COLUMN `subscription_logistics_info` tinyint NOT NULL DEFAULT '0' COMMENT '订阅物流信息,未订阅是0,已订阅是1';
  4. ALTER TABLE `trade_order` ADD COLUMN `receiving_time` datetime COMMENT '物流签收时间';
  5. -- 记录快递100回调我们系统的日志
  6. CREATE TABLE `trade_order_callback_logs` (
  7. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '回调编号',
  8. `order_id` varchar(255) NOT NULL COMMENT '订单ID',
  9. `request_param` text NOT NULL COMMENT '回调推送参数体',
  10. `response_body` text COMMENT '回调响应体',
  11. `status` bit(1) NOT NULL DEFAULT b'0' COMMENT '回调状态,失败是0,成功是1',
  12. `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '创建者',
  13. `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  14. `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '更新者',
  15. `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  16. PRIMARY KEY (`id`) USING BTREE
  17. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='第三方回调日志(目前对接了快递100)';