Blog posts stored in PostgreSQL with markdown rendering via Markdig. Public API for reads, admin-only writes with dual auth (JWT + session). Admin page for creating, editing, and deleting posts. Co-Authored-By: Claude Opus 4.6 <[email protected]>
17 lines
609 B
C#
17 lines
609 B
C#
namespace Media.JoshHeaps.Net.Models;
|
|
|
|
public class BlogPost
|
|
{
|
|
public long Id { get; set; }
|
|
public string Slug { get; set; } = string.Empty;
|
|
public string Title { get; set; } = string.Empty;
|
|
public string Summary { get; set; } = string.Empty;
|
|
public string MarkdownContent { get; set; } = string.Empty;
|
|
public string HtmlContent { get; set; } = string.Empty;
|
|
public List<string> Tags { get; set; } = [];
|
|
public long AuthorId { get; set; }
|
|
public DateTime PublishedDate { get; set; }
|
|
public DateTime CreatedAt { get; set; }
|
|
public DateTime UpdatedAt { get; set; }
|
|
}
|