MTinyInt constructor
MTinyInt({})
Creates a TINYINT field.
length
specifies the display width (optional, typically 1-4)
Implementation
MTinyInt({
required super.name,
super.isPrimaryKey = false,
super.isAutoIncrement = false,
super.isNullable = false,
super.defaultValue = '',
super.comment,
int? length,
super.validators = const [],
}) : super(type: FieldTypes.TINYINT) {
_options = length != null ? '(${length.toString()})' : '';
}