서버 게시글

This commit is contained in:
2026-09-03 19:18:46 +09:00
parent 807cd89a9a
commit 78c2ce676a
30 changed files with 7456 additions and 3 deletions

View File

@@ -0,0 +1,38 @@
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; }
}
}