PropertyRelationship
@aurorajs.dev/catalyst-cli / generator/domain/model / PropertyRelationship
Interface: PropertyRelationship
Section titled “Interface: 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.
Properties
Section titled “Properties”aggregateName
Section titled “aggregateName”aggregateName:
string
Defined in: generator/domain/model.ts:148
Target aggregate name.
avoidConstraint
Section titled “avoidConstraint”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).
isDenormalized?
Section titled “isDenormalized?”
optionalisDenormalized?:boolean
Defined in: generator/domain/model.ts:154
If true, the target column is denormalized into this aggregate.
optionalkey?:string
Defined in: generator/domain/model.ts:156
Local column name when it differs from the property name.
modulePath
Section titled “modulePath”modulePath:
string
Defined in: generator/domain/model.ts:158
Module path of the target aggregate (e.g. iam/user).
packageName?
Section titled “packageName?”
optionalpackageName?:string
Defined in: generator/domain/model.ts:160
External package when the target lives outside the current bounded context.
pivot?
Section titled “pivot?”
optionalpivot?:RelationshipPivot
Defined in: generator/domain/model.ts:162
Pivot metadata for many-to-many relationships.
singularName?
Section titled “singularName?”
optionalsingularName?: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