boolean method

Column boolean(
  1. String name, {
  2. bool isNullable = false,
  3. bool? defaultValue,
  4. String? comment,
  5. String? after,
})

Adds a boolean column (e.g. BOOLEAN / TINYINT(1)) to the model's schema.

Implementation

Column boolean(
  String name, {
  bool isNullable = false,
  bool? defaultValue,
  String? comment,
  String? after,
}) {
  return column(Column(
    name: name,
    type: ColumnType.boolean,
    isNullable: isNullable,
    defaultValue: defaultValue,
    comment: comment,
    after: after,
  ));
}