Field constructor

const Field({
  1. required FieldKind kind,
  2. required String name,
  3. required bool isRequired,
  4. required bool isList,
  5. required bool isUnique,
  6. required bool isId,
  7. required bool isReadOnly,
  8. required bool isGenerated,
  9. required bool isUpdatedAt,
  10. required String type,
  11. String? dbName,
  12. required bool hasDefaultValue,
  13. dynamic $default,
  14. Iterable<String>? relationFromFields,
  15. Iterable<String>? relationToFields,
  16. String? relationOnDelete,
  17. String? relationName,
  18. String? documentation,
})

Implementation

const Field({
  required this.kind,
  required this.name,
  required this.isRequired,
  required this.isList,
  required this.isUnique,
  required this.isId,
  required this.isReadOnly,
  required this.isGenerated,
  required this.isUpdatedAt,
  required this.type,
  this.dbName,
  required this.hasDefaultValue,
  this.$default,
  this.relationFromFields,
  this.relationToFields,
  this.relationOnDelete,
  this.relationName,
  this.documentation,
});