deleted_at; there is no updated_at column on this entity.
Internal object. Not currently exposed on the public REST API. The operations below describe the intended contract.
API operations
Data model
Attributes
Relationships
System-computed
- created_at โ set to
new Date()via MikroORMonCreatehook; never written by the caller - deleted_at โ set by soft-delete logic; never passed in on creation
- pk โ auto-increment serial primary key, internal only; never exposed in the public API
- source_company_pk / target_company_pk โ FK integers resolved from the ManyToOne relations; the public API surfaces these as relationship objects, not raw integers
Example
apps/api/src/database/entities/CompanyRelation.ts ยท domain: financial-graph ยท tier: Supporting