GeneratedColumn<T extends Object> constructor

GeneratedColumn<T extends Object>(
  1. String $name,
  2. String tableName,
  3. bool $nullable, {
  4. T? clientDefault()?,
  5. required BaseSqlType<T> type,
  6. void defaultConstraints(
    1. GenerationContext
    )?,
  7. String? $customConstraints,
  8. Expression<T>? defaultValue,
  9. VerificationResult additionalChecks(
    1. T?,
    2. VerificationMeta
    )?,
  10. bool requiredDuringInsert = false,
  11. GeneratedAs? generatedAs,
  12. Expression<bool> check()?,
  13. bool hasAutoIncrement = false,
})

Used by generated code.

Implementation

GeneratedColumn(
  this.$name,
  this.tableName,
  this.$nullable, {
  this.clientDefault,
  required this.type,
  void Function(GenerationContext)? defaultConstraints,
  this.$customConstraints,
  this.defaultValue,
  this.additionalChecks,
  this.requiredDuringInsert = false,
  this.generatedAs,
  this.check,
  this.hasAutoIncrement = false,
}) : _defaultConstraints = defaultConstraints;