ColumnSchema constructor

const ColumnSchema(
  1. String name, {
  2. required String type,
  3. bool isNullable = false,
  4. bool? isAutoIncrement,
  5. String? defaultValue,
})

Implementation

const ColumnSchema(
  this.name, {
  required this.type,
  this.isNullable = false,
  bool? isAutoIncrement,
  this.defaultValue,
}) : isAutoIncrement = isAutoIncrement ?? (type == 'serial');