package cn.com.countrygarden.bi.main.model.insuranceOrder;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class InsuranceOrderAuthority implements Serializable {
    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    private Integer id;

    /**
     * 区域编号
     */
    @Column(name="org_code")
    private String orgCode;

    /**
     * 项目编号
     */
    @Column(name="comm_code")
    private String commCode;

    /**
     * 组织类型（0项目，1区域）
     */
    @Column(name="organ_type")
    private Integer organType;

    //用户编号
    @Column(name="user_code")
    private String userCode;

    /**
     * '1为可用，0不可用'
     */
    @Column(name="enable")
    private Integer enable;
    /**
     * 创建时间
     */
    @Column(name="create_time")
    @JsonFormat(pattern="yyyy/MM/dd HH:mm",timezone = "GMT+8")
    private Date createTime;

    /**
     * 创建人
     */
    @Column(name="create_by")
    private String createBy;

    /**
     * 更新时间
     */
    @Column(name="update_time")
    @JsonFormat(pattern="yyyy/MM/dd HH:mm",timezone = "GMT+8")
    private Date updateTime;

    /**
     * 更新人
     */
    @Column(name="update_by")
    private String updateBy;


}
