package com.palmnest.model.airconditioner;

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

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

/**
 * @author xc
 * @since 2023/8/9 19:48
 */
@Entity
@Table(name = "tb_airconditioner_addtime_order_history")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AirConditionerAddTimeOrderHistory {
    private Long id;
    private String orderNo;
    private String beforeUpdate;
    private String afterUpdate;
    private Date createTime;
    private String createUser;
    private String remark;
    private Integer modificationDisabled;

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

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

    @Column(name = "order_no")
    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }


    @Column(name = "before_update")
    public String getBeforeUpdate() {
        return beforeUpdate;
    }

    public void setBeforeUpdate(String beforeUpdate) {
        this.beforeUpdate = beforeUpdate;
    }

    @Column(name = "after_update")
    public String getAfterUpdate() {
        return afterUpdate;
    }

    public void setAfterUpdate(String afterUpdate) {
        this.afterUpdate = afterUpdate;
    }

    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Column(name = "create_user")
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Column(name = "modification_disabled")
    public Integer getModificationDisabled() {
        return modificationDisabled;
    }

    public void setModificationDisabled(Integer modificationDisabled) {
        this.modificationDisabled = modificationDisabled;
    }
}
