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

/**
 * 扣分项配置实体类
 *
 * @author BladeX
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("martial_deduction_item")
@Schema(description = "扣分项配置")
public class MartialDeductionItem extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 扣分项名称
	 */
	@Schema(description = "扣分项名称")
	private String itemName;

	/**
	 * 扣分项编码
	 */
	@Schema(description = "扣分项编码")
	private String itemCode;

	/**
	 * 扣分值
	 */
	@Schema(description = "扣分值")
	private BigDecimal deductionPoint;

	/**
	 * 分类
	 */
	@Schema(description = "分类")
	private String category;

	/**
	 * 适用项目(JSON数组)
	 */
	@Schema(description = "适用项目")
	private String applicableProjects;

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

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

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

	/**
	 * 项目名称
	 */
	@TableField(exist = false)
	@Schema(description = "项目名称")
	private String projectName;

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

}
