过滤无用消息

This commit is contained in:
2026-06-01 17:47:16 +08:00
parent 2398f17070
commit 4706ef9bf7
5 changed files with 66 additions and 50 deletions

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;
};