Closed alodahl closed 4 years ago
A a new model in orm.js based on this definition
user_answers
All of these columns are NOT NULL unless otherwise specified.
NOT NULL
id
user_id
users.id
question_number
is_correct
elapsed_time_ms
created_at
Please use the sequelize docs
I'd like to work on this
A a new model in orm.js based on this definition
user_answers
table / UserAnswers modelAll of these columns are
NOT NULL
unless otherwise specified.id
: primary key / integer sequenceuser_id
: string (foreign key tousers.id
)question_number
: integeris_correct
: booleanelapsed_time_ms
: integercreated_at
: timestamp (we don't need updated_at since this is immutable. this name can be configured in the sequelize model as we don't want the default camel case name)Please use the sequelize docs