From 3a57c342ff5b39467b9dd0d5ba3c624311a581f1 Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期五, 22 八月 2025 16:44:06 +0800
Subject: [PATCH] feat:开发

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

diff --git a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
index 0568bc9..eda1f43 100644
--- a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
+++ b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
@@ -107,6 +107,9 @@
                         .ValueGeneratedOnAdd()
                         .HasColumnType("uniqueidentifier");
 
+                    b.Property<string>("BindProperty")
+                        .HasColumnType("nvarchar(max)");
+
                     b.Property<Guid?>("CreatedEnterpriseId")
                         .HasColumnType("uniqueidentifier");
 
@@ -349,6 +352,56 @@
                     b.ToTable("DictionaryData");
                 });
 
+            modelBuilder.Entity("FlexJobApi.Core.ElectronSignSetting", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<int>("Access")
+                        .HasColumnType("int");
+
+                    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<bool>("IsDisabled")
+                        .HasColumnType("bit");
+
+                    b.Property<decimal?>("MergeSignCost")
+                        .HasColumnType("decimal(18,2)");
+
+                    b.Property<decimal?>("RealVerifyCost")
+                        .HasColumnType("decimal(18,2)");
+
+                    b.Property<decimal?>("SignCost")
+                        .HasColumnType("decimal(18,2)");
+
+                    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.HasKey("Id");
+
+                    b.ToTable("ElectronSignSetting");
+                });
+
             modelBuilder.Entity("FlexJobApi.Core.Enterprise", b =>
                 {
                     b.Property<Guid>("Id")
@@ -431,9 +484,6 @@
                     b.Property<string>("MainBusiness")
                         .HasColumnType("nvarchar(max)");
 
-                    b.Property<decimal?>("MergeSignCost")
-                        .HasColumnType("decimal(18,2)");
-
                     b.Property<int?>("PayAccess")
                         .HasColumnType("int");
 
@@ -443,14 +493,8 @@
                     b.Property<int?>("RealAccess")
                         .HasColumnType("int");
 
-                    b.Property<decimal?>("RealVerifyCost")
-                        .HasColumnType("decimal(18,2)");
-
                     b.Property<string>("RegisteredCapital")
                         .HasColumnType("nvarchar(max)");
-
-                    b.Property<decimal?>("SignCost")
-                        .HasColumnType("decimal(18,2)");
 
                     b.Property<int?>("SmsAccess")
                         .HasColumnType("int");
@@ -497,6 +541,9 @@
                         .HasColumnType("nvarchar(32)");
 
                     b.Property<string>("BankCardImg")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("CertAccount")
                         .HasColumnType("nvarchar(max)");
 
                     b.Property<Guid?>("CreatedEnterpriseId")
@@ -560,9 +607,6 @@
                     b.Property<string>("ProxyPowerAttorneyUrl")
                         .HasColumnType("nvarchar(max)");
 
-                    b.Property<string>("RealId")
-                        .HasColumnType("nvarchar(max)");
-
                     b.Property<string>("SocietyCreditCode")
                         .IsRequired()
                         .HasMaxLength(18)
@@ -585,6 +629,49 @@
                     b.ToTable("EnterpriseAuth");
                 });
 
+            modelBuilder.Entity("FlexJobApi.Core.EnterpriseElectronSignSetting", 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<int>("ElectronSignAccess")
+                        .HasColumnType("int");
+
+                    b.Property<Guid>("EnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
+                    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.HasKey("Id");
+
+                    b.HasIndex("EnterpriseId");
+
+                    b.ToTable("EnterpriseElectronSignSetting");
+                });
+
             modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployee", b =>
                 {
                     b.Property<Guid>("Id")
@@ -600,6 +687,12 @@
                     b.Property<string>("ContactPhoneNumber")
                         .HasMaxLength(11)
                         .HasColumnType("nvarchar(11)");
+
+                    b.Property<string>("ContractCode")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<Guid?>("ContractTemplateId")
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("ContractUrl")
                         .HasColumnType("nvarchar(max)");
@@ -664,11 +757,74 @@
 
                     b.HasKey("Id");
 
+                    b.HasIndex("ContractTemplateId");
+
                     b.HasIndex("EnterpriseId");
 
                     b.HasIndex("UserId");
 
                     b.ToTable("EnterpriseEmployee");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployeeContract", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("ContractCode")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<Guid?>("ContractTemplateId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("ContractUrl")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<Guid>("EnterpriseEmployeeId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<int?>("EnterpriseSignContractStatus")
+                        .HasColumnType("int");
+
+                    b.Property<DateTime?>("EnterpriseSignContractTime")
+                        .HasColumnType("datetime2");
+
+                    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<int?>("UserSignContractStatus")
+                        .HasColumnType("int");
+
+                    b.Property<DateTime?>("UserSignContractTime")
+                        .HasColumnType("datetime2");
+
+                    b.HasKey("Id");
+
+                    b.HasIndex("EnterpriseEmployeeId");
+
+                    b.ToTable("EnterpriseEmployeeContract");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.EnterpriseUserCollect", b =>
@@ -2333,8 +2489,23 @@
                     b.Navigation("Enterprise");
                 });
 
+            modelBuilder.Entity("FlexJobApi.Core.EnterpriseElectronSignSetting", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise")
+                        .WithMany("ElectronSignSettings")
+                        .HasForeignKey("EnterpriseId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.Navigation("Enterprise");
+                });
+
             modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployee", b =>
                 {
+                    b.HasOne("FlexJobApi.Core.ContractTemplate", "ContractTemplate")
+                        .WithMany()
+                        .HasForeignKey("ContractTemplateId");
+
                     b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise")
                         .WithMany()
                         .HasForeignKey("EnterpriseId")
@@ -2345,9 +2516,22 @@
                         .WithMany("EnterpriseEmployees")
                         .HasForeignKey("UserId");
 
+                    b.Navigation("ContractTemplate");
+
                     b.Navigation("Enterprise");
 
                     b.Navigation("User");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployeeContract", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.EnterpriseEmployee", "EnterpriseEmployee")
+                        .WithMany("Contracts")
+                        .HasForeignKey("EnterpriseEmployeeId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.Navigation("EnterpriseEmployee");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.EnterpriseUserCollect", b =>
@@ -2727,6 +2911,8 @@
 
                     b.Navigation("Departments");
 
+                    b.Navigation("ElectronSignSettings");
+
                     b.Navigation("EnterpriseAuth");
 
                     b.Navigation("Users");
@@ -2734,6 +2920,8 @@
 
             modelBuilder.Entity("FlexJobApi.Core.EnterpriseEmployee", b =>
                 {
+                    b.Navigation("Contracts");
+
                     b.Navigation("TaskInfoUsers");
                 });
 

--
Gitblit v1.9.1