Skip to content

create sequelize model with plain js object #14144

Discussion options

You must be logged in to vote

There are only two ways to define a Model using base sequelize, declaring a class that extends Model, or using sequelize.define (https://sequelize.org/v6/manual/model-basics.html)

Edit: In Sequelize 7 (or if you use Sequelize-TypeScript), you can also use decorators

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ephys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants