mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 10:04:44 +00:00
Add user profile and avatar upload feature
This commit is contained in:
20
web/backend/Domain/Domain.Entities/Entities/UserAvatar.cs
Normal file
20
web/backend/Domain/Domain.Entities/Entities/UserAvatar.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
namespace Domain.Entities;
|
||||
|
||||
public sealed class UserAvatar
|
||||
{
|
||||
// PK
|
||||
public Guid UserAvatarId { get; set; }
|
||||
|
||||
// FK References
|
||||
public Guid UserProfileId { get; set; }
|
||||
public Guid PhotoId { get; set; }
|
||||
|
||||
// Attributes
|
||||
public DateTime ValidFrom { get; set; }
|
||||
public DateTime? ValidTo { get; set; }
|
||||
|
||||
// Navigation Field
|
||||
public Photo? Photo { get; set; }
|
||||
// Audit Fields
|
||||
public byte[]? RowVersion { get; set; }
|
||||
}
|
||||
16
web/backend/Domain/Domain.Entities/Entities/UserProfile.cs
Normal file
16
web/backend/Domain/Domain.Entities/Entities/UserProfile.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace Domain.Entities;
|
||||
|
||||
public sealed class UserProfile
|
||||
{
|
||||
// PK
|
||||
public Guid UserProfileId { get; set; }
|
||||
|
||||
// FK References
|
||||
public Guid UserAccountId { get; set; }
|
||||
|
||||
// Attributes
|
||||
public string Biography { get; set; } = string.Empty;
|
||||
|
||||
// Audit Fields
|
||||
public byte[]? RowVersion { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user