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

/**
 * 赛程编排明细实体类(场地时间段分配)
 *
 * @author BladeX
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("martial_schedule_detail")
@Schema(description = "赛程编排明细(场地时间段分配)")
public class MartialScheduleDetail extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 分组ID
	 */
	@Schema(description = "分组ID")
	private Long scheduleGroupId;

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

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

	/**
	 * 场地名称
	 */
	@Schema(description = "场地名称")
	private String venueName;

	/**
	 * 比赛日期
	 */
	@Schema(description = "比赛日期")
	private LocalDate scheduleDate;

	/**
	 * 时间段(morning/afternoon)
	 */
	@Schema(description = "时间段(morning/afternoon)")
	private String timePeriod;

	/**
	 * 时间点(08:30/13:30)
	 */
	@Schema(description = "时间点(08:30/13:30)")
	private String timeSlot;

	/**
	 * 时间段索引(0=第1天上午,1=第1天下午,2=第2天上午,...)
	 */
	@Schema(description = "时间段索引")
	private Integer timeSlotIndex;

	/**
	 * 预计开始时间
	 */
	@Schema(description = "预计开始时间")
	private LocalDateTime estimatedStartTime;

	/**
	 * 预计结束时间
	 */
	@Schema(description = "预计结束时间")
	private LocalDateTime estimatedEndTime;

	/**
	 * 预计时长(分钟)
	 */
	@Schema(description = "预计时长(分钟)")
	private Integer estimatedDuration;

	/**
	 * 参赛人数
	 */
	@Schema(description = "参赛人数")
	private Integer participantCount;

	/**
	 * 场内顺序
	 */
	@Schema(description = "场内顺序")
	private Integer sortOrder;

}
