DbColumn constructor

const DbColumn({
  1. required String name,
  2. required DbColumnType type,
  3. bool unique = false,
  4. bool nullable = false,
  5. String? check,
  6. String? defaultValue,
  7. bool isForeignKey = false,
  8. String? reference,
  9. OnDelete? onDelete,
})

Provide a name and a type

Implementation

const DbColumn(
    {required this.name,
    required this.type,
    this.unique = false,
    this.nullable = false,
    this.check,
    this.defaultValue,
    this.isForeignKey = false,
    this.reference,
    this.onDelete});