aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data.Models
diff options
context:
space:
mode:
Diffstat (limited to 'src/Data/DevHive.Data.Models')
-rw-r--r--src/Data/DevHive.Data.Models/ProfilePicture.cs4
-rw-r--r--src/Data/DevHive.Data.Models/User.cs3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/Data/DevHive.Data.Models/ProfilePicture.cs b/src/Data/DevHive.Data.Models/ProfilePicture.cs
index e2ef04b..e8166d7 100644
--- a/src/Data/DevHive.Data.Models/ProfilePicture.cs
+++ b/src/Data/DevHive.Data.Models/ProfilePicture.cs
@@ -1,9 +1,13 @@
using System;
+using System.ComponentModel.DataAnnotations.Schema;
namespace DevHive.Data.Models
{
+ [Table("ProfilePictures")]
public class ProfilePicture
{
+ public const string DefaultURL = "/assets/icons/tabler-icon-user.svg";
+
public Guid Id { get; set; }
public Guid UserId { get; set; }
diff --git a/src/Data/DevHive.Data.Models/User.cs b/src/Data/DevHive.Data.Models/User.cs
index ea0b4f2..d3789ec 100644
--- a/src/Data/DevHive.Data.Models/User.cs
+++ b/src/Data/DevHive.Data.Models/User.cs
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
-using DevHive.Data.Models.Relational;
using Microsoft.AspNetCore.Identity;
namespace DevHive.Data.Models
@@ -13,7 +12,7 @@ namespace DevHive.Data.Models
public string LastName { get; set; }
- public ProfilePicture ProfilePicture { get; set; } = new() { PictureURL = "/assets/images/feed/profile-pic.png" };
+ public ProfilePicture ProfilePicture { get; set; } = new() { PictureURL = ProfilePicture.DefaultURL };
public HashSet<Language> Languages { get; set; } = new();