using Microsoft.EntityFrameworkCore; namespace RobotNet.ScriptManager.Data; public class ScriptManagerDbContext(DbContextOptions options) : DbContext(options) { public DbSet InstanceMissions { get; private set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity() .HasIndex(im => im.CreatedAt); } }