:drunk: Write shit code trying to split up the Auth (WIP)
This commit is contained in:
22
DysonNetwork.Common/Models/Relationship.cs
Normal file
22
DysonNetwork.Common/Models/Relationship.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using NodaTime;
|
||||
|
||||
namespace DysonNetwork.Common.Models;
|
||||
|
||||
public enum RelationshipStatus : short
|
||||
{
|
||||
Friends = 100,
|
||||
Pending = 0,
|
||||
Blocked = -100
|
||||
}
|
||||
|
||||
public class Relationship : ModelBase
|
||||
{
|
||||
public Guid AccountId { get; set; }
|
||||
public Models.Account Account { get; set; } = null!;
|
||||
public Guid RelatedId { get; set; }
|
||||
public Models.Account Related { get; set; } = null!;
|
||||
|
||||
public Instant? ExpiredAt { get; set; }
|
||||
|
||||
public RelationshipStatus Status { get; set; } = RelationshipStatus.Pending;
|
||||
}
|
Reference in New Issue
Block a user