package com.lesingle.modules.biz.review.entity;

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

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("t_biz_contest_work_judge_assignment")
@Schema(description = "活动作品评委分配实体")
public class BizContestWorkJudgeAssignment implements Serializable {

    @Schema(description = "主键ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "活动ID")
    @TableField("contest_id")
    private Long contestId;

    @Schema(description = "作品ID")
    @TableField("work_id")
    private Long workId;

    @Schema(description = "评委ID")
    @TableField("judge_id")
    private Long judgeId;

    @Schema(description = "分配时间")
    @TableField("assignment_time")
    private LocalDateTime assignmentTime;

    @Schema(description = "状态：assigned/reviewing/completed")
    private String status;

    @Schema(description = "创建人ID")
    private Integer creator;

    @Schema(description = "修改人ID")
    private Integer modifier;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @TableField("modify_time")
    private LocalDateTime modifyTime;
}
