北斗应用技术培训考试管理系统

This commit is contained in:
2026-03-27 17:54:10 +08:00
commit 359dff3cad
106 changed files with 9510 additions and 0 deletions

23
app/model/Application.js Normal file
View File

@@ -0,0 +1,23 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
const Application = app.model.define('application', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
user_uid: CHAR(15),
exam_uid: CHAR(10),
source: STRING(24),
status: INTEGER(3),
pay_status: INTEGER(3),
result: STRING(24),
created_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: false,
});
return Application;
};

21
app/model/Audit.js Normal file
View File

@@ -0,0 +1,21 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
const Audit = app.model.define('audit', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
user_uid: CHAR(15),
identity_card: CHAR(18),
user_name: STRING(6),
status: INTEGER(3),
created_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: false,
});
return Audit;
};

23
app/model/Examination.js Normal file
View File

@@ -0,0 +1,23 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
const Examination = app.model.define('examination', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
uid: CHAR(10),
exam_name: STRING(60),
status: INTEGER(3),
application_start: DATE,
application_end: DATE,
exam_start: DATE,
exam_end: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: false,
updatedAt: false,
});
return Examination;
};

31
app/model/Examinee.js Normal file
View File

@@ -0,0 +1,31 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
const Examinee = app.model.define('examinee', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
uid: CHAR(15),
salt: CHAR(24),
password: CHAR(64),
user_name: STRING(10),
identity_card: CHAR(18),
real_check: INTEGER(3),
workplace: STRING(60),
address: STRING(120),
phone: CHAR(11),
email: STRING(60),
referrers: STRING(60),
status: INTEGER(3),
created_at: DATE,
updated_at: DATE,
login_status: INTEGER(3),
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: true,
});
return Examinee;
};

21
app/model/Grades.js Normal file
View File

@@ -0,0 +1,21 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING } = app.Sequelize;
const Grades = app.model.define('grades', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
user_uid: CHAR(15),
exam_uid: CHAR(10),
status: INTEGER(3),
grades: STRING(5),
pass_type: INTEGER(3),
},{
freezeTableName: true,
timestamp: false,
createdAt: false,
updatedAt: false,
});
return Grades;
};

22
app/model/Importerror.js Normal file
View File

@@ -0,0 +1,22 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
const Importerror = app.model.define('importerror', {
id: { type: INTEGER(5), primaryKey: true, autoIncrement: true },
identity_card: CHAR(18),
user_name: STRING(6),
exam_uid: CHAR(10),
type: INTEGER(3),
status: INTEGER(3),
created_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: false,
});
return Importerror;
};

25
app/model/Manager.js Normal file
View File

@@ -0,0 +1,25 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
const Manager = app.model.define('manager', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
uid: CHAR(15),
salt: CHAR(24),
account_name: STRING(5),
password: CHAR(64),
role: INTEGER(3),
status: INTEGER(3),
created_at: DATE,
updated_at: DATE,
login_status: INTEGER(3),
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: true,
});
return Manager;
};

23
app/model/Monitoring.js Normal file
View File

@@ -0,0 +1,23 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, DATE } = app.Sequelize;
const Monitoring = app.model.define('monitoring', {
id: { type: INTEGER(5), primaryKey: true, autoIncrement: true },
operate: INTEGER(3),
operate_msg: CHAR(200),
type: INTEGER(3),
status: INTEGER(3),
affect_entries: INTEGER(5),
user: CHAR(15),
created_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: false,
});
return Monitoring;
};

19
app/model/Whitelist.js Normal file
View File

@@ -0,0 +1,19 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, DATE } = app.Sequelize;
const Whitelist = app.model.define('whitelist', {
id: { type: INTEGER(5), primaryKey: true, autoIncrement: true },
user_uid: CHAR(15),
type: INTEGER(3),
expired_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: false,
updatedAt: false,
});
return Whitelist;
};