feat(dal): таблица WeekendDays поле Date - уникальное значение

This commit is contained in:
Mikhail Trubnikov
2024-09-13 12:06:51 +10:00
parent 60403ccbf9
commit add572f438
4 changed files with 3101 additions and 1 deletions

View File

@@ -1,10 +1,12 @@
using PARR.DAL.Models.Base;
using Microsoft.EntityFrameworkCore;
using PARR.DAL.Models.Base;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PARR.DAL.Models
{
[Table("WeekendDays")]
[Index(nameof(Date), IsUnique = true)]
public class WeekendDay : IBase
{
[Key]