docs(refactor): 记录前置审发现 — source_unit 需加 3 张表(facts/return_visits 也撞键)
实施期 pre-check:patient_facts.subject_id 跨品牌撞 631、patient_return_visits .external_id 撞 611,均品牌级,合 tenant 会撞键。故 source_unit 必须加在 patients + patient_facts + patient_return_visits 三张表;fact-writer 版本链 findFirst 也须按 source_unit 过滤。transactions(撞0)、relations(UUID)免。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment