/*
 *      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_schedule_plan")
@Schema(description = "编排方案")
public class MartialSchedulePlan extends TenantEntity {

	private static final long serialVersionUID = 1L;

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

	/**
	 * 方案名称
	 */
	@Schema(description = "方案名称")
	private String planName;

	/**
	 * 方案类型: 1-自动生成, 2-手动调整
	 */
	@Schema(description = "方案类型")
	private Integer planType;

	/**
	 * 状态: 0-草稿, 1-已确认, 2-已发布
	 */
	@Schema(description = "状态")
	private Integer status;

	/**
	 * 比赛开始时间
	 */
	@Schema(description = "比赛开始时间")
	private LocalDateTime startTime;

	/**
	 * 比赛结束时间
	 */
	@Schema(description = "比赛结束时间")
	private LocalDateTime endTime;

	/**
	 * 场地数量
	 */
	@Schema(description = "场地数量")
	private Integer venueCount;

	/**
	 * 时间段长度(分钟)
	 */
	@Schema(description = "时间段长度")
	private Integer timeSlotDuration;

	/**
	 * 编排规则配置(JSON)
	 */
	@Schema(description = "编排规则配置")
	private String rules;

	/**
	 * 总场次
	 */
	@Schema(description = "总场次")
	private Integer totalMatches;

	/**
	 * 冲突数量
	 */
	@Schema(description = "冲突数量")
	private Integer conflictCount;

	/**
	 * 创建人ID
	 */
	@Schema(description = "创建人ID")
	private Long createdBy;

	/**
	 * 审批人ID
	 */
	@Schema(description = "审批人ID")
	private Long approvedBy;

	/**
	 * 审批时间
	 */
	@Schema(description = "审批时间")
	private LocalDateTime approvedTime;

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

}
