package com.red.circle.console.infra.database.rds.entity.admin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Timestamp;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统操作日志记录
 * </p>
 *
 * @author pengliang on  2019-05-26
 */
@Data
@Accessors(chain = true)
@TableName("sys_operation_log")
public class OperationLog implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @TableId(value = "id", type = IdType.ASSIGN_ID)
  private Long id;

  /**
   * 用户id.
   */
  @TableField("user_id")
  private Long userId;

  /**
   * 方法全类名.
   */
  @TableField("method")
  private String method;

  /**
   * 操作.
   */
  @TableField("operation")
  private String operation;

  /**
   * 参数.
   */
  @TableField("params")
  private String params;

  /**
   * ip地址.
   */
  @TableField("ip")
  private String ip;

  /**
   * 创建时间.
   */
  @TableField("create_time")
  private Timestamp createTime;


}
