From 2c801cf41f42736ef4c8c912b17666a4fc7e66bd Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期五, 08 八月 2025 17:49:39 +0800 Subject: [PATCH] feat:开发 --- FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs index a6ae4ac..13ee61a 100644 --- a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs +++ b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs @@ -818,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() @@ -1026,6 +1026,9 @@ .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); + b.Property<int?>("Age") + .HasColumnType("int"); + b.Property<string>("Avatar") .HasColumnType("nvarchar(max)"); @@ -1044,6 +1047,12 @@ b.Property<Guid?>("EnterpriseId") .HasColumnType("uniqueidentifier"); + b.Property<int?>("Gender") + .HasColumnType("int"); + + b.Property<string>("Identity") + .HasColumnType("nvarchar(max)"); + b.Property<bool>("IsCheckPhoneNumber") .HasColumnType("bit"); @@ -1057,7 +1066,6 @@ .HasColumnType("int"); b.Property<string>("Name") - .IsRequired() .HasMaxLength(32) .HasColumnType("nvarchar(32)"); @@ -1721,7 +1729,7 @@ b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo") .WithMany("Benefits") .HasForeignKey("TaskInfoId") - .OnDelete(DeleteBehavior.Restrict) + .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Benefit"); @@ -1752,7 +1760,7 @@ modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b => { b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo") - .WithMany() + .WithMany("Users") .HasForeignKey("TaskInfoId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -1969,6 +1977,8 @@ b.Navigation("Benefits"); b.Navigation("CredentialLimits"); + + b.Navigation("Users"); }); modelBuilder.Entity("FlexJobApi.Core.User", b => -- Gitblit v1.9.1