Interface ColumnMetadata

Hierarchy

  • ColumnMetadata

Properties

comment?: string
dataType: string

The data type of the column as reported by the database.

NOTE: This value is whatever the database engine returns and it will be different on different dialects even if you run the same migrations. For example integer datatype in a migration will produce int4 on PostgreSQL, INTEGER on SQLite and int on MySQL.

dataTypeSchema?: string

The schema this column's data type was created in.

hasDefaultValue: boolean
isAutoIncrementing: boolean
isNullable: boolean
name: string

Generated using TypeDoc