25 lines
869 B
C#
25 lines
869 B
C#
namespace TaxBaik.Domain.Entities;
|
|
|
|
public class BlogPost
|
|
{
|
|
public int Id { get; set; }
|
|
public string Title { get; set; } = null!;
|
|
public string Content { get; set; } = null!;
|
|
public string Slug { get; set; } = null!;
|
|
public int? CategoryId { get; set; }
|
|
public string? Tags { get; set; }
|
|
public int? AuthorId { get; set; }
|
|
public DateTime? PublishedAt { get; set; }
|
|
public int ViewCount { get; set; }
|
|
public string? SeoTitle { get; set; }
|
|
public string? SeoDescription { get; set; }
|
|
public string? ThumbnailUrl { get; set; }
|
|
public bool IsPublished { get; set; }
|
|
public DateTime CreatedAt { get; set; }
|
|
public DateTime UpdatedAt { get; set; }
|
|
public DateTime? DeletedAt { get; set; }
|
|
|
|
// Navigation property (populated via LEFT JOIN, not stored in DB)
|
|
public string? CategoryName { get; set; }
|
|
}
|