优化支付退款钱包链路
This commit is contained in:
@@ -104,6 +104,9 @@ CREATE TABLE IF NOT EXISTS rental_orders (
|
||||
status VARCHAR(32) NOT NULL DEFAULT 'pending_payment',
|
||||
handoff_status VARCHAR(32) NOT NULL DEFAULT 'none',
|
||||
settlement_status VARCHAR(32) NOT NULL DEFAULT 'unsettled',
|
||||
refund_status VARCHAR(32) NOT NULL DEFAULT 'none',
|
||||
refund_amount_cent BIGINT NOT NULL DEFAULT 0,
|
||||
refunded_at DATETIME NULL,
|
||||
owner_settled_at DATETIME NULL,
|
||||
settled_at DATETIME NULL,
|
||||
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
@@ -112,6 +115,7 @@ CREATE TABLE IF NOT EXISTS rental_orders (
|
||||
KEY idx_rental_orders_renter_status (renter_id, status),
|
||||
KEY idx_rental_orders_owner_status (owner_id, status),
|
||||
KEY idx_rental_orders_listing_id (listing_id),
|
||||
KEY idx_rental_orders_refund_status (refund_status),
|
||||
KEY idx_rental_orders_rented_at (status, rented_at)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
@@ -207,6 +211,7 @@ CREATE TABLE IF NOT EXISTS payment_orders (
|
||||
pay_way VARCHAR(16) NOT NULL DEFAULT '',
|
||||
jspay_flag VARCHAR(8) NOT NULL DEFAULT '',
|
||||
amount_cent BIGINT NOT NULL DEFAULT 0,
|
||||
biz_type VARCHAR(32) NOT NULL DEFAULT 'order_pay',
|
||||
status VARCHAR(32) NOT NULL DEFAULT 'created',
|
||||
td_code VARCHAR(512) NOT NULL DEFAULT '',
|
||||
jspay_url VARCHAR(512) NOT NULL DEFAULT '',
|
||||
@@ -223,6 +228,7 @@ CREATE TABLE IF NOT EXISTS payment_orders (
|
||||
KEY idx_payment_orders_order_no (order_no),
|
||||
KEY idx_payment_orders_user_id (user_id),
|
||||
KEY idx_payment_orders_provider_order_id (provider_order_id),
|
||||
KEY idx_payment_orders_biz_type (biz_type),
|
||||
KEY idx_payment_orders_status (status)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user