Sask Vaccine Guide Code Docs
    Preparing search index...

    Function PrimaryGeneratedColumn

    • Decorator for marking a property as the primary key.

      Parameters

      • Optionaloptions: Omit<ColumnOptions, "isPrimary">

        Properties of the row in the database see ColumnOptions. must define options.tsType or options.type.

      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 there can only be one primary column.