package com.xhpc.evcs.domain;

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

@Table(name = "xhpc_rate")
@Entity
public class XhpcRate {

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

    @Column(name = "charging_station_id")
    private Long chargingStationId;

    @Column(name = "power_fee", precision = 10, scale = 5)
    private BigDecimal powerFee;

    @Column(name = "service_fee", precision = 10, scale = 5)
    private BigDecimal serviceFee;

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

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

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

    @Column(name = "create_time")
    private Instant createTime;

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

    @Column(name = "update_time")
    private Instant updateTime;

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

    @Column(name = "remark")
    private String remark;

    @Column(name = "rate_model_id")
    private Long rateModelId;

    @Column(name = "rate_value", length = 20)
    private String rateValue;

    public String getRateValue() {

        return rateValue;
    }

    public void setRateValue(String rateValue) {

        this.rateValue = rateValue;
    }

    public Long getRateModelId() {

        return rateModelId;
    }

    public void setRateModelId(Long rateModelId) {

        this.rateModelId = rateModelId;
    }

    public String getRemark() {

        return remark;
    }

    public void setRemark(String remark) {

        this.remark = remark;
    }

    public String getUpdateBy() {

        return updateBy;
    }

    public void setUpdateBy(String updateBy) {

        this.updateBy = updateBy;
    }

    public Instant getUpdateTime() {

        return updateTime;
    }

    public void setUpdateTime(Instant updateTime) {

        this.updateTime = updateTime;
    }

    public String getCreateBy() {

        return createBy;
    }

    public void setCreateBy(String createBy) {

        this.createBy = createBy;
    }

    public Instant getCreateTime() {

        return createTime;
    }

    public void setCreateTime(Instant createTime) {

        this.createTime = createTime;
    }

    public Integer getDelFlag() {

        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {

        this.delFlag = delFlag;
    }

    public Integer getStatus() {

        return status;
    }

    public void setStatus(Integer status) {

        this.status = status;
    }

    public String getName() {

        return name;
    }

    public void setName(String name) {

        this.name = name;
    }

    public BigDecimal getServiceFee() {

        return serviceFee;
    }

    public void setServiceFee(BigDecimal serviceFee) {

        this.serviceFee = serviceFee;
    }

    public BigDecimal getPowerFee() {

        return powerFee;
    }

    public void setPowerFee(BigDecimal powerFee) {

        this.powerFee = powerFee;
    }

    public Long getChargingStationId() {

        return chargingStationId;
    }

    public void setChargingStationId(Long chargingStationId) {

        this.chargingStationId = chargingStationId;
    }

    public Long getId() {

        return id;
    }

    public void setId(Long id) {

        this.id = id;
    }

}