package com.sifang.modules.customer.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "crm_customer_yx_authorization")
public class CrmCustomerYxAuthorization {

    private String id;
    // 业主名称
    private String name;
    // 手机号
    private String mobile;
    // 证件号码
    private String idCode;
    // 信息使用授权状态：1.未授权 2.已发起 3.已授权
    private String authorization;
    // 授权合同的E签宝的流程id
    private String signFlowId;
    // 授权合同地址
    private String authorizationContractPath;
    //所属资方
    private String partnerId;
    // 创建时间
    private Date createTime;
    // 签署时间
    private Date signTime;
    //备案类型
    private String filingType;

    private String oldFlag;


    @Id
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "uuid")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getIdCode() {
        return idCode;
    }

    public void setIdCode(String idCode) {
        this.idCode = idCode;
    }

    public String getAuthorization() {
        return authorization;
    }

    public void setAuthorization(String authorization) {
        this.authorization = authorization;
    }

    public String getSignFlowId() {
        return signFlowId;
    }

    public void setSignFlowId(String signFlowId) {
        this.signFlowId = signFlowId;
    }

    public String getAuthorizationContractPath() {
        return authorizationContractPath;
    }

    public void setAuthorizationContractPath(String authorizationContractPath) {
        this.authorizationContractPath = authorizationContractPath;
    }

    public String getPartnerId() {
        return partnerId;
    }

    public void setPartnerId(String partnerId) {
        this.partnerId = partnerId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getSignTime() {
        return signTime;
    }

    public void setSignTime(Date signTime) {
        this.signTime = signTime;
    }

    public String getFilingType() {
        return filingType;
    }
    public void setFilingType(String filingType) {
        this.filingType = filingType;
    }

    public String getOldFlag() {
        return oldFlag;
    }

    public void setOldFlag(String oldFlag) {
        this.oldFlag = oldFlag;
    }

    @Override
    public String toString() {
        return "CrmCustomerYxAuthorization{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", mobile='" + mobile + '\'' +
                ", idCode='" + idCode + '\'' +
                ", authorization='" + authorization + '\'' +
                ", signFlowId='" + signFlowId + '\'' +
                ", authorizationContractPath='" + authorizationContractPath + '\'' +
                ", partnerId='" + partnerId + '\'' +
                ", createTime=" + createTime +
                ", signTime=" + signTime +
                ", filingType='" + filingType + '\'' +
                ", oldFlag='" + oldFlag + '\'' +
                '}';
    }
}
