NumberPropertyMetadata: BasePropertyMetadata & WithDefaultMetadata<number> & {
    enum: AnyEnum | undefined;
    max: number | undefined;
    min: number | undefined;
    primary: boolean;
    type: "number";
    unique: boolean;
}

Metadata for number properties.

Type declaration

  • enum: AnyEnum | undefined

    An enum that this property is one of.

  • max: number | undefined

    The maximum value of the property.

  • min: number | undefined

    The minimum value of the property.

  • primary: boolean

    Whether or not the property is a primary key. Enabling this also sets 'unique' to true.

  • type: "number"

    The type of the property.

  • unique: boolean

    Whether or not the property should be unique.