Files
Ping/backend/Core/Ping.Domain/Entities/Friendship.cs
T
Admin 0623875dfa Add Ping backend
.NET 10 solution for Ping, a Discord style chat app: Domain, Application
and Infrastructure projects plus the Api host. SignalR for chat and
presence, LiveKit for call tokens, EF Core on Postgres, S3 compatible
storage for attachments, and OIDC auth shared with the Musify Zitadel
instance. Includes the Compose stack for local development.
2026-09-21 19:32:55 +02:00

32 lines
774 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Ping.Domain.ValueObjects;
namespace Ping.Domain.Entities
{
[Table("Friendship")]
public class Friendship
{
[Key]
public Guid Id { get; set; }
public required long RequesterId { get; set; }
public User? Requester { get; set; }
public required long AddresseeId { get; set; }
public User? Addressee { get; set; }
[Required]
public FriendshipStatus Status { get; set; } = FriendshipStatus.Pending;
public long? BlockedById { get; set; }
[Required]
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime? RespondedAt { get; set; }
}
}