package com.yuchen.saas.manage.user.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.thinkunion.park.service.common.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nest.springwrap.core.mp.base.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 企业-园区入驻信息
 */
@Data
@TableName("saas_company_park")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "企业-园区入驻信息", description = "企业-园区入驻信息")
public class SaasCompanyPark extends BasicEntity {

	private static final long serialVersionUID = 1L;


	@ApiModelProperty(value = "企业id")
	@JsonSerialize(
			using = ToStringSerializer.class
	)
	private Long saasCompanyId;

	@ApiModelProperty(value = "企业类型1：内部入驻，2：企业入驻，3：个人入驻")
	private Integer type;

	@ApiModelProperty(value = "登记来源 1 入驻申请，2后台创建")
	private Integer source;

	@ApiModelProperty(value = "启用状态 1：启用，0：禁用")
	private Integer enable;

	@ApiModelProperty(value = "入驻时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date settleTime;

	@ApiModelProperty(value = "入驻地址")
	private String settleAddress;

	@ApiModelProperty(value = "登记附件")
	private String settleFile;

	@ApiModelProperty(value = "入驻有效期开始")
	private Date effectiveTimeStart;

	@ApiModelProperty(value = "入驻有效期结束")
	private Date effectiveTimeEnd;

	@ApiModelProperty(value = "入驻面积")
	private String settleArea;

	@ApiModelProperty(value = "审核信息")
	private String reason;

}
