23 lines
578 B
JavaScript
23 lines
578 B
JavaScript
'use strict';
|
|
|
|
module.exports = (app) => {
|
|
const { INTEGER, CHAR, DATE } = app.Sequelize;
|
|
|
|
const Monitoring = app.model.define('monitoring', {
|
|
id: { type: INTEGER(5), primaryKey: true, autoIncrement: true },
|
|
operate: INTEGER(3),
|
|
operate_msg: CHAR(200),
|
|
type: INTEGER(3),
|
|
status: INTEGER(3),
|
|
affect_entries: INTEGER(5),
|
|
user: CHAR(15),
|
|
created_at: DATE,
|
|
},{
|
|
freezeTableName: true,
|
|
timestamp: true,
|
|
createdAt: true,
|
|
updatedAt: false,
|
|
});
|
|
|
|
return Monitoring;
|
|
}; |