From 75ffff5b036f823c209702af154702f59b2efb7a Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期三, 13 八月 2025 18:15:50 +0800 Subject: [PATCH] feat:开发 --- FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs | 236 ++++++++++++++++++++++++++++++++++++++++++---------------- 1 files changed, 169 insertions(+), 67 deletions(-) diff --git a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs index bb7a897..0039b18 100644 --- a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs +++ b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs @@ -516,6 +516,63 @@ b.ToTable("EnterpriseEmployee"); }); + modelBuilder.Entity("FlexJobApi.Core.EnterpriseUserCollect", b => + { + b.Property<Guid>("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property<DateTime?>("CollectedTime") + .HasColumnType("datetime2"); + + b.Property<DateTime?>("ContactedTime") + .HasColumnType("datetime2"); + + b.Property<Guid?>("CreatedEnterpriseId") + .HasColumnType("uniqueidentifier"); + + b.Property<DateTimeOffset>("CreatedTime") + .HasColumnType("datetimeoffset"); + + b.Property<Guid?>("CreatedUserId") + .HasColumnType("uniqueidentifier"); + + b.Property<Guid>("EnterpriseId") + .HasColumnType("uniqueidentifier"); + + b.Property<bool>("IsCollected") + .HasColumnType("bit"); + + b.Property<bool>("IsContacted") + .HasColumnType("bit"); + + b.Property<bool>("IsDeleted") + .HasColumnType("bit"); + + b.Property<int>("Sort") + .HasColumnType("int"); + + b.Property<string>("TraceId") + .HasColumnType("nvarchar(max)"); + + b.Property<DateTimeOffset?>("UpdatedTime") + .HasColumnType("datetimeoffset"); + + b.Property<Guid?>("UpdatedUserId") + .HasColumnType("uniqueidentifier"); + + b.Property<Guid>("UserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("EnterpriseId"); + + b.HasIndex("UserId"); + + b.ToTable("EnterpriseUserCollect"); + }); + modelBuilder.Entity("FlexJobApi.Core.Menu", b => { b.Property<Guid>("Id") @@ -1039,6 +1096,9 @@ b.Property<int?>("CheckReceiveStatus") .HasColumnType("int"); + b.Property<DateTime?>("CheckReceiveTime") + .HasColumnType("datetime2"); + b.Property<string>("CityCode") .HasColumnType("nvarchar(128)"); @@ -1065,6 +1125,12 @@ b.Property<bool>("IsDeleted") .HasColumnType("bit"); + + b.Property<DateTime?>("LastCheckReceiveTime") + .HasColumnType("datetime2"); + + b.Property<DateTime?>("LastSubmitTime") + .HasColumnType("datetime2"); b.Property<decimal?>("Latitude") .HasColumnType("decimal(18,6)"); @@ -1245,6 +1311,12 @@ b.Property<bool>("IsDeleted") .HasColumnType("bit"); + b.Property<DateTime?>("LastCheckReceiveTime") + .HasColumnType("datetime2"); + + b.Property<DateTime?>("LastSubmitTime") + .HasColumnType("datetime2"); + b.Property<int>("Sort") .HasColumnType("int"); @@ -1278,6 +1350,9 @@ b.Property<int>("CheckReceiveStatus") .HasColumnType("int"); + b.Property<DateTime?>("CheckReceiveTime") + .HasColumnType("datetime2"); + b.Property<Guid?>("CreatedEnterpriseId") .HasColumnType("uniqueidentifier"); @@ -1286,6 +1361,9 @@ b.Property<Guid?>("CreatedUserId") .HasColumnType("uniqueidentifier"); + + b.Property<DateTime>("Date") + .HasColumnType("datetime2"); b.Property<bool>("IsDeleted") .HasColumnType("bit"); @@ -1354,6 +1432,51 @@ b.HasIndex("SubmitId"); b.ToTable("TaskInfoUserSubmitFile"); + }); + + modelBuilder.Entity("FlexJobApi.Core.TaskUserCollect", b => + { + b.Property<Guid>("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property<Guid?>("CreatedEnterpriseId") + .HasColumnType("uniqueidentifier"); + + b.Property<DateTimeOffset>("CreatedTime") + .HasColumnType("datetimeoffset"); + + b.Property<Guid?>("CreatedUserId") + .HasColumnType("uniqueidentifier"); + + b.Property<bool>("IsDeleted") + .HasColumnType("bit"); + + b.Property<int>("Sort") + .HasColumnType("int"); + + b.Property<Guid>("TaskInfoId") + .HasColumnType("uniqueidentifier"); + + b.Property<string>("TraceId") + .HasColumnType("nvarchar(max)"); + + b.Property<DateTimeOffset?>("UpdatedTime") + .HasColumnType("datetimeoffset"); + + b.Property<Guid?>("UpdatedUserId") + .HasColumnType("uniqueidentifier"); + + b.Property<Guid>("UserId") + .HasColumnType("uniqueidentifier"); + + b.HasKey("Id"); + + b.HasIndex("TaskInfoId"); + + b.HasIndex("UserId"); + + b.ToTable("TaskUserCollect"); }); modelBuilder.Entity("FlexJobApi.Core.User", b => @@ -1654,7 +1777,7 @@ b.Property<Guid?>("CreatedUserId") .HasColumnType("uniqueidentifier"); - b.Property<DateTime>("EndDate") + b.Property<DateTime?>("EndDate") .HasColumnType("datetime2"); b.Property<string>("Img") @@ -1672,7 +1795,7 @@ b.Property<int>("Sort") .HasColumnType("int"); - b.Property<DateTime>("StartDate") + b.Property<DateTime?>("StartDate") .HasColumnType("datetime2"); b.Property<string>("TraceId") @@ -1879,51 +2002,6 @@ b.ToTable("UserRole"); }); - modelBuilder.Entity("FlexJobApi.Core.UserTaskCollect", b => - { - b.Property<Guid>("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property<Guid?>("CreatedEnterpriseId") - .HasColumnType("uniqueidentifier"); - - b.Property<DateTimeOffset>("CreatedTime") - .HasColumnType("datetimeoffset"); - - b.Property<Guid?>("CreatedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property<bool>("IsDeleted") - .HasColumnType("bit"); - - b.Property<int>("Sort") - .HasColumnType("int"); - - b.Property<Guid>("TaskInfoId") - .HasColumnType("uniqueidentifier"); - - b.Property<string>("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property<DateTimeOffset?>("UpdatedTime") - .HasColumnType("datetimeoffset"); - - b.Property<Guid?>("UpdatedUserId") - .HasColumnType("uniqueidentifier"); - - b.Property<Guid>("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("TaskInfoId"); - - b.HasIndex("UserId"); - - b.ToTable("UserTaskCollect"); - }); - modelBuilder.Entity("FlexJobApi.Core.Department", b => { b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise") @@ -2007,6 +2085,25 @@ b.HasOne("FlexJobApi.Core.User", "User") .WithMany("EnterpriseEmployees") .HasForeignKey("UserId"); + + b.Navigation("Enterprise"); + + b.Navigation("User"); + }); + + modelBuilder.Entity("FlexJobApi.Core.EnterpriseUserCollect", b => + { + b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise") + .WithMany() + .HasForeignKey("EnterpriseId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("FlexJobApi.Core.User", "User") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); b.Navigation("Enterprise"); @@ -2149,7 +2246,7 @@ modelBuilder.Entity("FlexJobApi.Core.TaskInfoUserSubmit", b => { b.HasOne("FlexJobApi.Core.TaskInfoUser", "TaskInfoUser") - .WithMany() + .WithMany("Submits") .HasForeignKey("TaskInfoUserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -2166,6 +2263,25 @@ .IsRequired(); b.Navigation("Submit"); + }); + + modelBuilder.Entity("FlexJobApi.Core.TaskUserCollect", b => + { + b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo") + .WithMany() + .HasForeignKey("TaskInfoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("FlexJobApi.Core.User", "User") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("TaskInfo"); + + b.Navigation("User"); }); modelBuilder.Entity("FlexJobApi.Core.User", b => @@ -2320,25 +2436,6 @@ b.Navigation("User"); }); - modelBuilder.Entity("FlexJobApi.Core.UserTaskCollect", b => - { - b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo") - .WithMany() - .HasForeignKey("TaskInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("FlexJobApi.Core.User", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TaskInfo"); - - b.Navigation("User"); - }); - modelBuilder.Entity("FlexJobApi.Core.Department", b => { b.Navigation("Children"); @@ -2386,6 +2483,11 @@ b.Navigation("TaskInfoUsers"); }); + modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b => + { + b.Navigation("Submits"); + }); + modelBuilder.Entity("FlexJobApi.Core.TaskInfoUserSubmit", b => { b.Navigation("Files"); -- Gitblit v1.9.1