Refactor: Revert to hard deletes for messages. Remove IsDeleted flag and update repository and configurations accordingly.

This commit is contained in:
google-labs-jules[bot]
2025-07-04 06:03:14 +00:00
parent fab3d6b67b
commit 204e8dba9c
21 changed files with 1299 additions and 185 deletions
@@ -1,6 +1,10 @@
namespace Govor.Core.Repositories.Groups;
public class IGroupsReader
public interface IGroupsReader // Changed to interface
{
Task<bool> ExistsAsync(Guid groupId);
Task<bool> IsUserMemberOfGroupAsync(Guid userId, Guid groupId);
// Potentially other read methods like:
// Task<ChatGroup?> GetByIdAsync(Guid groupId);
// Task<List<User>> GetGroupMembersAsync(Guid groupId);
}
@@ -0,0 +1,7 @@
namespace Govor.Core.Repositories.Groups;
public interface IGroupsRepository : IGroupsReader
{
// This interface will combine IGroupsReader and IGroupsWriter (once created)
// For now, it only includes IGroupsReader.
}