Sask Vaccine Guide Code Docs
    Preparing search index...

    Function Column

    • Decorator for creating a column in the database.

      Parameters

      • Optionaloptions: ColumnOptions

        Properties of the row in the database see ColumnOptions, options.tsType or options.type must be set

      Returns (target: any, propertyKey: string) => void

      Returns a decorator function that will be applied to an attribute.

      This decorator must be used on a class that extends BaseEntity. The class must have a Entity on it and exactly one of the attributes must be set as a primary column.

      If the type of the attribute is not valid