namespace MyWebLog.Data;
///
/// A web log post
///
public class Post
{
///
/// The ID of this post
///
public string Id { get; set; } = "";
///
/// The ID of the author of this post
///
public string AuthorId { get; set; } = "";
///
/// The author of the post
///
public WebLogUser Author { get; set; } = default!;
///
/// The status
///
public PostStatus Status { get; set; } = PostStatus.Draft;
///
/// The title
///
public string Title { get; set; } = "";
///
/// The link at which the post resides
///
public string Permalink { get; set; } = "";
///
/// The instant on which the post was originally published
///
public DateTime? PublishedOn { get; set; } = null;
///
/// The instant on which the post was last updated
///
public DateTime UpdatedOn { get; set; } = DateTime.MinValue;
///
/// The text of the post in HTML (ready to display) format
///
public string Text { get; set; } = "";
///
/// The Ids of the categories to which this is assigned
///
public ICollection Categories { get; set; } = default!;
///
/// The tags for the post
///
public ICollection Tags { get; set; } = default!;
///
/// Permalinks at which this post may have been previously served (useful for migrated content)
///
public ICollection PriorPermalinks { get; set; } = default!;
///
/// The revisions for this post
///
public ICollection Revisions { get; set; } = default!;
}