2024-09-09 15:48:49 +10:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
using PARR.DAL.Models.Base;
|
2024-09-09 10:08:07 +10:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
|
|
namespace PARR.DAL.Models
|
|
|
|
|
|
{
|
|
|
|
|
|
[Table("JobEkMasks")]
|
2024-09-09 15:48:49 +10:00
|
|
|
|
[Index(nameof(JobAutoControlId), nameof(Name), IsUnique = true)]
|
2024-09-09 10:08:07 +10:00
|
|
|
|
public class JobEkMask : IBase
|
|
|
|
|
|
{
|
|
|
|
|
|
[Key]
|
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public DateTimeOffset DateCreated { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[NotMapped]
|
|
|
|
|
|
public DateTimeOffset? DateModified { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public required string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Guid JobAutoControlId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[ForeignKey(nameof(JobAutoControlId))]
|
|
|
|
|
|
public JobAutoControl? JobAutoControl { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|