Column constructor

const Column({
  1. NameConversion nameConversion = snakeCapitalCaseConversion,
  2. String? name,
  3. String? dartName,
  4. Type? dartType,
  5. required SQLDataType type,
  6. bool primaryKey = false,
  7. bool autoIncrement = false,
  8. dynamic idGenerator,
  9. dynamic defaultValue,
  10. bool unique = false,
  11. String? uniqueGroup,
  12. bool notNull = true,
  13. bool readonly = false,
  14. dynamic reader,
  15. dynamic writer,
})

create column annotation

Implementation

const Column({
  this.nameConversion = snakeCapitalCaseConversion,
  this.name,
  this.dartName,
  this.dartType,
  required this.type,
  this.primaryKey = false,
  this.autoIncrement = false,
  this.idGenerator,
  this.defaultValue,
  this.unique = false,
  this.uniqueGroup,
  this.notNull = true,
  this.readonly = false,
  this.reader,
  this.writer,
});