create sequelize model with plain js object #14144
Answered
by
ephys
muhammadumerfarooq
asked this question in
Help & Questions
-
Hi, |
Beta Was this translation helpful? Give feedback.
Answered by
ephys
Feb 20, 2022
Replies: 1 comment
-
There are only two ways to define a Model using base sequelize, declaring a class that extends Edit: In Sequelize 7 (or if you use Sequelize-TypeScript), you can also use decorators |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ephys
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are only two ways to define a Model using base sequelize, declaring a class that extends
Model
, or usingsequelize.define
(https://sequelize.org/v6/manual/model-basics.html)Edit: In Sequelize 7 (or if you use Sequelize-TypeScript), you can also use decorators