This commit is contained in:
David Štaleker
2024-03-10 18:58:24 +01:00
parent 52f4900103
commit c4883e4296
39 changed files with 2068 additions and 1227 deletions

View File

@@ -5,6 +5,13 @@ namespace ZpcBulletinBoard.Models.Editor
{
public class Note
{
public enum TypeEnum
{
Board = 1,
Image = 2,
ExternalLink = 3
}
[Key]
public int IdNote { get; set; }
@@ -33,6 +40,9 @@ namespace ZpcBulletinBoard.Models.Editor
[Required]
public string ColorClass { get; set; }
[Required]
public TypeEnum Type { get; set; }
// ForeignKey
public BulletinBoardPage BulletinBoardPage { get; set; }
}