ForeignKey

ForeignKey Decorator

The ForeignKey decorator is used to create foreign keys in the database. It takes a ForeignKeyDecoratorInterface object as a parameter.

Parameters of ForeignKeyDecoratorInterface

  • key:

    • Type: string

    • Description: The name of the column that is the foreign key.

  • table:

    • Type: string

    • Description: The name of the table that the foreign key references.

Last updated