SqfEntityFieldRelationship constructor

const SqfEntityFieldRelationship({
  1. SqfEntityTable? parentTable,
  2. DeleteRule? deleteRule,
  3. String? fieldName,
  4. bool? isPrimaryKeyField,
  5. dynamic defaultValue,
  6. dynamic minValue,
  7. dynamic maxValue,
  8. String? formLabelText,
  9. String? formDropDownTextField,
  10. RelationType? relationType,
  11. String? manyToManyTableName,
  12. bool? isNotNull,
  13. bool? isUnique,
  14. bool? isIndex,
  15. int? isIndexGroup,
  16. String? checkCondition,
  17. Collate? collate,
})

Create a field which has a relation with another table. So you can see all related children rows or a parent row Simple virtual field definition must be below:

 SqfEntityFieldRelationship(
        parentTable: tableCategory,
        deleteRule: DeleteRule.CASCADE,
        defaultValue: 1,
        ),

Implementation

const SqfEntityFieldRelationship({
  this.parentTable,
  this.deleteRule,
  this.fieldName,
  this.isPrimaryKeyField,
  this.defaultValue,
  this.minValue,
  this.maxValue,
  this.formLabelText,
  this.formDropDownTextField,
  this.relationType,
  this.manyToManyTableName,
  this.isNotNull,
  this.isUnique,
  this.isIndex,
  this.isIndexGroup,
  this.checkCondition,
  this.collate,
});