Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ahilles107/e8622f2d26df53fd29b06ce9c81a15f9 to your computer and use it in GitHub Desktop.
Save ahilles107/e8622f2d26df53fd29b06ce9c81a15f9 to your computer and use it in GitHub Desktop.
const Answer = sequelize.define("question_option", {
id: {
type: Sequelize.INTEGER,
autoIncrement: true,
primaryKey: true
},
quiz_question_id: {
type: Sequelize.INTEGER,
},
text: {
type: Sequelize.STRING
},
is_correct: {
type: Sequelize.ENUM('0', '1')
}
}, {
freezeTableName: true
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment