Files
parr_api/PARR.DAL/Models/Template.cs
2023-09-19 10:19:05 +10:00

78 lines
2.2 KiB
C#

using Microsoft.EntityFrameworkCore;
using PARR.DAL.Models.Base;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PARR.DAL.Models
{
[Table("Templates")]
[Index(nameof(Name), IsUnique = true)]
public class Template : IBase
{
[Key]
public Guid Id { get; set; }
public DateTimeOffset DateCreated { get; set; }
public DateTimeOffset? DateModified { get; set; }
public required string Name { get; set; }
public bool IsActive { get; set; }
//Рабочая группа из Host
public required string WorkGroup { get; set; }
// settings из Work
public required string ShortDescription { get; set; }
//settings регламентная работа. не меняется
public required string Category { get; set; }
// из Host
public required string ResponseArea { get; set; }
//works
public required string EsppDuration { get; set; }
//works
public required string EsppStartAt { get; set; }
//public required string EK { get; set; }
// settings. Возможно руководитель повыше
public required string Initiator { get; set; }
// settings из Work
public required string FullDescription { get; set; }
// settings
public required string ClosingCode { get; set; }
// settings из Work
public required string Solution { get; set; }
//public required string Process { get; set; }
//public required string SubProcess { get; set; }
//public required string TNK { get; set; }
//public required string Work { get; set; }
// исполнитель??
public required string Worker { get; set; }
public int StatusCode { get; set; }
[ForeignKey(nameof(StatusCode))]
public StatusTemplate? StatusTemplate { get; set; }
public Guid ApplicationInWorkId { get; set; }
[ForeignKey(nameof(ApplicationInWorkId))]
public ApplicationsInWork? ApplicationsInWork { get; set; }
}
}