package com.xhpc.evcs.domain;

import com.xhpc.common.core.web.domain.BaseEntity;

import javax.persistence.*;
import java.time.Instant;

@Table(name = "xhpc_internet_user")
@Entity
public class XhpcInternetUser extends BaseEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "internet_user_id", nullable = false)
    private Long internetUserId;

    @Column(name = "name", length = 30)
    private String name;

    @Column(name = "phone", length = 11)
    private String phone;

    @Column(name = "contact_name", length = 30)
    private String contactName;

    @Column(name = "contact_phone", length = 20)
    private String contactPhone;

    @Column(name = "open_bank", length = 20)
    private String openBank;

    @Column(name = "card_number", length = 100)
    private String cardNumber;

    @Column(name = "cooperation_start_time")
    private Instant cooperationStartTime;

    @Column(name = "cooperation_end_time")
    private Instant cooperationEndTime;

    @Column(name = "balance")
    private Double balance;

    @Column(name = "area_code")
    private Integer areaCode;

    @Column(name = "address", length = 50)
    private String address;

    @Column(name = "detailed_address", length = 50)
    private String detailedAddress;

    @Column(name = "commission_type")
    private Integer commissionType;

    @Column(name = "commission_rate")
    private Double commissionRate;

    @Column(name = "longitude", length = 30)
    private String longitude;

    @Column(name = "latitude", length = 30)
    private String latitude;

    @Column(name = "status")
    private Integer status;

    @Column(name = "del_flag")
    private Character delFlag;

    @Column(name = "operator_id_evcs", length = 20)
    private String operatorIdEvcs;

    public String getOperatorIdEvcs() {

        return operatorIdEvcs;
    }

    public void setOperatorIdEvcs(String operatorIdEvcs) {

        this.operatorIdEvcs = operatorIdEvcs;
    }

    public Character getDelFlag() {

        return delFlag;
    }

    public void setDelFlag(Character delFlag) {

        this.delFlag = delFlag;
    }

    public Integer getStatus() {

        return status;
    }

    public void setStatus(Integer status) {

        this.status = status;
    }

    public String getLatitude() {

        return latitude;
    }

    public void setLatitude(String latitude) {

        this.latitude = latitude;
    }

    public String getLongitude() {

        return longitude;
    }

    public void setLongitude(String longitude) {

        this.longitude = longitude;
    }

    public Double getCommissionRate() {

        return commissionRate;
    }

    public void setCommissionRate(Double commissionRate) {

        this.commissionRate = commissionRate;
    }

    public Integer getCommissionType() {

        return commissionType;
    }

    public void setCommissionType(Integer commissionType) {

        this.commissionType = commissionType;
    }

    public String getDetailedAddress() {

        return detailedAddress;
    }

    public void setDetailedAddress(String detailedAddress) {

        this.detailedAddress = detailedAddress;
    }

    public String getAddress() {

        return address;
    }

    public void setAddress(String address) {

        this.address = address;
    }

    public Integer getAreaCode() {

        return areaCode;
    }

    public void setAreaCode(Integer areaCode) {

        this.areaCode = areaCode;
    }

    public Double getBalance() {

        return balance;
    }

    public void setBalance(Double balance) {

        this.balance = balance;
    }

    public Instant getCooperationEndTime() {

        return cooperationEndTime;
    }

    public void setCooperationEndTime(Instant cooperationEndTime) {

        this.cooperationEndTime = cooperationEndTime;
    }

    public Instant getCooperationStartTime() {

        return cooperationStartTime;
    }

    public void setCooperationStartTime(Instant cooperationStartTime) {

        this.cooperationStartTime = cooperationStartTime;
    }

    public String getCardNumber() {

        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {

        this.cardNumber = cardNumber;
    }

    public String getOpenBank() {

        return openBank;
    }

    public void setOpenBank(String openBank) {

        this.openBank = openBank;
    }

    public String getContactPhone() {

        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {

        this.contactPhone = contactPhone;
    }

    public String getContactName() {

        return contactName;
    }

    public void setContactName(String contactName) {

        this.contactName = contactName;
    }

    public String getPhone() {

        return phone;
    }

    public void setPhone(String phone) {

        this.phone = phone;
    }

    public String getName() {

        return name;
    }

    public void setName(String name) {

        this.name = name;
    }

    public Long getInternetUserId() {

        return internetUserId;
    }

    public void setInternetUserId(Long id) {

        this.internetUserId = id;
    }

}
