2023-06-13 13:57:55 +10:00
|
|
|
|
using PARR.DAL.Models.Base;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
|
|
namespace PARR.DAL.Models
|
|
|
|
|
|
{
|
2023-06-15 10:14:27 +10:00
|
|
|
|
[Table("ApplicationsInHosts")]
|
2023-06-13 13:57:55 +10:00
|
|
|
|
public class ApplicationInHost : IBase
|
|
|
|
|
|
{
|
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
public DateTimeOffset DateCreated { get; set; }
|
|
|
|
|
|
public DateTimeOffset? DateModified { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Guid ApplicationId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[ForeignKey(nameof(ApplicationId))]
|
|
|
|
|
|
public Application? Application { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Guid HostId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[ForeignKey(nameof(HostId))]
|
|
|
|
|
|
public Host? Host { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|