2023-08-23 15:47:20 +10:00
|
|
|
|
using PARR.DAL.Models.Base;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
|
|
namespace PARR.DAL.Models
|
|
|
|
|
|
{
|
|
|
|
|
|
[Table("Applications")]
|
|
|
|
|
|
public class Application : IBase
|
|
|
|
|
|
{
|
|
|
|
|
|
[Key]
|
|
|
|
|
|
public Guid Id { get; set; }
|
2023-09-19 16:55:56 +10:00
|
|
|
|
|
2023-08-23 15:47:20 +10:00
|
|
|
|
public DateTimeOffset DateCreated { get; set; }
|
2023-09-19 16:55:56 +10:00
|
|
|
|
|
2023-08-23 15:47:20 +10:00
|
|
|
|
public DateTimeOffset? DateModified { get; set; }
|
2023-09-19 16:55:56 +10:00
|
|
|
|
|
2023-08-23 15:47:20 +10:00
|
|
|
|
public required string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Guid ApplicationTypeId { get; set; }
|
2023-09-19 16:55:56 +10:00
|
|
|
|
|
2023-08-23 15:47:20 +10:00
|
|
|
|
[ForeignKey(nameof(ApplicationTypeId))]
|
|
|
|
|
|
public ApplicationType? ApplicationType { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ICollection<ApplicationInHost> ApplicationsInHosts { get; set; } = new HashSet<ApplicationInHost>();
|
2023-09-19 10:01:50 +10:00
|
|
|
|
|
|
|
|
|
|
public ICollection<ApplicationsInWork> ApplicationsInWorks { get; set; } = new HashSet<ApplicationsInWork>();
|
2023-08-23 15:47:20 +10:00
|
|
|
|
}
|
|
|
|
|
|
}
|