package com.sqx.modules.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sqx.modules.resumes.entity.Company;
import com.sqx.modules.resumes.entity.PostPush;
import com.sqx.modules.resumes.entity.Resumes;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author liyuan
 * @description user_browse
 * @date 2021-08-12
 */
@Data
@ApiModel("user_browse")
public class UserBrowse implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 浏览id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("浏览id")
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 1个人 2企业
     */
    private Integer browseType;

    /**
     * 岗位id
     */
    private Long postPushId;

    /**
     * 简历id
     */
    private Long resumesId;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    /**
     * 简历对应的用户id
     */
    private Long resumesUserId;
    /**
     * 岗位对应的公司id
     */
    private Long postPushCompanyId;

    @TableField(exist = false)
    private PostPush postPush;

    @TableField(exist = false)
    private Resumes resumes;


}
