package com.xhpc.evcs.cdjgpc.domain;

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

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 充电订单
 *
 * @author yuyang
 * @Date 2024-08-16 14:07
 */
@Table(name = "xhpc_charge_order")
@Entity
@Data
public class XhpcChargeOrder extends BaseEntity {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "charge_order_id", nullable = false)
    private Long id;

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

    @Column(name = "user_id")
    private Long userId;

    @Column(name = "terminal_id")
    private Long terminalId;

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

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

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

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

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

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

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

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

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

    @Column(name = "start_time")
    private Date startTime;

    @Column(name = "end_time")
    private Date endTime;

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

    @Column(name = "charging_degree")
    private BigDecimal chargingDegree;

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

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

    @Column(name = "amount_charged")
    private BigDecimal amountCharged;

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

    @Column(name = "charging_time_number")
    private Long chargingTimeNumber;

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

    @Column(name = "charging_amt")
    private Long chargingAmt;

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

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

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

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

    @Column(name = "station_total_warning_num")
    private Integer stationTotalWarningNum;

    @Column(name = "charging_capacity")
    private Integer chargingCapacity;

    @Column(name = "suncha_status")
    private Integer sunchaStatus;

}
