feat(dal,domain): Таблицы роботов перенесены в схему robot. Создана таблица TemplateRenamePendings - Шаблоны находящиеся в процессе переименования
This commit is contained in:
@@ -8,6 +8,7 @@ using PARR.Domain.Entities.JobGroupEntities;
|
||||
using PARR.Domain.Entities.RobotEntities;
|
||||
using PARR.Domain.Entities.Schedule;
|
||||
using PARR.Domain.Entities.TaskEntities;
|
||||
using PARR.Domain.Entities.TemplateEntities;
|
||||
using PARR.Domain.Entities.Unit;
|
||||
using PARR.Domain.Enums;
|
||||
using PARR.Domain.Settings;
|
||||
@@ -18,34 +19,13 @@ namespace PARR.DAL.Context
|
||||
{
|
||||
public DataContext(DbContextOptions<DataContext> options) : base(options) { }
|
||||
|
||||
//public DbSet<Host> Hosts { get; set; }
|
||||
//public DbSet<WorkGroup> WorkGroups { get; set; }
|
||||
//public DbSet<AppInWorkInWorkGroup> AppInWorkInWorkGroups { get; set; }
|
||||
//public DbSet<EkStatus> EkStatuses { get; set; }
|
||||
//public DbSet<ResponseArea> ResponseAreas { get; set; }
|
||||
//public DbSet<Application> Applications { get; set; }
|
||||
//public DbSet<ApplicationType> ApplicationTypes { get; set; }
|
||||
//public DbSet<ApplicationInHost> ApplicationsInHosts { get; set; }
|
||||
|
||||
public DbSet<Template> Templates { get; set; }
|
||||
public DbSet<TemplateHistory> TemplateHistories { get; set; }
|
||||
public DbSet<TemplateStatusType> TemplateStatusTypes { get; set; }
|
||||
public DbSet<Domain.Entities.TaskStatus> TaskStatuses { get; set; }
|
||||
public DbSet<RobotStatus> RobotStatuses { get; set; }
|
||||
|
||||
public DbSet<Process> Processes { get; set; }
|
||||
public DbSet<Subprocess> Subprocesses { get; set; }
|
||||
public DbSet<Tnk> Tnks { get; set; }
|
||||
|
||||
//public DbSet<ApplicationsInWork> ApplicationsInWorks { get; set; }
|
||||
|
||||
public DbSet<Setting> Setting { get; set; }
|
||||
|
||||
public DbSet<RobotHistoryLevel> RobotHistoryLevels { get; set; }
|
||||
|
||||
public DbSet<Robot> Robots { get; set; }
|
||||
public DbSet<RobotConfiguration> RobotConfigurations { get; set; }
|
||||
public DbSet<RobotHistory> RobotHistories { get; set; }
|
||||
|
||||
#region Schedule
|
||||
|
||||
@@ -59,6 +39,8 @@ namespace PARR.DAL.Context
|
||||
public DbSet<ScheduleExcludeType> ScheduleExcludeTypes { get; set; }
|
||||
public DbSet<ScheduleResponseAreaTimeOffset> ScheduleResponseAreaTimeOffsets { get; set; }
|
||||
|
||||
public DbSet<DistributionPeriod> DistributionPeriods { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
public DbSet<AgentHistory> AgentHistories { get; set; }
|
||||
@@ -73,8 +55,6 @@ namespace PARR.DAL.Context
|
||||
|
||||
public DbSet<WeekendDay> WeekendDays { get; set; }
|
||||
|
||||
public DbSet<DistributionPeriod> DistributionPeriods { get; set; }
|
||||
|
||||
public DbSet<ParrComponent> ParrComponents { get; set; }
|
||||
|
||||
#region Units
|
||||
@@ -142,11 +122,25 @@ namespace PARR.DAL.Context
|
||||
|
||||
#region Robot
|
||||
|
||||
public DbSet<RobotHistory> RobotHistories { get; set; }
|
||||
public DbSet<RobotHistoryLevel> RobotHistoryLevels { get; set; }
|
||||
public DbSet<Robot> Robots { get; set; }
|
||||
public DbSet<Domain.Entities.RobotEntities.TaskStatus> TaskStatuses { get; set; }
|
||||
public DbSet<RobotStatus> RobotStatuses { get; set; }
|
||||
public DbSet<RobotSnapshot> RobotSnapshots { get; set; }
|
||||
public DbSet<RobotConfigurationSnapshot> RobotConfigurationSnapshots { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Template
|
||||
|
||||
public DbSet<Template> Templates { get; set; }
|
||||
public DbSet<TemplateHistory> TemplateHistories { get; set; }
|
||||
public DbSet<TemplateStatusType> TemplateStatusTypes { get; set; }
|
||||
public DbSet<TemplateRenamePending> TemplateRenamePendings { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
@@ -203,7 +197,7 @@ namespace PARR.DAL.Context
|
||||
#endregion
|
||||
|
||||
#region TaskStatus
|
||||
modelBuilder.Entity<Domain.Entities.TaskStatus>(f =>
|
||||
modelBuilder.Entity<Domain.Entities.RobotEntities.TaskStatus>(f =>
|
||||
{
|
||||
f.HasData(
|
||||
|
||||
|
||||
Reference in New Issue
Block a user