Files
parr_api/PARR.DAL/Models/Template.cs

75 lines
1.9 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; }
//??? Рабочая группа
public required string WorkGroup { get; set; }
public required string ShortDescription { get; set; }
//settings ? регламентная работа
public required string Category { get; set; }
// ДВС, ??
public required string ResponseArea { get; set; }
//works ??
public required string Duration { get; set; }
//public required string EK { get; set; }
// settings
public required string Initiator { get; set; }
public required string FullDescription { get; set; }
// settings
public required string ClosingCode { get; set; }
// settings
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; }
}
}