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