39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace GameServer.Models.Portfolio
|
|
{
|
|
// 포트폴리오 게시물 본문 (마크다운으로 저장)
|
|
[Table("tb_portfolio_post")]
|
|
public class PortfolioPostModel
|
|
{
|
|
[Key]
|
|
[Column("post_no")]
|
|
public int PostNo { get; set; }
|
|
|
|
[Column("category_no")]
|
|
public int CategoryNo { get; set; }
|
|
|
|
[Required]
|
|
[Column("title")]
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
[Column("summary")]
|
|
public string? Summary { get; set; }
|
|
|
|
// 마크다운 원문
|
|
[Column("content_md")]
|
|
public string? ContentMd { get; set; }
|
|
|
|
[Column("thumbnail_url")]
|
|
public string? ThumbnailUrl { get; set; }
|
|
|
|
// 생성/수정 시각은 애플리케이션에서 DateTime.UtcNow 로 직접 기록한다.
|
|
[Column("created_at")]
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
[Column("updated_at")]
|
|
public DateTime UpdatedAt { get; set; }
|
|
}
|
|
}
|