PropertyRelationship
@aurorajs.dev/catalyst-cli / generator/domain/model / PropertyRelationship
Interface: PropertyRelationship
Sección titulada «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
Sección titulada «Properties»aggregateName
Sección titulada «aggregateName»aggregateName:
string
Defined in: generator/domain/model.ts:148
Target aggregate name.
avoidConstraint
Sección titulada «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?
Sección titulada «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
Sección titulada «modulePath»modulePath:
string
Defined in: generator/domain/model.ts:158
Module path of the target aggregate (e.g. iam/user).
packageName?
Sección titulada «packageName?»
optionalpackageName?:string
Defined in: generator/domain/model.ts:160
External package when the target lives outside the current bounded context.
optionalpivot?:RelationshipPivot
Defined in: generator/domain/model.ts:162
Pivot metadata for many-to-many relationships.
singularName?
Sección titulada «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