/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const OperationLog = sequelize.define("operationLog", { id: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: true, field: "id", autoIncrement: true, }, time: { type: DataTypes.DATE, allowNull: false, defaultValue: null, comment: "操作时间", primaryKey: false, field: "time", autoIncrement: false }, clientType: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: "客户端类型", primaryKey: false, field: "client_type", autoIncrement: false }, content: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: "操作内容", primaryKey: false, field: "content", autoIncrement: false }, parameter: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: "操作参数", primaryKey: false, field: "parameter", autoIncrement: false }, userId: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: "操作用户ID", primaryKey: false, field: "user_id", autoIncrement: false, references: { key: "id", model: "t_user" } }, }, { tableName: "t_operation_log", comment: "", indexes: [] }); dc.models.OperationLog = OperationLog; return OperationLog; };