aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data.Models/User.cs
blob: feae1971d290bc817e4ca2c48e23a0ec6600d301 (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.Models.Relational;
using Microsoft.AspNetCore.Identity;

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

		public string LastName { get; set; }

		public ProfilePicture ProfilePicture { get; set; } = new() { PictureURL = "/assets/icons/tabler-icon-user.svg" };

		public HashSet<Language> Languages { get; set; } = new();

		public HashSet<Technology> Technologies { get; set; } = new();

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

		public HashSet<Post> Posts { get; set; } = new();

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

		public HashSet<Comment> Comments { get; set; } = new();

		public HashSet<RatedPost> RatedPosts { get; set; } = new();
	}
}