fix: 订单表增加discount_money字段

This commit is contained in:
Agent
2026-03-27 14:03:19 +00:00
parent 8f13118078
commit 6781e8e42b

View File

@@ -80,6 +80,7 @@ CREATE TABLE "orders" (
"customer_wechat" VARCHAR(64) DEFAULT NULL, "customer_wechat" VARCHAR(64) DEFAULT NULL,
"total_amount" DECIMAL(12,2) NOT NULL DEFAULT 0, "total_amount" DECIMAL(12,2) NOT NULL DEFAULT 0,
"discount_amount" DECIMAL(12,2) DEFAULT 0, "discount_amount" DECIMAL(12,2) DEFAULT 0,
"discount_money" DECIMAL(12,2) DEFAULT 0,
"actual_amount" DECIMAL(12,2) NOT NULL DEFAULT 0, "actual_amount" DECIMAL(12,2) NOT NULL DEFAULT 0,
"discount_rate" DECIMAL(5,2) DEFAULT 100, "discount_rate" DECIMAL(5,2) DEFAULT 100,
"status" INTEGER DEFAULT 1, "status" INTEGER DEFAULT 1,