ColumnDef constructor

const ColumnDef(
  1. String name,
  2. DataType type, {
  3. bool primaryKey = false,
  4. bool notNull = false,
  5. bool unique = false,
  6. bool autoIncrement = false,
  7. Object? defaultValue,
  8. String? defaultExprSql,
  9. String? checkExprSql,
  10. ForeignKeyRef? references,
  11. String? generatedExprSql,
  12. bool generatedStored = false,
  13. Map<String, String>? vectorSpec,
})

Implementation

const ColumnDef(
  this.name,
  this.type, {
  this.primaryKey = false,
  this.notNull = false,
  this.unique = false,
  this.autoIncrement = false,
  this.defaultValue,
  this.defaultExprSql,
  this.checkExprSql,
  this.references,
  this.generatedExprSql,
  this.generatedStored = false,
  this.vectorSpec,
});