• Sets the name of the column (in the database) this attribute maps to. It is a shortcut for setting the columnName option of the Attribute decorator.

    With a good naming strategy configured, you rarely need to use this decorator. Learn about naming strategies in our documentation.


    • options: string

    Returns PropertyOrGetterDescriptor


    class User extends Model<InferAttributes<User>, InferCreationAttributes<User>> {
    declare firstName: string;