From 486134ac3b0d8ea27d947027b0cbd16bb05c15e0 Mon Sep 17 00:00:00 2001 From: litianxiang Date: Wed, 27 May 2026 13:31:09 +0800 Subject: [PATCH] =?UTF-8?q?sql=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/db/schema.sql | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/resources/db/schema.sql b/src/main/resources/db/schema.sql index 2cce900..e5555b2 100644 --- a/src/main/resources/db/schema.sql +++ b/src/main/resources/db/schema.sql @@ -74,6 +74,7 @@ CREATE TABLE seller_orders ( create_time DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '下单时间', update_time DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', deleted INT(1) DEFAULT 0 COMMENT '是否删除:0-否,1-是', + payment_id bigint DEFAULT NULL COMMENT '交易流水号(关联支付表)', INDEX idx_seller_id (seller_id), INDEX idx_deleted (deleted), INDEX idx_create_time (create_time) @@ -96,7 +97,3 @@ 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 bigint DEFAULT NULL COMMENT '交易流水号(关联支付表)'; \ No newline at end of file