Initial commit
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
using RobotNet10.ScriptEngine.Shared;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace RobotNet10.ScriptEngine.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
[Table("InstanceMissions")]
|
||||
public class InstanceMission
|
||||
{
|
||||
[Column("Id")]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[Key]
|
||||
[Required]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
[Column("MissionName")]
|
||||
[Required]
|
||||
public string MissionName { get; set; }
|
||||
|
||||
[Column("CreatedAt")]
|
||||
[Required]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[Column("Parameters")]
|
||||
public string Parameters { get; set; }
|
||||
|
||||
[Column("TotalScore")]
|
||||
[Required]
|
||||
public int TotalScore { get; set; }
|
||||
|
||||
[Column("State")]
|
||||
[Required]
|
||||
public ScriptMissionState State { get; set; }
|
||||
|
||||
[Column("Score")]
|
||||
[Required]
|
||||
public int Score { get; set; }
|
||||
|
||||
[Column("StoppedAt")]
|
||||
[Required]
|
||||
public DateTime StoppedAt { get; set; }
|
||||
|
||||
[Column("Log")]
|
||||
public string Log { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user