2022-06-12 19:42:47 +00:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace DataModel.Database;
|
|
|
|
|
|
|
|
|
|
public sealed class Section
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
|
|
2022-07-09 13:03:18 +00:00
|
|
|
|
public string DataKey { get; set; } = string.Empty;
|
2022-06-12 19:42:47 +00:00
|
|
|
|
|
2022-07-09 13:03:18 +00:00
|
|
|
|
public int Depth { get; set; } = 0;
|
|
|
|
|
|
|
|
|
|
public Section? Parent { get; set; }
|
|
|
|
|
|
|
|
|
|
public List<TextElement> TextElements { get; set; } = new();
|
2022-06-12 19:42:47 +00:00
|
|
|
|
}
|