Refactoring, database structure changed
This commit is contained in:
29
WatchIt.Database/Model/Photos/Photo.cs
Normal file
29
WatchIt.Database/Model/Photos/Photo.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using WatchIt.Database.Model.Media;
|
||||
|
||||
namespace WatchIt.Database.Model.Photos;
|
||||
|
||||
public class Photo : IImageEntity
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
public Guid Id { get; set; }
|
||||
public long MediumId { get; set; }
|
||||
public byte[] Image { get; set; } = null!;
|
||||
public string MimeType { get; set; } = null!;
|
||||
public DateTimeOffset UploadDate { get; set; }
|
||||
public uint Version { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region NAVIGATION
|
||||
|
||||
// Medium
|
||||
public virtual Medium Medium { get; set; } = default!;
|
||||
|
||||
// Background settings
|
||||
public virtual PhotoBackground? Background { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user