bulletboards/ImageBoardServerApp/Data/BoardData.cs

27 lines
579 B
C#
Raw Permalink Normal View History

2023-01-18 12:56:24 +00:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
2023-01-18 12:56:24 +00:00
namespace ImageBoardServerApp.Data;
public class BoardData
{
[Required]
[DatabaseGenerated((DatabaseGeneratedOption.Identity))]
[Key]
2023-01-18 12:56:24 +00:00
public int BoardID { get; set; }
[Required]
2023-01-18 12:56:24 +00:00
public string Tag { get; set; }
[Required]
2023-01-18 12:56:24 +00:00
public string Topic { get; set; }
[Required]
2023-01-18 12:56:24 +00:00
public int maxThreads { get; set; }
[Required]
public bool isLocked { get; set; }
[Required]
public int NumberOfGETs { get; set; }
2023-01-18 12:56:24 +00:00
}