feat(dal): Индексы для RobotHistory
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user