Field constructor
const
Field({
- required FieldKind kind,
- required String name,
- required bool isRequired,
- required bool isList,
- required bool isUnique,
- required bool isId,
- required bool isReadOnly,
- bool? isGenerated,
- bool? isUpdatedAt,
- required String type,
- Iterable<
String> ? dbNames, - required bool hasDefaultValue,
- @JsonKey(name: 'default') dynamic default_,
- Iterable<
String> ? relationFromFields, - Iterable? relationToFields,
- String? relationOnDelete,
- String? relationName,
- String? documentation,
Implementation
const factory Field({
required FieldKind kind,
required String name,
required bool isRequired,
required bool isList,
required bool isUnique,
required bool isId,
required bool isReadOnly,
bool? isGenerated,
bool? isUpdatedAt,
required String type,
Iterable<String>? dbNames,
required bool hasDefaultValue,
@JsonKey(name: 'default') dynamic default_,
Iterable<String>? relationFromFields,
Iterable<dynamic>? relationToFields,
String? relationOnDelete,
String? relationName,
String? documentation,
}) = _Field;