Files
bd-training-exam-manager/app/model2/Judgment.js

19 lines
457 B
JavaScript
Raw Normal View History

'use strict';
module.exports = (app) => {
const { INTEGER, STRING } = app.Sequelize;
const Judgment = app.model2.define('judgment', {
id: { type: INTEGER(5), primaryKey: true, autoIncrement: true },
stem: STRING(400),
answer: INTEGER(1),
difficulty: INTEGER(3),
},{
freezeTableName: true,
timestamp: false,
createdAt: false,
updatedAt: false,
});
return Judgment;
};