From 209c09c20a7737094b660f4f35857e8e989a24c5 Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期二, 12 八月 2025 18:19:23 +0800
Subject: [PATCH] feat:开发
---
FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs | 149 +++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 137 insertions(+), 12 deletions(-)
diff --git a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
index 51515c9..03f805a 100644
--- a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
+++ b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
@@ -1224,6 +1224,12 @@
b.Property<DateTime?>("ArrangeTime")
.HasColumnType("datetime2");
+ b.Property<int?>("CheckReceiveStatus")
+ .HasColumnType("int");
+
+ b.Property<DateTime?>("CheckReceiveTime")
+ .HasColumnType("datetime2");
+
b.Property<Guid?>("CreatedEnterpriseId")
.HasColumnType("uniqueidentifier");
@@ -1238,6 +1244,9 @@
b.Property<bool>("IsDeleted")
.HasColumnType("bit");
+
+ b.Property<DateTime?>("LastSubmitTime")
+ .HasColumnType("datetime2");
b.Property<int>("Sort")
.HasColumnType("int");
@@ -1254,18 +1263,106 @@
b.Property<Guid?>("UpdatedUserId")
.HasColumnType("uniqueidentifier");
- b.Property<Guid?>("UserId")
- .HasColumnType("uniqueidentifier");
-
b.HasKey("Id");
b.HasIndex("EnterpriseEmployeeId");
b.HasIndex("TaskInfoId");
- b.HasIndex("UserId");
-
b.ToTable("TaskInfoUser");
+ });
+
+ modelBuilder.Entity("FlexJobApi.Core.TaskInfoUserSubmit", b =>
+ {
+ b.Property<Guid>("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property<int>("CheckReceiveStatus")
+ .HasColumnType("int");
+
+ b.Property<DateTime?>("CheckReceiveTime")
+ .HasColumnType("datetime2");
+
+ b.Property<Guid?>("CreatedEnterpriseId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property<DateTimeOffset>("CreatedTime")
+ .HasColumnType("datetimeoffset");
+
+ b.Property<Guid?>("CreatedUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property<DateTime>("Date")
+ .HasColumnType("datetime2");
+
+ b.Property<bool>("IsDeleted")
+ .HasColumnType("bit");
+
+ b.Property<int>("Sort")
+ .HasColumnType("int");
+
+ b.Property<Guid>("TaskInfoUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property<string>("TraceId")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<DateTimeOffset?>("UpdatedTime")
+ .HasColumnType("datetimeoffset");
+
+ b.Property<Guid?>("UpdatedUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TaskInfoUserId");
+
+ b.ToTable("TaskInfoUserSubmit");
+ });
+
+ modelBuilder.Entity("FlexJobApi.Core.TaskInfoUserSubmitFile", 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<string>("File")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<bool>("IsDeleted")
+ .HasColumnType("bit");
+
+ b.Property<int>("Sort")
+ .HasColumnType("int");
+
+ b.Property<Guid>("SubmitId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property<string>("TraceId")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property<DateTimeOffset?>("UpdatedTime")
+ .HasColumnType("datetimeoffset");
+
+ b.Property<Guid?>("UpdatedUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.HasKey("Id");
+
+ b.HasIndex("SubmitId");
+
+ b.ToTable("TaskInfoUserSubmitFile");
});
modelBuilder.Entity("FlexJobApi.Core.User", b =>
@@ -1917,7 +2014,7 @@
.IsRequired();
b.HasOne("FlexJobApi.Core.User", "User")
- .WithMany()
+ .WithMany("EnterpriseEmployees")
.HasForeignKey("UserId");
b.Navigation("Enterprise");
@@ -2053,13 +2150,31 @@
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
- b.HasOne("FlexJobApi.Core.User", null)
- .WithMany("TaskInfoUsers")
- .HasForeignKey("UserId");
-
b.Navigation("EnterpriseEmployee");
b.Navigation("TaskInfo");
+ });
+
+ modelBuilder.Entity("FlexJobApi.Core.TaskInfoUserSubmit", b =>
+ {
+ b.HasOne("FlexJobApi.Core.TaskInfoUser", "TaskInfoUser")
+ .WithMany("Submits")
+ .HasForeignKey("TaskInfoUserId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("TaskInfoUser");
+ });
+
+ modelBuilder.Entity("FlexJobApi.Core.TaskInfoUserSubmitFile", b =>
+ {
+ b.HasOne("FlexJobApi.Core.TaskInfoUserSubmit", "Submit")
+ .WithMany("Files")
+ .HasForeignKey("SubmitId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Submit");
});
modelBuilder.Entity("FlexJobApi.Core.User", b =>
@@ -2280,13 +2395,23 @@
b.Navigation("TaskInfoUsers");
});
+ modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b =>
+ {
+ b.Navigation("Submits");
+ });
+
+ modelBuilder.Entity("FlexJobApi.Core.TaskInfoUserSubmit", b =>
+ {
+ b.Navigation("Files");
+ });
+
modelBuilder.Entity("FlexJobApi.Core.User", b =>
{
b.Navigation("BankCards");
- b.Navigation("Photos");
+ b.Navigation("EnterpriseEmployees");
- b.Navigation("TaskInfoUsers");
+ b.Navigation("Photos");
b.Navigation("UserAuth");
--
Gitblit v1.9.1