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,
- required bool isGenerated,
- required bool isUpdatedAt,
- required String type,
- String? dbName,
- required bool hasDefaultValue,
- dynamic $default,
- Iterable<
String> ? relationFromFields, - Iterable<
String> ? relationToFields, - String? relationOnDelete,
- String? relationName,
- 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,
});