Skip to main content
zerotal

Documentation


Documentation / zerotal / orm / MorphManyOptions

Interface: MorphManyOptions

Defined in: packages/orm/src/model/decorators/morphMany.ts:3

Properties

morphName

morphName: string

Defined in: packages/orm/src/model/decorators/morphMany.ts:8

The morph name — prefix for the _type and _id columns on the related table. e.g. morphName: 'commentable' → columns commentable_type, commentable_id.


localKey?

optional localKey?: string

Defined in: packages/orm/src/model/decorators/morphMany.ts:10

Override the local key. Defaults to 'id'.