package cn.iocoder.yudao.module.energy.dal.dataobject.price;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 站点价格 DO
 */
@TableName("energy_station_price")
@KeySequence("energy_station_price_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class EnergyStationPriceDO extends BaseDO {

    /**
     * 主键
     */
    @TableId
    private Long id;

    /**
     * 站点ID
     */
    private Long stationId;

    /**
     * 客户ID
     */
    private Long customerId;

    /**
     * 成本价
     */
    private BigDecimal costPrice;

    /**
     * 客户价
     */
    private BigDecimal customerPrice;

    /**
     * 生效日期
     */
    private LocalDate effectiveDate;

    /**
     * 失效日期
     */
    private LocalDate expiryDate;

    /**
     * 状态
     */
    private Integer status;

}
