新增功能

This commit is contained in:
2026-06-05 17:38:10 +08:00
parent 51b979c182
commit 2997f49dd7
46 changed files with 4321 additions and 1103 deletions

View File

@@ -0,0 +1,20 @@
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, TEXT, DATE } = app.Sequelize;
const UnknownBDCard = app.model3.define('unknown-bdcard', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
card_id: CHAR(8),
original_msg: TEXT,
msg_data: TEXT,
created_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: false,
});
return UnknownBDCard;
};

21
app/model3/UnknownSN.js Normal file
View File

@@ -0,0 +1,21 @@
'use strict';
module.exports = (app) => {
const { INTEGER, STRING, TEXT, DATE } = app.Sequelize;
const UnknownSN = app.model3.define('unknown-sn', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
msg_id: STRING(30),
sn_number: STRING(8),
original_msg: TEXT,
msg_data: TEXT,
created_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: false,
});
return UnknownSN;
};