You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
API/src/Entities/FriendshipEntity.cs

14 lines
426 B

using System.ComponentModel.DataAnnotations.Schema;
namespace Entities;
public class FriendshipEntity
{
[ForeignKey("FollowingId")]
public int FollowingId { get; set; }
public AthleteEntity Following { get; set; } = null!;
[ForeignKey("FollowerId")]
public int FollowerId { get; set; }
public AthleteEntity Follower { get; set; } = null!;
public DateTime StartDate { get; set; }
}