16 lines
499 B
C#
16 lines
499 B
C#
namespace SimpleWiki.Models;
|
|
|
|
public class Article
|
|
{
|
|
public int Id { get; set; }
|
|
public string Title { get; set; } = string.Empty;
|
|
public string Slug { get; set; } = string.Empty;
|
|
public string Summary { get; set; } = string.Empty;
|
|
public string MarkdownContent { get; set; } = string.Empty;
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
public DateTime? UpdatedAt { get; set; }
|
|
|
|
public int AuthorId { get; set; }
|
|
public User? Author { get; set; }
|
|
}
|