2023-02-22 12:12:38 +01:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
|
|
namespace WebAPI.Models
|
|
|
|
|
|
{
|
2023-06-25 19:13:13 +02:00
|
|
|
|
public enum LayerType
|
|
|
|
|
|
{
|
|
|
|
|
|
import,
|
2023-08-22 19:26:08 +02:00
|
|
|
|
processed,
|
|
|
|
|
|
administration,
|
2023-06-25 19:13:13 +02:00
|
|
|
|
}
|
2023-02-22 12:12:38 +01:00
|
|
|
|
public class Layer
|
|
|
|
|
|
{
|
|
|
|
|
|
#region Properties
|
|
|
|
|
|
[Key]
|
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
[Required]
|
2023-06-25 19:08:26 +02:00
|
|
|
|
public int Number { get; set; }
|
2023-02-22 12:12:38 +01:00
|
|
|
|
[Required]
|
|
|
|
|
|
public string? Source { get; set; }
|
|
|
|
|
|
[Required]
|
2023-10-20 13:56:40 +02:00
|
|
|
|
public string Name { get; set; }
|
2023-02-22 12:12:38 +01:00
|
|
|
|
[Required]
|
2023-07-04 20:07:46 +02:00
|
|
|
|
public LayerType Type { get; set; }
|
|
|
|
|
|
[Required]
|
2023-02-22 12:12:38 +01:00
|
|
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public DateTime ModifiedAt { get; set; }
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public bool IsDeleted { get; set; }
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region Relations
|
|
|
|
|
|
public ICollection<Record>? Records { get; set; }
|
2023-09-18 11:29:25 +02:00
|
|
|
|
public ICollection<ProcessSource>? Sources { get; set; }
|
2023-02-22 12:12:38 +01:00
|
|
|
|
[Required]
|
|
|
|
|
|
public Guid CreatedById { get; set; }
|
|
|
|
|
|
public User? CreatedBy { get; set; }
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
public Guid ModifiedById { get; set; }
|
|
|
|
|
|
public User? ModifiedBy { get; set; }
|
2023-09-18 11:29:25 +02:00
|
|
|
|
public Guid? ParentId { get; set; }
|
|
|
|
|
|
public Layer? Parent { get; set; }
|
2023-02-22 12:12:38 +01:00
|
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|