Notifications-Identifiable

This commit is contained in:
2025-07-01 22:35:44 +02:00
parent 314700aa8e
commit f1d3203ae1
5 changed files with 164 additions and 26 deletions

View File

@ -18,7 +18,7 @@ namespace API.Migrations.notifications
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "9.0.3")
.HasAnnotation("ProductVersion", "9.0.5")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.HasPostgresExtension(modelBuilder, "hstore");
@ -26,9 +26,8 @@ namespace API.Migrations.notifications
modelBuilder.Entity("API.Schema.Notification", b =>
{
b.Property<string>("NotificationId")
.HasMaxLength(64)
.HasColumnType("character varying(64)");
b.Property<string>("Key")
.HasColumnType("text");
b.Property<DateTime>("Date")
.HasColumnType("timestamp with time zone");
@ -46,7 +45,7 @@ namespace API.Migrations.notifications
b.Property<byte>("Urgency")
.HasColumnType("smallint");
b.HasKey("NotificationId");
b.HasKey("Key");
b.ToTable("Notifications");
});