Represents a "Belongs To" relationship metadata within the ORM system.

Param: item

The initial relationship metadata to be copied into this "Belongs To" relationship instance. This allows for easy creation and setup of relationship metadata based on existing configurations.

Hierarchy (view full)

Constructors

Properties

foreignKey: ForeignKeyProperty

The attribute representing the foreign key in the relationship. This specifies the field in the entity that links to another entity, serving as the cornerstone for relationship queries and operations.

propertyName: keyof default

The property name on the source entity that holds or references the related entity or entities. This name is used within the source entity's class definition to access the related entity.

Note: This class is abstract and cannot be instantiated directly. Instead, it should be extended by specific relationship metadata classes that define concrete types of relationships.

The entity class that is the target of the relationship. This specifies the class of the entity on the "other side" of the relationship.

type: "BelongsTo" = "BelongsTo"

The type of the relationship, statically set to "BelongsTo" to signify the nature of the relationship.

Generated using TypeDoc