Sask Vaccine Guide Code Docs
    Preparing search index...

    Function Entity

    • Class decorator that creates a table for the class.

      Parameters

      • Optionaloptions: { immutable?: boolean; tableName?: string }
        • Optionalimmutable?: boolean

          If the columns change should the table be cleared amd rebuilt. There is currently no way to add database migrations to the table because it is not needed.

        • OptionaltableName?: string

          The name of the table. Maximum 64 characters. Can contain capital and lower case letters, underscores, and $.

      Returns (constructor: Function) => void

      This must be on a table that extends BaseEntity and have exactly one primary column

      If there is no primary column