砝码 FAMA. 不动产司法处置数据基础设施 打开控制台
口径 每个数字带时点 / 口径 / 来源等级 / 核验状态 · 最高核验态为“多源公告一致” · 非登记簿核验、非现场核验 · 月度产出一律称“观察” 核验三态
数据模型

实体与规则

基线 schema 之后的每一处变化都是一个编号迁移(0001-0014),只追加、不改写。每张业务表都带来源(source)、置信度(confidence)、更新时间(updated_at)三件套。

实体

一行一个实体:用途与关键字段。字段名以 schema 与迁移为准。

表用途关键字段
listings一条资产公告(司法拍卖、授权供给、平台公开)在我方永久 UID 下的记录;对外交付的主实体listing_uid, city, channel, stage, title, start_price_yuan, appraisal_price_yuan, auction_start / auction_end, court_name, case_number, status, asset_class, source, source_url, raw_ref, confidence, updated_at
units户 / 室级单元,挂在楼宇下unit_uid, building_uid, unit_label, floor, area_sqm, area_inner_sqm, owner_entity_type, owner_name_masked, raw_ref
buildings楼宇主数据(规划公示、拍卖地址)building_uid, city, name, address_text, property_type, year_built, gba_sqm, gfa_sqm, raw_ref
parcels宗地parcel_uid, city, district, address_text, land_use, land_area_sqm, tenure_years, raw_ref
distress_events处置事件时间线:类型来自闭合事件词表,挂在 unit / building / parcel / listing 上distress_uid, target_type, target_uid, event_type, event_date, court_name, case_number, creditor_type, stage_label, source, source_url, raw_ref
transaction_history结果交易与登记公开:成交 / 流拍 / 撤拍结果、价格、折价比;聚合行另有口径字段txn_uid, target_uid, txn_date, txn_type, result_status, price_yuan, start_price_yuan, appraisal_price_yuan, discount_ratio, source_url, fetched_at, rights_tier, buyer_name(仅机构),buyer_name_masked
supply_verifications双轴核验状态机:事实维(verification_status)与价格维(price_status);守门标记写在 notesverification_uid, listing_uid, verification_status, price_status, four_truth_gate, verifier, verified_at, notes (rights_tier=internal_only / sellable=true)
id_crosswalk外部 ID 唯一的落脚处:每条外部记录与我方 UID 的对应及首末见时间entity_type, our_uid, source_system, source_id, source_url, first_seen, last_seen
changes_log字段级变更留痕:每次写入的旧值、新值、来源与 actor;时点重现的依据change_uid, entity_type, entity_uid, field, old_value, new_value, source, actor, changed_at
resolution_queue实体解析待办:候选记录与建议匹配,人工或规则分诊queue_uid, entity_type, candidate_json, matched_uid, match_confidence, status
ingestion_runs每次管线运行:计数、状态(含 blocked)、质量门判定与它写的 changes_log 区间run_uid, source_system, city, started_at, finished_at, fetched, inserted, updated, queued, status, notes, qa_status, qa_detail, log_from, log_to
listing_disclosures法定披露项评估:逐项状态、得分、禁用措辞、规则版本与文本哈希disclosure_uid, listing_uid, items_json, flags_json, score, present_n, assessable_n, basis_version, text_sha256, assessed_at, source_url, confidence
bid_snapshots报名 / 围观 / 出价计数快照,每次采集一行;只存计数snapshot_uid, listing_uid, taken_at, applicants, views, bids, stage, source_url
data_reports更正 / 异议 / 删除通道,48 小时到期report_uid, listing_uid, kind, field, claim, contact, account, tier, status, received_at, due_at, responded_at, response, responder
ops_metrics运行水位:每轮管线后的指标,状态拆分写进指标名,不合并;T1 / T2 回测与 PG 读比对结果也落这里metric_uid, taken_at, scope, metric, value, detail

基础设施表(不对外交付):schema_migrations、store_leases(写入租约)、polite_state / polite_counts / polite_events(礼貌采集台账)、outbox(PostgreSQL 变更捕获)。schema 中另有尚未建数据层的表(如 valuations_cn、leases),其数据合同状态见 /v1/coverage 的 data_layers: 未建的层报告“未建”,不报零行。

三条规则

双 ID 规则

我方 ID 永久、自有(listing_uid / building_uid / unit_uid / parcel_uid)。每个外部 ID 只存在于 id_crosswalk,不进任何主表;跨源同标的只经 crosswalk 关联。对外,source_id 只对 internal 层返回,其它层只见 source_system 与公开 URL。

三态推导

只有一处推导:事实维未到 research_complete 为 未核验;事实维完成且价格维为 confirmed 为 多源公告一致;其间一律 估算。单调保守:任何一轴不足都往下落,不往上靠。没有核验行的记录按未核验计。

全文见 核验状态。

写入即留痕

所有核心表写入经单一入口:一个事务,自动字段级 diff 进 changes_log,带 actor 与来源。授权供给新源在入库路径出生即带 rights_tier=internal_only、sellable=false。

永不存储

  • 自然人姓名明文。写入前收敛为首字 + "**"; buyer_name 列只允许机构;历史明文由迁移 0006 清除(secure_delete,不可逆)。
  • 第三方地理编码结果。不入库、不衍生;只存自有标准化地址与行政区划编码。
  • 银登公告正文。只索引元数据(出让方 / 期次 / 类型 / 日期 / 链接)。
  • 竞买人身份。bid_snapshots 只有计数,没有竞买号、出价人标识。
  • 密钥与凭证。密钥只以 sha256 形态在环境变量中,不入库。