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