SqfEntityTable constructor

const SqfEntityTable({
  1. String? tableName,
  2. String? primaryKeyName,
  3. List<SqfEntityField>? fields,
  4. bool? useSoftDeleting,
  5. PrimaryKeyType? primaryKeyType,
  6. String? defaultJsonUrl,
  7. String? modelName,
  8. String? customCode,
  9. RelationType? relationType,
  10. String? formListTitleField,
  11. String? formListSubTitleField,
  12. ObjectType? objectType,
  13. String? sqlStatement,
  14. String? abstractModelName,
})

This class is required for TABLE definitions using in /lib/model/model.dart file Simple table definition must be below:

const tableCategory = SqfEntityTable(
tableName: 'category',
primaryKeyName: 'id',
primaryKeyType: PrimaryKeyType.integer_auto_incremental,
useSoftDeleting: false,
fields: [
  SqfEntityField('name', DbType.text, isNotNull: true),
  SqfEntityField('isActive', DbType.bool, defaultValue: true),
]);

Implementation

const SqfEntityTable({this.tableName, this.primaryKeyName, this.fields, this.useSoftDeleting, this.primaryKeyType, this.defaultJsonUrl, this.modelName, this.customCode, this.relationType, this.formListTitleField, this.formListSubTitleField, this.objectType, this.sqlStatement, this.abstractModelName});