From 091a61921fd3f29a8169c065ce1baa5e41176da5 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期五, 08 八月 2025 17:12:22 +0800
Subject: [PATCH] fix: 企业任务数量

---
 FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
index 5e897d6..fbfc3c8 100644
--- a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
+++ b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
@@ -577,11 +577,9 @@
                         .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("ResponseTypeFullName")
-                        .IsRequired()
                         .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("ResponseTypeName")
-                        .IsRequired()
                         .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("Route")
@@ -820,10 +818,10 @@
                         .HasColumnType("bit");
 
                     b.Property<decimal?>("Latitude")
-                        .HasColumnType("decimal(18,2)");
+                        .HasColumnType("decimal(18,6)");
 
                     b.Property<decimal?>("Longitude")
-                        .HasColumnType("decimal(18,2)");
+                        .HasColumnType("decimal(18,6)");
 
                     b.Property<string>("Name")
                         .IsRequired()
@@ -1723,7 +1721,7 @@
                     b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo")
                         .WithMany("Benefits")
                         .HasForeignKey("TaskInfoId")
-                        .OnDelete(DeleteBehavior.Restrict)
+                        .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
 
                     b.Navigation("Benefit");
@@ -1754,7 +1752,7 @@
             modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b =>
                 {
                     b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo")
-                        .WithMany()
+                        .WithMany("Users")
                         .HasForeignKey("TaskInfoId")
                         .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
@@ -1971,6 +1969,8 @@
                     b.Navigation("Benefits");
 
                     b.Navigation("CredentialLimits");
+
+                    b.Navigation("Users");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.User", b =>

--
Gitblit v1.9.1