Field constructor
Field({
- required FieldKind kind,
- required String name,
- required bool isRequired,
- required bool isList,
- required bool isUnique,
- required bool isId,
- required bool isReadOnly,
- bool? isGenerated,
- required bool? isUpdatedAt,
- required String type,
- List<
String> ? dbNames, - required bool hasDefaultValue,
- dynamic $default,
- List<
String> ? relationFromFields, - List? relationToFields,
- String? relationOnDelete,
- String? relationName,
- 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 = {};