Refactoring, database structure changed
This commit is contained in:
30
WatchIt.Database/Model/Photos/PhotoBackground.cs
Normal file
30
WatchIt.Database/Model/Photos/PhotoBackground.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Drawing;
|
||||
using WatchIt.Database.Model.Accounts;
|
||||
|
||||
namespace WatchIt.Database.Model.Photos;
|
||||
|
||||
public class PhotoBackground
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
public Guid Id { get; set; }
|
||||
public Guid PhotoId { get; set; }
|
||||
public bool IsUniversal { get; set; }
|
||||
public Color FirstGradientColor { get; set; }
|
||||
public Color SecondGradientColor { get; set; }
|
||||
public uint Version { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region NAVIGATION
|
||||
|
||||
// Photo
|
||||
public virtual Photo Photo { get; set; } = default!;
|
||||
|
||||
// Background usages
|
||||
public virtual IEnumerable<AccountBackgroundPicture> BackgroundUsages { get; set; } = new List<AccountBackgroundPicture>();
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user