/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.martial.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 成绩表实体类
 *
 * @author BladeX
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("martial_result")
@Schema(description = "成绩表")
public class MartialResult extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 赛事ID
	 */
	@Schema(description = "赛事ID")
	private Long competitionId;

	/**
	 * 选手ID
	 */
	@Schema(description = "选手ID")
	private Long athleteId;

	/**
	 * 项目ID
	 */
	@Schema(description = "项目ID")
	private Long projectId;

	/**
	 * 场地ID
	 */
	@Schema(description = "场地ID")
	private Long venueId;

	/**
	 * 选手姓名
	 */
	@Schema(description = "选手姓名")
	private String playerName;

	/**
	 * 队伍名称
	 */
	@Schema(description = "队伍名称")
	private String teamName;

	/**
	 * 总分(所有裁判平均分)
	 */
	@Schema(description = "总分")
	private BigDecimal totalScore;

	/**
	 * 最高分(去掉用)
	 */
	@Schema(description = "最高分")
	private BigDecimal maxScore;

	/**
	 * 最低分(去掉用)
	 */
	@Schema(description = "最低分")
	private BigDecimal minScore;

	/**
	 * 有效评分数
	 */
	@Schema(description = "有效评分数")
	private Integer validScoreCount;

	/**
	 * 原始总分
	 */
	@Schema(description = "原始总分")
	private BigDecimal originalScore;

	/**
	 * 调整后总分
	 */
	@Schema(description = "调整后总分")
	private BigDecimal adjustedScore;

	/**
	 * 难度系数
	 */
	@Schema(description = "难度系数")
	private BigDecimal difficultyCoefficient;

	/**
	 * 最终得分(总分*系数)
	 */
	@Schema(description = "最终得分")
	private BigDecimal finalScore;

	/**
	 * 允许调整范围
	 */
	@Schema(description = "允许调整范围")
	private BigDecimal adjustRange;

	/**
	 * 调整说明
	 */
	@Schema(description = "调整说明")
	private String adjustNote;

	/**
	 * 排名
	 */
	@Schema(description = "排名")
	private Integer ranking;

	/**
	 * 奖牌(1-金牌,2-银牌,3-铜牌)
	 */
	@Schema(description = "奖牌")
	private Integer medal;

	/**
	 * 是否最终成绩(0-否,1-是)
	 */
	@Schema(description = "是否最终成绩")
	private Integer isFinal;

	/**
	 * 发布时间
	 */
	@Schema(description = "发布时间")
	private LocalDateTime publishTime;

}
