SqfEntityTable constructor
const
SqfEntityTable({
- String? tableName,
- String? primaryKeyName,
- List<
SqfEntityField> ? fields, - bool? useSoftDeleting,
- PrimaryKeyType? primaryKeyType,
- String? defaultJsonUrl,
- String? modelName,
- String? customCode,
- RelationType? relationType,
- String? formListTitleField,
- String? formListSubTitleField,
- ObjectType? objectType,
- String? sqlStatement,
- 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});