北斗启航科技教育平台管理系统

This commit is contained in:
2026-03-27 17:49:17 +08:00
commit 51b979c182
113 changed files with 7210 additions and 0 deletions

22
app/model3/BDCard.js Normal file
View File

@@ -0,0 +1,22 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, DATE } = app.Sequelize;
const BDCard = app.model3.define('bd-card', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
card_id: CHAR(8),
card_imsi: CHAR(18),
type: INTEGER(3),
status: INTEGER(3),
created_at: DATE,
updated_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: true,
});
return BDCard;
};

28
app/model3/Business.js Normal file
View File

@@ -0,0 +1,28 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
const Business = app.model3.define('business', {
id: { type: INTEGER(3), primaryKey: true, autoIncrement: true },
salt: CHAR(24),
login_url: STRING(200),
client_url: STRING(200),
temporary_id: CHAR(64),
client_id: CHAR(12),
client_secret: CHAR(64),
name: STRING(30),
type: INTEGER(3),
level: INTEGER(3),
status: INTEGER(3),
created_at: DATE,
updated_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: true,
});
return Business;
};

28
app/model3/Insiders.js Normal file
View File

@@ -0,0 +1,28 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
const Insiders = app.model3.define('insiders', {
id: { type: INTEGER(5), primaryKey: true, autoIncrement: true },
uid: CHAR(15),
salt: CHAR(24),
status: INTEGER(3),
role: INTEGER(3),
name: STRING(20),
password: CHAR(64),
department: STRING(20),
change: STRING(200),
created_at: DATE,
updated_at: DATE,
login_at: DATE,
login_status: INTEGER(3)
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: true,
});
return Insiders;
};

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

@@ -0,0 +1,23 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, DATE } = app.Sequelize;
const Monitoring = app.model3.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;
};

View File

@@ -0,0 +1,26 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
const Organization = app.model3.define('organization', {
id: { type: INTEGER(5), primaryKey: true, autoIncrement: true },
uid: CHAR(16),
organization_name: STRING(100),
address: STRING(300),
liaison_name: STRING(20),
phone: CHAR(11),
email: STRING(254),
other_information: STRING(200),
post_code: CHAR(6),
created_at: DATE,
updated_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: true,
});
return Organization;
};

20
app/model3/SNNumber.js Normal file
View File

@@ -0,0 +1,20 @@
'use strict';
module.exports = (app) => {
const { INTEGER, STRING, DATE } = app.Sequelize;
const SNNumber = app.model3.define('sn-number', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
sn_number: STRING(8),
status: INTEGER(3),
created_at: DATE,
updated_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: true,
});
return SNNumber;
};