Column<T extends Object> constructor
Column<T extends Object> (})
Implementation
Column(
this.name, {
this.ref,
this.type,
this.isKey = false,
this.order = Order.asc,
this.family,
required String ddl,
bool isUnique = false,
String? defaultsTo,
}) : ddl = [
ddl,
if (isUnique) 'UNIQUE',
if (defaultsTo != null) 'DEFAULT $defaultsTo',
].join(' ');