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.
@Table
@Table({ tableName: 'users', timestamps: false,})class User extends Model<InferAttributes<User>, InferCreationAttributes<User>> {} Copy
@Table({ tableName: 'users', timestamps: false,})class User extends Model<InferAttributes<User>, InferCreationAttributes<User>> {}
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.