🗃️ Add account relationships

This commit is contained in:
2025-04-16 01:16:35 +08:00
parent 701a5d3882
commit cec8c3af81
8 changed files with 764 additions and 15 deletions

View File

@ -0,0 +1,18 @@
namespace DysonNetwork.Sphere.Account;
public enum RelationshipType
{
Friend,
Blocked
}
public class Relationship : ModelBase
{
public long FromAccountId { get; set; }
public Account FromAccount { get; set; } = null!;
public long ToAccountId { get; set; }
public Account ToAccount { get; set; } = null!;
public RelationshipType Type { get; set; }
}