package com.sonic.bear.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author coder
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName(value = "user_access_log", autoResultMap = true)
public class UserAccessLog {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 账号 Id */
    private Long userId;

    /**客户端类型*/
    private String clientCode;

    /** 访问时间 */
    private LocalDateTime accessTime;

}
