Optional discriminator?: stringOptional foreign{
type: RelationType.BELONGS_TO,
polymorphic: true,
}
{
type: RelationType.BELONGS_TO,
polymorphic: true,
foreignKey: 'referenceId',
discriminator: 'referenceType',
}
Generated using TypeDoc
The polymorphic "belongsTo" relation.