Field constructor

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. bool? isGenerated,
  9. required bool? isUpdatedAt,
  10. required String type,
  11. List<String>? dbNames,
  12. required bool hasDefaultValue,
  13. dynamic $default,
  14. List<String>? relationFromFields,
  15. List? relationToFields,
  16. String? relationOnDelete,
  17. String? relationName,
  18. String? documentation,
})

Create a new field.

Implementation

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