Skip to content

content_report / report ​

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 content_report.

report_export_jobs ​

P4-21. One report export request: frozen filters and window, status machine, private file reference. No figures.

public.report_export_jobs · 32 cột · 18 check · 0 unique · 4 index · 1 policy · 8 trigger · RLS bật

CộtKiểuKhoáMô tả
iduuidNOT NULLPK
requester_account_iduuidNOT NULLFK → accounts
report_codetextNOT NULL
filtersjsonbNOT NULL
from_attimestamptzNOT NULL
to_attimestamptzNOT NULL
filter_hashtextNOT NULL
moneybooleanNOT NULL
pii_modetextNOT NULL
ttl_secondsintegerNOT NULL
statustextNOT NULL
attemptintegerNOT NULL
failure_codetext
correlation_idcorrelation_refNOT NULL
run_iduuid
requested_attimestamptzNOT NULL
started_attimestamptz
finished_attimestamptz
data_cutofftimestamptz
row_countinteger
source_statustext
sourcesjsonb
policiesjsonb
file_nametext
size_bytesinteger
sha256text
buckettext
storage_pathtext
expires_attimestamptz
purged_attimestamptz
versionintegerNOT NULL
updated_attimestamptzNOT NULL

Khoá chính: id

Trỏ ra (1):

  • requester_account_id → accounts · ON DELETE RESTRICT

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

report_export_snapshots ​

P4-21 immutable masked read-time snapshot shared by every attempt.

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

CộtKiểuKhoáMô tả
job_iduuidNOT NULLPK FK → report_export_jobs
payloadjsonbNOT NULL
created_attimestamptzNOT NULL

Khoá chính: job_id

Trỏ ra (1):

  • job_id → report_export_jobs · ON DELETE RESTRICT

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

Sinh từ ad83b0aea · 820 migration · PostgreSQL 17