toColumnInfo method
Converts the column snapshot to the ColumnInfo the DDL generators consume.
Implementation
ColumnInfo toColumnInfo() {
return ColumnInfo(
name: name,
type: type,
isNullable: isNullable,
primaryKey: primaryKey,
autoIncrement: autoIncrement,
defaultValue: defaultValue,
foreignKey: foreignKey?.toForeignKeyInfo(),
);
}