Model constructor

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

Implementation

const factory Model({
  required String name,
  String? dbName,
  required List<Field> fields,
  required List<List<String>> uniqueFields,
  required List<UniqueIndex> uniqueIndexes,
  String? documentation,
  PrimaryKey? primaryKey,
  bool? isGenerated,
}) = _Model;