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-02-21 11:48:30
 * @author lilin
 */

@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name="res_invite")
@Builder
public class Invite {

	@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 inviteName;

	@ApiModelProperty(value = "公司名称", required = true, example = "")
	private String companyName;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "招聘开始时间", required = true, example = "")
	private LocalDateTime startDate;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "招聘结束时间", required = true, example = "")
	private LocalDateTime endDate;

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

	@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 = "招聘岗位(json)", required = true, example = "")
	@Column(length = Integer.MAX_VALUE)
	private String job;

	@ApiModelProperty(value = "招聘详情(text)", required = true, example = "")
	@Column(length = Integer.MAX_VALUE)
	private String detail;

	@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;



}