Files

28 lines
704 B
JavaScript
Raw Permalink Normal View History

'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
const Insiders = app.model3.define('insiders', {
id: { type: INTEGER(5), primaryKey: true, autoIncrement: true },
uid: CHAR(15),
salt: CHAR(24),
status: INTEGER(3),
role: INTEGER(3),
name: STRING(20),
password: CHAR(64),
department: STRING(20),
change: STRING(200),
created_at: DATE,
updated_at: DATE,
login_at: DATE,
login_status: INTEGER(3)
},{
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: true,
});
return Insiders;
};