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