37 lines
959 B
C#
37 lines
959 B
C#
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; }
|
|
|
|
public required string TemplateDuration { get; set; }
|
|
|
|
public required string ShortDescription { get; set; }
|
|
|
|
public required string FullDescription { get; set; }
|
|
|
|
public required string Solution { get; set; }
|
|
|
|
[ForeignKey(nameof(TnkId))]
|
|
public Tnk? Tnk { get; set; }
|
|
|
|
public ICollection<ApplicationsInWork> ApplicationsInWorks { get; set; } = new HashSet<ApplicationsInWork>();
|
|
}
|
|
}
|