Skip to content

PropertyRelationship

@aurorajs.dev/catalyst-cli


@aurorajs.dev/catalyst-cli / generator/domain/model / PropertyRelationship

Defined in: generator/domain/model.ts:146

Relationship metadata for properties of type relationship. Fully describes how the local aggregate connects to a remote one.

aggregateName: string

Defined in: generator/domain/model.ts:148

Target aggregate name.


avoidConstraint: boolean

Defined in: generator/domain/model.ts:150

If true, the generated SQL does not add a foreign key constraint.


field: string

Defined in: generator/domain/model.ts:152

Field name on the remote aggregate (e.g. the FK column).


optional isDenormalized?: boolean

Defined in: generator/domain/model.ts:154

If true, the target column is denormalized into this aggregate.


optional key?: string

Defined in: generator/domain/model.ts:156

Local column name when it differs from the property name.


modulePath: string

Defined in: generator/domain/model.ts:158

Module path of the target aggregate (e.g. iam/user).


optional packageName?: string

Defined in: generator/domain/model.ts:160

External package when the target lives outside the current bounded context.


optional pivot?: RelationshipPivot

Defined in: generator/domain/model.ts:162

Pivot metadata for many-to-many relationships.


optional singularName?: string

Defined in: generator/domain/model.ts:164

Singular form of the target name (used for foreign key column naming).


type: RelationshipType

Defined in: generator/domain/model.ts:165