This commit is contained in:
2024-07-03 22:18:32 +02:00
Unverified
parent 4b333878b8
commit 008dcdf4ec
88 changed files with 3389 additions and 644 deletions

View File

@@ -9,8 +9,6 @@ public class MediaPhotoImage
public required byte[] Image { get; set; }
public required string MimeType { get; set; }
public DateTime UploadDate { get; set; }
public bool IsMediaBackground { get; set; }
public bool IsUniversalBackground { get; set; }
#endregion
@@ -19,6 +17,7 @@ public class MediaPhotoImage
#region NAVIGATION
public virtual Media Media { get; set; } = null!;
public virtual MediaPhotoImageBackground? MediaPhotoImageBackground { get; set; }
#endregion
}

View File

@@ -0,0 +1,21 @@
namespace WatchIt.Database.Model.Media;
public class MediaPhotoImageBackground
{
#region PROPERTIES
public required Guid Id { get; set; }
public required bool IsUniversalBackground { get; set; }
public required byte[] FirstGradientColor { get; set; }
public required byte[] SecondGradientColor { get; set; }
#endregion
#region NAVIGATION
public virtual MediaPhotoImage MediaPhotoImage { get; set; } = null!;
#endregion
}