refactor(all): Удалены из БД таблицы V1
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
using PARR.DAL.Contracts;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.Models.AIHIT;
|
||||
using PARR.DAL.Models.V1;
|
||||
using System;
|
||||
|
||||
namespace PARR.DAL.Context
|
||||
{
|
||||
@@ -11,19 +9,6 @@ namespace PARR.DAL.Context
|
||||
{
|
||||
public DataContext(DbContextOptions<DataContext> options) : base(options) { }
|
||||
|
||||
#region v1
|
||||
public DbSet<V1_JobType> JobTypes { get; set; }
|
||||
public DbSet<V1_JobCategory> JobCategories { get; set; }
|
||||
public DbSet<V1_JobMode> JobModes { get; set; }
|
||||
public DbSet<V1_JobStatus> JobStatuses { get; set; }
|
||||
public DbSet<V1_Host> V1_Hosts { get; set; }
|
||||
public DbSet<V1_Job> Jobs { get; set; }
|
||||
public DbSet<V1_JobJournal> JobJournals { get; set; }
|
||||
public DbSet<V1_Application> V1_Applications { get; set; }
|
||||
public DbSet<V1_ApplicationType> V1_ApplicationTypes { get; set; }
|
||||
public DbSet<V1_ApplicationInHost> V1_ApplicationsInHosts { get; set; }
|
||||
#endregion
|
||||
|
||||
public DbSet<Host> Hosts { get; set; }
|
||||
public DbSet<EkStatus> EkStatuses { get; set; }
|
||||
public DbSet<ResponseArea> ResponseAreas { get; set; }
|
||||
@@ -64,23 +49,6 @@ namespace PARR.DAL.Context
|
||||
|
||||
var dateCreated = new DateTimeOffset(2023, 05, 01, 0, 0, 0, new TimeSpan(0));
|
||||
|
||||
modelBuilder.Entity<V1_JobMode>(f =>
|
||||
{
|
||||
f.HasData(
|
||||
new() { Id = new Guid("FBA4202C-5BAD-49C4-B076-D1CA6E1FB158"), DateCreated = dateCreated, DateModified = null, Name = JobModeEnum.auto.ToString() },
|
||||
new() { Id = new Guid("7516B952-510D-4AAA-971C-A14B184FC1D5"), DateCreated = dateCreated, DateModified = null, Name = JobModeEnum.manual.ToString() }
|
||||
);
|
||||
});
|
||||
|
||||
modelBuilder.Entity<V1_JobStatus>(f =>
|
||||
{
|
||||
f.HasData(
|
||||
new() { Id = new Guid("EDEF6DC3-ADAD-4C77-8AD1-63BB9052355A"), DateCreated = dateCreated, DateModified = null, Name = JobStatusEnum.started.ToString(), Description = "Задание запущено" },
|
||||
new() { Id = new Guid("7B945EB6-D885-4570-AFF5-8866F1F75FF2"), DateCreated = dateCreated, DateModified = null, Name = JobStatusEnum.finished.ToString(), Description = "Задание выполнено" }
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
modelBuilder.Entity<ApplicationType>(f =>
|
||||
{
|
||||
f.HasData(
|
||||
@@ -179,6 +147,7 @@ namespace PARR.DAL.Context
|
||||
);
|
||||
});
|
||||
|
||||
#region Robots
|
||||
|
||||
modelBuilder.Entity<RobotStatus>(f =>
|
||||
{
|
||||
@@ -208,6 +177,8 @@ namespace PARR.DAL.Context
|
||||
);
|
||||
});
|
||||
|
||||
#endregion
|
||||
|
||||
#region EsppSchedules
|
||||
|
||||
modelBuilder.Entity<EsppSchType>(f =>
|
||||
|
||||
Reference in New Issue
Block a user