adr-2026-05-22-pms-owned-customers-no-arsi

acceptedtype/adrdomain/anabatic

ADR — PMS-owned customers; no Arsi integration at launch

TL;DR

m_customer lives in pms_schema and is authored in PMS (POST /customers or inline on projects). Arsi integration is deferred (no API). Conexus/CMS company catalogs are optional reference only.

Context

  • 2026-05-21 emergency call: accelerate PMS; deprioritize non-urgent integrations.
  • Arsi will not provide an API in time.
  • Conexus t_comp_list is clean for existing transactional companies; PMS projects often target new prospects never in Conexus.
  • Prior ERD/docs treated Conexus as SoT for m_customer.

Decision

  1. Physical table: pms_schema.m_customer (unique code).
  2. TypeORM: src/entity/pms/customer.entity.ts on uam connection — remove entity/conexus/.
  3. API: GET + POST /customers; project create resolves customer_id from inline customer or customer_name.
  4. No Arsi read/sync until an API exists.
  5. CMS counterParties / Conexus — optional lookup helpers only.

Consequences

  • Frontend must support full customer capture on create project (not Conexus picker-only).
  • Duplicate codes rejected at DB (uq_m_customer_code).
  • Future Conexus link can add optional conexus_code or import job without blocking MVP.

Related

  • Meeting: [[Projects/anabatic-project-manager/meetings/2026-05-21-emergency-pms-priority]]
  • Schema: [[Projects/anabatic-project-manager/context/schema-ownership]]
  • Changelog: [[Projects/anabatic-project-manager/changelog/2026-05-22-pms-owned-customers]]