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

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

24
app/model/BShortMsg.js Normal file
View File

@@ -0,0 +1,24 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, TEXT, DATE } = app.Sequelize;
const BShortMsg = app.model.define('bshort-msg', {
id: { type: INTEGER(11), primaryKey: true, autoIncrement: true },
user_uid: CHAR(15),
card_id: CHAR(8),
receiver_address: CHAR(8),
original_msg: TEXT,
send_type: INTEGER(1),
encode_type: INTEGER(1),
msg_data: TEXT,
created_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: false,
});
return BShortMsg;
};

30
app/model/BSide.js Normal file
View File

@@ -0,0 +1,30 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
const BSide = app.model.define('b-side', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
uid: CHAR(15),
salt: CHAR(24),
status: INTEGER(3),
role: INTEGER(3),
account_name: STRING(20),
password: CHAR(64),
organization: CHAR(16),
user_name: STRING(20),
phone: CHAR(11),
msg: STRING(300),
created_at: DATE,
updated_at: DATE,
login_at: DATE,
login_status: INTEGER(3)
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: true,
});
return BSide;
};

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

@@ -0,0 +1,21 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING, TEXT, DATE } = app.Sequelize;
const BSnMsg = app.model.define('bsn-msg', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
user_uid: CHAR(15),
sn_number: STRING(8),
original_msg: TEXT,
msg_data: TEXT,
created_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: false,
});
return BSnMsg;
};

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

@@ -0,0 +1,22 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, DATE } = app.Sequelize;
const BSubscribe = app.model.define('bsubscribe', {
id: { type: INTEGER(11), primaryKey: true, autoIncrement: true },
user_uid: CHAR(15),
business: INTEGER(3),
status: INTEGER(3),
type: INTEGER(3),
created_at: DATE,
updated_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: true,
});
return BSubscribe;
};

View File

@@ -0,0 +1,20 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
const BindBSNrecord = app.model.define('bind-bsnrecord', {
id: { type: INTEGER(11), primaryKey: true, autoIncrement: true },
user_uid: CHAR(15),
sn_number: STRING(8),
type: INTEGER(1),
created_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: false,
});
return BindBSNrecord;
};

20
app/model/BindBrecord.js Normal file
View File

@@ -0,0 +1,20 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, DATE } = app.Sequelize;
const BindBrecord = app.model.define('bind-brecord', {
id: { type: INTEGER(11), primaryKey: true, autoIncrement: true },
user_uid: CHAR(15),
card_id: CHAR(8),
type: INTEGER(1),
created_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: false,
});
return BindBrecord;
};

18
app/model/BuserBind.js Normal file
View File

@@ -0,0 +1,18 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR } = app.Sequelize;
const BuserBind = app.model.define('buser-bind', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
user_uid: CHAR(15),
card_id: CHAR(8),
},{
freezeTableName: true,
timestamp: false,
createdAt: false,
updatedAt: false,
});
return BuserBind;
};

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

@@ -0,0 +1,19 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, TEXT } = app.Sequelize;
const BuserSnAdmin = app.model.define('buser-snadmin', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
user_uid: CHAR(15),
length: INTEGER(3),
sn_set: TEXT,
},{
freezeTableName: true,
timestamp: true,
createdAt: false,
updatedAt: false,
});
return BuserSnAdmin;
};

18
app/model/BuserSNBind.js Normal file
View File

@@ -0,0 +1,18 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING } = app.Sequelize;
const BuserSNBind = app.model.define('buser-snbind', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
user_uid: CHAR(15),
sn_number: STRING(8),
},{
freezeTableName: true,
timestamp: true,
createdAt: false,
updatedAt: false,
});
return BuserSNBind;
};

18
app/model/BuserToken.js Normal file
View File

@@ -0,0 +1,18 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR } = app.Sequelize;
const BuserToken = app.model.define('buser-token', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
user_uid: CHAR(15),
token: CHAR(64),
},{
freezeTableName: true,
timestamp: false,
createdAt: false,
updatedAt: false,
});
return BuserToken;
};