TASK:买家端/卖家端接入支付服务
This commit is contained in:
@@ -18,6 +18,9 @@ CREATE TABLE seller_listing (
|
||||
INDEX idx_deleted (deleted)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品表';
|
||||
|
||||
ALTER TABLE seller_listing
|
||||
ADD COLUMN sales_volume INT DEFAULT 0 COMMENT '销量';
|
||||
|
||||
-- 商品图片表
|
||||
CREATE TABLE seller_listing_image (
|
||||
id BIGINT PRIMARY KEY COMMENT '图片ID',
|
||||
@@ -93,3 +96,7 @@ CREATE TABLE seller_order_item (
|
||||
INDEX idx_listing_id (listing_id),
|
||||
INDEX idx_deleted (deleted)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单商品明细表';
|
||||
|
||||
-- 新增 payment_id 字段
|
||||
ALTER TABLE seller_orders
|
||||
ADD COLUMN payment_id VARCHAR(64) DEFAULT NULL COMMENT '交易流水号(关联支付表)';
|
||||
Reference in New Issue
Block a user