docs: #306 adding indices for sections

This commit is contained in:
Hamid Reza Mohammadi 2022-04-14 12:32:45 +04:30
parent de9cb0b07c
commit fff4d330ef

View File

@ -175,6 +175,18 @@ namespace RMuseum.DbContext
builder.Entity<GanjoorUserPoemVisit>()
.HasIndex(v => new { v.UserId, v.PoemId });
builder.Entity<GanjoorPoemSection>()
.HasIndex(v => new { v.PoemId, v.Index });
builder.Entity<GanjoorPoemSection>()
.HasIndex(v => new { v.RhymeLetters });
builder.Entity<GanjoorPoemSection>()
.HasIndex(v => new { v.GanjoorMetreId, v.RhymeLetters });
builder.Entity<GanjoorCachedRelatedSection>()
.HasIndex(v => new { v.PoemId, v.SectionIndex });
}