Files
account-manager/app/model4/ChoiceTopic.js

22 lines
551 B
JavaScript
Raw Permalink Normal View History

'use strict';
module.exports = (app) => {
const { INTEGER, CHAR } = app.Sequelize;
const ChoiceTopic = app.model4.define('choice-topic', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
topic: CHAR(300),
options_a: CHAR(300),
options_b: CHAR(300),
options_c: CHAR(300),
options_d: CHAR(300),
answer: CHAR(300),
},{
freezeTableName: true,
timestamp: false,
createdAt: false,
updatedAt: false,
});
return ChoiceTopic;
};