2024-09-13 12:06:51 +10:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
using PARR.DAL.Models.Base;
|
2024-07-01 11:32:19 +10:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
|
|
namespace PARR.DAL.Models
|
|
|
|
|
|
{
|
|
|
|
|
|
[Table("WeekendDays")]
|
2024-09-13 12:06:51 +10:00
|
|
|
|
[Index(nameof(Date), IsUnique = true)]
|
2024-07-01 11:32:19 +10:00
|
|
|
|
public class WeekendDay : IBase
|
|
|
|
|
|
{
|
|
|
|
|
|
[Key]
|
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[NotMapped]
|
|
|
|
|
|
public DateTimeOffset DateCreated { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[NotMapped]
|
|
|
|
|
|
public DateTimeOffset? DateModified { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public DateOnly Date { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|