technical edits

This commit is contained in:
Artemy
2025-12-12 17:23:01 +07:00
parent bf2aca40d3
commit 7e6f914878
23 changed files with 461 additions and 114 deletions
@@ -13,5 +13,19 @@ public class UserConfiguration : IEntityTypeConfiguration<User>
builder.HasOne(u => u.Invite)
.WithMany(i => i.Users)
.HasForeignKey(u => u.InviteId);
builder.Property(u => u.Username)
.IsRequired()
.HasMaxLength(50);
builder.HasIndex(u => u.Username).IsUnique();
builder.Property(u => u.Description)
.HasMaxLength(500)
.IsRequired(false);
builder.Property(u => u.PasswordHash)
.IsRequired()
.HasMaxLength(128);
}
}