/*
 *      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_judge_invite")
@Schema(description = "裁判邀请码")
public class MartialJudgeInvite extends TenantEntity {

	private static final long serialVersionUID = 1L;

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

	/**
	 * 裁判ID
	 */
	@Schema(description = "裁判ID")
	private Long judgeId;

	/**
	 * 邀请码
	 */
	@Schema(description = "邀请码")
	private String inviteCode;

	/**
	 * 角色(judge-普通裁判,chief_judge-裁判长)
	 */
	@Schema(description = "角色")
	private String role;

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

	/**
	 * 分配项目(JSON数组)
	 */
	@Schema(description = "分配项目")
	private String projects;

	/**
	 * 过期时间
	 */
	@Schema(description = "过期时间")
	private LocalDateTime expireTime;

	/**
	 * 是否已使用(0-未使用,1-已使用)
	 */
	@Schema(description = "是否已使用")
	private Integer isUsed;

	/**
	 * 使用时间
	 */
	@Schema(description = "使用时间")
	private LocalDateTime useTime;

	/**
	 * 设备信息
	 */
	@Schema(description = "设备信息")
	private String deviceInfo;

	/**
	 * 登录IP
	 */
	@Schema(description = "登录IP")
	private String loginIp;

	/**
	 * 访问令牌
	 */
	@Schema(description = "访问令牌")
	private String accessToken;

	/**
	 * token过期时间
	 */
	@Schema(description = "token过期时间")
	private LocalDateTime tokenExpireTime;

}
