From 6c0058d15ab61956b806f62a2b576ffd5d723ed9 Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期五, 08 八月 2025 11:16:21 +0800
Subject: [PATCH] fix:bug

---
 FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs |  819 ++++++++++++++++++++++++++++++++++++---------------------
 1 files changed, 514 insertions(+), 305 deletions(-)

diff --git a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
index b919251..5e897d6 100644
--- a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
+++ b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
@@ -28,10 +28,13 @@
                         .ValueGeneratedOnAdd()
                         .HasColumnType("uniqueidentifier");
 
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid>("EnterpriseId")
@@ -65,7 +68,7 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
@@ -88,10 +91,13 @@
                         .HasMaxLength(128)
                         .HasColumnType("nvarchar(128)");
 
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("FieldNames")
@@ -117,7 +123,7 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
@@ -135,6 +141,7 @@
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("Code")
+                        .IsRequired()
                         .HasMaxLength(128)
                         .HasColumnType("nvarchar(128)");
 
@@ -142,11 +149,17 @@
                         .IsRequired()
                         .HasColumnType("nvarchar(max)");
 
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
+
+                    b.Property<int>("Deep")
+                        .HasColumnType("int");
 
                     b.Property<string>("Field1")
                         .HasColumnType("nvarchar(max)");
@@ -184,12 +197,15 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
                     b.HasIndex("CategoryId");
+
+                    b.HasIndex("Code")
+                        .IsUnique();
 
                     b.HasIndex("ParentId");
 
@@ -212,8 +228,8 @@
                     b.Property<string>("BankName")
                         .HasColumnType("nvarchar(max)");
 
-                    b.Property<Guid?>("CityId")
-                        .HasColumnType("uniqueidentifier");
+                    b.Property<string>("CityCode")
+                        .HasColumnType("nvarchar(128)");
 
                     b.Property<string>("ContactEmail")
                         .HasColumnType("nvarchar(max)");
@@ -226,23 +242,42 @@
                         .HasMaxLength(32)
                         .HasColumnType("nvarchar(32)");
 
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
-                    b.Property<Guid>("EnterpriseAuthId")
-                        .HasColumnType("uniqueidentifier");
+                    b.Property<string>("EnterpriseName")
+                        .IsRequired()
+                        .HasMaxLength(128)
+                        .HasColumnType("nvarchar(128)");
 
-                    b.Property<Guid?>("IndustryTypeId")
-                        .HasColumnType("uniqueidentifier");
+                    b.Property<string>("IndustryTypeCode")
+                        .HasColumnType("nvarchar(128)");
 
                     b.Property<bool>("IsCheckedBankCard")
                         .HasColumnType("bit");
 
                     b.Property<bool>("IsDeleted")
                         .HasColumnType("bit");
+
+                    b.Property<bool>("IsReal")
+                        .HasColumnType("bit");
+
+                    b.Property<string>("LegalIdentity")
+                        .HasMaxLength(18)
+                        .HasColumnType("nvarchar(18)");
+
+                    b.Property<string>("LegalPerson")
+                        .HasMaxLength(32)
+                        .HasColumnType("nvarchar(32)");
+
+                    b.Property<string>("LicenseImage")
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("MainBusiness")
                         .HasColumnType("nvarchar(max)");
@@ -253,8 +288,8 @@
                     b.Property<int?>("PayAccess")
                         .HasColumnType("int");
 
-                    b.Property<Guid?>("ProvinceId")
-                        .HasColumnType("uniqueidentifier");
+                    b.Property<string>("ProvinceCode")
+                        .HasColumnType("nvarchar(128)");
 
                     b.Property<int?>("RealAccess")
                         .HasColumnType("int");
@@ -271,6 +306,11 @@
                     b.Property<decimal>("SmsCost")
                         .HasColumnType("decimal(18,2)");
 
+                    b.Property<string>("SocietyCreditCode")
+                        .IsRequired()
+                        .HasMaxLength(18)
+                        .HasColumnType("nvarchar(18)");
+
                     b.Property<int>("Sort")
                         .HasColumnType("int");
 
@@ -280,18 +320,16 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
-                    b.HasIndex("CityId");
+                    b.HasIndex("CityCode");
 
-                    b.HasIndex("EnterpriseAuthId");
+                    b.HasIndex("IndustryTypeCode");
 
