北斗应用技术培训报名系统题库
This commit is contained in:
19
app/model2/Judgment.js
Normal file
19
app/model2/Judgment.js
Normal file
@@ -0,0 +1,19 @@
|
||||
'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;
|
||||
};
|
||||
Reference in New Issue
Block a user