/**
 *@Generated by sagacity-quickvo 5.0
 */
package cn.pojo.entity;

import java.io.Serializable;
import cn.orm.sqltoy.config.annotation.Entity;
import cn.orm.sqltoy.config.annotation.Id;
import cn.orm.sqltoy.config.annotation.Column;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
import java.math.BigInteger;
import java.time.LocalDateTime;

/**
 * @project sqltoy-quickstart
 * @author BJTU
 * @version 1.0.0 
 */
@Schema(name="TSysLogLogin",description="系统访问记录")
@Data
@Accessors(chain = true)
@Entity(tableName="t_sys_log_login",comment="系统访问记录",pk_constraint="PRIMARY")
public class TSysLogLogin implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8021284383678159807L;
/*---begin-auto-generate-don't-update-this-area--*/	
	/**
	 * jdbcType:BIGINT
	 */
	@Schema(name="id",description="访问ID",nullable=false)
	@Id(strategy="identity")
	@Column(name="id",comment="访问ID",length=19L,type=java.sql.Types.BIGINT,nullable=false,autoIncrement=true)
	private BigInteger id;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="userName",description="用户账号",nullable=true)
	@Column(name="user_name",comment="用户账号",length=30L,type=java.sql.Types.VARCHAR,nullable=true)
	private String userName;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="ipaddr",description="登录IP地址",nullable=true)
	@Column(name="ipaddr",comment="登录IP地址",length=30L,type=java.sql.Types.VARCHAR,nullable=true)
	private String ipaddr;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="loginLocation",description="登录地点",nullable=true)
	@Column(name="login_location",comment="登录地点",length=100L,type=java.sql.Types.VARCHAR,nullable=true)
	private String loginLocation;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="browser",description="浏览器类型",nullable=true)
	@Column(name="browser",comment="浏览器类型",length=30L,type=java.sql.Types.VARCHAR,nullable=true)
	private String browser;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="os",description="操作系统",nullable=true)
	@Column(name="os",comment="操作系统",length=30L,type=java.sql.Types.VARCHAR,nullable=true)
	private String os;
	
	/**
	 * jdbcType:CHAR
	 */
	@Schema(name="status",description="登录状态",nullable=true)
	@Column(name="status",comment="登录状态",length=1L,type=java.sql.Types.CHAR,nullable=true)
	private String status;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="msg",description="提示消息",nullable=true)
	@Column(name="msg",comment="提示消息",length=300L,type=java.sql.Types.VARCHAR,nullable=true)
	private String msg;
	
	/**
	 * jdbcType:DATETIME
	 */
	@Schema(name="loginTime",description="访问时间",nullable=true)
	@Column(name="login_time",comment="访问时间",length=19L,type=java.sql.Types.DATE,nullable=true)
	private LocalDateTime loginTime;
	
	/** default constructor */
	public TSysLogLogin() {
	}
	
	/** pk constructor */
	public TSysLogLogin(BigInteger id)
	{
		this.id=id;
	}
/*---end-auto-generate-don't-update-this-area--*/
}
