ForeignKey Decorator
The ForeignKey decorator is used to create foreign keys in the database. It takes a ForeignKeyDecoratorInterface object as a parameter.
ForeignKey
ForeignKeyDecoratorInterface
Parameters of ForeignKeyDecoratorInterface
key:
Type: string
string
Description: The name of the column that is the foreign key.
table:
Description: The name of the table that the foreign key references.
Last updated 1 year ago