SchemaColumn.relationship constructor
SchemaColumn.relationship(
- String? name,
- ManagedPropertyType type, {
- bool isNullable = true,
- bool isUnique = false,
- DeleteRule rule = DeleteRule.nullify,
A convenience constructor for properties that represent foreign key relationships.
Implementation
SchemaColumn.relationship(this.name, ManagedPropertyType type,
{this.isNullable = true,
this.isUnique = false,
this.relatedTableName,
this.relatedColumnName,
DeleteRule rule = DeleteRule.nullify}) {
isIndexed = true;
_type = typeStringForType(type);
_deleteRule = deleteRuleStringForDeleteRule(rule);
}