From 01ad75fa5a871a0c9f8cd0c5291312286ae4d52d Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 3 Feb 2021 10:22:37 +0200 Subject: Implemented profile picture table functionality; added models and interfaces for profile picture; added ability for user layers to update the profile picture; added migrations; updated mappings --- src/DevHive.Data/Models/ProfilePicture.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/DevHive.Data/Models/ProfilePicture.cs (limited to 'src/DevHive.Data/Models/ProfilePicture.cs') diff --git a/src/DevHive.Data/Models/ProfilePicture.cs b/src/DevHive.Data/Models/ProfilePicture.cs new file mode 100644 index 0000000..e2ef04b --- /dev/null +++ b/src/DevHive.Data/Models/ProfilePicture.cs @@ -0,0 +1,14 @@ +using System; + +namespace DevHive.Data.Models +{ + public class ProfilePicture + { + public Guid Id { get; set; } + + public Guid UserId { get; set; } + public User User { get; set; } + + public string PictureURL { get; set; } + } +} -- cgit v1.2.3 From 5f40cd28070a66485960ffce8a6e6b446cd9db20 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 3 Feb 2021 10:36:56 +0200 Subject: Made profile picture data model implement it's interface --- src/DevHive.Data/Models/ProfilePicture.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/DevHive.Data/Models/ProfilePicture.cs') diff --git a/src/DevHive.Data/Models/ProfilePicture.cs b/src/DevHive.Data/Models/ProfilePicture.cs index e2ef04b..d5cc397 100644 --- a/src/DevHive.Data/Models/ProfilePicture.cs +++ b/src/DevHive.Data/Models/ProfilePicture.cs @@ -1,8 +1,9 @@ using System; +using DevHive.Data.Interfaces.Models; namespace DevHive.Data.Models { - public class ProfilePicture + public class ProfilePicture: IProfilePicture { public Guid Id { get; set; } -- cgit v1.2.3