서버 게시글
This commit is contained in:
30
GameServer/Models/Portfolio/PortfolioPostImageModel.cs
Normal file
30
GameServer/Models/Portfolio/PortfolioPostImageModel.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user