-                    b.HasIndex("IndustryTypeId");
-
-                    b.HasIndex("ProvinceId");
+                    b.HasIndex("ProvinceCode");
 
                     b.ToTable("Enterprise");
                 });
@@ -309,10 +347,13 @@
                     b.Property<string>("BankCardImg")
                         .HasColumnType("nvarchar(max)");
 
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("EnterpriseName")
@@ -334,9 +375,6 @@
                         .HasColumnType("nvarchar(max)");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit");
-
-                    b.Property<bool>("IsReal")
                         .HasColumnType("bit");
 
                     b.Property<string>("LegalIdentity")
@@ -381,7 +419,7 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
@@ -402,10 +440,13 @@
                         .IsRequired()
                         .HasColumnType("nvarchar(max)");
 
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("Group")
@@ -452,7 +493,7 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("Url")
@@ -502,10 +543,13 @@
                     b.Property<string>("ControllerSummary")
                         .HasColumnType("nvarchar(max)");
 
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("DynamicAssemblyName")
@@ -562,7 +606,7 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
@@ -579,10 +623,13 @@
                     b.Property<int>("ClientType")
                         .HasColumnType("int");
 
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("DataPower")
@@ -614,7 +661,7 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("UserType")
@@ -631,10 +678,13 @@
                         .ValueGeneratedOnAdd()
                         .HasColumnType("uniqueidentifier");
 
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<bool>("IsDeleted")
@@ -655,7 +705,7 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
@@ -673,10 +723,13 @@
                         .ValueGeneratedOnAdd()
                         .HasColumnType("uniqueidentifier");
 
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("DataPower")
@@ -700,7 +753,7 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
@@ -718,7 +771,10 @@
                         .ValueGeneratedOnAdd()
                         .HasColumnType("uniqueidentifier");
 
-                    b.Property<string>("Address")
+                    b.Property<string>("AddressDetail")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("AddressName")
                         .HasColumnType("nvarchar(max)");
 
                     b.Property<int>("AgeMaxLimit")
@@ -733,13 +789,22 @@
                     b.Property<int>("BillingMethod")
                         .HasColumnType("int");
 
-                    b.Property<Guid>("CityId")
+                    b.Property<int?>("CheckReceiveStatus")
+                        .HasColumnType("int");
+
+                    b.Property<string>("CityCode")
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<string>("Code")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<Guid?>("CreatedEnterpriseId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<DateTime>("EndTime")
@@ -754,9 +819,24 @@
                     b.Property<bool>("IsDeleted")
                         .HasColumnType("bit");
 
+                    b.Property<decimal?>("Latitude")
+                        .HasColumnType("decimal(18,2)");
+
+                    b.Property<decimal?>("Longitude")
+                        .HasColumnType("decimal(18,2)");
+
                     b.Property<string>("Name")
                         .IsRequired()
                         .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("ProvinceCode")
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<int>("RecommendStatus")
+                        .HasColumnType("int");
+
+                    b.Property<int>("ReleaseStatus")
+                        .HasColumnType("int");
 
                     b.Property<decimal>("ServiceFee")
                         .HasColumnType("decimal(18,2)");
@@ -764,7 +844,13 @@
                     b.Property<int>("SettlementCycle")
                         .HasColumnType("int");
 
+                    b.Property<int?>("SettlementStatus")
+                        .HasColumnType("int");
+
                     b.Property<int>("Sort")
+                        .HasColumnType("int");
+
+                    b.Property<int>("Status")
                         .HasColumnType("int");
 
                     b.Property<string>("TraceId")
@@ -773,14 +859,16 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
-                    b.HasIndex("CityId");
+                    b.HasIndex("CityCode");
 
                     b.HasIndex("EnterpriseId");
+
+                    b.HasIndex("ProvinceCode");
 
                     b.ToTable("TaskInfo");
                 });
@@ -791,13 +879,17 @@
                         .ValueGeneratedOnAdd()
                         .HasColumnType("uniqueidentifier");
 
