package com.lesingle.creation.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lesingle.creation.common.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 竞赛作品评分表实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_biz_contest_work_score")
public class ContestWorkScore extends BaseEntity {

    /**
     * 赛事 ID
     */
    @TableField("contest_id")
    private Long contestId;

    /**
     * 作品 ID
     */
    @TableField("work_id")
    private Long workId;

    /**
     * 评审分配 ID
     */
    @TableField("assignment_id")
    private Long assignmentId;

    /**
     * 评委用户 ID
     */
    @TableField("judge_id")
    private Long judgeId;

    /**
     * 评委姓名
     */
    @TableField("judge_name")
    private String judgeName;

    /**
     * 评审维度 ID
     */
    @TableField("dimension_id")
    private Long dimensionId;

    /**
     * 评审维度名称
     */
    @TableField("dimension_name")
    private String dimensionName;

    /**
     * 得分
     */
    @TableField("score")
    private BigDecimal score;

    /**
     * 评语
     */
    @TableField("comment")
    private String comment;

    /**
     * 租户 ID
     */
    @TableField("tenant_id")
    private Long tenantId;

    /**
     * 维度得分（JSON 格式）
     */
    @TableField("dimension_scores")
    private String dimensionScores;
}
