Skip to content

payment / mock ​

Trang sinh tự động

Sinh từ ad83b0aea — chạy 820 migration lên PostgreSQL 17 rồi đọc pg_catalog. Mô tả bảng và cột lấy từ COMMENT ON. Không sửa tay: lần chạy docgen sau sẽ ghi đè.

4 bảng. Quay lại payment.

mock_momo_sessions ​

P3-03. MoMo MOCK simulator, provider side - NOT LIVE, NO REAL PAYMENT. One session per provider request id; PENDING -> SUCCEEDED | FAILED, FAILED -> SUCCEEDED only as MOCK_LATE_CAPTURE. Never read by reports.

public.mock_momo_sessions · 19 cột · 10 check · 2 unique · 3 index · 3 policy · 4 trigger · RLS bật

CộtKiểuKhoáMô tả
request_idtextNOT NULLPK
providertextNOT NULL
provider_modetextNOT NULL
obligation_iduuidNOT NULL
order_iduuidNOT NULL
amount_vndbigintNOT NULL
currencytextNOT NULL
payload_hashtextNOT NULL
session_reftextNOT NULL
statustextNOT NULL
result_codetext
provider_txn_idtext
captured_amount_vndbigint
expires_attimestamptzNOT NULL
settled_attimestamptz
versionintegerNOT NULL
correlation_idtextNOT NULL
created_attimestamptzNOT NULL
updated_attimestamptzNOT NULL

Khoá chính: request_id

Trỏ ra: không có

Được trỏ tới (1): mock_momo_create_plans

mock_momo_create_plans ​

P3-03. MoMo MOCK simulator create-time scenario armed by the QA harness - NOT LIVE. One open plan per obligation; consumed once by the create that opens the session.

public.mock_momo_create_plans · 8 cột · 3 check · 0 unique · 2 index · 3 policy · 4 trigger · RLS bật

CộtKiểuKhoáMô tả
iduuidNOT NULLPK
obligation_iduuidNOT NULL
scenariotextNOT NULL
armed_bytextNOT NULL
correlation_idtextNOT NULL
consumed_request_idtextFK → mock_momo_sessions
consumed_attimestamptz
created_attimestamptzNOT NULL

Khoá chính: id

Trỏ ra (1):

  • consumed_request_id → mock_momo_sessions

Được trỏ tới: không có

mock_momo_refund_plans ​

P3-11. MoMo MOCK simulator refund scenario armed by the QA harness - NOT LIVE. One open plan per original provider transaction; consumed once by the refund request that meets it.

public.mock_momo_refund_plans · 8 cột · 3 check · 0 unique · 2 index · 3 policy · 3 trigger · RLS bật

CộtKiểuKhoáMô tả
iduuidNOT NULLPK
original_txn_idtextNOT NULL
scenariotextNOT NULL
armed_bytextNOT NULL
correlation_idtextNOT NULL
consumed_request_idtext
consumed_attimestamptz
created_attimestamptzNOT NULL

Khoá chính: id

Trỏ ra: không có

Được trỏ tới: không có

mock_momo_refunds ​

P3-11. MoMo MOCK simulator, refund side - NOT LIVE, NO REAL PAYMENT. One row per refund request id, immutable; at most one ACCEPTED per original provider transaction. Never read by reports.

public.mock_momo_refunds · 12 cột · 7 check · 1 unique · 3 index · 2 policy · 3 trigger · RLS bật

CộtKiểuKhoáMô tả
request_idtextNOT NULLPK
providertextNOT NULL
provider_modetextNOT NULL
original_txn_idtextNOT NULL
amount_vndbigintNOT NULL
currencytextNOT NULL
payload_hashtextNOT NULL
statustextNOT NULL
result_codetext
refund_txn_idtext
correlation_idtextNOT NULL
created_attimestamptzNOT NULL

Khoá chính: request_id

Trỏ ra: không có

Được trỏ tới: không có

Sinh từ ad83b0aea · 820 migration · PostgreSQL 17