package cn.com.oa.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@TableName("t_user_login")
@Data
public class UserLogin {
    private Long universalid;

    @TableField("userId")
    private String userId;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @TableField("loginTime")
    private Date loginTime;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @TableField("logoutTime")
    private Date logoutTime;

    @TableField("loginState")
    private String loginState;

    @TableField("loginSessionId")
    private String loginSessionId;

    @TableField("loginIp")
    private String loginIp;

    private String remark;

    @TableField("companyId")
    private String companyId;

}
