package com.template.model.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 数据源操作日志
 * </p>
 *
 * @author ceshi
 * @since 2023-12-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SmartDataSourceLog对象", description="数据源操作日志")
public class SmartDataSourceLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "log_id", type = IdType.AUTO)
    private Integer logId;

    @ApiModelProperty(value = "操作名称")
    private String logActionName;

    @ApiModelProperty(value = "操作主机ip")
    private String logActionHost;

    @ApiModelProperty(value = "操作人")
    private String logActionPeople;

    @ApiModelProperty(value = "操作模块")
    private String logActionModule;

    @ApiModelProperty(value = "业务名称")
    private String logActionBusiness;

    @ApiModelProperty(value = "操作人ip")
    private String logActionRemote;

    @ApiModelProperty(value = "操作类型：select login update delete create等")
    private String logActionClass;

    @ApiModelProperty(value = "操作状态：1成功，0失败")
    private Integer logActionStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "操作日志创建时间")
    private Date logActionCreateTime;

}
