@@ -35,35 +35,25 @@ protected override void OnModelCreating(ModelBuilder builder)
35
35
builder . Entity < CachedClan > ( ) . OwnsOne ( p => p . WarLog , log =>
36
36
{
37
37
log . ToTable ( Library . TableNames . WarLog ) ;
38
- log . HasIndex ( w => w . KeepUntil ) ;
39
- log . HasIndex ( w => w . ExpiresAt ) ;
40
38
} ) ;
41
39
42
40
// Group
43
41
builder . Entity < CachedClan > ( ) . OwnsOne ( p => p . Group , group => {
44
42
group . ToTable ( Library . TableNames . Group ) ;
45
- group . HasIndex ( w => w . KeepUntil ) ;
46
- group . HasIndex ( w => w . ExpiresAt ) ;
47
43
} ) ;
48
44
49
45
// Player
50
46
var player = builder . Entity < CachedPlayer > ( ) . ToTable ( Library . TableNames . Player ) ;
51
47
player . HasIndex ( p => p . Id ) . IsUnique ( ) ;
52
- player . HasIndex ( p => p . KeepUntil ) ;
53
- player . HasIndex ( p => p . ExpiresAt ) ;
54
48
player . HasIndex ( p => p . Tag ) . IsUnique ( ) ;
55
49
player . HasIndex ( p => p . ClanTag ) ;
56
50
57
51
// War
58
52
var war = builder . Entity < CachedWar > ( ) . ToTable ( Library . TableNames . War ) ;
59
53
war . HasIndex ( p => p . Id ) . IsUnique ( ) ;
60
54
war . HasIndex ( p => new { p . PreparationStartTime , p . ClanTag , p . OpponentTag } ) . IsUnique ( ) ;
61
- war . HasIndex ( p => p . KeepUntil ) ;
62
- war . HasIndex ( p => p . ExpiresAt ) ;
63
55
war . HasIndex ( p => p . ClanTag ) ;
64
56
war . HasIndex ( p => p . OpponentTag ) ;
65
57
war . HasIndex ( p => p . IsFinal ) ;
66
- war . HasIndex ( p => p . WarTag ) ;
67
- war . HasIndex ( p => p . Season ) ;
68
58
}
69
59
}
0 commit comments