-- 开放平台门店屏蔽运力表
CREATE TABLE `lb_shop_delivery_disable` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `shop_id` int(45) NOT NULL,
  `app_id` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `delivery_type` int(5) NOT NULL COMMENT '运力',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
  `deleted` tinyint(2) unsigned DEFAULT '0' COMMENT '0：未删除，1：已删除',
  PRIMARY KEY (`id`),
  KEY `idx_shop_id` (`shop_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='门店屏蔽运力表';


-- 应用表增加通知字段
ALTER TABLE `lb_app_info` ADD COLUMN `store_status_notify_url` varchar(255) DEFAULT NULL COMMENT '门店状态通知接口';
ALTER TABLE `lb_app_info` ADD COLUMN `order_status_notify_url` varchar(255) DEFAULT NULL COMMENT '订单状态通知接口';

-- 商户表增加应用ID
ALTER TABLE `lb_merchant` ADD COLUMN `app_id` varchar(50) DEFAULT NULL COMMENT 'appId';