feat(api,dal): удалена старая таблица Works. Переделаны запросы в API из в Works в Jobs
This commit is contained in:
@@ -105,8 +105,8 @@ namespace PARR.DAL.Models
|
||||
/// </summary>
|
||||
public string? AgentScript { get; set; }
|
||||
|
||||
[ForeignKey(nameof(WorkId))]
|
||||
public Work? Work { get; set; }
|
||||
//[ForeignKey(nameof(WorkId))]
|
||||
//public Work? Work { get; set; }
|
||||
|
||||
[ForeignKey(nameof(ApplicationId))]
|
||||
public Application? Application { get; set; }
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace PARR.DAL.Models
|
||||
[ForeignKey(nameof(SubprocessId))]
|
||||
public Subprocess? Subprocess { get; set; }
|
||||
|
||||
public ICollection<Work> Works { get; set; } = new HashSet<Work>();
|
||||
|
||||
public ICollection<Job.Job> Jobs { get; set; } = new HashSet<Job.Job>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PARR.DAL.Models.Base;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace PARR.DAL.Models
|
||||
{
|
||||
[Table("Works")]
|
||||
[Index(nameof(EsppId), IsUnique = true)]
|
||||
public class Work : IBase
|
||||
{
|
||||
[Key]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public DateTimeOffset DateCreated { get; set; }
|
||||
|
||||
public DateTimeOffset? DateModified { get; set; }
|
||||
|
||||
public required string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Маска для динамического формирования имени шаблона
|
||||
/// </summary>
|
||||
public required string TemplateNameMask { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Короткое имя, для формирования имени шаблона
|
||||
/// </summary>
|
||||
public string? TemplateSuffix { get; set; }
|
||||
|
||||
public int EsppId { get; set; }
|
||||
|
||||
public Guid TnkId { get; set; }
|
||||
|
||||
[ForeignKey(nameof(TnkId))]
|
||||
public Tnk? Tnk { get; set; }
|
||||
|
||||
public ICollection<ApplicationsInWork> ApplicationsInWorks { get; set; } = new HashSet<ApplicationsInWork>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user