aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Models/User.cs
blob: 64e138f3e7609054b42ad7a79ad930e7a515e1f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using DevHive.Data.Interfaces.Models;
using Microsoft.AspNetCore.Identity;

namespace DevHive.Data.Models
{
	[Table("Users")]
	public class User : IdentityUser<Guid>, IUser
	{
		public string FirstName { get; set; }

		public string LastName { get; set; }

		public string ProfilePictureUrl { get; set; }

		/// <summary>
		/// Languages that the user uses or is familiar with
		/// </summary>
		public IList<Language> Languages { get; set; }

		/// <summary>
		/// Technologies that the user uses or is familiar with
		/// </summary>
		public IList<Technology> Technologies { get; set; }

		public IList<Role> Roles { get; set; } = new List<Role>();

		public IList<User> Friends { get; set; } = new List<User>();
	}
}