19 lines
430 B
JavaScript
19 lines
430 B
JavaScript
'use strict';
|
|
|
|
module.exports = (app) => {
|
|
const { INTEGER, CHAR, STRING } = app.Sequelize;
|
|
|
|
const TNtripAdmin = app.model4.define('tntrip-admin', {
|
|
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
|
|
user_uid: CHAR(15),
|
|
mountpoint: STRING(100),
|
|
password: STRING(16)
|
|
}, {
|
|
freezeTableName: true,
|
|
timestamp: false,
|
|
createdAt: false,
|
|
updatedAt: false
|
|
});
|
|
|
|
return TNtripAdmin;
|
|
}; |