RelationInfo constructor

const RelationInfo({
  1. required String name,
  2. required RelationType type,
  3. required String targetModel,
  4. required String foreignKey,
  5. List<String> references = const ['id'],
  6. String? joinTable,
  7. String? joinColumn,
  8. String? inverseJoinColumn,
  9. String? inverseRelation,
  10. bool isOwner = false,
})

Implementation

const RelationInfo({
  required this.name,
  required this.type,
  required this.targetModel,
  required this.foreignKey,
  this.references = const ['id'],
  this.joinTable,
  this.joinColumn,
  this.inverseJoinColumn,
  this.inverseRelation,
  this.isOwner = false,
});