package com.sqx.modules.sendRecord.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.app.entity.UserEntity;
import com.sqx.modules.resumes.entity.Company;
import com.sqx.modules.resumes.entity.PostPush;
import com.sqx.modules.resumes.entity.Resumes;
import lombok.Data;

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

/**
 * <p>
 *
 * </p>
 *
 * @author www.javacoder.top
 * @since 2023-02-02
 */
@Data
public class SendRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录id
     */
    @TableId(type = IdType.AUTO)
    private Long recordId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 公司id
     */
    private Long companyId;

    /**
     * 公司绑定的用户id
     */
    private Long companyUserId;
    /**
     * 岗位id
     */
    private Long postPushId;

    /**
     * 1发送失败 2发送成功
     */
    private Integer status;
    /**
     * 是否已读 0否 1是
     */
    private Integer isSee;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 企业绑定的用户
     */
    @TableField(exist = false)
    private UserEntity companyEntity;
    /**
     * 企业
     */
    @TableField(exist = false)
    private Company company;
    /**
     * 招聘信息
     */
    @TableField(exist = false)
    private PostPush postPush;

    /**
     * 简历
     */
    @TableField(exist = false)
    private Resumes resumes;
}
