fix: align backend APIs and upload flow

This commit is contained in:
2026-09-11 18:18:59 +08:00
parent 32177a7293
commit 898cf5dba0
69 changed files with 1081 additions and 153 deletions
@@ -11,6 +11,9 @@ namespace GroupService.Infrastructure.Configs
builder.ToTable("group_join_requests");
builder.HasKey(x => x.Id);
builder.HasKey(x => new { x.GroupId, x.UserId });
builder.HasIndex(x => x.Id).IsUnique();
builder.HasIndex(x => new { x.GroupId, x.State, x.CreationTime });
builder.HasIndex(x => new { x.UserId, x.CreationTime });
builder.ComplexProperty(x => x.UserProfile, u =>
{
@@ -9,6 +9,8 @@ namespace GroupService.Infrastructure.Configs
public void Configure(EntityTypeBuilder<GroupMember> builder)
{
builder.ToTable("group_members");
builder.HasIndex(x => new { x.UserId, x.IsDeleted, x.GroupId });
builder.HasIndex(x => new { x.GroupId, x.IsDeleted, x.Role });
}
}
}