22 lines
517 B
C#
22 lines
517 B
C#
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;
|
|
} |