21 lines
522 B
JavaScript
21 lines
522 B
JavaScript
|
|
'use strict';
|
||
|
|
|
||
|
|
module.exports = (app) => {
|
||
|
|
const { INTEGER, STRING, DATE } = app.Sequelize;
|
||
|
|
|
||
|
|
const Mountpoint = app.model3.define('mountpoint', {
|
||
|
|
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
|
||
|
|
mountpoint: STRING(100),
|
||
|
|
password: STRING(16),
|
||
|
|
status: INTEGER(3),
|
||
|
|
created_at: DATE,
|
||
|
|
updated_at: DATE,
|
||
|
|
},{
|
||
|
|
freezeTableName: true,
|
||
|
|
timestamp: true,
|
||
|
|
createdAt: true,
|
||
|
|
updatedAt: true,
|
||
|
|
});
|
||
|
|
|
||
|
|
return Mountpoint;
|
||
|
|
};
|