Fix Task 6: Device FK to AspNetUsers + SystemSettings singleton Id pin

This commit is contained in:
2026-06-11 18:46:42 +00:00
parent 68e7e81312
commit 3e9c245bb3
5 changed files with 445 additions and 4 deletions
@@ -276,7 +276,6 @@ namespace backend.Migrations
modelBuilder.Entity("backend.Settings.SystemSettings", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<int>("DefaultIdleTimeoutSeconds")
@@ -350,6 +349,15 @@ namespace backend.Migrations
.IsRequired();
});
modelBuilder.Entity("backend.Devices.Device", b =>
{
b.HasOne("backend.Auth.ApplicationUser", null)
.WithMany()
.HasForeignKey("OwnerUserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("backend.Devices.DeviceConfig", b =>
{
b.HasOne("backend.Devices.Device", null)