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

19 lines
473 B
JavaScript

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