package com.palmnest.model.airconditioner;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

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

/**
 * @author xc
 * @since 2023/11/2 10:07
 */
@Entity
@Table(name = "tb_airconditioner_addtime_order_amount_detail")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AirConditionerAddTimeOrderAmountDetail {
    private Long id;
    private String code;// 订单号
    private Integer roomId;// 房间id
    private BigDecimal amount;// 房间分摊金额


    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "id", unique = true, nullable = false)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "code")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Column(name = "room_id")
    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    @Column(name = "amount")
    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
}
