北斗启航科技教育平台管理系统
This commit is contained in:
22
app/model4/ChoiceTopic.js
Normal file
22
app/model4/ChoiceTopic.js
Normal file
@@ -0,0 +1,22 @@
|
||||
'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;
|
||||
};
|
||||
Reference in New Issue
Block a user