БД, таблицы для ЕСПП, связь с 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

28
PARR.DAL/Models/Work.cs Normal file
View File

@@ -0,0 +1,28 @@
using PARR.DAL.Models.Base;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PARR.DAL.Models
{
[Table("Works")]
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; }
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>();
}
}