package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 系统管理员日志表
 * </p>
 *
 * @author XKF
 * @since 2024-05-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SYSTEMMANAGERLOG")
@ApiModel(value="Systemmanagerlog对象", description="系统管理员日志表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
@KeySequence(value = "SEQ_SYSTEMMANAGERLOG")
public class Systemmanagerlog extends Model<Systemmanagerlog> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    @TableId(value="autoid", type=IdType.INPUT)
    private Long autoid;

    @ApiModelProperty(value = "用户类型 - 1- 交易所管理员   2-机构管理员")
    @TableField("RELETYPE")
    private Integer reletype;

    @ApiModelProperty(value = "交易日")
    @TableField("TRADEDATE")
    private String tradedate;

    @ApiModelProperty(value = "操作用户ID")
    @TableField("USERID")
    private Long userid;

    @ApiModelProperty(value = "登录账号")
    @TableField("LOGINCODE")
    private String logincode;

    @ApiModelProperty(value = "用户姓名")
    @TableField("USERNAME")
    private String username;

    @ApiModelProperty(value = "所属机构ID")
    @TableField("PARENTUSERID")
    private Long parentuserid;

    @ApiModelProperty(value = "资源代码,对应菜单代码")
    @TableField("RESOURCECODE")
    private String resourcecode;

    @ApiModelProperty(value = "资源名")
    @TableField("RESOURCENAME")
    private String resourcename;

    @ApiModelProperty(value = "操作内容")
    @TableField("CONTENT")
    private String content;

    @ApiModelProperty(value = "更新前")
    @TableField("OLDVALUE")
    private String oldvalue;

    @ApiModelProperty(value = "更新后")
    @TableField("NEWVALUE")
    private String newvalue;

    @ApiModelProperty(value = "操作时间")
    @TableField("OPERATETIME")
    private Date operatetime;

    @ApiModelProperty(value = "IP")
    @TableField("IP")
    private String ip;

    @ApiModelProperty(value = "NUMBER")
    @TableField("PORT")
    private Integer port;

    @ApiModelProperty(value = "备份")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "旧值")
    @TableField("PREVALUE")
    private String prevalue;

    @ApiModelProperty(value = "新值")
    @TableField("CNEWVALUE")
    private String cnewvalue;

    @ApiModelProperty(value = "日志类型 - 1:自动 2:手动")
    @TableField("LOGWRITETYPE")
    private Integer logwritetype;

    @ApiModelProperty(value = "操作类型 - 1:新增 2:修改 3:删除 4:激活 5:注销 6:审核")
    @TableField("LOGOPERATORTYPE")
    private Integer logoperatortype;

    @ApiModelProperty(value = "操作数据ID")
    @TableField("OPERATORDATAID")
    private String operatordataid;


    @Override
    public Serializable pkVal() {
        return this.autoid;
    }

}
