Appearance
Database: Invoice Integration
Version: 0.1
Date: 2026-11-16
Status: Skeleton / capability PROPOSED
Owner path (reserved): platform-invoice/
DB id: db-invoice
Tên: Invoice Integration DB
Tên vật lý: invoice (DECIDED — PostgreSQL schema name; D-022 / R3)
Architecture SoT: /architecture/07-shared-payment-and-invoice-services
1. Mục đích
Cấu hình connector và bản ghi đồng bộ với hệ thống hóa đơn/thuế — không phải sản phẩm kế toán đầy đủ.
2. Engine / topology
| Hạng mục | Trạng thái |
|---|---|
| Engine | DECIDED PostgreSQL (D-022) |
| Tên vật lý | Schema invoice (DECIDED) |
| Topology non-prod | Phương án A — cùng Postgres database, schema riêng (R4) |
Bảng/entity chi tiết vẫn OPEN (capability Invoice PROPOSED).
3. Entity đề xuất (stub)
| Vùng | Ý định |
|---|---|
| Connector configs | Provider, ref credential (Infisical), gắn workspace |
| Sync / mapping | Invoice id ngoài ↔ ref MINAP |
| Line-item snapshots | Theo connector — OPEN |
4. Ngoài phạm vi
- Thay sổ bán hàng của Application
- Tư vấn pháp lý/thuế
5. Câu hỏi mở
Loại hóa đơn / provider nào cần cho pilot.