/*
 *      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.LocalDate;

/**
 * 参赛选手实体类
 *
 * @author BladeX
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("martial_athlete")
@Schema(description = "参赛选手")
public class MartialAthlete extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 订单ID
	 */
	@Schema(description = "订单ID")
	private Long orderId;

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

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

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

	/**
	 * 参赛编号
	 */
	@Schema(description = "参赛编号")
	private String playerNo;

	/**
	 * 性别(1-男,2-女)
	 */
	@Schema(description = "性别")
	private Integer gender;

	/**
	 * 年龄
	 */
	@Schema(description = "年龄")
	private Integer age;

	/**
	 * 身份证号
	 */
	@Schema(description = "身份证号")
	private String idCard;

	/**
	 * 证件类型(1-身份证,2-护照,3-其他)
	 */
	@Schema(description = "证件类型")
	private Integer idCardType;

	/**
	 * 出生日期
	 */
	@Schema(description = "出生日期")
	private LocalDate birthDate;

	/**
	 * 民族
	 */
	@Schema(description = "民族")
	private String nation;

	/**
	 * 联系电话
	 */
	@Schema(description = "联系电话")
	private String contactPhone;

	/**
	 * 所属单位
	 */
	@Schema(description = "所属单位")
	private String organization;

	/**
	 * 单位类别(1-学校,2-协会,3-俱乐部,4-其他)
	 */
	@Schema(description = "单位类别")
	private Integer organizationType;

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

	/**
	 * 组别
	 */
	@Schema(description = "组别")
	private String category;

	/**
	 * 出场顺序
	 */
	@Schema(description = "出场顺序")
	private Integer orderNum;

	/**
	 * 选手简介
	 */
	@Schema(description = "选手简介")
	private String introduction;

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

	/**
	 * 照片URL
	 */
	@Schema(description = "照片URL")
	private String photoUrl;

	/**
	 * 报名状态(0-待确认,1-已确认,2-已取消)
	 */
	@Schema(description = "报名状态")
	private Integer registrationStatus;

	/**
	 * 比赛状态(0-待出场,1-进行中,2-已完成)
	 */
	@Schema(description = "比赛状态")
	private Integer competitionStatus;

	/**
	 * 总分
	 */
	@Schema(description = "总分")
	private BigDecimal totalScore;

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

	/**
	 * 备注
	 */
	@Schema(description = "备注")
	private String remark;

}
