package com.softwarebr.nunu.entity.res;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.time.LocalDateTime;

/**
 * 人才库（简历资源）
 * @date 2020-11-02 16:07:43
 * @author zj
 */

@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name="res_talent")
@Builder
public class Talent {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@ApiModelProperty(value = "id", required = true, example = "1")
	private Long id;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
	private LocalDateTime createDate;

	@ApiModelProperty(value = "发布者", required = true, example = "")
	private Long publisher;

	@ApiModelProperty(value = "姓名", required = true, example = "")
	private String name;

	@ApiModelProperty(value = "性别", required = true, example = "")
	private String sex;

	@ApiModelProperty(value = "出生日期", required = true, example = "")
	private String birthDay;

	@ApiModelProperty(value = "招聘省份", required = true, example = "")
	private Long provinceId;

	@ApiModelProperty(value = "招聘城市", required = true, example = "")
	private Long cityId;

	@ApiModelProperty(value = "招聘区县", required = true, example = "")
	private Long areaId;

	@ApiModelProperty(value = "擅长领域", required = true, example = "")
	@Lob
	private String expertise;

	@ApiModelProperty(value = "简历封面图", required = true, example = "")
	@Column(length = Integer.MAX_VALUE)
	private String coverUri;

	@ApiModelProperty(value = "工作经历", required = true, example = "")
	@Lob
	private String empirical;

	@ApiModelProperty(value = "合作需求", required = true, example = "")
	@Lob
	private String cooperationNeeds;

	@ApiModelProperty(value = "附件,多张以逗号,分隔", required = true, example = "")
	private String annex;

	@ApiModelProperty(value = "联系人", required = true, example = "")
	private String contact;

	@ApiModelProperty(value = "手机号码", required = true, example = "")
	private String contactPhone;

	@ApiModelProperty(value = "电子邮箱", required = true, example = "")
	private String email;

	@ApiModelProperty(value = "公开状态(1公开 2隐私 3平台可见)", required = true, example = "")
	private Integer publicity;

	@ApiModelProperty(value = "是否推荐至首页(0否 1是)", required = true, example = "")
	private Integer indexType;

	@ApiModelProperty(value = "审核状态(1待审核 2审核通过 3审核不通过)", required = true, example = "")
	private Integer verify;

	@ApiModelProperty(value = "审核备注", required = true, example = "")
	private String verifyRemark;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "审核时间", required = true, example = "2018-03-12 21:32:33")
	private LocalDateTime verifyDate;

	@ApiModelProperty(value = "删除标记0.已删除 1.未删除", required = true, example = "")
	private Integer marker;

	@ApiModelProperty(value = "是否上架(0下架 1上架) ", required = true, example = "")
	private Integer upperStatus;



}