Giao diện
platform_events / event
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 đè.
2 bảng. Quay lại platform_events.
event_inbox
P1-15. Consumer dedupe (event-conventions s5): one row per (consumer, event_id), committed with the effect. Immutable. Retention window is GAP-EVT-RETENTION. SYSTEM_ONLY, no client access.
public.event_inbox · 8 cột · 5 check · 0 unique · 1 index · 2 policy · 1 trigger · RLS bật
| Cột | Kiểu | Khoá | Mô tả | |
|---|---|---|---|---|
consumer | text | NOT NULL | PK | |
event_id | uuid | NOT NULL | PK | |
fingerprint | text | NOT NULL | ||
aggregate_type | text | NOT NULL | ||
aggregate_id | text | NOT NULL | ||
aggregate_version | integer | NOT NULL | ||
outcome | text | NOT NULL | ||
recorded_at | timestamptz | NOT NULL |
Khoá chính: consumer, event_id
Trỏ ra: không có
Được trỏ tới: không có
event_outbox
P1-15. Transactional outbox (event-conventions s4). Inserted with the producer's state change in one transaction; envelope immutable; dispatch columns owned by the P1-16 relay. SYSTEM_ONLY, no client access.
public.event_outbox · 23 cột · 17 check · 2 unique · 5 index · 5 policy · 1 trigger · RLS bật
| Cột | Kiểu | Khoá | Mô tả | |
|---|---|---|---|---|
event_id | uuid | NOT NULL | PK | |
envelope_version | integer | NOT NULL | ||
event_type | text | NOT NULL | ||
event_version | integer | NOT NULL | ||
aggregate_type | text | NOT NULL | ||
aggregate_id | text | NOT NULL | ||
aggregate_version | integer | NOT NULL | ||
source_type | text | NOT NULL | ||
source_id | text | NOT NULL | ||
occurred_at | timestamptz | NOT NULL | ||
recorded_at | timestamptz | NOT NULL | ||
policy_version | text | |||
correlation_id | correlation_ref | NOT NULL | ||
causation_id | text | |||
payload | jsonb | NOT NULL | ||
status | text | NOT NULL | ||
attempts | integer | NOT NULL | ||
available_at | timestamptz | NOT NULL | ||
lease_owner | text | |||
lease_expires_at | timestamptz | |||
last_error_code | text | |||
dispatched_at | timestamptz | |||
version | integer | NOT NULL |
Khoá chính: event_id
Trỏ ra: không có
Được trỏ tới: không có