feat(price-observation): 价格观测资产表 + pricebot 内部上报端点 #21
Reference in New Issue
Block a user
Delete Branch "feat/price-observation-pipeline"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
比价沉淀的价格事实(平台/门店/菜篮/到手价/时间/来源)无条件落库,server 侧存储、
与登录无关,独立于用户视角的 comparison_record。是未来"别人查过同店→秒回价格"
价格大数据的源头(先存数据,用法后续)。
红包/地理/来源)+ dishes/attrs 两个 JSONB 兜底列;(trace_id,platform,scope) 幂等
唯一约束;observed_at/store_name/geohash/source_device_id/source_user_id 等索引
(已核为当前唯一 head,无多 head 风险)
批量插入(先查 trace 已有 (platform,scope) 只插新的,并发撞唯一约束则回滚跳过)
(常量时间比较,未配密钥→503),server→server 专用,不走用户 JWT
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com