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,
- String? dbName,
- required bool hasDefaultValue,
- Object? default$,
- List<
String> ? relationFromFields, - List? 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,
String? dbName,
required bool hasDefaultValue,
Object? default$,
List<String>? relationFromFields,
List<dynamic>? relationToFields,
String? relationOnDelete,
String? relationName,
String? documentation,
}) = _Field;