Add friendship feature with models, repository, and tests

Introduces Friendship and PrivateChat models, repository interfaces, and implementations for managing friendships. Adds validators and comprehensive unit and integration tests for friendship logic. Updates InviteUserController with new endpoints and restricts access to admin role. Removes unnecessary project references from Govor.API.csproj and registers new DbSets in GovorDbContext.
This commit is contained in:
Artemy
2025-06-27 15:09:28 +07:00
parent 4f3f4ec066
commit 9b9cd73a96
15 changed files with 565 additions and 20 deletions
+11
View File
@@ -0,0 +1,11 @@
namespace Govor.Core.Models;
public class PrivateChat
{
public Guid Id { get; set; }
public Guid UserAId { get; set; }
public Guid UserBId { get; set; }
public User UserA { get; set; }
public User UserB { get; set; }
public List<Message> Messages { get; set; } = new List<Message>();
}