You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

74 lines
1.6 KiB

/* 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;
};