aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data.Models/Friendship.cs
blob: 91ac9c75140b38ec0fa4d65a7cd912553ca3c165 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace DevHive.Data.Models
{
	//class for handling the many to many relationship betwen users and users for friends
	public class Friendship
	{
		[NotMapped]
		public Guid BaseUserId { get; set; }
		[NotMapped]
		public Guid FriendUserId { get; set; }

		public User BaseUser { get; set; }
		public User FriendUser { get; set; }
	}
}