using Abp.Domain.Entities.Auditing; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using WeApp.Authorization.Users; using WeApp.Configuration; namespace WeApp.TrainingCamp { /// /// 培训营分组日志信息 /// [Table("Train_CampGroupLogs")] public class GroupLogInfo : CreationAuditedEntity { public const int CommandLength = 30; public const int ScenePathLength = 500; public const int MsgLength = 500; public const int RoleNoLength = 20; public const int RoleNameLength = 50; /// /// 培训营编号 /// [MaxLength(IwbConsts.PrimaryKey)] public string CampNo { get; set; } /// /// 分组编号 /// [MaxLength(IwbConsts.PrimaryKey)] public string GroupNo { get; set; } [ForeignKey("GroupNo")] public CampGroupInfo CampGroupInfo { get; set; } /// /// 轮次 /// public int RoundIndex { get; set; } /// /// 日志类型 /// public int LogType { get; set; } /// /// 日志命令 /// [MaxLength(CommandLength)] public string LogCommand { get; set; } /// /// 日志信息 /// [MaxLength(MsgLength)] public string LogMessage { get; set; } /// /// 扩展信息 /// [MaxLength(MsgLength)] public string ExtendInfo1 { get; set; } /// /// 扩展信息 /// [MaxLength(MsgLength)] public string ExtendInfo2 { get; set; } /// /// 扩展信息 /// [MaxLength(MsgLength)] public string ExtendInfo3 { get; set; } /// /// 扩展信息 /// [MaxLength(MsgLength)] public string ExtendInfo4 { get; set; } /// /// 处理角色 /// [MaxLength(RoleNoLength)] public string RoleNo { get; set; } /// /// 角色名称 /// [MaxLength(RoleNameLength)] public string RoleName { get; set; } /// /// 情景路径 /// [MaxLength(ScenePathLength)] public string ScenePath { get; set; } /// /// 命令状态 /// public int LogState { get; set; } /// /// 得分 /// public decimal LogScore { get; set; } /// /// 父编号 /// [MaxLength(IwbConsts.PrimaryKey)] public string ParentNo { get; set; } public const int RemarkMaxLength = 500; /// /// 备注 /// [MaxLength(RemarkMaxLength)] public string Remark { get; set; } } }