БД, таблицы для ЕСПП, связь с app, обновлена Template

This commit is contained in:
Mikhail Trubnikov
2023-09-19 10:01:50 +10:00
parent 791b73cb21
commit 7a88a7c198
11 changed files with 1944 additions and 14 deletions

View File

@@ -1,41 +1,74 @@
using PARR.DAL.Models.Base;
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; }
//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 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 required string Status { get; set; }
public Guid ApplicationInWorkId { get; set; }
[ForeignKey(nameof(ApplicationInWorkId))]
public ApplicationsInWork? ApplicationsInWork { get; set; }
}
}