aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data.Models/User.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Data/DevHive.Data.Models/User.cs')
-rw-r--r--src/Data/DevHive.Data.Models/User.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/Data/DevHive.Data.Models/User.cs b/src/Data/DevHive.Data.Models/User.cs
new file mode 100644
index 0000000..d3789ec
--- /dev/null
+++ b/src/Data/DevHive.Data.Models/User.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations.Schema;
+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 = ProfilePicture.DefaultURL };
+
+ 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();
+ }
+}