using Microsoft.EntityFrameworkCore;
using PARR.DAL.Context;
using PARR.DAL.Models.Base;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PARR.DAL.Models
{
    [Table("WeekendDays", Schema = DataContextSettings.Schedule)]
    [Index(nameof(Date), IsUnique = true)]
    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; }
    }
}
