ForeignKeyDefinition

Describes an association in the database schema.

ForeignKeyDefinition.swift:13
final class ForeignKeyDefinition

You get instances of ForeignKeyDefinition when you create a database tables. For example:

try db.create(table: "player") { t in
    t.belongsTo("team") // ForeignKeyDefinition
}

See belongsTo(_:inTable:onDelete:onUpdate:deferred:indexed:).