Add the PageContent table (entity, DbContext, migration, model snapshot)

This commit is contained in:
Francesco Lorenzo D'Amico
2026-09-11 13:29:15 +02:00
parent ea14d9208e
commit 776d62a724
5 changed files with 195 additions and 4 deletions
@@ -0,0 +1,19 @@
namespace BewerbungsSeite.Models;
/// <summary>
/// Speicherzeile fuer den gesamten Seiteninhalt. Es existiert genau ein
/// Datensatz mit <see cref="SingletonId"/>; der Inhalt liegt serialisiert
/// als UTF-8-JSON im Feld <see cref="Content"/>.
/// </summary>
public class PageContentEntity
{
/// <summary>Feste Id des einzigen Datensatzes.</summary>
public const int SingletonId = 1;
public int Id { get; set; }
public byte[] Content { get; set; } = Array.Empty<byte>();
/// <summary>Zeitpunkt der letzten Speicherung (UTC).</summary>
public DateTime UpdatedAt { get; set; }
}