2023-01-18 13:56:24 +01:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
namespace ImageBoardServerApp.Data;
|
|
|
|
|
|
|
|
public class ImageData
|
|
|
|
{
|
|
|
|
[Required]
|
|
|
|
[DatabaseGenerated((DatabaseGeneratedOption.Identity))]
|
|
|
|
[Key]
|
|
|
|
public int ImageID { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
public string Board { get; set; }
|
|
|
|
|
|
|
|
[Required]
|
2023-02-01 14:18:36 +01:00
|
|
|
public string ImageLocation { get; set; }
|
2023-01-18 13:56:24 +01:00
|
|
|
|
|
|
|
public PostData Post { get; set; }
|
|
|
|
|
|
|
|
public CommentData Comment { get; set; }
|
|
|
|
}
|