sql表
This commit is contained in:
@@ -74,6 +74,7 @@ CREATE TABLE seller_orders (
|
|||||||
create_time DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '下单时间',
|
create_time DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '下单时间',
|
||||||
update_time DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
update_time DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||||
deleted INT(1) DEFAULT 0 COMMENT '是否删除:0-否,1-是',
|
deleted INT(1) DEFAULT 0 COMMENT '是否删除:0-否,1-是',
|
||||||
|
payment_id bigint DEFAULT NULL COMMENT '交易流水号(关联支付表)',
|
||||||
INDEX idx_seller_id (seller_id),
|
INDEX idx_seller_id (seller_id),
|
||||||
INDEX idx_deleted (deleted),
|
INDEX idx_deleted (deleted),
|
||||||
INDEX idx_create_time (create_time)
|
INDEX idx_create_time (create_time)
|
||||||
@@ -96,7 +97,3 @@ CREATE TABLE seller_order_item (
|
|||||||
INDEX idx_listing_id (listing_id),
|
INDEX idx_listing_id (listing_id),
|
||||||
INDEX idx_deleted (deleted)
|
INDEX idx_deleted (deleted)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单商品明细表';
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单商品明细表';
|
||||||
|
|
||||||
-- 新增 payment_id 字段
|
|
||||||
ALTER TABLE seller_orders
|
|
||||||
ADD COLUMN payment_id bigint DEFAULT NULL COMMENT '交易流水号(关联支付表)';
|
|
||||||
Reference in New Issue
Block a user