RelationDefinition<T extends KhademModel<T> > constructor
RelationDefinition<T extends KhademModel<T> > ({
- required RelationType type,
- required String localKey,
- required String foreignKey,
- required T factory(),
- String? ownerKey,
- String? pivotTable,
- String? foreignPivotKey,
- String? morphTypeField,
- String? morphIdField,
- String? throughTable,
- String? firstKey,
- String? secondKey,
- String? secondLocalKey,
- dynamic query()?,
Implementation
RelationDefinition({
required this.type,
required this.relatedTable,
required this.localKey,
required this.foreignKey,
required this.factory,
this.ownerKey,
this.relatedKey,
this.pivotTable,
this.foreignPivotKey,
this.relatedPivotKey,
this.morphTypeField,
this.morphIdField,
this.throughTable,
this.firstKey,
this.secondKey,
this.secondLocalKey,
this.query,
});