2026-10-01 12:22:08 +02:00
|
|
|
using MongoDB.Entities;
|
|
|
|
|
|
|
|
|
|
namespace PrivaPub.Models.Media
|
|
|
|
|
{
|
|
|
|
|
public class MediaAttachment : Entity
|
|
|
|
|
{
|
|
|
|
|
public string OwnerAvatarId { get; set; }
|
|
|
|
|
public string PostId { get; set; }
|
|
|
|
|
public string Kind { get; set; }
|
|
|
|
|
public string ContentType { get; set; }
|
|
|
|
|
public string FilePath { get; set; }
|
|
|
|
|
public string PreviewPath { get; set; }
|
|
|
|
|
public long Size { get; set; }
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
public string Blurhash { get; set; }
|
|
|
|
|
public int? Width { get; set; }
|
|
|
|
|
public int? Height { get; set; }
|
|
|
|
|
public float[] Focus { get; set; }
|
|
|
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
|
|
|
public DateTime? AttachedAt { get; set; }
|
2026-10-05 02:55:17 +02:00
|
|
|
public string ScheduledStatusId { get; set; }//kept for a scheduled post until it is published or dropped
|
2026-10-01 12:22:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class MediaSecret : Entity
|
|
|
|
|
{
|
|
|
|
|
public string Key { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|