aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Models/User.cs
blob: 75015e8f9da525842c7a64617f183efe07f7151b (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
33
34
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.AspNetCore.Identity;

namespace DevHive.Data.Models
{
	[Table("Users")]
	public class User : IdentityUser<Guid>, IModel
	{
		[Required]
		[Range(3, 50)]
		[Display(Name = "Username")]
		public override string UserName
		{
			get => base.UserName;
			set => base.UserName = value;
		}

		[Required]
		[Range(3, 30)]
		public string FirstName { get; set; }

		[Required]
		[Range(3, 30)]
		public string LastName { get; set; }

		public string ProfilePicture { get; set; }

		public string Role { get; set; }

		//public List<User> Friends { get; set; }
	}
}