-
feat(tenant): P0-2 摄入侧 source_unit 真填值 + manifest 切集团 slug · a5b0184b
- manifest.schema: 加 identity_namespace_field - tenant-resolver: 加 buildSourceUnitResolver(从 identity_namespace_field 解析) - cold-import: source_unit 从 rawSource 解析,串入 patient upsert / stub / patientIndex(按 (source_unit,external_id) 复合键防撞号)/ patientIdResolver - manifest.yaml: 删写死 tenant_map UUID,改 tenant_id: ruier-grp(集团 slug)+ identity_namespace_field: brand - 加数据迁移脚本(未执行)
⚠ ️ 前置审发现 patient_facts.subject_id(撞631)、patient_return_visits.external_id (撞611)也是品牌级,合 tenant 会撞键 — 这俩也需 source_unit。迁移待补这两表后再跑。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>luoqi committed
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| data-migrations | Loading commit data... | |
| migrations | Loading commit data... | |
| schema.prisma | Loading commit data... | |
| seed.ts | Loading commit data... |