package com.reading.platform.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

@Data
@Schema(description = "Task Create Request")
public class TaskCreateRequest {

    @NotBlank(message = "Task title is required")
    @Schema(description = "Task title")
    private String title;

    @Schema(description = "Description")
    private String description;

    @Schema(description = "Task type: reading, homework, activity")
    private String type;

    @Schema(description = "Course ID")
    private Long courseId;

    @Schema(description = "Start date")
    private LocalDate startDate;

    @Schema(description = "Due date")
    private LocalDate dueDate;

    @Schema(description = "Attachments (JSON array)")
    private String attachments;

    @Schema(description = "Target type: class, student")
    private String targetType;

    @Schema(description = "Target IDs")
    private List<Long> targetIds;

}
