30 lines
789 B
C#
30 lines
789 B
C#
|
|
using PARR.DAL.Models.Base;
|
|||
|
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
|
|
|||
|
|
namespace PARR.DAL.Models
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Период автоматического распеделения РР
|
|||
|
|
/// </summary>
|
|||
|
|
[Table("DistributionPeriods")]
|
|||
|
|
public class DistributionPeriod : IBase
|
|||
|
|
{
|
|||
|
|
[Key]
|
|||
|
|
public Guid Id { get; set; }
|
|||
|
|
|
|||
|
|
[NotMapped]
|
|||
|
|
public DateTimeOffset DateCreated { get; set; }
|
|||
|
|
|
|||
|
|
[NotMapped]
|
|||
|
|
public DateTimeOffset? DateModified { get; set; }
|
|||
|
|
|
|||
|
|
public required string Name { get; set; }
|
|||
|
|
|
|||
|
|
public TimeSpan Duration { get; set; }
|
|||
|
|
|
|||
|
|
public ICollection<EsppSchTypeValue> EsppSchTypeValues { get; set; } = new HashSet<EsppSchTypeValue>();
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|