过滤无用消息

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

View File

@@ -1,11 +1,12 @@
'use strict';
module.exports = (app) => {
const { INTEGER, TEXT, DATE } = app.Sequelize;
const { INTEGER, STRING, TEXT, DATE } = app.Sequelize;
const Unknown = app.model3.define('unknown', {
const UnknownSN = app.model3.define('unknown-sn', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
system_type: INTEGER(3),
msg_id: STRING(30),
sn_number: STRING(8),
original_msg: TEXT,
msg_data: TEXT,
created_at: DATE,
@@ -16,5 +17,5 @@ module.exports = (app) => {
updatedAt: false,
});
return Unknown;
return UnknownSN;
};