Files

21 lines
520 B
JavaScript
Raw Permalink Normal View History

2026-05-19 17:12:10 +08:00
'use strict';
module.exports = (app) => {
2026-06-01 17:47:16 +08:00
const { INTEGER, STRING, TEXT, DATE } = app.Sequelize;
2026-05-19 17:12:10 +08:00
2026-06-01 17:47:16 +08:00
const UnknownSN = app.model3.define('unknown-sn', {
2026-05-19 17:12:10 +08:00
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
2026-06-01 17:47:16 +08:00
msg_id: STRING(30),
sn_number: STRING(8),
2026-05-19 17:12:10 +08:00
original_msg: TEXT,
msg_data: TEXT,
created_at: DATE,
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: false,
});
2026-06-01 17:47:16 +08:00
return UnknownSN;
2026-05-19 17:12:10 +08:00
};