package cn.ysk.cashier.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 访问量相关
 * @author 12847
 */
@Entity
@Data
@Table(name = "tb_token")
public class TbToken implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "`id`")
    @ApiModelProperty(value = "id")
    private Integer id;
    /**
     * shopId
     */
    @Column(name = "account_id")
    private Integer accountId;

    /**
     * 成员Id
     */
    @Column(name = "staff_id")
    private Integer staffId;
    /**
     * 渠道
     */
    @Column(name = "client_type")
    private String clientType;
    /**
     * token
     */
    @Column(name = "token")
    private String token;
    /**
     * ip
     */
    @Column(name = "ip")
    private String ip;
    /**
     * 状态 1 登录 2 结束运营 3 关班
     */
    @Column(name = "status")
    private Integer status;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;
}
