feat(infra): add indexes with uniqueness

This commit is contained in:
Stevan Freeborn
2026-02-03 04:38:40 -06:00
parent fcc1356d69
commit d9f0585c4c
4 changed files with 152 additions and 1 deletions
@@ -41,6 +41,9 @@ namespace FiscalOS.Infra.Migrations
b.HasKey("Id");
b.HasIndex("Token")
.IsUnique();
b.HasIndex("UserId");
b.ToTable("RefreshTokens");
@@ -68,6 +71,9 @@ namespace FiscalOS.Infra.Migrations
b.HasKey("Id");
b.HasIndex("Username")
.IsUnique();
b.ToTable("Users");
});