北斗导航定位通信综合实践赛服务系统

This commit is contained in:
2026-03-27 17:50:54 +08:00
commit f1d7b4895c
44 changed files with 1810 additions and 0 deletions

22
app/model4/ChoiceTopic.js Normal file
View File

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