2024-09-13 12:06:51 +10:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2026-01-20 16:17:09 +10:00
|
|
|
|
using PARR.DAL.Context;
|
2026-04-15 09:35:03 +10:00
|
|
|
|
using PARR.Domain.Constants;
|
2026-04-13 16:58:30 +10:00
|
|
|
|
using PARR.Domain.Entities.Base;
|
2024-07-01 11:32:19 +10:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
|
|
namespace PARR.DAL.Models
|
|
|
|
|
|
{
|
2026-04-15 09:35:03 +10:00
|
|
|
|
[Table("WeekendDays", Schema = DatabaseSchemas.Schedule)]
|
2024-09-13 12:06:51 +10:00
|
|
|
|
[Index(nameof(Date), IsUnique = true)]
|
2026-04-13 16:58:30 +10:00
|
|
|
|
public class WeekendDay : IBaseEntity
|
2024-07-01 11:32:19 +10:00
|
|
|
|
{
|
|
|
|
|
|
[Key]
|
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[NotMapped]
|
|
|
|
|
|
public DateTimeOffset DateCreated { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[NotMapped]
|
|
|
|
|
|
public DateTimeOffset? DateModified { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public DateOnly Date { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|