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

/**
 * 赛事附件实体类（通用）
 * 支持多种附件类型：赛事发布、赛事规程、活动日程、成绩、奖牌榜、图片直播
 *
 * @author BladeX
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("martial_competition_attachment")
@Schema(description = "赛事附件")
public class MartialCompetitionAttachment extends TenantEntity {

	private static final long serialVersionUID = 1L;

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

	/**
	 * 附件类型
	 * info-赛事发布, rules-赛事规程, schedule-活动日程,
	 * results-成绩, medals-奖牌榜, photos-图片直播
	 */
	@Schema(description = "附件类型：info-赛事发布, rules-赛事规程, schedule-活动日程, results-成绩, medals-奖牌榜, photos-图片直播")
	private String attachmentType;

	/**
	 * 文件名称
	 */
	@Schema(description = "文件名称")
	private String fileName;

	/**
	 * 文件URL
	 */
	@Schema(description = "文件URL")
	private String fileUrl;

	/**
	 * 文件大小（字节）
	 */
	@Schema(description = "文件大小（字节）")
	private Long fileSize;

	/**
	 * 文件类型（扩展名）
	 */
	@Schema(description = "文件类型（pdf/doc/docx/xls/xlsx/jpg/png等）")
	private String fileType;

	/**
	 * 排序序号
	 */
	@Schema(description = "排序序号")
	private Integer orderNum;

	/**
	 * 状态（1-启用 0-禁用）
	 */
	@Schema(description = "状态（1-启用 0-禁用）")
	private Integer status;

}
