MFieldChar constructor
MFieldChar({})
Creates a CHAR field.
length
specifies the exact character length (default: 255, max: 255)
Implementation
MFieldChar({
required super.name,
super.isPrimaryKey = false,
super.isAutoIncrement = false,
super.isNullable = false,
super.defaultValue = '',
super.comment,
super.validators = const [],
int length = 255,
}) : super(type: FieldTypes.CHAR) {
_options = '(${length.toString()})';
}