bulletboards/ImageBoardServerApp/Data/BoardData.cs

24 lines
516 B
C#
Raw 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; }
2023-01-18 12:56:24 +00:00
}