# AlertMessage.java

    package cloud.wconnect.rateshop.entity.rateshop;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableId;
    import lombok.*;
    import lombok.experimental.Accessors;

    import java.io.Serializable;

    /**
     * <p>
     * 警报 实体类
     * </p>
     *
     * @author lichen
     * @since 2023-06-06
     */
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public class AlertMessage implements Serializable {

        private static final long serialVersionUID = 1L;

        @TableId(value = "id", type = IdType.AUTO)
        private Integer id;

        private Integer propertyId;

        /**
         * 消息规则 1：酒店最低价格变化幅度；2:酒店sold out；3: 市场趋势级别变化 4:iwc级别变化
         */
        private Integer rule;

        /**
         * 消息体
         */
        private String message;

        /**
         * 是否主动推送过（用于站外通知）
         */
        private Boolean isSent;

        /**
         * 通知触发时间戳
         */
        private Long triggerTime;

        /**
         * 入住日期（yyyyMMdd）
         */
        private Long checkInDate;

    }