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_review_rule")
public class ContestReviewRule extends BaseEntity {

    /**
     * 竞赛 ID（为空表示默认规则）
     */
    @TableField("contest_id")
    private Long contestId;

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

    /**
     * 规则名称
     */
    @TableField("rule_name")
    private String ruleName;

    /**
     * 规则类型：default/custom
     */
    @TableField("rule_type")
    private String ruleType;

    /**
     * 总分
     */
    @TableField("total_score")
    private BigDecimal totalScore;

    /**
     * 及格分
     */
    @TableField("pass_score")
    private BigDecimal passScore;

    /**
     * 规则描述
     */
    @TableField("description")
    private String description;
    /**
     * 有效状态：1-有效，2-失效
     */
    @TableField("valid_state")
    private Integer validState;
}
