feat(dal): в таблице Order поле Number уникальное

This commit is contained in:
Mikhail Trubnikov
2024-02-15 16:45:35 +10:00
parent f9cb91be2d
commit 4c4621fe03
4 changed files with 2564 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
using PARR.DAL.Models.Base;
using Microsoft.EntityFrameworkCore;
using PARR.DAL.Models.Base;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
@@ -8,6 +9,7 @@ namespace PARR.DAL.Models
/// Наряды ЕСПП
/// </summary>
[Table("Orders")]
[Index(nameof(Number), IsUnique = true)]
public class Order : IBase
{
[Key]