ColumnInfo constructor

const ColumnInfo({
  1. required String name,
  2. required String type,
  3. required bool isNullable,
  4. bool primaryKey = false,
  5. bool autoIncrement = false,
  6. String? defaultValue,
  7. ForeignKeyInfo? foreignKey,
})

Column information for DDL generation.

This is a simple data class that holds the information needed to generate DDL statements, decoupled from the CLI's snapshot types.

Implementation

const ColumnInfo({
  required this.name,
  required this.type,
  required this.isNullable,
  this.primaryKey = false,
  this.autoIncrement = false,
  this.defaultValue,
  this.foreignKey,
});