ntrip-caster服务后端
This commit is contained in:
20
app/model4/TNtripMsg.js
Normal file
20
app/model4/TNtripMsg.js
Normal file
@@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = (app) => {
|
||||
const { INTEGER, CHAR, STRING, TEXT, DATE } = app.Sequelize;
|
||||
|
||||
const TNtripMsg = app.model4.define('tntrip-msg', {
|
||||
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
|
||||
user_uid: CHAR(15),
|
||||
mountpoint: STRING(100),
|
||||
original_msg: TEXT,
|
||||
created_at: DATE
|
||||
}, {
|
||||
freezeTableName: true,
|
||||
timestamp: true,
|
||||
createdAt: true,
|
||||
updatedAt: false
|
||||
});
|
||||
|
||||
return TNtripMsg;
|
||||
};
|
||||
Reference in New Issue
Block a user