feat(dal): Индексы для RobotHistory

This commit is contained in:
Mikhail Trubnikov
2026-04-15 10:48:21 +10:00
parent a93e8de4b0
commit c3b4c45892
8 changed files with 7679 additions and 6 deletions

View File

@@ -1,9 +1,13 @@
using PARR.Domain.Entities.Base;
using Microsoft.EntityFrameworkCore;
using PARR.Domain.Entities.Base;
using System.ComponentModel.DataAnnotations.Schema;
namespace PARR.DAL.Models
{
[Table("RobotHistories")]
[Index(nameof(HistoryLevel), nameof(DateCreated), IsDescending = new[] { false, true })]
[Index(nameof(RobotConfigurationId), nameof(DateCreated))]
[Index(nameof(DateCreated))]
public class RobotHistory : IBaseEntity
{
public Guid Id { get; set; }