package com.lesingle.edu.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * 任务实体
 */
@Schema(description = "任务实体")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("task")
public class Task extends BaseEntity {

    @Schema(description = "租户 ID")
    private Long tenantId;

    @Schema(description = "任务标题")
    private String title;

    @Schema(description = "任务描述")
    private String description;

    @Schema(description = "任务类型")
    private String type;

    @Schema(description = "关联绘本名称")
    private String relatedBookName;

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

    @Schema(description = "创建人 ID")
    private Long creatorId;

    @Schema(description = "创建人角色")
    private String creatorRole;

    @Schema(description = "开始日期")
    private LocalDate startDate;

    @Schema(description = "截止日期")
    private LocalDate dueDate;

    @Schema(description = "状态")
    private String status;

    @Schema(description = "附件（JSON 数组）")
    private String attachments;

}
