using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities.Auditing;
using WeOnlineApp.Authorization.Users;
using WeOnlineApp.Configuration;
namespace WeOnlineApp.TrainingCamp
{
///
/// 演练日志信息
///
[Table("Train_CampPlayLogs")]
public class CampPlayLogInfo : CreationAuditedEntity
{
public const int CommandLength = 30;
public const int MsgLength = 500;
public const int RoleNameLength = 50;
public const int ScenePathLength = 100;
///
/// 培训营编号
///
[MaxLength(IwbConsts.PrimaryKey),Index]
public string CampNo { get; set; }
///
/// 演练营
///
[MaxLength(IwbConsts.PrimaryKey), Index]
public string PlayNo { get; set; }
[ForeignKey("PlayNo")]
public CampPlayInfo CampPlayInfo { get; set; }
///
/// 用户名
///
public string UserName { get; set; }
///
/// 轮次
///
public int RoundIndex { get; set; }
///
/// 日志类型
///
public int LogType { get; set; }
///
/// 情景路径
///
[MaxLength(ScenePathLength)]
public string ScenePath { get; set; }
///
/// 日志命令
///
[MaxLength(CommandLength)]
public string LogCommand { get; set; }
///
/// 日志信息
///
[MaxLength(MsgLength)]
public string LogMessage { get; set; }
///
/// 角色名称
///
[MaxLength(RoleNameLength)]
public string RoleName { get; set; }
///
/// 命令状态
///
public int LogState { get; set; }
///
/// 得分
///
public decimal LogScore { get; set; }
///
/// 父编号
///
[MaxLength(IwbConsts.PrimaryKey)]
public string ParentNo { get; set; }
public long UserId { get; set; }
}
}