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

/**
 * 异常事件实体类
 *
 * @author BladeX
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("martial_exception_event")
@Schema(description = "异常事件")
public class MartialExceptionEvent extends TenantEntity {

	private static final long serialVersionUID = 1L;

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

	/**
	 * 赛程ID
	 */
	@Schema(description = "赛程ID")
	private Long scheduleId;

	/**
	 * 运动员ID
	 */
	@Schema(description = "运动员ID")
	private Long athleteId;

	/**
	 * 事件类型(1-器械故障,2-受伤,3-评分争议,4-其他)
	 */
	@Schema(description = "事件类型")
	private Integer eventType;

	/**
	 * 事件描述
	 */
	@Schema(description = "事件描述")
	private String eventDescription;

	/**
	 * 处理人
	 */
	@Schema(description = "处理人")
	private String handlerName;

	/**
	 * 处理结果
	 */
	@Schema(description = "处理结果")
	private String handleResult;

	/**
	 * 处理时间
	 */
	@Schema(description = "处理时间")
	private LocalDateTime handleTime;

	/**
	 * 状态(0-待处理,1-已处理)
	 */
	@Schema(description = "状态")
	private Integer status;

}
