ColumnMetadata
interface ColumnMetadata {
readonly comment?: string;
readonly dataType: string;
readonly dataTypeSchema?: string;
readonly hasDefaultValue: boolean;
readonly isAutoIncrementing: boolean;
readonly isNullable: boolean;
readonly name: string;
}§Properties
§
readonly dataType: string
[src]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.