import { type ColumnOptions } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";
Describes all column's options.
Properties
Column type's length. Used only on some column types. For example type = "string" and length = "100" means that ORM will create a column with type varchar(100).
Column type's display width. Used only on some column types in MySQL. For example, INT(4) specifies an INT with a display width of four digits.
Indicates if column value is not updated by "save" operation. It means you'll be able to write this value only when you first time insert the object. Default value is "false".
Indicates if column value is updated by "save" operation. If false, you'll be able to write this value only when you first time insert the object. Default value is "true".
Indicates if column is always selected by QueryBuilder and find operations. Default value is "true".
Indicates if this column is a primary key. Same can be achieved when @PrimaryColumn decorator is used.
The precision for a decimal (exact numeric) column (applies only for decimal column), which is the maximum number of digits that are stored for the values.
The scale for a decimal (exact numeric) column (applies only for decimal column), which represents the number of digits to the right of the decimal point and must not be greater than precision.
Puts ZEROFILL attribute on to numeric column. Works only for MySQL. If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to this column
Indicates if this column is an array. Can be simply set to true or array length can be specified. Supported only by postgres.