2024-05-20 11:38:48 +10:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2026-04-13 16:58:30 +10:00
|
|
|
|
using PARR.Domain.Entities.Base;
|
2023-09-19 10:01:50 +10:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
2026-04-30 10:35:31 +10:00
|
|
|
|
namespace PARR.Domain.Entities
|
2023-09-19 10:01:50 +10:00
|
|
|
|
{
|
|
|
|
|
|
[Table("Subprocesses")]
|
2024-05-20 11:38:48 +10:00
|
|
|
|
[Index(nameof(EsppId), IsUnique = true)]
|
2026-04-13 16:58:30 +10:00
|
|
|
|
public class Subprocess : IBaseEntity
|
2023-09-19 10:01:50 +10:00
|
|
|
|
{
|
|
|
|
|
|
[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 ProcessId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[ForeignKey(nameof(ProcessId))]
|
|
|
|
|
|
public Process? Process { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public ICollection<Tnk> Tnks { get; set; } = new HashSet<Tnk>();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|