Skip to content

Commit

Permalink
add unique constrain to User Alias in Database
Browse files Browse the repository at this point in the history
  • Loading branch information
AnSch1510 committed Jul 18, 2024
1 parent a594e4a commit 3d3eb9b
Show file tree
Hide file tree
Showing 10 changed files with 1,917 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/server/data/Entities/UserEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ public static void Configure(EntityTypeBuilder<UserEntity> builder)

builder.HasKey(x => x.Id);
builder.HasIndex(x => x.LoginToken).IsUnique();
builder.HasIndex(x => x.Alias).IsUnique();
}
}
Loading

0 comments on commit 3d3eb9b

Please sign in to comment.