Created
July 21, 2017 06:33
-
-
Save ahilles107/e8622f2d26df53fd29b06ce9c81a15f9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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