Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ColumnMetaOptions

Options for the Column decorator.

Hierarchy

  • ColumnMetaOptions

Index

Properties

Optional converter

converter: Converter

Optional Converter to be applied on save/retrieve.

Optional hasDefault

hasDefault: boolean

Whether or not the column has a default value.

Optional isGenerated

isGenerated: boolean

Whether or not this column is auto-generated.

Optional isNullable

isNullable: boolean

Whether or not the column is nullable.

Optional isPrimary

isPrimary: boolean

Whether or not this column is the (or part of the) primary key.

Optional maxLength

maxLength: number

Max length for varchar-type fields.

Optional name

name: string

Column name. Defaults to the name of the Column-decorated property.

Optional sqlDataType

sqlDataType: string

The datatype in the database.

Generated using TypeDoc