Cerial
DecoratorsRelation

Overview

Relation decorators for linking models together.

Decorators that define relationships between models.

DecoratorPurpose
@fieldSpecify the FK field for a forward relation
@modelSpecify the target model for a relation
@keySpecify the target field for the FK lookup
@onDeleteControl cascade behavior on delete