feat(api): AgentTask, AgentHistory
This commit is contained in:
@@ -43,6 +43,9 @@ namespace PARR.DAL.Context
|
||||
public DbSet<EsppSchTypeSchedule> EsppSchTypeSchedules { get; set; }
|
||||
public DbSet<EsppSchValue> EsppSchValues { get; set; }
|
||||
|
||||
public DbSet<AgentHistory> AgentHistories { get; set; }
|
||||
public DbSet<AgentHistoryLevel> AgentHistoryLevels { get; set; }
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
base.OnModelCreating(modelBuilder);
|
||||
@@ -318,6 +321,14 @@ namespace PARR.DAL.Context
|
||||
|
||||
#endregion
|
||||
|
||||
modelBuilder.Entity<AgentHistoryLevel>(f =>
|
||||
{
|
||||
f.HasData(
|
||||
new { Id = (int)AgentHistoryLevelEnum.Start, Name = AgentHistoryLevelEnum.Start.ToString(), Description= "Агент начал выполнять задание" },
|
||||
new { Id = (int)AgentHistoryLevelEnum.End, Name = AgentHistoryLevelEnum.End.ToString(), Description = "Агент завершил выполнение задания" }
|
||||
);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user