UNPKG

auth-center

Version:
37 lines (34 loc) 733 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _default; function _default(sequelize, DataTypes) { return sequelize.define('Log', { id: { type: DataTypes.BIGINT.UNSIGNED, allowNull: false, primaryKey: true, autoIncrement: true }, ip: { type: DataTypes.STRING(64), allowNull: false, comment: 'Request IP' }, user: { type: DataTypes.STRING(100), allowNull: false, comment: 'User login account' }, action: { type: DataTypes.INTEGER, allowNull: false, comment: 'User Action' } }, { tableName: 'log', comment: 'Log Table' }); } module.exports = exports.default;