package org.dromara.app.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.app.domain.AppWateringLog;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.util.Date;

/**
 * 浇水记录业务对象 app_watering_log
 *
 * @author Lion Li
 * @date 2026-04-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AppWateringLog.class, reverseConvertGenerate = false)
public class AppWateringLogBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 设备ID
     */
    private String deviceNo;

    /**
     * 命令ID
     */
    private String commandId;

    /**
     * 关联排程
     */
    private Long scheduleId;

    /**
     * 开始时间
     */
    private Date startTime;

    /**
     * 结束时间
     */
    private Date endTime;

    /**
     * 持续时间
     */
    private String durationMin;

    /**
     * 浇水区域
     */
    private String zones;

    /**
     * 0-排程 1-手动
     */
    private String triggerType;

    /**
     * 备注
     */
    private String remark;
    private String status;

    /**
     * 创建时间
     */
    private Date createTime;


}
