package com.tuoheng.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName t_tenant_item
 */
@TableName(value ="t_tenant_item")
@Data
public class TenantItem implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    private Long createUser;

    /**
     * 
     */
    private Long updateUser;

    /**
     * 销售人员id
     */
    private Long markerId;

    /**
     * 租户id
     */
    private Long tenantId;
    /**
     * 区域id
     */
    private Long areaId;

    /**
     * 立项编号
     */
    private String projectCode;

    /**
     * 合同编号
     */
    private String contractCode;

    /**
     * 项目起始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date beginTime;

    /**
     * 项目失效时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}