31 lines
802 B
C#
31 lines
802 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace GameServer.Models.Portfolio
|
|
{
|
|
// 게시물에 첨부된 이미지 (게시물 삭제 시 함께 삭제)
|
|
[Table("tb_portfolio_post_image")]
|
|
public class PortfolioPostImageModel
|
|
{
|
|
[Key]
|
|
[Column("image_no")]
|
|
public int ImageNo { get; set; }
|
|
|
|
[Column("post_no")]
|
|
public int PostNo { get; set; }
|
|
|
|
[Required]
|
|
[Column("image_url")]
|
|
public string ImageUrl { get; set; } = string.Empty;
|
|
|
|
[Column("caption")]
|
|
public string? Caption { get; set; }
|
|
|
|
[Column("sort_order")]
|
|
public int SortOrder { get; set; }
|
|
|
|
[Column("created_at")]
|
|
public DateTime CreatedAt { get; set; }
|
|
}
|
|
}
|