Introduced NotificationService for managing notification logic and recipient resolution.

- Integrated SignalR for real-time notification delivery to users.
This commit is contained in:
2026-10-20 16:51:01 +05:30
parent a0df2a1bbf
commit 6b9f27573b
8 changed files with 6649 additions and 84 deletions
@@ -1278,6 +1278,93 @@ namespace Distribution.Migrations
b.ToTable("LoadingSheetOrders");
});
modelBuilder.Entity("Distribution.Models.Notification", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<DateTime>("CreatedAt")
.HasColumnType("datetime(6)");
b.Property<Guid?>("CreatedByUserId")
.HasColumnType("char(36)");
b.Property<Guid>("EntityId")
.HasColumnType("char(36)");
b.Property<string>("EntityType")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<string>("Link")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Message")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("varchar(500)");
b.Property<int>("Severity")
.HasColumnType("int");
b.Property<string>("Title")
.IsRequired()
.HasMaxLength(150)
.HasColumnType("varchar(150)");
b.Property<string>("Type")
.IsRequired()
.HasMaxLength(60)
.HasColumnType("varchar(60)");
b.HasKey("Id");
b.HasIndex("EntityType", "EntityId");
b.ToTable("Notifications");
});
modelBuilder.Entity("Distribution.Models.NotificationRecipient", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<DateTime>("CreatedAt")
.HasColumnType("datetime(6)");
b.Property<Guid>("FK_NotificationId")
.HasColumnType("char(36)");
b.Property<Guid>("FK_UserId")
.HasColumnType("char(36)");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsRead")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("ReadAt")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.HasIndex("FK_NotificationId", "FK_UserId")
.IsUnique();
b.HasIndex("FK_UserId", "IsRead");
b.ToTable("NotificationRecipients");
});
modelBuilder.Entity("Distribution.Models.Payment", b =>
{
b.Property<Guid>("Id")
@@ -2528,7 +2615,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000001"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("30f658ac-2c92-4cd8-ad47-10b0def2699c"),
Id = new Guid("1ce4ca63-cda9-4e52-a33a-d9f817b3af42"),
IsActive = true
},
new
@@ -2536,7 +2623,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000002"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("42ab2c52-eaf8-4a17-b67a-ccd66569e56a"),
Id = new Guid("fd551395-791e-4ec0-8acc-90fee0fdf0e4"),
IsActive = true
},
new
@@ -2544,7 +2631,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000003"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("8afec825-27b3-4153-ad06-f8bcdbf93da8"),
Id = new Guid("eed0b3b9-c142-4d85-a03c-a4d5047ed839"),
IsActive = true
},
new
@@ -2552,7 +2639,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000004"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("4b427620-e99d-4068-a416-c3788d5bd9b5"),
Id = new Guid("fe36f257-7b58-4afe-a950-33e54623a3b0"),
IsActive = true
},
new
@@ -2560,7 +2647,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000005"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("361f44ef-1cd1-48a9-be4d-4c068aacef1e"),
Id = new Guid("b7fd5318-8487-4b86-9651-cdafbcd20776"),
IsActive = true
},
new
@@ -2568,7 +2655,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000006"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("11fc03ae-92ee-4336-ae57-29aac731ad51"),
Id = new Guid("8f84fb31-063f-49b7-bec8-3a65f1bbc66e"),
IsActive = true
},
new
@@ -2576,7 +2663,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000007"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("0b1f2b73-ef60-4634-864f-22a6c0cd1373"),
Id = new Guid("8f181d4a-4eab-4b3a-88bf-a228f544969a"),
IsActive = true
},
new
@@ -2584,7 +2671,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000008"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("2380abf3-2bcd-4a9f-b447-5f1685df2fc8"),
Id = new Guid("fd54d83b-b79c-4c47-bc0d-7c728cab064f"),
IsActive = true
},
new
@@ -2592,7 +2679,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000009"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("240e4d6a-8306-40ba-aaec-8e05cd0347db"),
Id = new Guid("4306aada-781c-4618-b10c-a937b4760892"),
IsActive = true
},
new
@@ -2600,7 +2687,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000010"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("cfde0aa6-e859-4f9c-8291-b0d886fcd4c9"),
Id = new Guid("4b74304c-e3a0-4366-9eca-91cb71ba4553"),
IsActive = true
},
new
@@ -2608,7 +2695,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000011"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("dae772c8-26ec-4b5c-8d7a-f3196510bf2c"),
Id = new Guid("ef3b60c8-5698-4757-93c7-ce54759f3c7b"),
IsActive = true
},
new
@@ -2616,7 +2703,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000012"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("3512c0a4-a5ae-4002-a779-7d3cc600ab61"),
Id = new Guid("90761b9f-0244-43da-bec6-c2e1e9c9103e"),
IsActive = true
},
new
@@ -2624,7 +2711,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000013"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("f9e2a348-159e-47a2-b7be-a60f0254873f"),
Id = new Guid("6bd386df-32b4-434b-8d16-7f1555f92848"),
IsActive = true
},
new
@@ -2632,7 +2719,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000014"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("c8b4c181-5b08-45d2-818b-74bceeab78a8"),
Id = new Guid("5e64183c-9fe3-48f1-a236-91df9de1378a"),
IsActive = true
},
new
@@ -2640,7 +2727,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000015"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("8fb4ff4c-c5bd-4afd-a08e-02861d63cb7b"),
Id = new Guid("b0e3f065-ccbe-4a6a-9c29-29986868e587"),
IsActive = true
},
new
@@ -2648,7 +2735,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000016"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("edb3b711-d623-439d-811e-afaef8d0680d"),
Id = new Guid("cd191ac2-c1a5-454f-80a6-ffa5770a3699"),
IsActive = true
},
new
@@ -2656,7 +2743,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000017"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("f33e4c62-d69f-4a91-8b62-acbd5351ea2a"),
Id = new Guid("dba4d3dd-60a1-4445-a327-22026ca35f77"),
IsActive = true
},
new
@@ -2664,7 +2751,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000018"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("c7c9d16c-e343-43e9-9e27-f38f903a5d00"),
Id = new Guid("c6a75c84-7992-46b5-a1f9-cdf1bf3e77a4"),
IsActive = true
},
new
@@ -2672,7 +2759,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000019"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("f5f4760a-8a45-46ca-8093-743c95b0313f"),
Id = new Guid("a5d1be1b-2fe9-49f9-9256-9da61a7589ae"),
IsActive = true
},
new
@@ -2680,7 +2767,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000020"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("c5434801-146a-4fd9-9c29-a1145e7f7f00"),
Id = new Guid("bdbeb46e-3a54-4ae2-90a6-e9b4450b83d3"),
IsActive = true
},
new
@@ -2688,7 +2775,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000021"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("6c085135-78a5-4e65-a380-ee090b07e2bb"),
Id = new Guid("eeab7811-ff26-4e4f-9813-6c10cd6c6504"),
IsActive = true
},
new
@@ -2696,7 +2783,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000022"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("bbde2785-a3df-4f81-bad1-0bc5afe5de57"),
Id = new Guid("c31fc81f-3e25-422f-81dd-dc6621aad5a4"),
IsActive = true
},
new
@@ -2704,7 +2791,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000023"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("4421a0fb-bdd4-45a9-8dc0-d9b70f775e97"),
Id = new Guid("11d9afa6-fecd-494a-9264-cd57f7edc552"),
IsActive = true
},
new
@@ -2712,7 +2799,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000024"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("dba9dcb4-3b94-4ddc-89f3-552cfc109478"),
Id = new Guid("3e704029-4b4b-40b0-b202-97fbf266ec31"),
IsActive = true
},
new
@@ -2720,7 +2807,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000025"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("d8f74160-c150-4d9c-aba6-e45e628c684e"),
Id = new Guid("fcaea017-aae4-4a42-92d2-da2b994169d9"),
IsActive = true
},
new
@@ -2728,7 +2815,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000026"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("495fb68b-9f01-4538-9561-fefce0d39558"),
Id = new Guid("a58856db-d72b-4d06-a56b-b34861e94551"),
IsActive = true
},
new
@@ -2736,7 +2823,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000027"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("3bdece9b-a798-4223-a23c-9c9dd10d042d"),
Id = new Guid("2795cbf1-de83-48d2-b955-818e30d31659"),
IsActive = true
},
new
@@ -2744,7 +2831,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000028"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("6fa616eb-99fe-46b9-8305-908765d037fd"),
Id = new Guid("cd60d268-87bf-44a0-9414-cfbd7dc8b30c"),
IsActive = true
},
new
@@ -2752,7 +2839,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000029"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("7a07148a-1327-4e97-befc-b2045eacad21"),
Id = new Guid("7b435bfb-7fd4-4f26-a746-df77fbb69b64"),
IsActive = true
},
new
@@ -2760,7 +2847,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000030"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("852e86d7-aa57-4a77-81c0-054f3fb4d7f7"),
Id = new Guid("519222bb-2021-42ec-a888-ffbbef3ebebf"),
IsActive = true
},
new
@@ -2768,7 +2855,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000031"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("3b767929-c973-41fb-a340-4ee5feb65619"),
Id = new Guid("e629ea0e-70e6-4ff5-8f5e-dffbcac162ba"),
IsActive = true
},
new
@@ -2776,7 +2863,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000032"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("63619bbd-0352-41bd-9e1c-a3f7908fb5d2"),
Id = new Guid("34d421af-e9cb-4eb5-ab13-afd5d26749f9"),
IsActive = true
},
new
@@ -2784,7 +2871,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000033"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("f6b4c8bf-a9b3-4179-9f57-a8584678c0d1"),
Id = new Guid("9b2af108-27a1-4cfc-a0d5-ad6a54ef9804"),
IsActive = true
},
new
@@ -2792,7 +2879,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000034"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("bb47b8ca-f7cf-40fe-8945-fc532a439b53"),
Id = new Guid("431ed966-2f97-45bb-a28e-330ebfbd90ee"),
IsActive = true
},
new
@@ -2800,7 +2887,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000035"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("52126271-ae3b-4b58-a9d2-50e2dd894087"),
Id = new Guid("11ed5a9f-a14f-4e7a-ade1-d9b39e30c1e5"),
IsActive = true
},
new
@@ -2808,7 +2895,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000036"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("981e3358-85bb-47fe-a1f5-3a3a02cf47b1"),
Id = new Guid("ec51a647-7a5a-4bab-a44c-aadced5448ea"),
IsActive = true
},
new
@@ -2816,7 +2903,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000037"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("749408da-fcee-458d-9144-8d8dee928ba0"),
Id = new Guid("87cd6a37-e18a-4c43-aeeb-ab6d7f866e6b"),
IsActive = true
},
new
@@ -2824,7 +2911,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000038"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("c157857c-fb0e-41fd-a414-c0f57a44b120"),
Id = new Guid("ca2ad12a-65d0-41b7-9ae8-9ac8df117d01"),
IsActive = true
},
new
@@ -2832,7 +2919,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000039"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("3217cdbc-76c9-4505-b9f3-23de91a6212b"),
Id = new Guid("817d6c94-11c3-4733-9fe5-c19f56316200"),
IsActive = true
},
new
@@ -2840,7 +2927,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000040"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("63526c52-18ba-40e0-9889-3bd3b7fc8161"),
Id = new Guid("5b7f95c1-ddb3-4ce8-b62f-11f3c37c44b2"),
IsActive = true
},
new
@@ -2848,7 +2935,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000041"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("260cf2fa-1ca6-4cd5-92ae-8c479a80e2f0"),
Id = new Guid("a84f7909-8f45-4ca3-a10f-2fc17680dfc0"),
IsActive = true
},
new
@@ -2856,7 +2943,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000042"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("130ab09c-8a36-4705-8235-9d00f75dd684"),
Id = new Guid("2af26741-1110-4853-82aa-70639060c087"),
IsActive = true
},
new
@@ -2864,7 +2951,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000043"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("41794774-e919-4f4e-a42a-5ae408d3407f"),
Id = new Guid("f2267efb-00c3-49f2-8f5d-c9cabd6cc1ec"),
IsActive = true
},
new
@@ -2872,7 +2959,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000044"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("2ff23d04-d1f6-4aa3-a48e-1c82bb9ad12a"),
Id = new Guid("6026dc21-65d6-4754-8e08-7a8588b41020"),
IsActive = true
},
new
@@ -2880,7 +2967,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000045"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("d36c81c0-8e9b-41ea-8e09-464a327a16d2"),
Id = new Guid("769408c0-fa97-4234-9ea8-a4e5a1a847be"),
IsActive = true
},
new
@@ -2888,7 +2975,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000046"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("6c51dfc1-63e0-46a6-b2bb-27c21c708b51"),
Id = new Guid("bace0a50-82ca-4d44-88f2-d0ecef753b0a"),
IsActive = true
},
new
@@ -2896,7 +2983,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000047"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("076333d5-b1f3-4b89-86fd-5a61a4451c88"),
Id = new Guid("9043c1e0-cf7b-4ac3-affd-52b0706d1753"),
IsActive = true
},
new
@@ -2904,7 +2991,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000048"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("7e834f3e-1424-4aaa-816e-d62da6df672b"),
Id = new Guid("b4572222-2bcc-4d18-aa82-d5fdb2a3f4ae"),
IsActive = true
},
new
@@ -2912,7 +2999,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000049"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("699fa06b-a7ff-4dbd-98a7-a29c2c361665"),
Id = new Guid("2f6ab72b-a3f2-4a47-8681-0ee575c9998f"),
IsActive = true
},
new
@@ -2920,7 +3007,7 @@ namespace Distribution.Migrations
FK_RoleId = new Guid("10000000-0000-0000-0000-000000000007"),
FK_PermissionId = new Guid("20000000-0000-0000-0000-000000000050"),
CreatedAt = new DateTime(2026, 8, 18, 0, 0, 0, 0, DateTimeKind.Unspecified),
Id = new Guid("00df5735-54c6-4cdf-8e2c-a64cd90ede15"),
Id = new Guid("395971d4-1369-45d4-8b54-28c1a33b7e0c"),
IsActive = true
});
});
@@ -4967,6 +5054,25 @@ namespace Distribution.Migrations
b.Navigation("ShopPO");
});
modelBuilder.Entity("Distribution.Models.NotificationRecipient", b =>
{
b.HasOne("Distribution.Models.Notification", "Notification")
.WithMany("Recipients")
.HasForeignKey("FK_NotificationId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Distribution.Models.User", "User")
.WithMany()
.HasForeignKey("FK_UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Notification");
b.Navigation("User");
});
modelBuilder.Entity("Distribution.Models.Payment", b =>
{
b.HasOne("Distribution.Models.BankAccount", "BankAccount")
@@ -5659,6 +5765,11 @@ namespace Distribution.Migrations
b.Navigation("Orders");
});
modelBuilder.Entity("Distribution.Models.Notification", b =>
{
b.Navigation("Recipients");
});
modelBuilder.Entity("Distribution.Models.PriceList", b =>
{
b.Navigation("Items");