Add UserAnswers model and DB schema to orm.js #72
Labels
backend
GHC2020 Project
GraceHopperOSD
Reserved for GHC Open Source Day!
Hacktoberfest
Priority 1
Do first!
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
The text was updated successfully, but these errors were encountered: