package org.dromara.app.domain;

import cn.hutool.json.JSON;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;


import java.io.Serial;
import java.util.List;
import java.util.Map;

/**
 * 排程详情对象 app_schedule_detail
 *
 * @author Lion Li
 * @date 2026-04-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value ="app_schedule_detail")
public class AppScheduleDetail extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 排程id
     */
    private Long scheduleId;

    /**
     * 周几 1-周一 2-周二 .... 7-周日
     */
    private Integer weekday;

    /**
     * 开始时间
     */

    private String  timeData;

    private String endTime;

    /**
     * 持续时间(分钟)
     */
    @TableField(value = "duration_min", typeHandler = JacksonTypeHandler.class)
    private String durationMin;

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

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

    private String status;


}
