package com.palmnest.model.airconditioner;

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

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author xc
 * @since 2023/8/8 16:13
 */
@Entity
@Table(name = "tb_airconditioner_addtime_order_extend")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AirConditionerAddTimeOrderExtend implements Serializable {
    private Long id;
    private String code;//订单号
    private String roomInfos;//所有可用房间信息缓存
    private String airRules;//空调规则缓存

    @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_infos")
    public String getRoomInfos() {
        return roomInfos;
    }

    public void setRoomInfos(String roomInfos) {
        this.roomInfos = roomInfos;
    }
    @Column(name = "air_rules")
    public String getAirRules() {
        return airRules;
    }

    public void setAirRules(String airRules) {
        this.airRules = airRules;
    }
}
