• The @Table decorator is used to configure a model. It is used on a model class, and takes an object as parameter.
    Using this decorator is completely optional, you only need to use it if you want to configure one of the options of your model.

    Type Parameters


    Returns ClassDecorator


    tableName: 'users',
    timestamps: false,
    class User extends Model<InferAttributes<User>, InferCreationAttributes<User>> {}
  • Parameters

    Returns void

Generated using TypeDoc