-                    b.Property<Guid>("BenefitId")
+                    b.Property<string>("BenefitCode")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<Guid?>("CreatedEnterpriseId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<bool>("IsDeleted")
@@ -815,12 +907,12 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
-                    b.HasIndex("BenefitId");
+                    b.HasIndex("BenefitCode");
 
                     b.HasIndex("TaskInfoId");
 
@@ -833,10 +925,13 @@
                         .ValueGeneratedOnAdd()
                         .HasColumnType("uniqueidentifier");
 
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<bool>("IsDeleted")
@@ -851,20 +946,21 @@
                     b.Property<string>("TraceId")
                         .HasColumnType("nvarchar(max)");
 
-                    b.Property<Guid?>("TypeId")
-                        .HasColumnType("uniqueidentifier");
+                    b.Property<string>("TypeCode")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(128)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
                     b.HasIndex("TaskInfoId");
 
-                    b.HasIndex("TypeId");
+                    b.HasIndex("TypeCode");
 
                     b.ToTable("TaskInfoCredentialLimit");
                 });
@@ -875,10 +971,13 @@
                         .ValueGeneratedOnAdd()
                         .HasColumnType("uniqueidentifier");
 
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("HireStatus")
@@ -908,48 +1007,44 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
-                    b.Property<Guid>("UserInfoId")
+                    b.Property<Guid>("UserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
                     b.HasIndex("TaskInfoId");
 
-                    b.HasIndex("UserInfoId");
+                    b.HasIndex("UserId");
 
                     b.ToTable("TaskInfoUser");
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.UserAuth", b =>
+            modelBuilder.Entity("FlexJobApi.Core.User", b =>
                 {
                     b.Property<Guid>("Id")
                         .ValueGeneratedOnAdd()
                         .HasColumnType("uniqueidentifier");
 
-                    b.Property<string>("BankCard")
-                        .HasMaxLength(32)
-                        .HasColumnType("nvarchar(32)");
-
-                    b.Property<string>("BankCardImg")
+                    b.Property<string>("Avatar")
                         .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("CityCode")
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
-                    b.Property<string>("Identity")
-                        .HasColumnType("nvarchar(max)");
-
-                    b.Property<string>("IdentityBackImg")
-                        .HasColumnType("nvarchar(max)");
-
-                    b.Property<string>("IdentityImg")
-                        .HasColumnType("nvarchar(max)");
+                    b.Property<Guid?>("EnterpriseId")
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<bool>("IsCheckPhoneNumber")
                         .HasColumnType("bit");
@@ -959,6 +1054,9 @@
 
                     b.Property<bool>("IsReal")
                         .HasColumnType("bit");
+
+                    b.Property<int>("Level")
+                        .HasColumnType("int");
 
                     b.Property<string>("Name")
                         .IsRequired()
@@ -972,89 +1070,11 @@
                         .HasMaxLength(11)
                         .HasColumnType("nvarchar(11)");
 
+                    b.Property<string>("ProvinceCode")
+                        .HasColumnType("nvarchar(128)");
+
                     b.Property<int?>("RealAccess")
                         .HasColumnType("int");
-
-                    b.Property<int>("Sort")
-                        .HasColumnType("int");
-
-                    b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)");
-
-                    b.Property<DateTimeOffset?>("UpdatedTime")
-                        .HasColumnType("datetimeoffset");
-
-                    b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier");
-
-                    b.Property<string>("UserName")
-                        .IsRequired()
-                        .HasMaxLength(32)
-                        .HasColumnType("nvarchar(32)");
-
-                    b.HasKey("Id");
-
-                    b.ToTable("UserAuth");
-
-                    b.HasData(
-                        new
-                        {
-                            Id = new Guid("11111111-1111-1111-1111-111111111111"),
-                            CreatedTime = new DateTimeOffset(new DateTime(2000, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 8, 0, 0, 0)),
-                            IsCheckPhoneNumber = false,
-                            IsDeleted = false,
-                            IsReal = false,
-                            Name = "绠$悊鍛�",
-                            Password = "iEYggKrMhQ3ASUGLobra1w==:fn/DsMJUbD9FGpvBvR3moMpMPptdxzZlourPVhU479I=",
-                            Sort = 0,
-                            UserName = "system"
-                        });
-                });
-
-            modelBuilder.Entity("FlexJobApi.Core.UserInfo", b =>
-                {
-                    b.Property<Guid>("Id")
-                        .ValueGeneratedOnAdd()
-                        .HasColumnType("uniqueidentifier");
-
-                    b.Property<string>("Avatar")
-                        .HasColumnType("nvarchar(max)");
-
-                    b.Property<Guid?>("CityId")
-                        .HasColumnType("uniqueidentifier");
-
-                    b.Property<DateTimeOffset>("CreatedTime")
-                        .HasColumnType("datetimeoffset");
-
-                    b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier");
-
-                    b.Property<Guid?>("EducationalBackgroundId")
-                        .HasColumnType("uniqueidentifier");
-
-                    b.Property<Guid?>("EnterpriseId")
-                        .HasColumnType("uniqueidentifier");
-
-                    b.Property<int?>("FreeTime")
-                        .HasColumnType("int");
-
-                    b.Property<int?>("Height")
-                        .HasColumnType("int");
-
-                    b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit");
-
-                    b.Property<int?>("JobSeekingStatus")
-                        .HasColumnType("int");
-
-                    b.Property<int>("Level")
-                        .HasColumnType("int");
-
-                    b.Property<Guid?>("PersonalIdentityId")
-                        .HasColumnType("uniqueidentifier");
-
-                    b.Property<Guid?>("ProvinceId")
-                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("Remark")
                         .HasColumnType("nvarchar(max)");
@@ -1074,20 +1094,13 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
-                    b.Property<Guid>("UserAuthId")
-                        .HasColumnType("uniqueidentifier");
-
-                    b.Property<int?>("Weight")
-                        .HasColumnType("int");
-
-                    b.Property<string>("WorkExperience")
-                        .HasColumnType("nvarchar(max)");
-
-                    b.Property<string>("WorkSeniority")
-                        .HasColumnType("nvarchar(max)");
+                    b.Property<string>("UserName")
+                        .IsRequired()
+                        .HasMaxLength(32)
+                        .HasColumnType("nvarchar(32)");
 
                     b.Property<string>("WxmpOpenId")
                         .HasMaxLength(32)
@@ -1095,35 +1108,93 @@
 
                     b.HasKey("Id");
 
-                    b.HasIndex("CityId");
-
-                    b.HasIndex("EducationalBackgroundId");
+                    b.HasIndex("CityCode");
 
                     b.HasIndex("EnterpriseId");
 
-                    b.HasIndex("PersonalIdentityId");
+                    b.HasIndex("ProvinceCode");
 
-                    b.HasIndex("ProvinceId");
-
-                    b.HasIndex("UserAuthId");
-
-                    b.ToTable("UserInfo");
+                    b.ToTable("User");
 
                     b.HasData(
                         new
                         {
-                            Id = new Guid("11111111-1111-1111-1111-111111111112"),
+                            Id = new Guid("11111111-1111-1111-1111-111111111111"),
                             CreatedTime = new DateTimeOffset(new DateTime(2000, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 8, 0, 0, 0)),
+                            IsCheckPhoneNumber = false,
                             IsDeleted = false,
+                            IsReal = false,
                             Level = 999,
+                            Name = "绠$悊鍛�",
+                            Password = "iEYggKrMhQ3ASUGLobra1w==:fn/DsMJUbD9FGpvBvR3moMpMPptdxzZlourPVhU479I=",
                             Sort = 0,
-                            Status = 0,
+                            Status = 10,
                             Type = 100,
-                            UserAuthId = new Guid("11111111-1111-1111-1111-111111111111")
+                            UserName = "system"
                         });
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.UserInfoBankCard", b =>
+            modelBuilder.Entity("FlexJobApi.Core.UserAuth", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("BankCard")
+                        .HasMaxLength(32)
+                        .HasColumnType("nvarchar(32)");
+
+                    b.Property<string>("BankCardImg")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Identity")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("IdentityBackImg")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("IdentityImg")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<string>("Name")
+                        .IsRequired()
+                        .HasMaxLength(32)
+                        .HasColumnType("nvarchar(32)");
+
+                    b.Property<string>("PhoneNumber")
+                        .HasMaxLength(11)
+                        .HasColumnType("nvarchar(11)");
+
+                    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("UserAuth");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserBankCard", b =>
                 {
                     b.Property<Guid>("Id")
                         .ValueGeneratedOnAdd()
@@ -1139,10 +1210,13 @@
                         .HasMaxLength(32)
                         .HasColumnType("nvarchar(32)");
 
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<bool>("IsDeleted")
@@ -1162,20 +1236,20 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
-                    b.Property<Guid>("UserInfoId")
+                    b.Property<Guid>("UserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
-                    b.HasIndex("UserInfoId");
+                    b.HasIndex("UserId");
 
-                    b.ToTable("UserInfoBankCard");
+                    b.ToTable("UserBankCard");
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.UserInfoCredential", b =>
+            modelBuilder.Entity("FlexJobApi.Core.UserCredential", b =>
                 {
                     b.Property<Guid>("Id")
                         .ValueGeneratedOnAdd()
@@ -1189,10 +1263,13 @@
                         .HasMaxLength(128)
                         .HasColumnType("nvarchar(128)");
 
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<DateTime>("EndDate")
@@ -1219,37 +1296,41 @@
                     b.Property<string>("TraceId")
                         .HasColumnType("nvarchar(max)");
 
-                    b.Property<Guid?>("TypeId")
-                        .HasColumnType("uniqueidentifier");
+                    b.Property<string>("TypeCode")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(128)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
-                    b.Property<Guid>("UserInfoId")
+                    b.Property<Guid>("UserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
-                    b.HasIndex("TypeId");
+                    b.HasIndex("TypeCode");
 
-                    b.HasIndex("UserInfoId");
+                    b.HasIndex("UserId");
 
-                    b.ToTable("UserInfoCredential");
+                    b.ToTable("UserCredential");
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.UserInfoDepartment", b =>
+            modelBuilder.Entity("FlexJobApi.Core.UserDepartment", b =>
                 {
                     b.Property<Guid>("Id")
                         .ValueGeneratedOnAdd()
                         .HasColumnType("uniqueidentifier");
 
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid>("DepartmentId")
@@ -1267,38 +1348,42 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
-                    b.Property<Guid>("UserInfoId")
+                    b.Property<Guid>("UserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
                     b.HasIndex("DepartmentId");
 
-                    b.HasIndex("UserInfoId");
+                    b.HasIndex("UserId");
 
-                    b.ToTable("UserInfoDepartment");
+                    b.ToTable("UserDepartment");
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.UserInfoExpectJob", b =>
+            modelBuilder.Entity("FlexJobApi.Core.UserExpectJob", b =>
                 {
                     b.Property<Guid>("Id")
                         .ValueGeneratedOnAdd()
                         .HasColumnType("uniqueidentifier");
 
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<bool>("IsDeleted")
                         .HasColumnType("bit");
 
-                    b.Property<Guid>("PersonalIdentityId")
-                        .HasColumnType("uniqueidentifier");
+                    b.Property<string>("PersonalIdentityCode")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(128)");
 
                     b.Property<int>("Sort")
                         .HasColumnType("int");
@@ -1309,31 +1394,34 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
-                    b.Property<Guid>("UserInfoId")
+                    b.Property<Guid>("UserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
-                    b.HasIndex("PersonalIdentityId");
+                    b.HasIndex("PersonalIdentityCode");
 
-                    b.HasIndex("UserInfoId");
+                    b.HasIndex("UserId");
 
-                    b.ToTable("UserInfoExpectJob");
+                    b.ToTable("UserExpectJob");
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.UserInfoPhoto", b =>
+            modelBuilder.Entity("FlexJobApi.Core.UserPhoto", b =>
                 {
                     b.Property<Guid>("Id")
                         .ValueGeneratedOnAdd()
                         .HasColumnType("uniqueidentifier");
 
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("Img")
@@ -1351,29 +1439,100 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
-                    b.Property<Guid>("UserInfoId")
+                    b.Property<Guid>("UserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
-                    b.HasIndex("UserInfoId");
+                    b.HasIndex("UserId");
 
-                    b.ToTable("UserInfoPhoto");
+                    b.ToTable("UserPhoto");
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.UserInfoRole", b =>
+            modelBuilder.Entity("FlexJobApi.Core.UserResume", b =>
                 {
                     b.Property<Guid>("Id")
                         .ValueGeneratedOnAdd()
                         .HasColumnType("uniqueidentifier");
 
+                    b.Property<Guid?>("CreatedEnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("CreatedUserInfoId")
+                    b.Property<Guid?>("CreatedUserId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("EducationalBackgroundCode")
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<int?>("FreeTime")
+                        .HasColumnType("int");
+
+                    b.Property<int?>("Height")
+                        .HasColumnType("int");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<int?>("JobSeekingStatus")
+                        .HasColumnType("int");
+
+                    b.Property<string>("PersonalIdentityCode")
+                        .HasColumnType("nvarchar(128)");
+
+                    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.Property<int?>("Weight")
+                        .HasColumnType("int");
+
+                    b.Property<string>("WorkExperience")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("WorkSeniority")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.HasKey("Id");
+
+                    b.HasIndex("EducationalBackgroundCode");
+
+                    b.HasIndex("PersonalIdentityCode");
+
+                    b.HasIndex("UserId");
+
+                    b.ToTable("UserResume");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserRole", 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")
@@ -1391,19 +1550,19 @@
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<Guid?>("UpdatedUserInfoId")
+                    b.Property<Guid?>("UpdatedUserId")
                         .HasColumnType("uniqueidentifier");
 
-                    b.Property<Guid>("UserInfoId")
+                    b.Property<Guid>("UserId")
                         .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
                     b.HasIndex("RoleId");
 
-                    b.HasIndex("UserInfoId");
+                    b.HasIndex("UserId");
 
-                    b.ToTable("UserInfoRole");
+                    b.ToTable("UserRole");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.Department", b =>
@@ -1444,29 +1603,38 @@
                 {
                     b.HasOne("FlexJobApi.Core.DictionaryData", "City")
                         .WithMany()
-                        .HasForeignKey("CityId");
-
-                    b.HasOne("FlexJobApi.Core.EnterpriseAuth", "EnterpriseAuth")
-                        .WithMany()
-                        .HasForeignKey("EnterpriseAuthId")
-                        .OnDelete(DeleteBehavior.Cascade)
-                        .IsRequired();
+                        .HasForeignKey("CityCode")
+                        .HasPrincipalKey("Code")
+                        .OnDelete(DeleteBehavior.Restrict);
 
                     b.HasOne("FlexJobApi.Core.DictionaryData", "IndustryType")
                         .WithMany()
-                        .HasForeignKey("IndustryTypeId");
+                        .HasForeignKey("IndustryTypeCode")
+                        .HasPrincipalKey("Code")
+                        .OnDelete(DeleteBehavior.Restrict);
 
                     b.HasOne("FlexJobApi.Core.DictionaryData", "Province")
                         .WithMany()
-                        .HasForeignKey("ProvinceId");
+                        .HasForeignKey("ProvinceCode")
+                        .HasPrincipalKey("Code")
+                        .OnDelete(DeleteBehavior.Restrict);
 
                     b.Navigation("City");
-
-                    b.Navigation("EnterpriseAuth");
 
                     b.Navigation("IndustryType");
 
                     b.Navigation("Province");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.EnterpriseAuth", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise")
+                        .WithOne("EnterpriseAuth")
+                        .HasForeignKey("FlexJobApi.Core.EnterpriseAuth", "Id")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.Navigation("Enterprise");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
@@ -1520,9 +1688,9 @@
                 {
                     b.HasOne("FlexJobApi.Core.DictionaryData", "City")
                         .WithMany()
-                        .HasForeignKey("CityId")
-                        .OnDelete(DeleteBehavior.Cascade)
-                        .IsRequired();
+                        .HasForeignKey("CityCode")
+                        .HasPrincipalKey("Code")
+                        .OnDelete(DeleteBehavior.Restrict);
 
                     b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise")
                         .WithMany()
@@ -1530,17 +1698,26 @@
                         .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
 
+                    b.HasOne("FlexJobApi.Core.DictionaryData", "Province")
+                        .WithMany()
+                        .HasForeignKey("ProvinceCode")
+                        .HasPrincipalKey("Code")
+                        .OnDelete(DeleteBehavior.Restrict);
+
                     b.Navigation("City");
 
                     b.Navigation("Enterprise");
+
+                    b.Navigation("Province");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.TaskInfoBenefit", b =>
                 {
                     b.HasOne("FlexJobApi.Core.DictionaryData", "Benefit")
                         .WithMany()
-                        .HasForeignKey("BenefitId")
-                        .OnDelete(DeleteBehavior.Cascade)
+                        .HasForeignKey("BenefitCode")
+                        .HasPrincipalKey("Code")
+                        .OnDelete(DeleteBehavior.Restrict)
                         .IsRequired();
 
                     b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo")
@@ -1564,7 +1741,10 @@
 
                     b.HasOne("FlexJobApi.Core.DictionaryData", "Type")
                         .WithMany()
-                        .HasForeignKey("TypeId");
+                        .HasForeignKey("TypeCode")
+                        .HasPrincipalKey("Code")
+                        .OnDelete(DeleteBehavior.Restrict)
+                        .IsRequired();
 
                     b.Navigation("TaskInfo");
 
@@ -1579,87 +1759,85 @@
                         .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
 
-                    b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
+                    b.HasOne("FlexJobApi.Core.User", "User")
                         .WithMany()
-                        .HasForeignKey("UserInfoId")
+                        .HasForeignKey("UserId")
                         .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
 
                     b.Navigation("TaskInfo");
 
-                    b.Navigation("UserInfo");
+                    b.Navigation("User");
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.UserInfo", b =>
+            modelBuilder.Entity("FlexJobApi.Core.User", b =>
                 {
                     b.HasOne("FlexJobApi.Core.DictionaryData", "City")
                         .WithMany()
-                        .HasForeignKey("CityId");
-
-                    b.HasOne("FlexJobApi.Core.DictionaryData", "EducationalBackground")
-                        .WithMany()
-                        .HasForeignKey("EducationalBackgroundId");
+                        .HasForeignKey("CityCode")
+                        .HasPrincipalKey("Code")
+                        .OnDelete(DeleteBehavior.Restrict);
 
                     b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise")
-                        .WithMany("UserInfos")
+                        .WithMany("Users")
                         .HasForeignKey("EnterpriseId");
-
-                    b.HasOne("FlexJobApi.Core.DictionaryData", "PersonalIdentity")
-                        .WithMany()
-                        .HasForeignKey("PersonalIdentityId");
 
                     b.HasOne("FlexJobApi.Core.DictionaryData", "Province")
                         .WithMany()
-                        .HasForeignKey("ProvinceId");
-
-                    b.HasOne("FlexJobApi.Core.UserAuth", "UserAuth")
-                        .WithMany("UserInfos")
-                        .HasForeignKey("UserAuthId")
-                        .OnDelete(DeleteBehavior.Cascade)
-                        .IsRequired();
+                        .HasForeignKey("ProvinceCode")
+                        .HasPrincipalKey("Code")
+                        .OnDelete(DeleteBehavior.Restrict);
 
                     b.Navigation("City");
 
-                    b.Navigation("EducationalBackground");
-
                     b.Navigation("Enterprise");
 
-                    b.Navigation("PersonalIdentity");
-
                     b.Navigation("Province");
-
-                    b.Navigation("UserAuth");
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.UserInfoBankCard", b =>
+            modelBuilder.Entity("FlexJobApi.Core.UserAuth", b =>
                 {
-                    b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
-                        .WithMany()
-                        .HasForeignKey("UserInfoId")
+                    b.HasOne("FlexJobApi.Core.User", "User")
+                        .WithOne("UserAuth")
+                        .HasForeignKey("FlexJobApi.Core.UserAuth", "Id")
                         .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
 
-                    b.Navigation("UserInfo");
+                    b.Navigation("User");
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.UserInfoCredential", b =>
+            modelBuilder.Entity("FlexJobApi.Core.UserBankCard", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.User", "User")
+                        .WithMany("BankCards")
+                        .HasForeignKey("UserId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.Navigation("User");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserCredential", b =>
                 {
                     b.HasOne("FlexJobApi.Core.DictionaryData", "Type")
                         .WithMany()
-                        .HasForeignKey("TypeId");
+                        .HasForeignKey("TypeCode")
+                        .HasPrincipalKey("Code")
+                        .OnDelete(DeleteBehavior.Restrict)
+                        .IsRequired();
 
-                    b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
-                        .WithMany("UserInfoCredentials")
-                        .HasForeignKey("UserInfoId")
+                    b.HasOne("FlexJobApi.Core.User", "User")
+                        .WithMany("UserCredentials")
+                        .HasForeignKey("UserId")
                         .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
 
                     b.Navigation("Type");
 
-                    b.Navigation("UserInfo");
+                    b.Navigation("User");
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.UserInfoDepartment", b =>
+            modelBuilder.Entity("FlexJobApi.Core.UserDepartment", b =>
                 {
                     b.HasOne("FlexJobApi.Core.Department", "Department")
                         .WithMany()
@@ -1667,64 +1845,92 @@
                         .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
 
-                    b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
-                        .WithMany("UserInfoDepartments")
-                        .HasForeignKey("UserInfoId")
+                    b.HasOne("FlexJobApi.Core.User", "User")
+                        .WithMany("UserDepartments")
+                        .HasForeignKey("UserId")
                         .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
 
                     b.Navigation("Department");
 
-                    b.Navigation("UserInfo");
+                    b.Navigation("User");
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.UserInfoExpectJob", b =>
+            modelBuilder.Entity("FlexJobApi.Core.UserExpectJob", b =>
                 {
                     b.HasOne("FlexJobApi.Core.DictionaryData", "PersonalIdentity")
                         .WithMany()
-                        .HasForeignKey("PersonalIdentityId")
-                        .OnDelete(DeleteBehavior.Cascade)
+                        .HasForeignKey("PersonalIdentityCode")
+                        .HasPrincipalKey("Code")
+                        .OnDelete(DeleteBehavior.Restrict)
                         .IsRequired();
 
-                    b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
-                        .WithMany("UserInfoExpectJobs")
-                        .HasForeignKey("UserInfoId")
+                    b.HasOne("FlexJobApi.Core.User", "User")
+                        .WithMany("UserExpectJobs")
+                        .HasForeignKey("UserId")
                         .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
 
                     b.Navigation("PersonalIdentity");
 
-                    b.Navigation("UserInfo");
+                    b.Navigation("User");
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.UserInfoPhoto", b =>
+            modelBuilder.Entity("FlexJobApi.Core.UserPhoto", b =>
                 {
-                    b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
-                        .WithMany()
-                        .HasForeignKey("UserInfoId")
+                    b.HasOne("FlexJobApi.Core.User", "User")
+                        .WithMany("Photos")
+                        .HasForeignKey("UserId")
                         .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
 
-                    b.Navigation("UserInfo");
+                    b.Navigation("User");
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.UserInfoRole", b =>
+            modelBuilder.Entity("FlexJobApi.Core.UserResume", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.DictionaryData", "EducationalBackground")
+                        .WithMany()
+                        .HasForeignKey("EducationalBackgroundCode")
+                        .HasPrincipalKey("Code")
+                        .OnDelete(DeleteBehavior.Restrict);
+
+                    b.HasOne("FlexJobApi.Core.DictionaryData", "PersonalIdentity")
+                        .WithMany()
+                        .HasForeignKey("PersonalIdentityCode")
+                        .HasPrincipalKey("Code")
+                        .OnDelete(DeleteBehavior.Restrict);
+
+                    b.HasOne("FlexJobApi.Core.User", "User")
+                        .WithMany()
+                        .HasForeignKey("UserId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.Navigation("EducationalBackground");
+
+                    b.Navigation("PersonalIdentity");
+
+                    b.Navigation("User");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserRole", b =>
                 {
                     b.HasOne("FlexJobApi.Core.Role", "Role")
-                        .WithMany("UserInfoRoles")
+                        .WithMany("UserRoles")
                         .HasForeignKey("RoleId")
                         .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
 
-                    b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
-                        .WithMany("UserInfoRoles")
-                        .HasForeignKey("UserInfoId")
+                    b.HasOne("FlexJobApi.Core.User", "User")
+                        .WithMany("UserRoles")
+                        .HasForeignKey("UserId")
                         .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
 
                     b.Navigation("Role");
 
-                    b.Navigation("UserInfo");
+                    b.Navigation("User");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.Department", b =>
@@ -1741,7 +1947,9 @@
                 {
                     b.Navigation("Departments");
 
-                    b.Navigation("UserInfos");
+                    b.Navigation("EnterpriseAuth");
+
+                    b.Navigation("Users");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
@@ -1755,7 +1963,7 @@
 
                     b.Navigation("RoleResources");
 
-                    b.Navigation("UserInfoRoles");
+                    b.Navigation("UserRoles");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b =>
@@ -1765,20 +1973,21 @@
                     b.Navigation("CredentialLimits");
                 });
 
-            modelBuilder.Entity("FlexJobApi.Core.UserAuth", b =>
+            modelBuilder.Entity("FlexJobApi.Core.User", b =>
                 {
-                    b.Navigation("UserInfos");
-                });
+                    b.Navigation("BankCards");
 
-            modelBuilder.Entity("FlexJobApi.Core.UserInfo", b =>
-                {
-                    b.Navigation("UserInfoCredentials");
+                    b.Navigation("Photos");
 
-                    b.Navigation("UserInfoDepartments");
+                    b.Navigation("UserAuth");
 
-                    b.Navigation("UserInfoExpectJobs");
+                    b.Navigation("UserCredentials");
 
-                    b.Navigation("UserInfoRoles");
+                    b.Navigation("UserDepartments");
+
+                    b.Navigation("UserExpectJobs");
+
+                    b.Navigation("UserRoles");
                 });
 #pragma warning restore 612, 618
         }

--
Gitblit v1.9.1