package com.xy.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 设备计费表
 * </p>
 *
 * @author lijin
 * @since 2023-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "DeviceCharging对象", description = "设备计费表")
public class DeviceCharging implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty(value = "设备id")
    private Long deviceId;

    @ApiModelProperty(value = "累计续费金额")
    private Integer chargingSumMoney;

    @ApiModelProperty(value = "过期时间")
    private LocalDateTime timeout;

    @ApiModelProperty(value = "最后续费时间")
    private LocalDateTime lastChargingTime;

    @ApiModelProperty(value = "最后续费金额")
    private Integer lastChargingMoney;

    @ApiModelProperty(value = "最后续费方式")
    private Integer lastChargingPayType;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
}
