package com.iformall.domain.po.invest;

import com.baomidou.mybatisplus.annotation.TableName;


import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.iformall.common.LogColumn;
import com.iformall.enums.EnumInvestType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 客户需求
 *
 * @author
 * @email
 * @date 2019-09-24 14:48:11
 */
@Data
@TableName("invest_demand")
@EqualsAndHashCode(callSuper = true)
public class InvestDemandEntity extends InvestBaseEntity {

	/**
	 * 负责人
	 */
	@io.swagger.annotations.ApiModelProperty(value = "负责人", name = "owner")
	@LogColumn
	private Long owner;
	/**
	 * 客户ID
	 */
	@io.swagger.annotations.ApiModelProperty(value = "客户ID", name = "customerId")
	private Long customerId;
	/**
	 * 客户意向
	 */
	@io.swagger.annotations.ApiModelProperty(value = "客户意向", name = "intent",
			example = "\"{\"rent_area\":100,\"opening_time\": \"2019-09-03\"}\"")
	@LogColumn(COLUMN_TYPE)
	private String intent;
	/**
	 * 目标类型：0-商铺招租;1-其他
	 */
	@io.swagger.annotations.ApiModelProperty(value = "目标类型：0-商铺招租;1-其他", name = "targetType")
    private EnumInvestType targetType;
	/**
	 * 目标ID
	 */
	@io.swagger.annotations.ApiModelProperty(value = "目标ID", name = "targetId")
	private Long targetId;

	/**
	 * 更新时间
	 */
	@io.swagger.annotations.ApiModelProperty(value = "更新时间", name = "updateDate", example = "2018-10-01 12:18:48",readOnly = true)
	@JsonProperty(access = JsonProperty.Access.READ_ONLY)
	@Version
	private Date updateDate;

}
