/*
 *      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_adjustment_log")
@Schema(description = "编排调整日志")
public class MartialScheduleAdjustmentLog extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 编排方案ID
	 */
	@Schema(description = "编排方案ID")
	private Long planId;

	/**
	 * 操作类型: move/swap/delete/insert
	 */
	@Schema(description = "操作类型")
	private String actionType;

	/**
	 * 操作人ID
	 */
	@Schema(description = "操作人ID")
	private Long operatorId;

	/**
	 * 操作人姓名
	 */
	@Schema(description = "操作人姓名")
	private String operatorName;

	/**
	 * 操作人角色: admin/referee
	 */
	@Schema(description = "操作人角色")
	private String operatorRole;

	/**
	 * 变更前数据(JSON)
	 */
	@Schema(description = "变更前数据")
	private String beforeData;

	/**
	 * 变更后数据(JSON)
	 */
	@Schema(description = "变更后数据")
	private String afterData;

	/**
	 * 调整原因
	 */
	@Schema(description = "调整原因")
	private String reason;

	/**
	 * 操作时间
	 */
	@Schema(description = "操作时间")
	private LocalDateTime actionTime;

}
