Model constructor

Model({
  1. required String name,
  2. String? dbName,
  3. required List<Field> fields,
  4. Map<String, Field>? fieldsMap,
  5. required List<List<String>> uniqueFields,
  6. required List<UniqueIndex> uniqueIndexes,
  7. String? documentation,
  8. PrimaryKey? primaryKey,
})

Create a new model.

Implementation

Model({
  required this.name,
  this.dbName,
  required this.fields,
  this.fieldsMap,
  required this.uniqueFields,
  required this.uniqueIndexes,
  this.documentation,
  this.primaryKey,
}) : extra = {};