From 0b49fee10340ea40a6762da657239675d3db22f6 Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期四, 07 八月 2025 09:41:31 +0800
Subject: [PATCH] feat:权限和请求日志

---
 FlexJobApi.Database.Migrations/Migrations/20250806155050_UpdateResource0806002.cs             | 5844 +++++++++++++++++++++++++++++++
 FlexJobApi.Core/Entities/CommonEntity.cs                                                      |    2 
 FlexJobApi.Core/Utils/ResourceUtils/ResourceUtils.cs                                          |   25 
 FlexJobApi.Database.Migrations/Migrations/LogDb/LogDbContextModelSnapshot.cs                  |  249 
 FlexJobApi.User.Application/Auths/Commands/PasswordLoginCommandHandler.cs                     |    2 
 FlexJobApi.Core/Utils/EnumUtils/EnumUtils.cs                                                  |   10 
 FlexJobApi.Core/Utils/StringUtils/StringUtils.cs                                              |   13 
 FlexJobApi.Core/Utils/DbUtils/DbUtils.cs                                                      |   70 
 FlexJobApi.User.Application/Auths/Queries/GetCurrentLogierMenusQueryHandler.cs                |    8 
 FlexJobApi.Core/Entities/Tasks/TaskInfoBenefit.cs                                             |    2 
 FlexJobApi.User.Application/Auths/Queries/GetCurrentLogierMenuQueryHandler.cs                 |    8 
 FlexJobApi.Core/Utils/DbUtils/SelectQuery.cs                                                  |    4 
 FlexJobApi.Core/FlexJobApi.Core.xml                                                           |   50 
 FlexJobApi.Database.Migrations/REDEME.MD                                                      |    4 
 FlexJobApi.Database.Migrations/Migrations/LogDb/20250807013503_UpdateCommonEntity.Designer.cs |  346 +
 FlexJobApi.Application/Dictionaries/Queries/DictionaryCategoriesQueryHandler.cs               |    4 
 FlexJobApi.Core/settings.json                                                                 |    2 
 FlexJobApi.Core/Utils/JwtUtils/CurrentLogier.cs                                               |    5 
 FlexJobApi.Core/Entities/Common/Resource.cs                                                   |    2 
 FlexJobApi.Application/Dictionaries/Queries/DictionaryDatasQueryHandler.cs                    |    4 
 FlexJobApi.Core/Utils/ResourceUtils/ResourceActionFilter.cs                                   |   59 
 /dev/null                                                                                     |   60 
 FlexJobApi.Core/FlexJobApiCoreStartup.cs                                                      |    5 
 FlexJobApi.Database.Migrations/Migrations/LogDb/20250806155129_UpdateResourceLog.cs           | 1242 ++++++
 FlexJobApi.Database.Migrations/Migrations/LogDb/20250806155129_UpdateResourceLog.Designer.cs  |  346 +
 FlexJobApi.Core/Entities/LogRecord/ResourceLog.cs                                             |   36 
 FlexJobApi.Database.Migrations/Migrations/LogDb/20250807013503_UpdateCommonEntity.cs          |   78 
 FlexJobApi.Core/Utils/JwtUtils/JwtUtils.cs                                                    |    2 
 FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs                    |  983 +---
 FlexJobApi.Database.Migrations/Migrations/20250806155050_UpdateResource0806002.Designer.cs    | 1789 +++++++++
 30 files changed, 10,276 insertions(+), 978 deletions(-)

diff --git a/FlexJobApi.Application/Dictionaries/Queries/DictionaryCategoriesQueryHandler.cs b/FlexJobApi.Application/Dictionaries/Queries/DictionaryCategoriesQueryHandler.cs
index 3858f64..9f28220 100644
--- a/FlexJobApi.Application/Dictionaries/Queries/DictionaryCategoriesQueryHandler.cs
+++ b/FlexJobApi.Application/Dictionaries/Queries/DictionaryCategoriesQueryHandler.cs
@@ -17,7 +17,7 @@
     public class DictionaryCategoriesQueryHandler(
             IRepository<DictionaryCategory> rep
         ) : IRequestHandler<GetDictionaryCategoriesQuery, PagedListQueryResult<GetDictionaryCategoriesQueryResultItem>>,
-            IRequestHandler<GetDictionaryCategorySelectQuery, List<SelectQueryResultOption<Guid, GetDictionaryCategorySelectQueryOption>>>
+            IRequestHandler<GetDictionaryCategorySelectQuery, List<SelectOption<Guid, GetDictionaryCategorySelectQueryOption>>>
     {
         private readonly IRepository<DictionaryCategory> rep = rep;
 
@@ -49,7 +49,7 @@
         /// <param name="request"></param>
         /// <param name="cancellationToken"></param>
         /// <returns></returns>
-        public Task<List<SelectQueryResultOption<Guid, GetDictionaryCategorySelectQueryOption>>> Handle(GetDictionaryCategorySelectQuery request, CancellationToken cancellationToken)
+        public Task<List<SelectOption<Guid, GetDictionaryCategorySelectQueryOption>>> Handle(GetDictionaryCategorySelectQuery request, CancellationToken cancellationToken)
         {
             return request.GetSelect<DictionaryCategory, Guid, GetDictionaryCategorySelectQueryOption>(
                 it => it.Id,
diff --git a/FlexJobApi.Application/Dictionaries/Queries/DictionaryDatasQueryHandler.cs b/FlexJobApi.Application/Dictionaries/Queries/DictionaryDatasQueryHandler.cs
index 101d979..35b487f 100644
--- a/FlexJobApi.Application/Dictionaries/Queries/DictionaryDatasQueryHandler.cs
+++ b/FlexJobApi.Application/Dictionaries/Queries/DictionaryDatasQueryHandler.cs
@@ -18,7 +18,7 @@
     public class DictionaryDatasQueryHandler(
             IRepository<DictionaryData> rep
         ) : IRequestHandler<GetDictionaryDatasQuery, PagedListQueryResult<GetDictionaryDatasQueryResultItem>>,
-            IRequestHandler<GetDictionaryDataSelectQuery, List<SelectQueryResultOption<Guid, GetDictionaryDataSelectQueryResultOption>>>
+            IRequestHandler<GetDictionaryDataSelectQuery, List<SelectOption<Guid, GetDictionaryDataSelectQueryResultOption>>>
     {
         private readonly IRepository<DictionaryData> rep = rep;
 
@@ -67,7 +67,7 @@
         /// <param name="request"></param>
         /// <param name="cancellationToken"></param>
         /// <returns></returns>
-        public Task<List<SelectQueryResultOption<Guid, GetDictionaryDataSelectQueryResultOption>>> Handle(GetDictionaryDataSelectQuery request, CancellationToken cancellationToken)
+        public Task<List<SelectOption<Guid, GetDictionaryDataSelectQueryResultOption>>> Handle(GetDictionaryDataSelectQuery request, CancellationToken cancellationToken)
         {
             return request.GetSelect<DictionaryData, Guid, GetDictionaryDataSelectQueryResultOption>(
                 it => it.Id,
diff --git a/FlexJobApi.Core/Entities/Common/Resource.cs b/FlexJobApi.Core/Entities/Common/Resource.cs
index 8e4354c..196433f 100644
--- a/FlexJobApi.Core/Entities/Common/Resource.cs
+++ b/FlexJobApi.Core/Entities/Common/Resource.cs
@@ -10,7 +10,7 @@
     /// <summary>
     /// 璧勬簮
     /// </summary>
-    public class Resource : CommonEntity, IDbAuditLogIgnore
+    public class Resource : CommonEntity, IDbAuditLogIgnore, IPhysicalDeletion
     {
         /// <summary>
         /// 搴旂敤鍚嶇О
diff --git a/FlexJobApi.Core/Entities/CommonEntity.cs b/FlexJobApi.Core/Entities/CommonEntity.cs
index 102da4c..9265880 100644
--- a/FlexJobApi.Core/Entities/CommonEntity.cs
+++ b/FlexJobApi.Core/Entities/CommonEntity.cs
@@ -29,7 +29,7 @@
         /// <summary>
         /// 鏈�鍚庢洿鏂版搷浣滀汉
         /// </summary>
-        public virtual Guid? UpdateUserInfoId { get; set; }
+        public virtual Guid? UpdatedUserInfoId { get; set; }
 
         /// <summary>
         /// 鏄惁鍒犻櫎
diff --git a/FlexJobApi.Core/Entities/LogRecord/ResourceLog.cs b/FlexJobApi.Core/Entities/LogRecord/ResourceLog.cs
index c2d980d..84cfcb8 100644
--- a/FlexJobApi.Core/Entities/LogRecord/ResourceLog.cs
+++ b/FlexJobApi.Core/Entities/LogRecord/ResourceLog.cs
@@ -13,22 +13,24 @@
     public class ResourceLog : CommonEntity<LogDbContextLocator>, IDbAuditLogIgnore
     {
         /// <summary>
-        /// 閾炬帴鍦板潃
-        /// </summary>
-        [Required]
-        public string Url { get; set; }
-
-        /// <summary>
         /// 璇锋眰鏂瑰紡
         /// </summary>
-        [Required]
-        [MaxLength(6)]
-        public string Method { get; set; }
+        public EnumResourceMethod Method { get; set; }
+
+        /// <summary>
+        /// 鍩熷悕
+        /// </summary>
+        public string Domain { get; set; }
+
+        /// <summary>
+        /// 鍦板潃
+        /// </summary>
+        public string Path { get; set; }
 
         /// <summary>
         /// 璇锋眰澶�
         /// </summary>
-        public string Headers { get; set; }
+        public string RequestHeaders { get; set; }
 
         /// <summary>
         /// 璇锋眰鍙傛暟
@@ -36,9 +38,14 @@
         public string Request { get; set; }
 
         /// <summary>
-        /// 鍥炶皟鏁版嵁
+        /// 璇锋眰澶�
         /// </summary>
-        public string Callback { get; set; }
+        public string ResponseHeaders { get; set; }
+
+        /// <summary>
+        /// 鍝嶅簲缁撴灉
+        /// </summary>
+        public string Response { get; set; }
 
         /// <summary>
         /// 鏄惁鎴愬姛
@@ -51,6 +58,11 @@
         public string ClientIpAddress { get; set; }
 
         /// <summary>
+        /// 鏉ユ簮鍦板潃
+        /// </summary>
+        public string RefererUrl { get; set; }
+
+        /// <summary>
         /// 鑰楁椂姣鏁�
         /// </summary>
         public long ElapsedMilliseconds { get; set; }
diff --git a/FlexJobApi.Core/Entities/Tasks/TaskInfoBenefit.cs b/FlexJobApi.Core/Entities/Tasks/TaskInfoBenefit.cs
index dedb1db..2b8dcc7 100644
--- a/FlexJobApi.Core/Entities/Tasks/TaskInfoBenefit.cs
+++ b/FlexJobApi.Core/Entities/Tasks/TaskInfoBenefit.cs
@@ -39,7 +39,7 @@
             entityBuilder
                 .HasOne(it => it.TaskInfo)
                 .WithMany(it => it.Benefits)
-                .HasForeignKey(it => it.BenefitId)
+                .HasForeignKey(it => it.TaskInfoId)
                 .IsRequired()
                 .OnDelete(DeleteBehavior.Restrict);
         }
diff --git a/FlexJobApi.Core/FlexJobApi.Core.xml b/FlexJobApi.Core/FlexJobApi.Core.xml
index b02bf51..8c53358 100644
--- a/FlexJobApi.Core/FlexJobApi.Core.xml
+++ b/FlexJobApi.Core/FlexJobApi.Core.xml
@@ -24,7 +24,7 @@
             鍒涘缓鎿嶄綔浜�
             </summary>
         </member>
-        <member name="P:FlexJobApi.Core.CommonEntity`1.UpdateUserInfoId">
+        <member name="P:FlexJobApi.Core.CommonEntity`1.UpdatedUserInfoId">
             <summary>
             鏈�鍚庢洿鏂版搷浣滀汉
             </summary>
@@ -384,17 +384,22 @@
             璧勬簮鏃ュ織
             </summary>
         </member>
-        <member name="P:FlexJobApi.Core.Entities.Common.ResourceLog.Url">
-            <summary>
-            閾炬帴鍦板潃
-            </summary>
-        </member>
         <member name="P:FlexJobApi.Core.Entities.Common.ResourceLog.Method">
             <summary>
             璇锋眰鏂瑰紡
             </summary>
         </member>
-        <member name="P:FlexJobApi.Core.Entities.Common.ResourceLog.Headers">
+        <member name="P:FlexJobApi.Core.Entities.Common.ResourceLog.Domain">
+            <summary>
+            鍩熷悕
+            </summary>
+        </member>
+        <member name="P:FlexJobApi.Core.Entities.Common.ResourceLog.Path">
+            <summary>
+            鍦板潃
+            </summary>
+        </member>
+        <member name="P:FlexJobApi.Core.Entities.Common.ResourceLog.RequestHeaders">
             <summary>
             璇锋眰澶�
             </summary>
@@ -404,9 +409,14 @@
             璇锋眰鍙傛暟
             </summary>
         </member>
-        <member name="P:FlexJobApi.Core.Entities.Common.ResourceLog.Callback">
+        <member name="P:FlexJobApi.Core.Entities.Common.ResourceLog.ResponseHeaders">
             <summary>
-            鍥炶皟鏁版嵁
+            璇锋眰澶�
+            </summary>
+        </member>
+        <member name="P:FlexJobApi.Core.Entities.Common.ResourceLog.Response">
+            <summary>
+            鍝嶅簲缁撴灉
             </summary>
         </member>
         <member name="P:FlexJobApi.Core.Entities.Common.ResourceLog.IsSuccess">
@@ -417,6 +427,11 @@
         <member name="P:FlexJobApi.Core.Entities.Common.ResourceLog.ClientIpAddress">
             <summary>
             瀹㈡埛绔疘P鍦板潃
+            </summary>
+        </member>
+        <member name="P:FlexJobApi.Core.Entities.Common.ResourceLog.RefererUrl">
+            <summary>
+            鏉ユ簮鍦板潃
             </summary>
         </member>
         <member name="P:FlexJobApi.Core.Entities.Common.ResourceLog.ElapsedMilliseconds">
@@ -4501,22 +4516,22 @@
             <typeparam name="TValue"></typeparam>
             <typeparam name="TData"></typeparam>
         </member>
-        <member name="T:FlexJobApi.Core.SelectQueryResultOption`2">
+        <member name="T:FlexJobApi.Core.SelectOption`2">
             <summary>
             閫夋嫨鍣ㄦ煡璇�-缁撴灉-椤�
             </summary>
         </member>
-        <member name="P:FlexJobApi.Core.SelectQueryResultOption`2.Value">
+        <member name="P:FlexJobApi.Core.SelectOption`2.Value">
             <summary>
             鍊�
             </summary>
         </member>
-        <member name="P:FlexJobApi.Core.SelectQueryResultOption`2.Label">
+        <member name="P:FlexJobApi.Core.SelectOption`2.Label">
             <summary>
             鏍囩
             </summary>
         </member>
-        <member name="P:FlexJobApi.Core.SelectQueryResultOption`2.Data">
+        <member name="P:FlexJobApi.Core.SelectOption`2.Data">
             <summary>
             鏁版嵁
             </summary>
@@ -4599,7 +4614,7 @@
             <param name="t"></param>
             <returns></returns>
         </member>
-        <member name="M:FlexJobApi.Core.EnumUtils.GetEnum``1(FlexJobApi.Core.EnumModel{``0},System.String)">
+        <member name="M:FlexJobApi.Core.EnumUtils.GetEnum``1(System.String)">
             <summary>
             鑾峰彇鏋氫妇
             </summary>
@@ -4845,6 +4860,11 @@
             鎵嬫満鍙风爜
             </summary>
         </member>
+        <member name="P:FlexJobApi.Core.CurrentLogier.Level">
+            <summary>
+            绾у埆
+            </summary>
+        </member>
         <member name="M:FlexJobApi.Core.JwtHandler.PipelineAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext,Microsoft.AspNetCore.Http.DefaultHttpContext)">
             <summary>
             楠岃瘉绠¢亾锛屼篃灏辨槸楠岃瘉鏍稿績浠g爜
@@ -5037,7 +5057,7 @@
             鐢熸垚鍔ㄦ�佹帶鍒跺櫒
             </summary>
         </member>
-        <member name="M:FlexJobApi.Core.ResourceUtils.SaveResourcesAsync(System.Collections.Generic.List{FlexJobApi.Core.ResourceModel},System.String,Furion.DatabaseAccessor.IRepository{FlexJobApi.Core.Resource})">
+        <member name="M:FlexJobApi.Core.ResourceUtils.SaveResourcesAsync(System.Collections.Generic.List{FlexJobApi.Core.ResourceModel},Furion.DatabaseAccessor.IRepository{FlexJobApi.Core.Resource})">
             <summary>
             淇濆瓨璧勬簮
             </summary>
diff --git a/FlexJobApi.Core/FlexJobApiCoreStartup.cs b/FlexJobApi.Core/FlexJobApiCoreStartup.cs
index cc2c31d..a5a3aa0 100644
--- a/FlexJobApi.Core/FlexJobApiCoreStartup.cs
+++ b/FlexJobApi.Core/FlexJobApiCoreStartup.cs
@@ -25,13 +25,11 @@
             services.AddConsoleFormatter(options =>
             {
                 options.WithTraceId = true;
-                options.WithStackFrame = true;
             });
 
             services.AddFileLogging(options =>
             {
                 options.WithTraceId = true;
-                options.WithStackFrame = true;
                 options.FileNameRule = fileName =>
                 {
                     return string.Format(fileName, DateTime.UtcNow);    // 濡傛灉鏄湰鍦版椂闂翠娇鐢� DateTime.Now
@@ -41,7 +39,6 @@
             services.AddDatabaseLogging<DatabaseLoggingWriter>(options =>
             {
                 options.WithTraceId = true;
-                options.WithStackFrame = true;
             });
 
             services.AddConfigurableOptions<AliyunOptions>();
@@ -77,6 +74,8 @@
                     .AddFriendlyException()
                     .AddDataValidation()
                     .AddInjectWithUnifyResult<FriendlyResultProvider>();
+
+            services.AddMvcFilter<ResourceActionFilter>();
         }
 
         public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IHostApplicationLifetime lifetime)
diff --git a/FlexJobApi.Core/Utils/DbUtils/DbUtils.cs b/FlexJobApi.Core/Utils/DbUtils/DbUtils.cs
index e37e10c..03c260d 100644
--- a/FlexJobApi.Core/Utils/DbUtils/DbUtils.cs
+++ b/FlexJobApi.Core/Utils/DbUtils/DbUtils.cs
@@ -8,6 +8,7 @@
 using Microsoft.EntityFrameworkCore.ChangeTracking;
 using Microsoft.EntityFrameworkCore.Diagnostics;
 using Microsoft.EntityFrameworkCore.Metadata.Builders;
+using Microsoft.EntityFrameworkCore.Migrations;
 using Microsoft.Extensions.Configuration;
 using Newtonsoft.Json;
 using System;
@@ -98,7 +99,7 @@
         /// <param name="query"></param>
         /// <param name="cancellationToken"></param>
         /// <returns></returns>
-        public static async Task<List<SelectQueryResultOption<TValue, TData>>> GetSelect<TEntity, TValue, TData>(
+        public static async Task<List<SelectOption<TValue, TData>>> GetSelect<TEntity, TValue, TData>(
             this SelectQuery<TValue, TData> request,
             Func<TData, TValue> getValue,
             Func<TData, string> getLabel,
@@ -113,10 +114,10 @@
             var models = await q
                 .ProjectToType<TData>()
                 .ToListAsync(cancellationToken);
-            var options = new List<SelectQueryResultOption<TValue, TData>>();
+            var options = new List<SelectOption<TValue, TData>>();
             foreach (var model in models)
             {
-                var option = new SelectQueryResultOption<TValue, TData>();
+                var option = new SelectOption<TValue, TData>();
                 option.Data = model;
                 option.Value = getValue(model);
                 option.Label = getLabel(model);
@@ -348,35 +349,41 @@
         /// <returns></returns>
         public static async Task BuildEntity(ModelBuilder modelBuilder, Type dbContextLocator = null)
         {
-            var xmlDoc = await XmlDocUtils.GetXmlDocAsync();
-            foreach (var entityType in modelBuilder.Model.GetEntityTypes())
+            if (App.GetService<IMigrator>() != null)
             {
-                Console.WriteLine($"姝e湪鐢熸垚琛細{entityType.Name}");
-                // 鑾峰彇瀹炰綋绫荤殑XML娉ㄩ噴锛屽苟璁剧疆涓鸿〃娉ㄩ噴
-                var entityBuilder = modelBuilder.Entity(entityType.ClrType);
-                string typeComment = (await entityType.ClrType.GetXmlDocMemberAsync(xmlDoc))?.Summary;
-                if (!string.IsNullOrEmpty(typeComment))
+                var xmlDoc = await XmlDocUtils.GetXmlDocAsync();
+                foreach (var entityType in modelBuilder.Model.GetEntityTypes())
                 {
-                    Console.WriteLine($"姝e湪鐢熸垚琛ㄦ敞閲婏細{entityType.Name}-{typeComment}");
-                    entityBuilder.ToTable(it => it.HasComment(typeComment));
-                }
-                // 鑾峰彇瀹炰綋灞炴�х殑XML娉ㄩ噴锛屽苟璁剧疆涓哄垪娉ㄩ噴
-                var properties = entityType.ClrType.GetProperties()
-                    .Where(p =>
-                        p.CanRead
-                        && p.CanWrite
-                        && !typeof(System.Collections.ICollection).IsAssignableFrom(p.PropertyType)
-                        && (p.PropertyType.IsClass ? p.PropertyType.FullName.Contains("System.") : true));
-                foreach (var property in properties)
-                {
-                    string propComment = (await property.GetXmlDocMemberAsync(xmlDoc))?.Summary;
-                    if (!string.IsNullOrEmpty(propComment))
+                    Console.WriteLine($"姝e湪鐢熸垚琛細{entityType.Name}");
+                    // 鑾峰彇瀹炰綋绫荤殑XML娉ㄩ噴锛屽苟璁剧疆涓鸿〃娉ㄩ噴
+                    var entityBuilder = modelBuilder.Entity(entityType.ClrType);
+                    string typeComment = (await entityType.ClrType.GetXmlDocMemberAsync(xmlDoc))?.Summary;
+                    if (!string.IsNullOrEmpty(typeComment))
                     {
-                        Console.WriteLine($"姝e湪鐢熸垚灞炴�ф敞閲婏細{property.Name}-{propComment}");
-                        entityBuilder.Property(property.Name).HasComment(propComment);
+                        Console.WriteLine($"姝e湪鐢熸垚琛ㄦ敞閲婏細{entityType.Name}-{typeComment}");
+                        entityBuilder.ToTable(it => it.HasComment(typeComment));
+                    }
+                    // 鑾峰彇瀹炰綋灞炴�х殑XML娉ㄩ噴锛屽苟璁剧疆涓哄垪娉ㄩ噴
+                    var properties = entityType.ClrType.GetProperties()
+                        .Where(p =>
+                            p.CanRead
+                            && p.CanWrite
+                            && !typeof(System.Collections.ICollection).IsAssignableFrom(p.PropertyType)
+                            && (p.PropertyType.IsClass ? p.PropertyType.FullName.Contains("System.") : true));
+                    foreach (var property in properties)
+                    {
+                        string propComment = (await property.GetXmlDocMemberAsync(xmlDoc))?.Summary;
+                        if (!string.IsNullOrEmpty(propComment))
+                        {
+                            Console.WriteLine($"姝e湪鐢熸垚灞炴�ф敞閲婏細{property.Name}-{propComment}");
+                            entityBuilder.Property(property.Name).HasComment(propComment);
+                        }
                     }
                 }
+            }
 
+            foreach (var entityType in modelBuilder.Model.GetEntityTypes())
+            {
                 if (typeof(CommonEntity).IsAssignableFrom(entityType.ClrType))
                 {
                     // 鏋勫缓绛涢�夋潯浠讹細IsDeleted == false
@@ -390,8 +397,6 @@
                     modelBuilder.Entity(entityType.ClrType).HasQueryFilter(lambda);
                 }
             }
-
-            Console.WriteLine("鏁版嵁搴撻摼鎺ュ湴鍧�锛�" + App.Configuration.GetConnectionString("FlexJobApi"));
         }
 
         /// <summary>
@@ -420,6 +425,7 @@
 
             // 閫氳繃璇锋眰涓幏鍙栧綋鍓嶆搷浣滀汉
             var logier = JwtUtils.GetCurrentLogier();
+            var traceId = App.GetTraceId();
 
             // 鑾峰彇鎵�鏈夊凡鏇存敼鐨勫疄浣�
             foreach (var entity in entities)
@@ -453,9 +459,9 @@
 
                     // 璧嬪�艰窡韪狪d
                     prop = entity.Property(nameof(CommonEntity.TraceId));
-                    if (prop != null)
+                    if (prop != null && prop.CurrentValue == null && traceId.IsNotNull())
                     {
-                        prop.CurrentValue = App.GetTraceId();
+                        prop.CurrentValue = traceId;
                     }
                 }
                 else
@@ -476,9 +482,9 @@
 
                     // 璧嬪�艰窡韪狪d
                     prop = entity.Property(nameof(CommonEntity.TraceId));
-                    if (prop != null)
+                    if (prop != null && traceId.IsNotNull())
                     {
-                        prop.CurrentValue = App.GetTraceId();
+                        prop.CurrentValue = traceId;
                     }
 
                     // 杞垹闄�
diff --git a/FlexJobApi.Core/Utils/DbUtils/SelectQuery.cs b/FlexJobApi.Core/Utils/DbUtils/SelectQuery.cs
index 3328e9a..a920ef3 100644
--- a/FlexJobApi.Core/Utils/DbUtils/SelectQuery.cs
+++ b/FlexJobApi.Core/Utils/DbUtils/SelectQuery.cs
@@ -12,7 +12,7 @@
     /// </summary>
     /// <typeparam name="TValue"></typeparam>
     /// <typeparam name="TData"></typeparam>
-    public abstract class SelectQuery<TValue, TData> : IRequest<List<SelectQueryResultOption<TValue, TData>>>
+    public abstract class SelectQuery<TValue, TData> : IRequest<List<SelectOption<TValue, TData>>>
     {
 
     }
@@ -20,7 +20,7 @@
     /// <summary>
     /// 閫夋嫨鍣ㄦ煡璇�-缁撴灉-椤�
     /// </summary>
-    public class SelectQueryResultOption<TValue, TData>
+    public class SelectOption<TValue, TData>
     {
         /// <summary>
         /// 鍊�
diff --git a/FlexJobApi.Core/Utils/EnumUtils/EnumUtils.cs b/FlexJobApi.Core/Utils/EnumUtils/EnumUtils.cs
index fcd9ac2..87302ab 100644
--- a/FlexJobApi.Core/Utils/EnumUtils/EnumUtils.cs
+++ b/FlexJobApi.Core/Utils/EnumUtils/EnumUtils.cs
@@ -90,13 +90,11 @@
         /// <param name="model"></param>
         /// <param name="name"></param>
         /// <returns></returns>
-        public static T GetEnum<T>(this EnumModel<T> model, string name)
-            where T : struct
+        public static T GetEnum<T>(string name)
+            where T : struct, Enum
         {
-            return model.Items
-               .Where(it => it.Name.Equals(name, StringComparison.OrdinalIgnoreCase))
-               .Select(it => it.Enum)
-               .FirstOrDefault();
+            name = Enum.GetNames<T>().FirstOrDefault(it => it.Equals(name, StringComparison.OrdinalIgnoreCase));
+            return Enum.Parse<T>(name);
         }
 
         /// <summary>
diff --git a/FlexJobApi.Core/Utils/HttpUtils/HttpActionFilter.cs b/FlexJobApi.Core/Utils/HttpUtils/HttpActionFilter.cs
deleted file mode 100644
index ac3554a..0000000
--- a/FlexJobApi.Core/Utils/HttpUtils/HttpActionFilter.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-锘縰sing Microsoft.AspNetCore.Http;
-using Microsoft.AspNetCore.Mvc.Controllers;
-using Microsoft.AspNetCore.Mvc.Filters;
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.Linq;
-using System.Security.Claims;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace FlexJobApi.Core
-{
-    public class HttpActionFilter : IAsyncActionFilter
-    {
-        public async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
-        {
-            //============== 杩欓噷鏄墽琛屾柟娉曚箣鍓嶈幏鍙栨暟鎹� ====================
-            // 鑾峰彇鎺у埗鍣ㄣ�佽矾鐢变俊鎭�
-            var actionDescriptor = context.ActionDescriptor as ControllerActionDescriptor;
-
-            // 鑾峰彇璇锋眰鐨勬柟娉�
-            var method = actionDescriptor!.MethodInfo;
-
-            // 鑾峰彇 HttpContext 鍜� HttpRequest 瀵硅薄
-            var httpContext = context.HttpContext;
-            var httpRequest = httpContext.Request;
-
-            // 鑾峰彇瀹㈡埛绔� Ipv4 鍦板潃
-            var remoteIPv4 = httpContext.GetRemoteIpAddressToIPv4();
-
-            // 鑾峰彇璇锋眰鐨� Url 鍦板潃
-            var requestUrl = httpRequest.GetRequestUrlAddress();
-
-            // 鑾峰彇鏉ユ簮 Url 鍦板潃
-            var refererUrl = httpRequest.GetRefererUrlAddress();
-
-            // 鑾峰彇璇锋眰鍙傛暟锛堝啓鍏ユ棩蹇楋紝闇�搴忓垪鍖栨垚瀛楃涓插悗瀛樺偍锛夛紝鍙互鑷敱绡℃敼锛侊紒锛侊紒锛侊紒
-            var parameters = context.ActionArguments;
-
-            // 鑾峰彇鎿嶄綔浜猴紙蹇呴』鎺堟潈璁块棶鎵嶆湁鍊硷級"userId" 涓轰綘瀛樺偍鐨� claims type锛宩wt 鎺堟潈瀵瑰簲鐨勬槸 payload 涓瓨鍌ㄧ殑閿悕
-            var userId = httpContext.User?.FindFirstValue("userId");
-
-            // 璇锋眰鏃堕棿
-            var requestedTime = DateTimeOffset.Now;
-
-            //============== 杩欓噷鏄墽琛屾柟娉曚箣鍚庤幏鍙栨暟鎹� ====================
-            var actionContext = await next();
-
-            // 鑾峰彇杩斿洖鐨勭粨鏋�
-            var returnResult = actionContext.Result;
-
-            // 鍒ゆ柇鏄惁璇锋眰鎴愬姛锛屾病鏈夊紓甯稿氨鏄姹傛垚鍔�
-            var isRequestSucceed = actionContext.Exception == null;
-
-            // 鑾峰彇璋冪敤鍫嗘爤淇℃伅锛屾彁渚涙洿鍔犵畝鍗曟槑浜嗙殑璋冪敤鍜屽紓甯稿爢鏍�
-            var stackTrace = EnhancedStackTrace.Current();
-        }
-    }
-}
diff --git a/FlexJobApi.Core/Utils/JwtUtils/CurrentLogier.cs b/FlexJobApi.Core/Utils/JwtUtils/CurrentLogier.cs
index c32f336..be1f47e 100644
--- a/FlexJobApi.Core/Utils/JwtUtils/CurrentLogier.cs
+++ b/FlexJobApi.Core/Utils/JwtUtils/CurrentLogier.cs
@@ -42,5 +42,10 @@
         /// 鎵嬫満鍙风爜
         /// </summary>
         public string PhoneNumber { get; set; }
+
+        /// <summary>
+        /// 绾у埆
+        /// </summary>
+        public int Level { get; set; }
     }
 }
diff --git a/FlexJobApi.Core/Utils/JwtUtils/JwtUtils.cs b/FlexJobApi.Core/Utils/JwtUtils/JwtUtils.cs
index d2c9a5c..232979c 100644
--- a/FlexJobApi.Core/Utils/JwtUtils/JwtUtils.cs
+++ b/FlexJobApi.Core/Utils/JwtUtils/JwtUtils.cs
@@ -34,6 +34,7 @@
                 { "Name",logier.Name },
                 { "UserName",logier.UserName },
                 { "PhoneNumber",logier.PhoneNumber },
+                { "Level",logier.Level },
             });
             // 鑾峰彇鍒锋柊 token
             logier.RefreshToken = JWTEncryption.GenerateRefreshToken(logier.AccessToken, 60 * 24);
@@ -54,6 +55,7 @@
                 var logier = new CurrentLogier();
                 if (Guid.TryParse(App.User?.FindFirstValue("UserInfoId"), out var userInfoId)) logier.UserInfoId = userInfoId;
                 else return null;
+                logier.Level = App.User?.FindFirstValue("Level")?.ToInt() ?? 0;
                 logier.Avatar = App.User?.FindFirstValue("Avatar");
                 logier.Name = App.User?.FindFirstValue("Name");
                 logier.UserName = App.User?.FindFirstValue("UserName");
diff --git a/FlexJobApi.Core/Utils/ResourceUtils/ResourceActionFilter.cs b/FlexJobApi.Core/Utils/ResourceUtils/ResourceActionFilter.cs
new file mode 100644
index 0000000..7e96cf9
--- /dev/null
+++ b/FlexJobApi.Core/Utils/ResourceUtils/ResourceActionFilter.cs
@@ -0,0 +1,59 @@
+锘縰sing FlexJobApi.Core.Entities.Common;
+using Furion;
+using Furion.DatabaseAccessor;
+using Furion.DistributedIDGenerator;
+using Furion.Schedule;
+using Microsoft.AspNetCore.Http;
+using Microsoft.AspNetCore.Mvc.Controllers;
+using Microsoft.AspNetCore.Mvc.Filters;
+using Microsoft.Extensions.DependencyInjection;
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Linq;
+using System.Security.Claims;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace FlexJobApi.Core
+{
+    public class ResourceActionFilter : IAsyncActionFilter
+    {
+        public async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
+        {
+            var resourceLog = new ResourceLog();
+            resourceLog.CreatedTime = DateTimeOffset.Now;
+
+            var stopwatch = Stopwatch.StartNew();
+
+            var serviceScopeFactory = App.GetService<IServiceScopeFactory>();
+            var serviceScope = serviceScopeFactory.CreateScope();
+            var rep = serviceScope.ServiceProvider.GetRequiredService<IRepository<ResourceLog, LogDbContextLocator>>();
+
+            resourceLog.Id = IDGen.NextID();
+            resourceLog.TraceId = App.GetTraceId();
+            resourceLog.Method = EnumUtils.GetEnum<EnumResourceMethod>(context.HttpContext.Request.Method);
+            resourceLog.Domain = $"{context.HttpContext.Request.Scheme}://{context.HttpContext.Request.Host}";
+            resourceLog.Path = context.HttpContext.Request.Path;
+            resourceLog.ClientIpAddress = context.HttpContext.GetRemoteIpAddressToIPv4();
+            resourceLog.CreatedUserInfoId = context.HttpContext.User?.FindFirstValue("UserInfoId").ToGuid();
+            resourceLog.Request = context.ActionArguments?.ToJson();
+            resourceLog.RequestHeaders = context.HttpContext.Request.Headers.ToJson();
+
+            await rep.InsertNowAsync(resourceLog);
+
+            //============== 杩欓噷鏄墽琛屾柟娉曚箣鍚庤幏鍙栨暟鎹� ====================
+            var actionContext = await next();
+
+            resourceLog.UpdatedTime = DateTimeOffset.Now;
+            resourceLog.Response = actionContext.Result.ToJson();
+            resourceLog.ResponseHeaders = context.HttpContext.Response.Headers.ToJson();
+            resourceLog.IsSuccess = actionContext.Exception == null;
+
+            stopwatch.Stop();
+            resourceLog.ElapsedMilliseconds = stopwatch.ElapsedMilliseconds;
+
+            await rep.UpdateNowAsync(resourceLog);
+        }
+    }
+}
diff --git a/FlexJobApi.Core/Utils/ResourceUtils/ResourceUtils.cs b/FlexJobApi.Core/Utils/ResourceUtils/ResourceUtils.cs
index 0bf57e6..9b51203 100644
--- a/FlexJobApi.Core/Utils/ResourceUtils/ResourceUtils.cs
+++ b/FlexJobApi.Core/Utils/ResourceUtils/ResourceUtils.cs
@@ -187,7 +187,7 @@
                 }
             }
 
-            var resources = await SaveResourcesAsync(models, traceId, rep);
+            var resources = await SaveResourcesAsync(models, rep);
 
             DynamicControllersHotPlug(resources, provider);
 
@@ -201,7 +201,7 @@
         /// <param name="traceId"></param>
         /// <param name="rep"></param>
         /// <returns></returns>
-        private static async Task<List<Resource>> SaveResourcesAsync(List<ResourceModel> models, string traceId, IRepository<Resource> rep = null)
+        private static async Task<List<Resource>> SaveResourcesAsync(List<ResourceModel> models, IRepository<Resource> rep = null)
         {
             rep = rep ?? Db.GetRepository<Resource>();
             var resources = await rep.AsQueryable()
@@ -213,22 +213,33 @@
                 if (resource == null)
                 {
                     resource = new Resource();
+                    resource.Id = IDGen.NextID();
+                    resource.CreatedTime = DateTimeOffset.Now;
                     model.Adapt(resource);
                     await rep.InsertAsync(resource);
                     resources.Add(resource);
                 }
                 else
                 {
-                    model.Adapt(resource);
-                    await rep.UpdateAsync(resource);
+                    var resourceBakModel = new ResourceModel();
+                    resource.Adapt(resourceBakModel);
+                    resourceBakModel.TraceId = model.TraceId;
+                    resourceBakModel.DynamicAssemblyName = model.DynamicAssemblyName;
+                    if (resourceBakModel.ToJson() != model.ToJson())
+                    {
+                        model.Adapt(resource);
+                        resource.UpdatedTime = DateTimeOffset.Now;
+                        await rep.UpdateAsync(resource);
+                    }
                 }
             }
 
-            var expiredResources = resources.Where(it => it.TraceId != traceId).ToList();
+            var expiredResources = resources.Where(it => !models.Any(m => m.Route == it.Route && m.Method == it.Method)).ToList();
             foreach (var expiredResource in expiredResources)
             {
-                expiredResource.IsExpired = true;
-                await rep.UpdateAsync(expiredResource);
+                //expiredResource.IsExpired = true;
+                //await rep.UpdateAsync(expiredResource);
+                await rep.DeleteAsync(expiredResource);
             }
 
             return resources.Where(it => !it.IsExpired).ToList();
diff --git a/FlexJobApi.Core/Utils/StringUtils/StringUtils.cs b/FlexJobApi.Core/Utils/StringUtils/StringUtils.cs
index 35b74c5..9fcf514 100644
--- a/FlexJobApi.Core/Utils/StringUtils/StringUtils.cs
+++ b/FlexJobApi.Core/Utils/StringUtils/StringUtils.cs
@@ -1,5 +1,6 @@
 锘縰sing System;
 using System.Collections.Generic;
+using System.Data.SqlTypes;
 using System.Diagnostics.CodeAnalysis;
 using System.Linq;
 using System.Text;
@@ -32,6 +33,18 @@
             return !str.IsNull();
         }
 
+        public static Guid? ToGuid(this string str)
+        {
+            if (str.IsNotNull() && Guid.TryParse(str, out var guid) && guid != Guid.Empty) return guid;
+            return null;
+        }
+
+        public static int? ToInt(this string str)
+        {
+            if (str.IsNotNull() && int.TryParse(str, out var @int)) return @int;
+            return null;
+        }
+
         /// <summary>
         /// 鑾峰彇澶嶆暟鑻辨枃鍚�
         /// </summary>
diff --git a/FlexJobApi.Core/settings.json b/FlexJobApi.Core/settings.json
index 90a659b..c09a197 100644
--- a/FlexJobApi.Core/settings.json
+++ b/FlexJobApi.Core/settings.json
@@ -37,7 +37,7 @@
     "LogLevel": {
       "Default": "Information",
       "Microsoft.AspNetCore": "Warning",
-      "Microsoft.EntityFrameworkCore": "Information"
+      "Microsoft.EntityFrameworkCore": "Warning"
     },
     "File": {
       "FileName": "Logs/logs{0:yyyy}{0:MM}{0:dd}.txt",
diff --git a/FlexJobApi.Database.Migrations/Migrations/20250806155050_UpdateResource0806002.Designer.cs b/FlexJobApi.Database.Migrations/Migrations/20250806155050_UpdateResource0806002.Designer.cs
new file mode 100644
index 0000000..ddda166
--- /dev/null
+++ b/FlexJobApi.Database.Migrations/Migrations/20250806155050_UpdateResource0806002.Designer.cs
@@ -0,0 +1,1789 @@
+锘�// <auto-generated />
+using System;
+using FlexJobApi.EntityFramework.Core;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+
+#nullable disable
+
+namespace FlexJobApi.Database.Migrations.Migrations
+{
+    [DbContext(typeof(DefaultDbContext))]
+    [Migration("20250806155050_UpdateResource0806002")]
+    partial class UpdateResource0806002
+    {
+        /// <inheritdoc />
+        protected override void BuildTargetModel(ModelBuilder modelBuilder)
+        {
+#pragma warning disable 612, 618
+            modelBuilder
+                .HasAnnotation("ProductVersion", "9.0.7")
+                .HasAnnotation("Relational:MaxIdentifierLength", 128);
+
+            SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
+
+            modelBuilder.Entity("FlexJobApi.Core.Department", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<Guid>("EnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<bool>("IsDisabled")
+                        .HasColumnType("bit");
+
+                    b.Property<string>("Name")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<Guid?>("ParentId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Path")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("Remark")
+                        .HasColumnType("nvarchar(max)");
+
+                    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.HasKey("Id");
+
+                    b.HasIndex("EnterpriseId");
+
+                    b.HasIndex("ParentId");
+
+                    b.ToTable("Department");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.DictionaryCategory", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Code")
+                        .IsRequired()
+                        .HasMaxLength(128)
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("FieldNames")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<string>("Name")
+                        .IsRequired()
+                        .HasMaxLength(128)
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<string>("Remark")
+                        .HasColumnType("nvarchar(max)");
+
+                    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.HasKey("Id");
+
+                    b.ToTable("DictionaryCategory");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.DictionaryData", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<Guid>("CategoryId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Code")
+                        .HasMaxLength(128)
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<string>("Content")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Field1")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("Field2")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("Field3")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("Field4")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("Field5")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<bool>("IsDisabled")
+                        .HasColumnType("bit");
+
+                    b.Property<Guid?>("ParentId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Path")
+                        .HasColumnType("nvarchar(max)");
+
+                    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.HasKey("Id");
+
+                    b.HasIndex("CategoryId");
+
+                    b.HasIndex("ParentId");
+
+                    b.ToTable("DictionaryData");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.Enterprise", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("BankBranchName")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("BankCard")
+                        .HasMaxLength(32)
+                        .HasColumnType("nvarchar(32)");
+
+                    b.Property<string>("BankName")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<Guid?>("CityId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("ContactEmail")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("ContactPhoneNumber")
+                        .HasMaxLength(11)
+                        .HasColumnType("nvarchar(11)");
+
+                    b.Property<string>("Contacts")
+                        .HasMaxLength(32)
+                        .HasColumnType("nvarchar(32)");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<Guid>("EnterpriseAuthId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<Guid?>("IndustryTypeId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<bool>("IsCheckedBankCard")
+                        .HasColumnType("bit");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<string>("MainBusiness")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<decimal?>("MergeSignCost")
+                        .HasColumnType("decimal(18,2)");
+
+                    b.Property<int?>("PayAccess")
+                        .HasColumnType("int");
+
+                    b.Property<Guid?>("ProvinceId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<int?>("RealAccess")
+                        .HasColumnType("int");
+
+                    b.Property<decimal?>("RealVerifyCost")
+                        .HasColumnType("decimal(18,2)");
+
+                    b.Property<decimal?>("SignCost")
+                        .HasColumnType("decimal(18,2)");
+
+                    b.Property<int?>("SmsAccess")
+                        .HasColumnType("int");
+
+                    b.Property<decimal>("SmsCost")
+                        .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?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.HasKey("Id");
+
+                    b.HasIndex("CityId");
+
+                    b.HasIndex("EnterpriseAuthId");
+
+                    b.HasIndex("IndustryTypeId");
+
+                    b.HasIndex("ProvinceId");
+
+                    b.ToTable("Enterprise");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.EnterpriseAuth", 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<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("EnterpriseName")
+                        .IsRequired()
+                        .HasMaxLength(128)
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<int?>("EnterpriseRealMethod")
+                        .HasColumnType("int");
+
+                    b.Property<string>("Identity")
+                        .HasMaxLength(18)
+                        .HasColumnType("nvarchar(18)");
+
+                    b.Property<string>("IdentityBackImg")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("IdentityImg")
+                        .HasColumnType("nvarchar(max)");
+
+                    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>("Name")
+                        .HasMaxLength(32)
+                        .HasColumnType("nvarchar(32)");
+
+                    b.Property<int?>("PersonalRealMethod")
+                        .HasColumnType("int");
+
+                    b.Property<string>("PhoneNumber")
+                        .HasMaxLength(11)
+                        .HasColumnType("nvarchar(11)");
+
+                    b.Property<bool?>("Proxy")
+                        .HasColumnType("bit");
+
+                    b.Property<string>("ProxyPowerAttorneyUrl")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("SocietyCreditCode")
+                        .IsRequired()
+                        .HasMaxLength(18)
+                        .HasColumnType("nvarchar(18)");
+
+                    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.HasKey("Id");
+
+                    b.ToTable("EnterpriseAuth");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<int>("ClientType")
+                        .HasColumnType("int");
+
+                    b.Property<string>("Code")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Group")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("Icon")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<bool>("IsCache")
+                        .HasColumnType("bit");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<bool>("IsDisabled")
+                        .HasColumnType("bit");
+
+                    b.Property<string>("Location")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("Name")
+                        .IsRequired()
+                        .HasMaxLength(128)
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<Guid?>("ParentId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Path")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("Remark")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<int>("Sort")
+                        .HasColumnType("int");
+
+                    b.Property<string>("TraceId")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<int>("Type")
+                        .HasColumnType("int");
+
+                    b.Property<DateTimeOffset?>("UpdatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Url")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<int>("UserType")
+                        .HasColumnType("int");
+
+                    b.Property<int>("VisitLevel")
+                        .HasColumnType("int");
+
+                    b.Property<string>("Width")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.HasKey("Id");
+
+                    b.HasIndex("ParentId");
+
+                    b.ToTable("Menu");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.Resource", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("ActionName")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("ActionSummary")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<bool>("AllowAnonymous")
+                        .HasColumnType("bit");
+
+                    b.Property<string>("ApplicationName")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("Code")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<int>("Controller")
+                        .HasColumnType("int");
+
+                    b.Property<string>("ControllerSummary")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("DynamicAssemblyName")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<bool>("IsExpired")
+                        .HasColumnType("bit");
+
+                    b.Property<int>("Method")
+                        .HasColumnType("int");
+
+                    b.Property<string>("Name")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("RequestTypeFullName")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("RequestTypeName")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("ResponseTypeFullName")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("ResponseTypeName")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("Route")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("RouteArea")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<int>("Service")
+                        .HasColumnType("int");
+
+                    b.Property<string>("ServiceName")
+                        .HasColumnType("nvarchar(max)");
+
+                    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.HasKey("Id");
+
+                    b.ToTable("Resource");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.Role", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<int>("ClientType")
+                        .HasColumnType("int");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<int>("DataPower")
+                        .HasColumnType("int");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<bool>("IsDisabled")
+                        .HasColumnType("bit");
+
+                    b.Property<int>("MinLevel")
+                        .HasColumnType("int");
+
+                    b.Property<string>("Name")
+                        .IsRequired()
+                        .HasMaxLength(128)
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<string>("Remark")
+                        .HasColumnType("nvarchar(max)");
+
+                    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<int>("UserType")
+                        .HasColumnType("int");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("Role");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.RoleMenu", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<Guid>("MenuId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<Guid>("RoleId")
+                        .HasColumnType("uniqueidentifier");
+
+                    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.HasKey("Id");
+
+                    b.HasIndex("MenuId");
+
+                    b.HasIndex("RoleId");
+
+                    b.ToTable("RoleMenu");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.RoleResource", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<int>("DataPower")
+                        .HasColumnType("int");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<Guid>("ResourceId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<Guid>("RoleId")
+                        .HasColumnType("uniqueidentifier");
+
+                    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.HasKey("Id");
+
+                    b.HasIndex("ResourceId");
+
+                    b.HasIndex("RoleId");
+
+                    b.ToTable("RoleResource");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Address")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<int>("AgeMaxLimit")
+                        .HasColumnType("int");
+
+                    b.Property<int>("AgeMinLimit")
+                        .HasColumnType("int");
+
+                    b.Property<DateTime>("BeginTime")
+                        .HasColumnType("datetime2");
+
+                    b.Property<int>("BillingMethod")
+                        .HasColumnType("int");
+
+                    b.Property<Guid>("CityId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTime>("EndTime")
+                        .HasColumnType("datetime2");
+
+                    b.Property<Guid>("EnterpriseId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<int>("GenderLimit")
+                        .HasColumnType("int");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<string>("Name")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<decimal>("ServiceFee")
+                        .HasColumnType("decimal(18,2)");
+
+                    b.Property<int>("SettlementCycle")
+                        .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.HasKey("Id");
+
+                    b.HasIndex("CityId");
+
+                    b.HasIndex("EnterpriseId");
+
+                    b.ToTable("TaskInfo");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.TaskInfoBenefit", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<Guid>("BenefitId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .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?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.HasKey("Id");
+
+                    b.HasIndex("BenefitId");
+
+                    b.HasIndex("TaskInfoId");
+
+                    b.ToTable("TaskInfoBenefit");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.TaskInfoCredentialLimit", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .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<Guid?>("TypeId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset?>("UpdatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.HasKey("Id");
+
+                    b.HasIndex("TaskInfoId");
+
+                    b.HasIndex("TypeId");
+
+                    b.ToTable("TaskInfoCredentialLimit");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<int>("HireStatus")
+                        .HasColumnType("int");
+
+                    b.Property<DateTime?>("HireTime")
+                        .HasColumnType("datetime2");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<int?>("SignContractStatus")
+                        .HasColumnType("int");
+
+                    b.Property<DateTime?>("SignContractTime")
+                        .HasColumnType("datetime2");
+
+                    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?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<Guid>("UserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.HasKey("Id");
+
+                    b.HasIndex("TaskInfoId");
+
+                    b.HasIndex("UserInfoId");
+
+                    b.ToTable("TaskInfoUser");
+                });
+
+            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<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .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>("IsCheckPhoneNumber")
+                        .HasColumnType("bit");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<bool>("IsReal")
+                        .HasColumnType("bit");
+
+                    b.Property<string>("Name")
+                        .IsRequired()
+                        .HasMaxLength(32)
+                        .HasColumnType("nvarchar(32)");
+
+                    b.Property<string>("Password")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("PhoneNumber")
+                        .HasMaxLength(11)
+                        .HasColumnType("nvarchar(11)");
+
+                    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)");
+
+                    b.Property<int>("Sort")
+                        .HasColumnType("int");
+
+                    b.Property<int>("Status")
+                        .HasColumnType("int");
+
+                    b.Property<string>("TraceId")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<int>("Type")
+                        .HasColumnType("int");
+
+                    b.Property<DateTimeOffset?>("UpdatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("UpdatedUserInfoId")
+                        .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>("WxmpOpenId")
+                        .HasMaxLength(32)
+                        .HasColumnType("nvarchar(32)");
+
+                    b.HasKey("Id");
+
+                    b.HasIndex("CityId");
+
+                    b.HasIndex("EducationalBackgroundId");
+
+                    b.HasIndex("EnterpriseId");
+
+                    b.HasIndex("PersonalIdentityId");
+
+                    b.HasIndex("ProvinceId");
+
+                    b.HasIndex("UserAuthId");
+
+                    b.ToTable("UserInfo");
+
+                    b.HasData(
+                        new
+                        {
+                            Id = new Guid("11111111-1111-1111-1111-111111111112"),
+                            CreatedTime = new DateTimeOffset(new DateTime(2000, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 8, 0, 0, 0)),
+                            IsDeleted = false,
+                            Level = 999,
+                            Sort = 0,
+                            Status = 0,
+                            Type = 100,
+                            UserAuthId = new Guid("11111111-1111-1111-1111-111111111111")
+                        });
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserInfoBankCard", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Bank")
+                        .IsRequired()
+                        .HasMaxLength(128)
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<string>("Code")
+                        .IsRequired()
+                        .HasMaxLength(32)
+                        .HasColumnType("nvarchar(32)");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<string>("PhoneNumber")
+                        .IsRequired()
+                        .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?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<Guid>("UserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.HasKey("Id");
+
+                    b.HasIndex("UserInfoId");
+
+                    b.ToTable("UserInfoBankCard");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserInfoCredential", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("BackImg")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("Code")
+                        .IsRequired()
+                        .HasMaxLength(128)
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTime>("EndDate")
+                        .HasColumnType("datetime2");
+
+                    b.Property<string>("Img")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<bool>("IsForever")
+                        .HasColumnType("bit");
+
+                    b.Property<string>("IssueUnit")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<int>("Sort")
+                        .HasColumnType("int");
+
+                    b.Property<DateTime>("StartDate")
+                        .HasColumnType("datetime2");
+
+                    b.Property<string>("TraceId")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<Guid?>("TypeId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset?>("UpdatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<Guid>("UserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.HasKey("Id");
+
+                    b.HasIndex("TypeId");
+
+                    b.HasIndex("UserInfoId");
+
+                    b.ToTable("UserInfoCredential");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserInfoDepartment", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<Guid>("DepartmentId")
+                        .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?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<Guid>("UserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.HasKey("Id");
+
+                    b.HasIndex("DepartmentId");
+
+                    b.HasIndex("UserInfoId");
+
+                    b.ToTable("UserInfoDepartment");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserInfoExpectJob", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<Guid>("PersonalIdentityId")
+                        .HasColumnType("uniqueidentifier");
+
+                    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<Guid>("UserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.HasKey("Id");
+
+                    b.HasIndex("PersonalIdentityId");
+
+                    b.HasIndex("UserInfoId");
+
+                    b.ToTable("UserInfoExpectJob");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserInfoPhoto", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Img")
+                        .HasColumnType("nvarchar(max)");
+
+                    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?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<Guid>("UserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.HasKey("Id");
+
+                    b.HasIndex("UserInfoId");
+
+                    b.ToTable("UserInfoPhoto");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserInfoRole", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<Guid>("RoleId")
+                        .HasColumnType("uniqueidentifier");
+
+                    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<Guid>("UserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.HasKey("Id");
+
+                    b.HasIndex("RoleId");
+
+                    b.HasIndex("UserInfoId");
+
+                    b.ToTable("UserInfoRole");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.Department", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise")
+                        .WithMany("Departments")
+                        .HasForeignKey("EnterpriseId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.HasOne("FlexJobApi.Core.Department", "Parent")
+                        .WithMany("Children")
+                        .HasForeignKey("ParentId");
+
+                    b.Navigation("Enterprise");
+
+                    b.Navigation("Parent");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.DictionaryData", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.DictionaryCategory", "Category")
+                        .WithMany()
+                        .HasForeignKey("CategoryId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.HasOne("FlexJobApi.Core.DictionaryData", "Parent")
+                        .WithMany("Children")
+                        .HasForeignKey("ParentId");
+
+                    b.Navigation("Category");
+
+                    b.Navigation("Parent");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.Enterprise", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.DictionaryData", "City")
+                        .WithMany()
+                        .HasForeignKey("CityId");
+
+                    b.HasOne("FlexJobApi.Core.EnterpriseAuth", "EnterpriseAuth")
+                        .WithMany()
+                        .HasForeignKey("EnterpriseAuthId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.HasOne("FlexJobApi.Core.DictionaryData", "IndustryType")
+                        .WithMany()
+                        .HasForeignKey("IndustryTypeId");
+
+                    b.HasOne("FlexJobApi.Core.DictionaryData", "Province")
+                        .WithMany()
+                        .HasForeignKey("ProvinceId");
+
+                    b.Navigation("City");
+
+                    b.Navigation("EnterpriseAuth");
+
+                    b.Navigation("IndustryType");
+
+                    b.Navigation("Province");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.Menu", "Parent")
+                        .WithMany("Children")
+                        .HasForeignKey("ParentId");
+
+                    b.Navigation("Parent");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.RoleMenu", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.Menu", "Menu")
+                        .WithMany()
+                        .HasForeignKey("MenuId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.HasOne("FlexJobApi.Core.Role", "Role")
+                        .WithMany("RoleMenus")
+                        .HasForeignKey("RoleId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.Navigation("Menu");
+
+                    b.Navigation("Role");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.RoleResource", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.Resource", "Resource")
+                        .WithMany()
+                        .HasForeignKey("ResourceId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.HasOne("FlexJobApi.Core.Role", "Role")
+                        .WithMany("RoleResources")
+                        .HasForeignKey("RoleId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.Navigation("Resource");
+
+                    b.Navigation("Role");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.DictionaryData", "City")
+                        .WithMany()
+                        .HasForeignKey("CityId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise")
+                        .WithMany()
+                        .HasForeignKey("EnterpriseId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.Navigation("City");
+
+                    b.Navigation("Enterprise");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.TaskInfoBenefit", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.DictionaryData", "Benefit")
+                        .WithMany()
+                        .HasForeignKey("BenefitId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo")
+                        .WithMany("Benefits")
+                        .HasForeignKey("TaskInfoId")
+                        .OnDelete(DeleteBehavior.Restrict)
+                        .IsRequired();
+
+                    b.Navigation("Benefit");
+
+                    b.Navigation("TaskInfo");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.TaskInfoCredentialLimit", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo")
+                        .WithMany("CredentialLimits")
+                        .HasForeignKey("TaskInfoId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.HasOne("FlexJobApi.Core.DictionaryData", "Type")
+                        .WithMany()
+                        .HasForeignKey("TypeId");
+
+                    b.Navigation("TaskInfo");
+
+                    b.Navigation("Type");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo")
+                        .WithMany()
+                        .HasForeignKey("TaskInfoId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
+                        .WithMany()
+                        .HasForeignKey("UserInfoId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.Navigation("TaskInfo");
+
+                    b.Navigation("UserInfo");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserInfo", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.DictionaryData", "City")
+                        .WithMany()
+                        .HasForeignKey("CityId");
+
+                    b.HasOne("FlexJobApi.Core.DictionaryData", "EducationalBackground")
+                        .WithMany()
+                        .HasForeignKey("EducationalBackgroundId");
+
+                    b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise")
+                        .WithMany("UserInfos")
+                        .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();
+
+                    b.Navigation("City");
+
+                    b.Navigation("EducationalBackground");
+
+                    b.Navigation("Enterprise");
+
+                    b.Navigation("PersonalIdentity");
+
+                    b.Navigation("Province");
+
+                    b.Navigation("UserAuth");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserInfoBankCard", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
+                        .WithMany()
+                        .HasForeignKey("UserInfoId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.Navigation("UserInfo");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserInfoCredential", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.DictionaryData", "Type")
+                        .WithMany()
+                        .HasForeignKey("TypeId");
+
+                    b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
+                        .WithMany("UserInfoCredentials")
+                        .HasForeignKey("UserInfoId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.Navigation("Type");
+
+                    b.Navigation("UserInfo");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserInfoDepartment", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.Department", "Department")
+                        .WithMany()
+                        .HasForeignKey("DepartmentId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
+                        .WithMany("UserInfoDepartments")
+                        .HasForeignKey("UserInfoId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.Navigation("Department");
+
+                    b.Navigation("UserInfo");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserInfoExpectJob", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.DictionaryData", "PersonalIdentity")
+                        .WithMany()
+                        .HasForeignKey("PersonalIdentityId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
+                        .WithMany("UserInfoExpectJobs")
+                        .HasForeignKey("UserInfoId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.Navigation("PersonalIdentity");
+
+                    b.Navigation("UserInfo");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserInfoPhoto", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
+                        .WithMany()
+                        .HasForeignKey("UserInfoId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.Navigation("UserInfo");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserInfoRole", b =>
+                {
+                    b.HasOne("FlexJobApi.Core.Role", "Role")
+                        .WithMany("UserInfoRoles")
+                        .HasForeignKey("RoleId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
+                        .WithMany("UserInfoRoles")
+                        .HasForeignKey("UserInfoId")
+                        .OnDelete(DeleteBehavior.Cascade)
+                        .IsRequired();
+
+                    b.Navigation("Role");
+
+                    b.Navigation("UserInfo");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.Department", b =>
+                {
+                    b.Navigation("Children");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.DictionaryData", b =>
+                {
+                    b.Navigation("Children");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.Enterprise", b =>
+                {
+                    b.Navigation("Departments");
+
+                    b.Navigation("UserInfos");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
+                {
+                    b.Navigation("Children");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.Role", b =>
+                {
+                    b.Navigation("RoleMenus");
+
+                    b.Navigation("RoleResources");
+
+                    b.Navigation("UserInfoRoles");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b =>
+                {
+                    b.Navigation("Benefits");
+
+                    b.Navigation("CredentialLimits");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserAuth", b =>
+                {
+                    b.Navigation("UserInfos");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.UserInfo", b =>
+                {
+                    b.Navigation("UserInfoCredentials");
+
+                    b.Navigation("UserInfoDepartments");
+
+                    b.Navigation("UserInfoExpectJobs");
+
+                    b.Navigation("UserInfoRoles");
+                });
+#pragma warning restore 612, 618
+        }
+    }
+}
diff --git a/FlexJobApi.Database.Migrations/Migrations/20250806155050_UpdateResource0806002.cs b/FlexJobApi.Database.Migrations/Migrations/20250806155050_UpdateResource0806002.cs
new file mode 100644
index 0000000..dd94a94
--- /dev/null
+++ b/FlexJobApi.Database.Migrations/Migrations/20250806155050_UpdateResource0806002.cs
@@ -0,0 +1,5844 @@
+锘縰sing System;
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace FlexJobApi.Database.Migrations.Migrations
+{
+    /// <inheritdoc />
+    public partial class UpdateResource0806002 : Migration
+    {
+        /// <inheritdoc />
+        protected override void Up(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.DropForeignKey(
+                name: "FK_TaskInfoBenefit_DictionaryData_BenefitId1",
+                table: "TaskInfoBenefit");
+
+            migrationBuilder.DropForeignKey(
+                name: "FK_TaskInfoBenefit_TaskInfo_BenefitId",
+                table: "TaskInfoBenefit");
+
+            migrationBuilder.DropIndex(
+                name: "IX_TaskInfoBenefit_BenefitId1",
+                table: "TaskInfoBenefit");
+
+            migrationBuilder.DropColumn(
+                name: "BenefitId1",
+                table: "TaskInfoBenefit");
+
+            migrationBuilder.AlterTable(
+                name: "UserInfoRole",
+                oldComment: "鐢ㄦ埛淇℃伅瑙掕壊");
+
+            migrationBuilder.AlterTable(
+                name: "UserInfoPhoto",
+                oldComment: "鐢ㄦ埛淇℃伅鐢熸椿鐓�");
+
+            migrationBuilder.AlterTable(
+                name: "UserInfoExpectJob",
+                oldComment: "鐢ㄦ埛淇℃伅鏈熸湜宀椾綅");
+
+            migrationBuilder.AlterTable(
+                name: "UserInfoDepartment",
+                oldComment: "鐢ㄦ埛淇℃伅閮ㄩ棬");
+
+            migrationBuilder.AlterTable(
+                name: "UserInfoCredential",
+                oldComment: "鐢ㄦ埛淇℃伅璧勬牸璇佷功");
+
+            migrationBuilder.AlterTable(
+                name: "UserInfoBankCard",
+                oldComment: "鐢ㄦ埛閾惰鍗′俊鎭�");
+
+            migrationBuilder.AlterTable(
+                name: "UserInfo",
+                oldComment: "鐢ㄦ埛淇℃伅");
+
+            migrationBuilder.AlterTable(
+                name: "UserAuth",
+                oldComment: "鐢ㄦ埛");
+
+            migrationBuilder.AlterTable(
+                name: "TaskInfoUser",
+                oldComment: "浠诲姟鐢ㄦ埛淇℃伅");
+
+            migrationBuilder.AlterTable(
+                name: "TaskInfoBenefit",
+                oldComment: "浠诲姟绂忓埄");
+
+            migrationBuilder.AlterTable(
+                name: "TaskInfo",
+                oldComment: "浠诲姟淇℃伅");
+
+            migrationBuilder.AlterTable(
+                name: "RoleResource",
+                oldComment: "瑙掕壊璧勬簮");
+
+            migrationBuilder.AlterTable(
+                name: "RoleMenu",
+                oldComment: "瑙掕壊鑿滃崟");
+
+            migrationBuilder.AlterTable(
+                name: "Role",
+                oldComment: "瑙掕壊");
+
+            migrationBuilder.AlterTable(
+                name: "Resource",
+                oldComment: "璧勬簮");
+
+            migrationBuilder.AlterTable(
+                name: "Menu",
+                oldComment: "鑿滃崟");
+
+            migrationBuilder.AlterTable(
+                name: "EnterpriseAuth",
+                oldComment: "浼佷笟璁よ瘉");
+
+            migrationBuilder.AlterTable(
+                name: "Enterprise",
+                oldComment: "浼佷笟");
+
+            migrationBuilder.AlterTable(
+                name: "DictionaryData",
+                oldComment: "瀛楀吀鏁版嵁");
+
+            migrationBuilder.AlterTable(
+                name: "DictionaryCategory",
+                oldComment: "瀛楀吀绫诲埆");
+
+            migrationBuilder.AlterTable(
+                name: "Department",
+                oldComment: "閮ㄩ棬");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UserInfoId",
+                table: "UserInfoRole",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "鐢ㄦ埛淇℃伅Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "UserInfoRole",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "UserInfoRole",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "UserInfoRole",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "RoleId",
+                table: "UserInfoRole",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "瑙掕壊Id");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "UserInfoRole",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "UserInfoRole",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UserInfoId",
+                table: "UserInfoPhoto",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "鐢ㄦ埛淇℃伅Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "UserInfoPhoto",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "UserInfoPhoto",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "UserInfoPhoto",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "UserInfoPhoto",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Img",
+                table: "UserInfoPhoto",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "鐓х墖");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "UserInfoPhoto",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UserInfoId",
+                table: "UserInfoExpectJob",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "鐢ㄦ埛淇℃伅Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "UserInfoExpectJob",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "UserInfoExpectJob",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "UserInfoExpectJob",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "PersonalIdentityId",
+                table: "UserInfoExpectJob",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "鏈熸湜宀椾綅Id");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "UserInfoExpectJob",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "UserInfoExpectJob",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UserInfoId",
+                table: "UserInfoDepartment",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "鐢ㄦ埛淇℃伅Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "UserInfoDepartment",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "UserInfoDepartment",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "UserInfoDepartment",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "UserInfoDepartment",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "DepartmentId",
+                table: "UserInfoDepartment",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "閮ㄩ棬Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "UserInfoDepartment",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UserInfoId",
+                table: "UserInfoCredential",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "鐢ㄦ埛淇℃伅Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "UserInfoCredential",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "TypeId",
+                table: "UserInfoCredential",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "璇佷功绫诲瀷Id");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "UserInfoCredential",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<DateTime>(
+                name: "StartDate",
+                table: "UserInfoCredential",
+                type: "datetime2",
+                nullable: false,
+                oldClrType: typeof(DateTime),
+                oldType: "datetime2",
+                oldComment: "寮�濮嬫棩鏈�");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "UserInfoCredential",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "IssueUnit",
+                table: "UserInfoCredential",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "鍙戣瘉鍗曚綅");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsForever",
+                table: "UserInfoCredential",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "姘镐箙璇佷功");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "UserInfoCredential",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Img",
+                table: "UserInfoCredential",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璇佷功姝i潰鐓х墖");
+
+            migrationBuilder.AlterColumn<DateTime>(
+                name: "EndDate",
+                table: "UserInfoCredential",
+                type: "datetime2",
+                nullable: false,
+                oldClrType: typeof(DateTime),
+                oldType: "datetime2",
+                oldComment: "缁撴潫鏃ユ湡");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "UserInfoCredential",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Code",
+                table: "UserInfoCredential",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128,
+                oldComment: "璇佷功缂栧彿");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "BackImg",
+                table: "UserInfoCredential",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璇佷功鍙嶉潰鐓х墖");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UserInfoId",
+                table: "UserInfoBankCard",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "鐢ㄦ埛淇℃伅Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "UserInfoBankCard",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "UserInfoBankCard",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "UserInfoBankCard",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "PhoneNumber",
+                table: "UserInfoBankCard",
+                type: "nvarchar(11)",
+                maxLength: 11,
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(11)",
+                oldMaxLength: 11,
+                oldComment: "閾惰棰勭暀鎵嬫満鍙�");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "UserInfoBankCard",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "UserInfoBankCard",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Code",
+                table: "UserInfoBankCard",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldComment: "閾惰鍗″彿");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Bank",
+                table: "UserInfoBankCard",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128,
+                oldComment: "寮�鎴疯");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "WxmpOpenId",
+                table: "UserInfo",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldNullable: true,
+                oldComment: "寰俊寮�鏀綢d");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "WorkSeniority",
+                table: "UserInfo",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "宸ヤ綔璧勫巻");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "WorkExperience",
+                table: "UserInfo",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "宸ヤ綔缁忛獙");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Weight",
+                table: "UserInfo",
+                type: "int",
+                nullable: true,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true,
+                oldComment: "浣撻噸");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UserAuthId",
+                table: "UserInfo",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "鐢ㄦ埛Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "UserInfo",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Type",
+                table: "UserInfo",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鐢ㄦ埛绫诲瀷");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "UserInfo",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Status",
+                table: "UserInfo",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鐘舵��");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "UserInfo",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Remark",
+                table: "UserInfo",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "澶囨敞");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "ProvinceId",
+                table: "UserInfo",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "甯搁┗鐪佷唤Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "PersonalIdentityId",
+                table: "UserInfo",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "韬唤Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Level",
+                table: "UserInfo",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "绾у埆");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "JobSeekingStatus",
+                table: "UserInfo",
+                type: "int",
+                nullable: true,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true,
+                oldComment: "姹傝亴鐘舵��");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "UserInfo",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Height",
+                table: "UserInfo",
+                type: "int",
+                nullable: true,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true,
+                oldComment: "韬珮");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "FreeTime",
+                table: "UserInfo",
+                type: "int",
+                nullable: true,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true,
+                oldComment: "绌洪棽鏃堕棿");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "EnterpriseId",
+                table: "UserInfo",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "浼佷笟Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "EducationalBackgroundId",
+                table: "UserInfo",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "瀛﹀巻Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "UserInfo",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CityId",
+                table: "UserInfo",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "甯搁┗鍩庡競Id");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Avatar",
+                table: "UserInfo",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "澶村儚");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "UserName",
+                table: "UserAuth",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldComment: "鐢ㄦ埛鍚�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "UserAuth",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "UserAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "UserAuth",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "RealAccess",
+                table: "UserAuth",
+                type: "int",
+                nullable: true,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true,
+                oldComment: "瀹炲悕閫氶亾");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "PhoneNumber",
+                table: "UserAuth",
+                type: "nvarchar(11)",
+                maxLength: 11,
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(11)",
+                oldMaxLength: 11,
+                oldNullable: true,
+                oldComment: "鎵嬫満鍙�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Password",
+                table: "UserAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "瀵嗙爜");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Name",
+                table: "UserAuth",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldComment: "濮撳悕");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsReal",
+                table: "UserAuth",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁瀹炲悕");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "UserAuth",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsCheckPhoneNumber",
+                table: "UserAuth",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁宸叉牎楠屾墜鏈哄彿");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "IdentityImg",
+                table: "UserAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "韬唤璇佷汉鍍忛潰");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "IdentityBackImg",
+                table: "UserAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "韬唤璇佸浗寰介潰");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Identity",
+                table: "UserAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "韬唤璇佸彿");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "UserAuth",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "BankCardImg",
+                table: "UserAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "閾惰鍗$収鐗�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "BankCard",
+                table: "UserAuth",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldNullable: true,
+                oldComment: "閾惰鍗″彿");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UserInfoId",
+                table: "TaskInfoUser",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "鐢ㄦ埛淇℃伅Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "TaskInfoUser",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "TaskInfoUser",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "TaskInfoId",
+                table: "TaskInfoUser",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "浠诲姟Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "TaskInfoUser",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<DateTime>(
+                name: "SignContractTime",
+                table: "TaskInfoUser",
+                type: "datetime2",
+                nullable: true,
+                oldClrType: typeof(DateTime),
+                oldType: "datetime2",
+                oldNullable: true,
+                oldComment: "绛剧害鏃堕棿");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "SignContractStatus",
+                table: "TaskInfoUser",
+                type: "int",
+                nullable: true,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true,
+                oldComment: "绛剧害鐘舵��");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "TaskInfoUser",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<DateTime>(
+                name: "HireTime",
+                table: "TaskInfoUser",
+                type: "datetime2",
+                nullable: true,
+                oldClrType: typeof(DateTime),
+                oldType: "datetime2",
+                oldNullable: true,
+                oldComment: "褰曠敤鏃堕棿");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "HireStatus",
+                table: "TaskInfoUser",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "褰曠敤鐘舵��");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "TaskInfoUser",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "TaskInfoCredentialLimit",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "TypeId",
+                table: "TaskInfoCredentialLimit",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "璇佷功绫诲瀷Id");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "TaskInfoCredentialLimit",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "TaskInfoId",
+                table: "TaskInfoCredentialLimit",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "浠诲姟Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "TaskInfoCredentialLimit",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "TaskInfoCredentialLimit",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "TaskInfoCredentialLimit",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "TaskInfoBenefit",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "TaskInfoBenefit",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "TaskInfoId",
+                table: "TaskInfoBenefit",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "浠诲姟Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "TaskInfoBenefit",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "TaskInfoBenefit",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "TaskInfoBenefit",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "BenefitId",
+                table: "TaskInfoBenefit",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "绂忓埄Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "TaskInfo",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "TaskInfo",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "TaskInfo",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "SettlementCycle",
+                table: "TaskInfo",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "缁撶畻鏂瑰紡");
+
+            migrationBuilder.AlterColumn<decimal>(
+                name: "ServiceFee",
+                table: "TaskInfo",
+                type: "decimal(18,2)",
+                nullable: false,
+                oldClrType: typeof(decimal),
+                oldType: "decimal(18,2)",
+                oldComment: "鏈嶅姟璐�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Name",
+                table: "TaskInfo",
+                type: "nvarchar(max)",
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldComment: "浠诲姟鍚嶇О");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "TaskInfo",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "GenderLimit",
+                table: "TaskInfo",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎬у埆瑕佹眰");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "EnterpriseId",
+                table: "TaskInfo",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "浼佷笟Id");
+
+            migrationBuilder.AlterColumn<DateTime>(
+                name: "EndTime",
+                table: "TaskInfo",
+                type: "datetime2",
+                nullable: false,
+                oldClrType: typeof(DateTime),
+                oldType: "datetime2",
+                oldComment: "浠诲姟缁撴潫鏃堕棿");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "TaskInfo",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CityId",
+                table: "TaskInfo",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "浠诲姟鍦扮偣鎵�灞炲尯鍩烮d");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "BillingMethod",
+                table: "TaskInfo",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "璁¤垂鏂瑰紡");
+
+            migrationBuilder.AlterColumn<DateTime>(
+                name: "BeginTime",
+                table: "TaskInfo",
+                type: "datetime2",
+                nullable: false,
+                oldClrType: typeof(DateTime),
+                oldType: "datetime2",
+                oldComment: "浠诲姟寮�濮嬫椂闂�");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "AgeMinLimit",
+                table: "TaskInfo",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "骞撮緞鑼冨洿鏈�灏�");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "AgeMaxLimit",
+                table: "TaskInfo",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "骞撮緞鑼冨洿澶�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Address",
+                table: "TaskInfo",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "浠诲姟鍦扮偣璇︾粏鍦板潃");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "RoleResource",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "RoleResource",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "RoleResource",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "RoleId",
+                table: "RoleResource",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "瑙掕壊Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "ResourceId",
+                table: "RoleResource",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "璧勬簮Id");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "RoleResource",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "DataPower",
+                table: "RoleResource",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鏁版嵁鏉冮檺");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "RoleResource",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "RoleMenu",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "RoleMenu",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "RoleMenu",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "RoleId",
+                table: "RoleMenu",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "瑙掕壊Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "MenuId",
+                table: "RoleMenu",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "鑿滃崟Id");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "RoleMenu",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "RoleMenu",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "UserType",
+                table: "Role",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鐢ㄦ埛绫诲瀷");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "Role",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "Role",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "Role",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Remark",
+                table: "Role",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "澶囨敞");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Name",
+                table: "Role",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128,
+                oldComment: "鍚嶇О");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "MinLevel",
+                table: "Role",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鏈�浣庣骇鍒�");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDisabled",
+                table: "Role",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁绂佺敤");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "Role",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "DataPower",
+                table: "Role",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鏁版嵁鏉冮檺");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "Role",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "ClientType",
+                table: "Role",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "瀹㈡埛绔被鍨�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "Resource",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "Resource",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ServiceName",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "鏈嶅姟鍚嶇О");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Service",
+                table: "Resource",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鏈嶅姟");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "RouteArea",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺敱鍖哄煙");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Route",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldComment: "璺敱");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ResponseTypeName",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldComment: "鍝嶅簲绫诲瀷鍚嶇О");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ResponseTypeFullName",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldComment: "鍝嶅簲绫诲瀷鍏ㄥ悕");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "RequestTypeName",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldComment: "璇锋眰绫诲瀷鍚嶇О");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "RequestTypeFullName",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldComment: "璇锋眰绫诲瀷鍏ㄥ悕");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Name",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldComment: "鍚嶇О");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Method",
+                table: "Resource",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "璇锋眰鏂瑰紡");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsExpired",
+                table: "Resource",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁宸茶繃鏈�");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "Resource",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "DynamicAssemblyName",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "鍔ㄦ�佺▼搴忛泦鍚嶇О");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "Resource",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ControllerSummary",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "鎺у埗鍣ㄦ憳瑕�");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Controller",
+                table: "Resource",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺у埗鍣�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Code",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldComment: "缂栧彿");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ApplicationName",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "搴旂敤鍚嶇О");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "AllowAnonymous",
+                table: "Resource",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "蹇界暐鏉冮檺");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ActionSummary",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "濮旀墭鎽樿");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ActionName",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "濮旀墭鍚嶇О");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Width",
+                table: "Menu",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "鍒楀锛堢敤浜庢寜閽�/鍒�/鍏冪礌锛�");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "VisitLevel",
+                table: "Menu",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "璁块棶绾у埆");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "UserType",
+                table: "Menu",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鐢ㄦ埛绫诲瀷");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Url",
+                table: "Menu",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "閾炬帴鍦板潃");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "Menu",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Type",
+                table: "Menu",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "绫诲瀷");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "Menu",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "Menu",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Remark",
+                table: "Menu",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "澶囨敞");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Path",
+                table: "Menu",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "鑿滃崟璺緞");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "ParentId",
+                table: "Menu",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "涓婄骇Id");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Name",
+                table: "Menu",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128,
+                oldComment: "鍚嶇О");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Location",
+                table: "Menu",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "浣嶇疆锛堢敤浜庢寜閽級");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDisabled",
+                table: "Menu",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁绂佺敤");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "Menu",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsCache",
+                table: "Menu",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁缂撳瓨");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Icon",
+                table: "Menu",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "鍥炬爣");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Group",
+                table: "Menu",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "鍒嗙粍鍚嶇О锛堢敤浜庢寜閽�/瀛楁锛�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "Menu",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Code",
+                table: "Menu",
+                type: "nvarchar(max)",
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldComment: "缂栧彿");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "ClientType",
+                table: "Menu",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "瀹㈡埛绔被鍨�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "EnterpriseAuth",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "EnterpriseAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "EnterpriseAuth",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "SocietyCreditCode",
+                table: "EnterpriseAuth",
+                type: "nvarchar(18)",
+                maxLength: 18,
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(18)",
+                oldMaxLength: 18,
+                oldComment: "缁熶竴绀句細淇$敤浠g爜");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ProxyPowerAttorneyUrl",
+                table: "EnterpriseAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "浼佷笟鎺堟潈涔�");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "Proxy",
+                table: "EnterpriseAuth",
+                type: "bit",
+                nullable: true,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldNullable: true,
+                oldComment: "鏄惁濮旀墭缁忓姙浜�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "PhoneNumber",
+                table: "EnterpriseAuth",
+                type: "nvarchar(11)",
+                maxLength: 11,
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(11)",
+                oldMaxLength: 11,
+                oldNullable: true,
+                oldComment: "娉曚汉鎴栫粡鍔炰汉鎵嬫満鍙�");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "PersonalRealMethod",
+                table: "EnterpriseAuth",
+                type: "int",
+                nullable: true,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true,
+                oldComment: "娉曚汉鎴栫粡鍔炰汉瀹炲悕鏂瑰紡");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Name",
+                table: "EnterpriseAuth",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldNullable: true,
+                oldComment: "娉曚汉鎴栫粡鍔炰汉濮撳悕");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "LicenseImage",
+                table: "EnterpriseAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "钀ヤ笟鎵х収鐓х墖");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "LegalPerson",
+                table: "EnterpriseAuth",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldNullable: true,
+                oldComment: "娉曚汉濮撳悕");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "LegalIdentity",
+                table: "EnterpriseAuth",
+                type: "nvarchar(18)",
+                maxLength: 18,
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(18)",
+                oldMaxLength: 18,
+                oldNullable: true,
+                oldComment: "娉曚汉韬唤璇佸彿");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsReal",
+                table: "EnterpriseAuth",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁瀹炲悕");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "EnterpriseAuth",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "IdentityImg",
+                table: "EnterpriseAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "娉曚汉鎴栫粡鍔炰汉韬唤璇佷汉鍍忛潰");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "IdentityBackImg",
+                table: "EnterpriseAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "娉曚汉鎴栫粡鍔炰汉韬唤璇佸浗寰介潰");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Identity",
+                table: "EnterpriseAuth",
+                type: "nvarchar(18)",
+                maxLength: 18,
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(18)",
+                oldMaxLength: 18,
+                oldNullable: true,
+                oldComment: "娉曚汉鎴栫粡鍔炰汉韬唤璇佸彿");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "EnterpriseRealMethod",
+                table: "EnterpriseAuth",
+                type: "int",
+                nullable: true,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true,
+                oldComment: "浼佷笟璁よ瘉鏂瑰紡");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "EnterpriseName",
+                table: "EnterpriseAuth",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128,
+                oldComment: "浼佷笟鍏ㄧО");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "EnterpriseAuth",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "BankCardImg",
+                table: "EnterpriseAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "娉曚汉鎴栫粡鍔炰汉閾惰鍗$収鐗�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "BankCard",
+                table: "EnterpriseAuth",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldNullable: true,
+                oldComment: "娉曚汉鎴栫粡鍔炰汉閾惰鍗″彿");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "Enterprise",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "Enterprise",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "Enterprise",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<decimal>(
+                name: "SmsCost",
+                table: "Enterprise",
+                type: "decimal(18,2)",
+                nullable: false,
+                oldClrType: typeof(decimal),
+                oldType: "decimal(18,2)",
+                oldComment: "鐭俊璐圭敤");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "SmsAccess",
+                table: "Enterprise",
+                type: "int",
+                nullable: true,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true,
+                oldComment: "鐭俊閫氶亾");
+
+            migrationBuilder.AlterColumn<decimal>(
+                name: "SignCost",
+                table: "Enterprise",
+                type: "decimal(18,2)",
+                nullable: true,
+                oldClrType: typeof(decimal),
+                oldType: "decimal(18,2)",
+                oldNullable: true,
+                oldComment: "绛剧害璐圭敤");
+
+            migrationBuilder.AlterColumn<decimal>(
+                name: "RealVerifyCost",
+                table: "Enterprise",
+                type: "decimal(18,2)",
+                nullable: true,
+                oldClrType: typeof(decimal),
+                oldType: "decimal(18,2)",
+                oldNullable: true,
+                oldComment: "瀹炲悕璐圭敤");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "RealAccess",
+                table: "Enterprise",
+                type: "int",
+                nullable: true,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true,
+                oldComment: "瀹炲悕閫氶亾");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "ProvinceId",
+                table: "Enterprise",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鎵�鍦ㄧ渷浠絀d");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "PayAccess",
+                table: "Enterprise",
+                type: "int",
+                nullable: true,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true,
+                oldComment: "鏀粯閫氶亾");
+
+            migrationBuilder.AlterColumn<decimal>(
+                name: "MergeSignCost",
+                table: "Enterprise",
+                type: "decimal(18,2)",
+                nullable: true,
+                oldClrType: typeof(decimal),
+                oldType: "decimal(18,2)",
+                oldNullable: true,
+                oldComment: "涓�鍙d环");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "MainBusiness",
+                table: "Enterprise",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "涓昏惀涓氬姟");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "Enterprise",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsCheckedBankCard",
+                table: "Enterprise",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁宸叉牎楠岄摱琛岃处鎴�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "IndustryTypeId",
+                table: "Enterprise",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鎵�灞炶涓欼d");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "EnterpriseAuthId",
+                table: "Enterprise",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "浼佷笟璁よ瘉Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "Enterprise",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Contacts",
+                table: "Enterprise",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldNullable: true,
+                oldComment: "鑱旂郴浜�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ContactPhoneNumber",
+                table: "Enterprise",
+                type: "nvarchar(11)",
+                maxLength: 11,
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(11)",
+                oldMaxLength: 11,
+                oldNullable: true,
+                oldComment: "鑱旂郴鐢佃瘽");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ContactEmail",
+                table: "Enterprise",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "鑱旂郴閭");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CityId",
+                table: "Enterprise",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鎵�鍦ㄥ煄甯侷d");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "BankName",
+                table: "Enterprise",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "寮�鎴锋�昏");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "BankCard",
+                table: "Enterprise",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldNullable: true,
+                oldComment: "閾惰璐︽埛");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "BankBranchName",
+                table: "Enterprise",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "寮�鎴锋敮琛�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "DictionaryData",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "DictionaryData",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "DictionaryData",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Path",
+                table: "DictionaryData",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "瀛楀吀璺緞");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "ParentId",
+                table: "DictionaryData",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "涓婄骇Id");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDisabled",
+                table: "DictionaryData",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁绂佺敤");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "DictionaryData",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Field5",
+                table: "DictionaryData",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "瀛楁5");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Field4",
+                table: "DictionaryData",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "瀛楁4");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Field3",
+                table: "DictionaryData",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "瀛楁3");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Field2",
+                table: "DictionaryData",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "瀛楁2");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Field1",
+                table: "DictionaryData",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "瀛楁1");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "DictionaryData",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Content",
+                table: "DictionaryData",
+                type: "nvarchar(max)",
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldComment: "鏄剧ず鍐呭");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Code",
+                table: "DictionaryData",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128,
+                oldNullable: true,
+                oldComment: "缂栧彿");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CategoryId",
+                table: "DictionaryData",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "绫诲埆Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "DictionaryCategory",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "DictionaryCategory",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "DictionaryCategory",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Remark",
+                table: "DictionaryCategory",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "澶囨敞");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Name",
+                table: "DictionaryCategory",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128,
+                oldComment: "鍚嶇О");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "DictionaryCategory",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "FieldNames",
+                table: "DictionaryCategory",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "瀛楁鍚嶏紙閫楀彿闅斿紑锛�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "DictionaryCategory",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Code",
+                table: "DictionaryCategory",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128,
+                oldComment: "缂栧彿");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "Department",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "Department",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "Department",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Remark",
+                table: "Department",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "澶囨敞");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Path",
+                table: "Department",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "閮ㄩ棬璺緞");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "ParentId",
+                table: "Department",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "涓婄骇Id");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Name",
+                table: "Department",
+                type: "nvarchar(max)",
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldComment: "鍚嶇О");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDisabled",
+                table: "Department",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁绂佺敤");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "Department",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "EnterpriseId",
+                table: "Department",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "浼佷笟Id");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "Department",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.CreateIndex(
+                name: "IX_TaskInfoBenefit_TaskInfoId",
+                table: "TaskInfoBenefit",
+                column: "TaskInfoId");
+
+            migrationBuilder.AddForeignKey(
+                name: "FK_TaskInfoBenefit_DictionaryData_BenefitId",
+                table: "TaskInfoBenefit",
+                column: "BenefitId",
+                principalTable: "DictionaryData",
+                principalColumn: "Id",
+                onDelete: ReferentialAction.Cascade);
+
+            migrationBuilder.AddForeignKey(
+                name: "FK_TaskInfoBenefit_TaskInfo_TaskInfoId",
+                table: "TaskInfoBenefit",
+                column: "TaskInfoId",
+                principalTable: "TaskInfo",
+                principalColumn: "Id",
+                onDelete: ReferentialAction.Restrict);
+        }
+
+        /// <inheritdoc />
+        protected override void Down(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.DropForeignKey(
+                name: "FK_TaskInfoBenefit_DictionaryData_BenefitId",
+                table: "TaskInfoBenefit");
+
+            migrationBuilder.DropForeignKey(
+                name: "FK_TaskInfoBenefit_TaskInfo_TaskInfoId",
+                table: "TaskInfoBenefit");
+
+            migrationBuilder.DropIndex(
+                name: "IX_TaskInfoBenefit_TaskInfoId",
+                table: "TaskInfoBenefit");
+
+            migrationBuilder.AlterTable(
+                name: "UserInfoRole",
+                comment: "鐢ㄦ埛淇℃伅瑙掕壊");
+
+            migrationBuilder.AlterTable(
+                name: "UserInfoPhoto",
+                comment: "鐢ㄦ埛淇℃伅鐢熸椿鐓�");
+
+            migrationBuilder.AlterTable(
+                name: "UserInfoExpectJob",
+                comment: "鐢ㄦ埛淇℃伅鏈熸湜宀椾綅");
+
+            migrationBuilder.AlterTable(
+                name: "UserInfoDepartment",
+                comment: "鐢ㄦ埛淇℃伅閮ㄩ棬");
+
+            migrationBuilder.AlterTable(
+                name: "UserInfoCredential",
+                comment: "鐢ㄦ埛淇℃伅璧勬牸璇佷功");
+
+            migrationBuilder.AlterTable(
+                name: "UserInfoBankCard",
+                comment: "鐢ㄦ埛閾惰鍗′俊鎭�");
+
+            migrationBuilder.AlterTable(
+                name: "UserInfo",
+                comment: "鐢ㄦ埛淇℃伅");
+
+            migrationBuilder.AlterTable(
+                name: "UserAuth",
+                comment: "鐢ㄦ埛");
+
+            migrationBuilder.AlterTable(
+                name: "TaskInfoUser",
+                comment: "浠诲姟鐢ㄦ埛淇℃伅");
+
+            migrationBuilder.AlterTable(
+                name: "TaskInfoBenefit",
+                comment: "浠诲姟绂忓埄");
+
+            migrationBuilder.AlterTable(
+                name: "TaskInfo",
+                comment: "浠诲姟淇℃伅");
+
+            migrationBuilder.AlterTable(
+                name: "RoleResource",
+                comment: "瑙掕壊璧勬簮");
+
+            migrationBuilder.AlterTable(
+                name: "RoleMenu",
+                comment: "瑙掕壊鑿滃崟");
+
+            migrationBuilder.AlterTable(
+                name: "Role",
+                comment: "瑙掕壊");
+
+            migrationBuilder.AlterTable(
+                name: "Resource",
+                comment: "璧勬簮");
+
+            migrationBuilder.AlterTable(
+                name: "Menu",
+                comment: "鑿滃崟");
+
+            migrationBuilder.AlterTable(
+                name: "EnterpriseAuth",
+                comment: "浼佷笟璁よ瘉");
+
+            migrationBuilder.AlterTable(
+                name: "Enterprise",
+                comment: "浼佷笟");
+
+            migrationBuilder.AlterTable(
+                name: "DictionaryData",
+                comment: "瀛楀吀鏁版嵁");
+
+            migrationBuilder.AlterTable(
+                name: "DictionaryCategory",
+                comment: "瀛楀吀绫诲埆");
+
+            migrationBuilder.AlterTable(
+                name: "Department",
+                comment: "閮ㄩ棬");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UserInfoId",
+                table: "UserInfoRole",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "鐢ㄦ埛淇℃伅Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "UserInfoRole",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "UserInfoRole",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "UserInfoRole",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "RoleId",
+                table: "UserInfoRole",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "瑙掕壊Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "UserInfoRole",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "UserInfoRole",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UserInfoId",
+                table: "UserInfoPhoto",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "鐢ㄦ埛淇℃伅Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "UserInfoPhoto",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "UserInfoPhoto",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "UserInfoPhoto",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "UserInfoPhoto",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Img",
+                table: "UserInfoPhoto",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "鐓х墖",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "UserInfoPhoto",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UserInfoId",
+                table: "UserInfoExpectJob",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "鐢ㄦ埛淇℃伅Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "UserInfoExpectJob",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "UserInfoExpectJob",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "UserInfoExpectJob",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "PersonalIdentityId",
+                table: "UserInfoExpectJob",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "鏈熸湜宀椾綅Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "UserInfoExpectJob",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "UserInfoExpectJob",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UserInfoId",
+                table: "UserInfoDepartment",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "鐢ㄦ埛淇℃伅Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "UserInfoDepartment",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "UserInfoDepartment",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "UserInfoDepartment",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "UserInfoDepartment",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "DepartmentId",
+                table: "UserInfoDepartment",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "閮ㄩ棬Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "UserInfoDepartment",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UserInfoId",
+                table: "UserInfoCredential",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "鐢ㄦ埛淇℃伅Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "UserInfoCredential",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "TypeId",
+                table: "UserInfoCredential",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "璇佷功绫诲瀷Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "UserInfoCredential",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<DateTime>(
+                name: "StartDate",
+                table: "UserInfoCredential",
+                type: "datetime2",
+                nullable: false,
+                comment: "寮�濮嬫棩鏈�",
+                oldClrType: typeof(DateTime),
+                oldType: "datetime2");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "UserInfoCredential",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "IssueUnit",
+                table: "UserInfoCredential",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "鍙戣瘉鍗曚綅",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsForever",
+                table: "UserInfoCredential",
+                type: "bit",
+                nullable: false,
+                comment: "姘镐箙璇佷功",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "UserInfoCredential",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Img",
+                table: "UserInfoCredential",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璇佷功姝i潰鐓х墖",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<DateTime>(
+                name: "EndDate",
+                table: "UserInfoCredential",
+                type: "datetime2",
+                nullable: false,
+                comment: "缁撴潫鏃ユ湡",
+                oldClrType: typeof(DateTime),
+                oldType: "datetime2");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "UserInfoCredential",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Code",
+                table: "UserInfoCredential",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                comment: "璇佷功缂栧彿",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "BackImg",
+                table: "UserInfoCredential",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璇佷功鍙嶉潰鐓х墖",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UserInfoId",
+                table: "UserInfoBankCard",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "鐢ㄦ埛淇℃伅Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "UserInfoBankCard",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "UserInfoBankCard",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "UserInfoBankCard",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "PhoneNumber",
+                table: "UserInfoBankCard",
+                type: "nvarchar(11)",
+                maxLength: 11,
+                nullable: false,
+                comment: "閾惰棰勭暀鎵嬫満鍙�",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(11)",
+                oldMaxLength: 11);
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "UserInfoBankCard",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "UserInfoBankCard",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Code",
+                table: "UserInfoBankCard",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: false,
+                comment: "閾惰鍗″彿",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Bank",
+                table: "UserInfoBankCard",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                comment: "寮�鎴疯",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "WxmpOpenId",
+                table: "UserInfo",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: true,
+                comment: "寰俊寮�鏀綢d",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "WorkSeniority",
+                table: "UserInfo",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "宸ヤ綔璧勫巻",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "WorkExperience",
+                table: "UserInfo",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "宸ヤ綔缁忛獙",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Weight",
+                table: "UserInfo",
+                type: "int",
+                nullable: true,
+                comment: "浣撻噸",
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UserAuthId",
+                table: "UserInfo",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "鐢ㄦ埛Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "UserInfo",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Type",
+                table: "UserInfo",
+                type: "int",
+                nullable: false,
+                comment: "鐢ㄦ埛绫诲瀷",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "UserInfo",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Status",
+                table: "UserInfo",
+                type: "int",
+                nullable: false,
+                comment: "鐘舵��",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "UserInfo",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Remark",
+                table: "UserInfo",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "澶囨敞",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "ProvinceId",
+                table: "UserInfo",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "甯搁┗鐪佷唤Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "PersonalIdentityId",
+                table: "UserInfo",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "韬唤Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Level",
+                table: "UserInfo",
+                type: "int",
+                nullable: false,
+                comment: "绾у埆",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "JobSeekingStatus",
+                table: "UserInfo",
+                type: "int",
+                nullable: true,
+                comment: "姹傝亴鐘舵��",
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "UserInfo",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Height",
+                table: "UserInfo",
+                type: "int",
+                nullable: true,
+                comment: "韬珮",
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "FreeTime",
+                table: "UserInfo",
+                type: "int",
+                nullable: true,
+                comment: "绌洪棽鏃堕棿",
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "EnterpriseId",
+                table: "UserInfo",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "浼佷笟Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "EducationalBackgroundId",
+                table: "UserInfo",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "瀛﹀巻Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "UserInfo",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CityId",
+                table: "UserInfo",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "甯搁┗鍩庡競Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Avatar",
+                table: "UserInfo",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "澶村儚",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "UserName",
+                table: "UserAuth",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: false,
+                comment: "鐢ㄦ埛鍚�",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "UserAuth",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "UserAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "UserAuth",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "RealAccess",
+                table: "UserAuth",
+                type: "int",
+                nullable: true,
+                comment: "瀹炲悕閫氶亾",
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "PhoneNumber",
+                table: "UserAuth",
+                type: "nvarchar(11)",
+                maxLength: 11,
+                nullable: true,
+                comment: "鎵嬫満鍙�",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(11)",
+                oldMaxLength: 11,
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Password",
+                table: "UserAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "瀵嗙爜",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Name",
+                table: "UserAuth",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: false,
+                comment: "濮撳悕",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32);
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsReal",
+                table: "UserAuth",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁瀹炲悕",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "UserAuth",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsCheckPhoneNumber",
+                table: "UserAuth",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁宸叉牎楠屾墜鏈哄彿",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "IdentityImg",
+                table: "UserAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "韬唤璇佷汉鍍忛潰",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "IdentityBackImg",
+                table: "UserAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "韬唤璇佸浗寰介潰",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Identity",
+                table: "UserAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "韬唤璇佸彿",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "UserAuth",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "BankCardImg",
+                table: "UserAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "閾惰鍗$収鐗�",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "BankCard",
+                table: "UserAuth",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: true,
+                comment: "閾惰鍗″彿",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UserInfoId",
+                table: "TaskInfoUser",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "鐢ㄦ埛淇℃伅Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "TaskInfoUser",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "TaskInfoUser",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "TaskInfoId",
+                table: "TaskInfoUser",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "浠诲姟Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "TaskInfoUser",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<DateTime>(
+                name: "SignContractTime",
+                table: "TaskInfoUser",
+                type: "datetime2",
+                nullable: true,
+                comment: "绛剧害鏃堕棿",
+                oldClrType: typeof(DateTime),
+                oldType: "datetime2",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "SignContractStatus",
+                table: "TaskInfoUser",
+                type: "int",
+                nullable: true,
+                comment: "绛剧害鐘舵��",
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "TaskInfoUser",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<DateTime>(
+                name: "HireTime",
+                table: "TaskInfoUser",
+                type: "datetime2",
+                nullable: true,
+                comment: "褰曠敤鏃堕棿",
+                oldClrType: typeof(DateTime),
+                oldType: "datetime2",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "HireStatus",
+                table: "TaskInfoUser",
+                type: "int",
+                nullable: false,
+                comment: "褰曠敤鐘舵��",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "TaskInfoUser",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "TaskInfoCredentialLimit",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "TypeId",
+                table: "TaskInfoCredentialLimit",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "璇佷功绫诲瀷Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "TaskInfoCredentialLimit",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "TaskInfoId",
+                table: "TaskInfoCredentialLimit",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "浠诲姟Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "TaskInfoCredentialLimit",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "TaskInfoCredentialLimit",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "TaskInfoCredentialLimit",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "TaskInfoBenefit",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "TaskInfoBenefit",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "TaskInfoId",
+                table: "TaskInfoBenefit",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "浠诲姟Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "TaskInfoBenefit",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "TaskInfoBenefit",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "TaskInfoBenefit",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "BenefitId",
+                table: "TaskInfoBenefit",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "绂忓埄Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AddColumn<Guid>(
+                name: "BenefitId1",
+                table: "TaskInfoBenefit",
+                type: "uniqueidentifier",
+                nullable: false,
+                defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "TaskInfo",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "TaskInfo",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "TaskInfo",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "SettlementCycle",
+                table: "TaskInfo",
+                type: "int",
+                nullable: false,
+                comment: "缁撶畻鏂瑰紡",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<decimal>(
+                name: "ServiceFee",
+                table: "TaskInfo",
+                type: "decimal(18,2)",
+                nullable: false,
+                comment: "鏈嶅姟璐�",
+                oldClrType: typeof(decimal),
+                oldType: "decimal(18,2)");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Name",
+                table: "TaskInfo",
+                type: "nvarchar(max)",
+                nullable: false,
+                comment: "浠诲姟鍚嶇О",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "TaskInfo",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "GenderLimit",
+                table: "TaskInfo",
+                type: "int",
+                nullable: false,
+                comment: "鎬у埆瑕佹眰",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "EnterpriseId",
+                table: "TaskInfo",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "浼佷笟Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<DateTime>(
+                name: "EndTime",
+                table: "TaskInfo",
+                type: "datetime2",
+                nullable: false,
+                comment: "浠诲姟缁撴潫鏃堕棿",
+                oldClrType: typeof(DateTime),
+                oldType: "datetime2");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "TaskInfo",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CityId",
+                table: "TaskInfo",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "浠诲姟鍦扮偣鎵�灞炲尯鍩烮d",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "BillingMethod",
+                table: "TaskInfo",
+                type: "int",
+                nullable: false,
+                comment: "璁¤垂鏂瑰紡",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<DateTime>(
+                name: "BeginTime",
+                table: "TaskInfo",
+                type: "datetime2",
+                nullable: false,
+                comment: "浠诲姟寮�濮嬫椂闂�",
+                oldClrType: typeof(DateTime),
+                oldType: "datetime2");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "AgeMinLimit",
+                table: "TaskInfo",
+                type: "int",
+                nullable: false,
+                comment: "骞撮緞鑼冨洿鏈�灏�",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "AgeMaxLimit",
+                table: "TaskInfo",
+                type: "int",
+                nullable: false,
+                comment: "骞撮緞鑼冨洿澶�",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Address",
+                table: "TaskInfo",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "浠诲姟鍦扮偣璇︾粏鍦板潃",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "RoleResource",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "RoleResource",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "RoleResource",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "RoleId",
+                table: "RoleResource",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "瑙掕壊Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "ResourceId",
+                table: "RoleResource",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "璧勬簮Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "RoleResource",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "DataPower",
+                table: "RoleResource",
+                type: "int",
+                nullable: false,
+                comment: "鏁版嵁鏉冮檺",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "RoleResource",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "RoleMenu",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "RoleMenu",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "RoleMenu",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "RoleId",
+                table: "RoleMenu",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "瑙掕壊Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "MenuId",
+                table: "RoleMenu",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "鑿滃崟Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "RoleMenu",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "RoleMenu",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "UserType",
+                table: "Role",
+                type: "int",
+                nullable: false,
+                comment: "鐢ㄦ埛绫诲瀷",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "Role",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "Role",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "Role",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Remark",
+                table: "Role",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "澶囨敞",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Name",
+                table: "Role",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                comment: "鍚嶇О",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "MinLevel",
+                table: "Role",
+                type: "int",
+                nullable: false,
+                comment: "鏈�浣庣骇鍒�",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDisabled",
+                table: "Role",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁绂佺敤",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "Role",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "DataPower",
+                table: "Role",
+                type: "int",
+                nullable: false,
+                comment: "鏁版嵁鏉冮檺",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "Role",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "ClientType",
+                table: "Role",
+                type: "int",
+                nullable: false,
+                comment: "瀹㈡埛绔被鍨�",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "Resource",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "Resource",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ServiceName",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "鏈嶅姟鍚嶇О",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Service",
+                table: "Resource",
+                type: "int",
+                nullable: false,
+                comment: "鏈嶅姟",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "RouteArea",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺敱鍖哄煙",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Route",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: false,
+                comment: "璺敱",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ResponseTypeName",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: false,
+                comment: "鍝嶅簲绫诲瀷鍚嶇О",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ResponseTypeFullName",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: false,
+                comment: "鍝嶅簲绫诲瀷鍏ㄥ悕",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "RequestTypeName",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: false,
+                comment: "璇锋眰绫诲瀷鍚嶇О",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "RequestTypeFullName",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: false,
+                comment: "璇锋眰绫诲瀷鍏ㄥ悕",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Name",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: false,
+                comment: "鍚嶇О",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Method",
+                table: "Resource",
+                type: "int",
+                nullable: false,
+                comment: "璇锋眰鏂瑰紡",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsExpired",
+                table: "Resource",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁宸茶繃鏈�",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "Resource",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "DynamicAssemblyName",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "鍔ㄦ�佺▼搴忛泦鍚嶇О",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "Resource",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ControllerSummary",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "鎺у埗鍣ㄦ憳瑕�",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Controller",
+                table: "Resource",
+                type: "int",
+                nullable: false,
+                comment: "鎺у埗鍣�",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Code",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: false,
+                comment: "缂栧彿",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ApplicationName",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "搴旂敤鍚嶇О",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "AllowAnonymous",
+                table: "Resource",
+                type: "bit",
+                nullable: false,
+                comment: "蹇界暐鏉冮檺",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ActionSummary",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "濮旀墭鎽樿",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ActionName",
+                table: "Resource",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "濮旀墭鍚嶇О",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Width",
+                table: "Menu",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "鍒楀锛堢敤浜庢寜閽�/鍒�/鍏冪礌锛�",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "VisitLevel",
+                table: "Menu",
+                type: "int",
+                nullable: false,
+                comment: "璁块棶绾у埆",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "UserType",
+                table: "Menu",
+                type: "int",
+                nullable: false,
+                comment: "鐢ㄦ埛绫诲瀷",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Url",
+                table: "Menu",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "閾炬帴鍦板潃",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "Menu",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Type",
+                table: "Menu",
+                type: "int",
+                nullable: false,
+                comment: "绫诲瀷",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "Menu",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "Menu",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Remark",
+                table: "Menu",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "澶囨敞",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Path",
+                table: "Menu",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "鑿滃崟璺緞",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "ParentId",
+                table: "Menu",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "涓婄骇Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Name",
+                table: "Menu",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                comment: "鍚嶇О",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Location",
+                table: "Menu",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "浣嶇疆锛堢敤浜庢寜閽級",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDisabled",
+                table: "Menu",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁绂佺敤",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "Menu",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsCache",
+                table: "Menu",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁缂撳瓨",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Icon",
+                table: "Menu",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "鍥炬爣",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Group",
+                table: "Menu",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "鍒嗙粍鍚嶇О锛堢敤浜庢寜閽�/瀛楁锛�",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "Menu",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Code",
+                table: "Menu",
+                type: "nvarchar(max)",
+                nullable: false,
+                comment: "缂栧彿",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "ClientType",
+                table: "Menu",
+                type: "int",
+                nullable: false,
+                comment: "瀹㈡埛绔被鍨�",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "EnterpriseAuth",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "EnterpriseAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "EnterpriseAuth",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "SocietyCreditCode",
+                table: "EnterpriseAuth",
+                type: "nvarchar(18)",
+                maxLength: 18,
+                nullable: false,
+                comment: "缁熶竴绀句細淇$敤浠g爜",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(18)",
+                oldMaxLength: 18);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ProxyPowerAttorneyUrl",
+                table: "EnterpriseAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "浼佷笟鎺堟潈涔�",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "Proxy",
+                table: "EnterpriseAuth",
+                type: "bit",
+                nullable: true,
+                comment: "鏄惁濮旀墭缁忓姙浜�",
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "PhoneNumber",
+                table: "EnterpriseAuth",
+                type: "nvarchar(11)",
+                maxLength: 11,
+                nullable: true,
+                comment: "娉曚汉鎴栫粡鍔炰汉鎵嬫満鍙�",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(11)",
+                oldMaxLength: 11,
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "PersonalRealMethod",
+                table: "EnterpriseAuth",
+                type: "int",
+                nullable: true,
+                comment: "娉曚汉鎴栫粡鍔炰汉瀹炲悕鏂瑰紡",
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Name",
+                table: "EnterpriseAuth",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: true,
+                comment: "娉曚汉鎴栫粡鍔炰汉濮撳悕",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "LicenseImage",
+                table: "EnterpriseAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "钀ヤ笟鎵х収鐓х墖",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "LegalPerson",
+                table: "EnterpriseAuth",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: true,
+                comment: "娉曚汉濮撳悕",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "LegalIdentity",
+                table: "EnterpriseAuth",
+                type: "nvarchar(18)",
+                maxLength: 18,
+                nullable: true,
+                comment: "娉曚汉韬唤璇佸彿",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(18)",
+                oldMaxLength: 18,
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsReal",
+                table: "EnterpriseAuth",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁瀹炲悕",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "EnterpriseAuth",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "IdentityImg",
+                table: "EnterpriseAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "娉曚汉鎴栫粡鍔炰汉韬唤璇佷汉鍍忛潰",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "IdentityBackImg",
+                table: "EnterpriseAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "娉曚汉鎴栫粡鍔炰汉韬唤璇佸浗寰介潰",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Identity",
+                table: "EnterpriseAuth",
+                type: "nvarchar(18)",
+                maxLength: 18,
+                nullable: true,
+                comment: "娉曚汉鎴栫粡鍔炰汉韬唤璇佸彿",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(18)",
+                oldMaxLength: 18,
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "EnterpriseRealMethod",
+                table: "EnterpriseAuth",
+                type: "int",
+                nullable: true,
+                comment: "浼佷笟璁よ瘉鏂瑰紡",
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "EnterpriseName",
+                table: "EnterpriseAuth",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                comment: "浼佷笟鍏ㄧО",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "EnterpriseAuth",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "BankCardImg",
+                table: "EnterpriseAuth",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "娉曚汉鎴栫粡鍔炰汉閾惰鍗$収鐗�",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "BankCard",
+                table: "EnterpriseAuth",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: true,
+                comment: "娉曚汉鎴栫粡鍔炰汉閾惰鍗″彿",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "Enterprise",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "Enterprise",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "Enterprise",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<decimal>(
+                name: "SmsCost",
+                table: "Enterprise",
+                type: "decimal(18,2)",
+                nullable: false,
+                comment: "鐭俊璐圭敤",
+                oldClrType: typeof(decimal),
+                oldType: "decimal(18,2)");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "SmsAccess",
+                table: "Enterprise",
+                type: "int",
+                nullable: true,
+                comment: "鐭俊閫氶亾",
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<decimal>(
+                name: "SignCost",
+                table: "Enterprise",
+                type: "decimal(18,2)",
+                nullable: true,
+                comment: "绛剧害璐圭敤",
+                oldClrType: typeof(decimal),
+                oldType: "decimal(18,2)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<decimal>(
+                name: "RealVerifyCost",
+                table: "Enterprise",
+                type: "decimal(18,2)",
+                nullable: true,
+                comment: "瀹炲悕璐圭敤",
+                oldClrType: typeof(decimal),
+                oldType: "decimal(18,2)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "RealAccess",
+                table: "Enterprise",
+                type: "int",
+                nullable: true,
+                comment: "瀹炲悕閫氶亾",
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "ProvinceId",
+                table: "Enterprise",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鎵�鍦ㄧ渷浠絀d",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "PayAccess",
+                table: "Enterprise",
+                type: "int",
+                nullable: true,
+                comment: "鏀粯閫氶亾",
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<decimal>(
+                name: "MergeSignCost",
+                table: "Enterprise",
+                type: "decimal(18,2)",
+                nullable: true,
+                comment: "涓�鍙d环",
+                oldClrType: typeof(decimal),
+                oldType: "decimal(18,2)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "MainBusiness",
+                table: "Enterprise",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "涓昏惀涓氬姟",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "Enterprise",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsCheckedBankCard",
+                table: "Enterprise",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁宸叉牎楠岄摱琛岃处鎴�",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "IndustryTypeId",
+                table: "Enterprise",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鎵�灞炶涓欼d",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "EnterpriseAuthId",
+                table: "Enterprise",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "浼佷笟璁よ瘉Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "Enterprise",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Contacts",
+                table: "Enterprise",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: true,
+                comment: "鑱旂郴浜�",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ContactPhoneNumber",
+                table: "Enterprise",
+                type: "nvarchar(11)",
+                maxLength: 11,
+                nullable: true,
+                comment: "鑱旂郴鐢佃瘽",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(11)",
+                oldMaxLength: 11,
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ContactEmail",
+                table: "Enterprise",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "鑱旂郴閭",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CityId",
+                table: "Enterprise",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鎵�鍦ㄥ煄甯侷d",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "BankName",
+                table: "Enterprise",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "寮�鎴锋�昏",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "BankCard",
+                table: "Enterprise",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: true,
+                comment: "閾惰璐︽埛",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "BankBranchName",
+                table: "Enterprise",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "寮�鎴锋敮琛�",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "DictionaryData",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "DictionaryData",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "DictionaryData",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Path",
+                table: "DictionaryData",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "瀛楀吀璺緞",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "ParentId",
+                table: "DictionaryData",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "涓婄骇Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDisabled",
+                table: "DictionaryData",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁绂佺敤",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "DictionaryData",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Field5",
+                table: "DictionaryData",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "瀛楁5",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Field4",
+                table: "DictionaryData",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "瀛楁4",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Field3",
+                table: "DictionaryData",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "瀛楁3",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Field2",
+                table: "DictionaryData",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "瀛楁2",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Field1",
+                table: "DictionaryData",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "瀛楁1",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "DictionaryData",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Content",
+                table: "DictionaryData",
+                type: "nvarchar(max)",
+                nullable: false,
+                comment: "鏄剧ず鍐呭",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Code",
+                table: "DictionaryData",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: true,
+                comment: "缂栧彿",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128,
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CategoryId",
+                table: "DictionaryData",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "绫诲埆Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "DictionaryCategory",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "DictionaryCategory",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "DictionaryCategory",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Remark",
+                table: "DictionaryCategory",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "澶囨敞",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Name",
+                table: "DictionaryCategory",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                comment: "鍚嶇О",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128);
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "DictionaryCategory",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "FieldNames",
+                table: "DictionaryCategory",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "瀛楁鍚嶏紙閫楀彿闅斿紑锛�",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "DictionaryCategory",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Code",
+                table: "DictionaryCategory",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                comment: "缂栧彿",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdatedUserInfoId",
+                table: "Department",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "Department",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "Department",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Remark",
+                table: "Department",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "澶囨敞",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Path",
+                table: "Department",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "閮ㄩ棬璺緞",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "ParentId",
+                table: "Department",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "涓婄骇Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Name",
+                table: "Department",
+                type: "nvarchar(max)",
+                nullable: false,
+                comment: "鍚嶇О",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDisabled",
+                table: "Department",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁绂佺敤",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "Department",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "EnterpriseId",
+                table: "Department",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "浼佷笟Id",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "Department",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.CreateIndex(
+                name: "IX_TaskInfoBenefit_BenefitId1",
+                table: "TaskInfoBenefit",
+                column: "BenefitId1");
+
+            migrationBuilder.AddForeignKey(
+                name: "FK_TaskInfoBenefit_DictionaryData_BenefitId1",
+                table: "TaskInfoBenefit",
+                column: "BenefitId1",
+                principalTable: "DictionaryData",
+                principalColumn: "Id",
+                onDelete: ReferentialAction.Cascade);
+
+            migrationBuilder.AddForeignKey(
+                name: "FK_TaskInfoBenefit_TaskInfo_BenefitId",
+                table: "TaskInfoBenefit",
+                column: "BenefitId",
+                principalTable: "TaskInfo",
+                principalColumn: "Id",
+                onDelete: ReferentialAction.Restrict);
+        }
+    }
+}
diff --git a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
index a8ecbb9..b919251 100644
--- a/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
+++ b/FlexJobApi.Database.Migrations/Migrations/DefaultDbContextModelSnapshot.cs
@@ -32,52 +32,41 @@
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid>("EnterpriseId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("浼佷笟Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<bool>("IsDisabled")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁绂佺敤");
+                        .HasColumnType("bit");
 
                     b.Property<string>("Name")
                         .IsRequired()
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鍚嶇О");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<Guid?>("ParentId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("涓婄骇Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("Path")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("閮ㄩ棬璺緞");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("Remark")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("澶囨敞");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
@@ -85,10 +74,7 @@
 
                     b.HasIndex("ParentId");
 
-                    b.ToTable("Department", t =>
-                        {
-                            t.HasComment("閮ㄩ棬");
-                        });
+                    b.ToTable("Department");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.DictionaryCategory", b =>
@@ -100,55 +86,43 @@
                     b.Property<string>("Code")
                         .IsRequired()
                         .HasMaxLength(128)
-                        .HasColumnType("nvarchar(128)")
-                        .HasComment("缂栧彿");
+                        .HasColumnType("nvarchar(128)");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("FieldNames")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("瀛楁鍚嶏紙閫楀彿闅斿紑锛�");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<string>("Name")
                         .IsRequired()
                         .HasMaxLength(128)
-                        .HasColumnType("nvarchar(128)")
-                        .HasComment("鍚嶇О");
+                        .HasColumnType("nvarchar(128)");
 
                     b.Property<string>("Remark")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("澶囨敞");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
-                    b.ToTable("DictionaryCategory", t =>
-                        {
-                            t.HasComment("瀛楀吀绫诲埆");
-                        });
+                    b.ToTable("DictionaryCategory");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.DictionaryData", b =>
@@ -158,76 +132,60 @@
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid>("CategoryId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("绫诲埆Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("Code")
                         .HasMaxLength(128)
-                        .HasColumnType("nvarchar(128)")
-                        .HasComment("缂栧彿");
+                        .HasColumnType("nvarchar(128)");
 
                     b.Property<string>("Content")
                         .IsRequired()
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鏄剧ず鍐呭");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("Field1")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("瀛楁1");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("Field2")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("瀛楁2");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("Field3")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("瀛楁3");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("Field4")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("瀛楁4");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("Field5")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("瀛楁5");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<bool>("IsDisabled")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁绂佺敤");
+                        .HasColumnType("bit");
 
                     b.Property<Guid?>("ParentId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("涓婄骇Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("Path")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("瀛楀吀璺緞");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
@@ -235,10 +193,7 @@
 
                     b.HasIndex("ParentId");
 
-                    b.ToTable("DictionaryData", t =>
-                        {
-                            t.HasComment("瀛楀吀鏁版嵁");
-                        });
+                    b.ToTable("DictionaryData");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.Enterprise", b =>
@@ -248,109 +203,85 @@
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("BankBranchName")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("寮�鎴锋敮琛�");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("BankCard")
                         .HasMaxLength(32)
-                        .HasColumnType("nvarchar(32)")
-                        .HasComment("閾惰璐︽埛");
+                        .HasColumnType("nvarchar(32)");
 
                     b.Property<string>("BankName")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("寮�鎴锋�昏");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<Guid?>("CityId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鎵�鍦ㄥ煄甯侷d");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("ContactEmail")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鑱旂郴閭");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("ContactPhoneNumber")
                         .HasMaxLength(11)
-                        .HasColumnType("nvarchar(11)")
-                        .HasComment("鑱旂郴鐢佃瘽");
+                        .HasColumnType("nvarchar(11)");
 
                     b.Property<string>("Contacts")
                         .HasMaxLength(32)
-                        .HasColumnType("nvarchar(32)")
-                        .HasComment("鑱旂郴浜�");
+                        .HasColumnType("nvarchar(32)");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid>("EnterpriseAuthId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("浼佷笟璁よ瘉Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid?>("IndustryTypeId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鎵�灞炶涓欼d");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<bool>("IsCheckedBankCard")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁宸叉牎楠岄摱琛岃处鎴�");
+                        .HasColumnType("bit");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<string>("MainBusiness")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("涓昏惀涓氬姟");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<decimal?>("MergeSignCost")
-                        .HasColumnType("decimal(18,2)")
-                        .HasComment("涓�鍙d环");
+                        .HasColumnType("decimal(18,2)");
 
                     b.Property<int?>("PayAccess")
-                        .HasColumnType("int")
-                        .HasComment("鏀粯閫氶亾");
+                        .HasColumnType("int");
 
                     b.Property<Guid?>("ProvinceId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鎵�鍦ㄧ渷浠絀d");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<int?>("RealAccess")
-                        .HasColumnType("int")
-                        .HasComment("瀹炲悕閫氶亾");
+                        .HasColumnType("int");
 
                     b.Property<decimal?>("RealVerifyCost")
-                        .HasColumnType("decimal(18,2)")
-                        .HasComment("瀹炲悕璐圭敤");
+                        .HasColumnType("decimal(18,2)");
 
                     b.Property<decimal?>("SignCost")
-                        .HasColumnType("decimal(18,2)")
-                        .HasComment("绛剧害璐圭敤");
+                        .HasColumnType("decimal(18,2)");
 
                     b.Property<int?>("SmsAccess")
-                        .HasColumnType("int")
-                        .HasComment("鐭俊閫氶亾");
+                        .HasColumnType("int");
 
                     b.Property<decimal>("SmsCost")
-                        .HasColumnType("decimal(18,2)")
-                        .HasComment("鐭俊璐圭敤");
+                        .HasColumnType("decimal(18,2)");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
@@ -362,10 +293,7 @@
 
                     b.HasIndex("ProvinceId");
 
-                    b.ToTable("Enterprise", t =>
-                        {
-                            t.HasComment("浼佷笟");
-                        });
+                    b.ToTable("Enterprise");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.EnterpriseAuth", b =>
@@ -376,114 +304,89 @@
 
                     b.Property<string>("BankCard")
                         .HasMaxLength(32)
-                        .HasColumnType("nvarchar(32)")
-                        .HasComment("娉曚汉鎴栫粡鍔炰汉閾惰鍗″彿");
+                        .HasColumnType("nvarchar(32)");
 
                     b.Property<string>("BankCardImg")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("娉曚汉鎴栫粡鍔炰汉閾惰鍗$収鐗�");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("EnterpriseName")
                         .IsRequired()
                         .HasMaxLength(128)
-                        .HasColumnType("nvarchar(128)")
-                        .HasComment("浼佷笟鍏ㄧО");
+                        .HasColumnType("nvarchar(128)");
 
                     b.Property<int?>("EnterpriseRealMethod")
-                        .HasColumnType("int")
-                        .HasComment("浼佷笟璁よ瘉鏂瑰紡");
+                        .HasColumnType("int");
 
                     b.Property<string>("Identity")
                         .HasMaxLength(18)
-                        .HasColumnType("nvarchar(18)")
-                        .HasComment("娉曚汉鎴栫粡鍔炰汉韬唤璇佸彿");
+                        .HasColumnType("nvarchar(18)");
 
                     b.Property<string>("IdentityBackImg")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("娉曚汉鎴栫粡鍔炰汉韬唤璇佸浗寰介潰");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("IdentityImg")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("娉曚汉鎴栫粡鍔炰汉韬唤璇佷汉鍍忛潰");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<bool>("IsReal")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁瀹炲悕");
+                        .HasColumnType("bit");
 
                     b.Property<string>("LegalIdentity")
                         .HasMaxLength(18)
-                        .HasColumnType("nvarchar(18)")
-                        .HasComment("娉曚汉韬唤璇佸彿");
+                        .HasColumnType("nvarchar(18)");
 
                     b.Property<string>("LegalPerson")
                         .HasMaxLength(32)
-                        .HasColumnType("nvarchar(32)")
-                        .HasComment("娉曚汉濮撳悕");
+                        .HasColumnType("nvarchar(32)");
 
                     b.Property<string>("LicenseImage")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("钀ヤ笟鎵х収鐓х墖");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("Name")
                         .HasMaxLength(32)
-                        .HasColumnType("nvarchar(32)")
-                        .HasComment("娉曚汉鎴栫粡鍔炰汉濮撳悕");
+                        .HasColumnType("nvarchar(32)");
 
                     b.Property<int?>("PersonalRealMethod")
-                        .HasColumnType("int")
-                        .HasComment("娉曚汉鎴栫粡鍔炰汉瀹炲悕鏂瑰紡");
+                        .HasColumnType("int");
 
                     b.Property<string>("PhoneNumber")
                         .HasMaxLength(11)
-                        .HasColumnType("nvarchar(11)")
-                        .HasComment("娉曚汉鎴栫粡鍔炰汉鎵嬫満鍙�");
+                        .HasColumnType("nvarchar(11)");
 
                     b.Property<bool?>("Proxy")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁濮旀墭缁忓姙浜�");
+                        .HasColumnType("bit");
 
                     b.Property<string>("ProxyPowerAttorneyUrl")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("浼佷笟鎺堟潈涔�");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("SocietyCreditCode")
                         .IsRequired()
                         .HasMaxLength(18)
-                        .HasColumnType("nvarchar(18)")
-                        .HasComment("缁熶竴绀句細淇$敤浠g爜");
+                        .HasColumnType("nvarchar(18)");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
-                    b.ToTable("EnterpriseAuth", t =>
-                        {
-                            t.HasComment("浼佷笟璁よ瘉");
-                        });
+                    b.ToTable("EnterpriseAuth");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
@@ -493,106 +396,82 @@
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("ClientType")
-                        .HasColumnType("int")
-                        .HasComment("瀹㈡埛绔被鍨�");
+                        .HasColumnType("int");
 
                     b.Property<string>("Code")
                         .IsRequired()
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("缂栧彿");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("Group")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鍒嗙粍鍚嶇О锛堢敤浜庢寜閽�/瀛楁锛�");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("Icon")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鍥炬爣");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<bool>("IsCache")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁缂撳瓨");
+                        .HasColumnType("bit");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<bool>("IsDisabled")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁绂佺敤");
+                        .HasColumnType("bit");
 
                     b.Property<string>("Location")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("浣嶇疆锛堢敤浜庢寜閽級");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("Name")
                         .IsRequired()
                         .HasMaxLength(128)
-                        .HasColumnType("nvarchar(128)")
-                        .HasComment("鍚嶇О");
+                        .HasColumnType("nvarchar(128)");
 
                     b.Property<Guid?>("ParentId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("涓婄骇Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("Path")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鑿滃崟璺緞");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("Remark")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("澶囨敞");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<int>("Type")
-                        .HasColumnType("int")
-                        .HasComment("绫诲瀷");
+                        .HasColumnType("int");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("Url")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("閾炬帴鍦板潃");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<int>("UserType")
-                        .HasColumnType("int")
-                        .HasComment("鐢ㄦ埛绫诲瀷");
+                        .HasColumnType("int");
 
                     b.Property<int>("VisitLevel")
-                        .HasColumnType("int")
-                        .HasComment("璁块棶绾у埆");
+                        .HasColumnType("int");
 
                     b.Property<string>("Width")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鍒楀锛堢敤浜庢寜閽�/鍒�/鍏冪礌锛�");
+                        .HasColumnType("nvarchar(max)");
 
                     b.HasKey("Id");
 
                     b.HasIndex("ParentId");
 
-                    b.ToTable("Menu", t =>
-                        {
-                            t.HasComment("鑿滃崟");
-                        });
+                    b.ToTable("Menu");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.Resource", b =>
@@ -602,120 +481,93 @@
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("ActionName")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("濮旀墭鍚嶇О");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("ActionSummary")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("濮旀墭鎽樿");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<bool>("AllowAnonymous")
-                        .HasColumnType("bit")
-                        .HasComment("蹇界暐鏉冮檺");
+                        .HasColumnType("bit");
 
                     b.Property<string>("ApplicationName")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("搴旂敤鍚嶇О");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("Code")
                         .IsRequired()
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("缂栧彿");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<int>("Controller")
-                        .HasColumnType("int")
-                        .HasComment("鎺у埗鍣�");
+                        .HasColumnType("int");
 
                     b.Property<string>("ControllerSummary")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鎺у埗鍣ㄦ憳瑕�");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("DynamicAssemblyName")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鍔ㄦ�佺▼搴忛泦鍚嶇О");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<bool>("IsExpired")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁宸茶繃鏈�");
+                        .HasColumnType("bit");
 
                     b.Property<int>("Method")
-                        .HasColumnType("int")
-                        .HasComment("璇锋眰鏂瑰紡");
+                        .HasColumnType("int");
 
                     b.Property<string>("Name")
                         .IsRequired()
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鍚嶇О");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("RequestTypeFullName")
                         .IsRequired()
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璇锋眰绫诲瀷鍏ㄥ悕");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("RequestTypeName")
                         .IsRequired()
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璇锋眰绫诲瀷鍚嶇О");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("ResponseTypeFullName")
                         .IsRequired()
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鍝嶅簲绫诲瀷鍏ㄥ悕");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("ResponseTypeName")
                         .IsRequired()
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鍝嶅簲绫诲瀷鍚嶇О");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("Route")
                         .IsRequired()
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺敱");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("RouteArea")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺敱鍖哄煙");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<int>("Service")
-                        .HasColumnType("int")
-                        .HasComment("鏈嶅姟");
+                        .HasColumnType("int");
 
                     b.Property<string>("ServiceName")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鏈嶅姟鍚嶇О");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
-                    b.ToTable("Resource", t =>
-                        {
-                            t.HasComment("璧勬簮");
-                        });
+                    b.ToTable("Resource");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.Role", b =>
@@ -725,67 +577,52 @@
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("ClientType")
-                        .HasColumnType("int")
-                        .HasComment("瀹㈡埛绔被鍨�");
+                        .HasColumnType("int");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("DataPower")
-                        .HasColumnType("int")
-                        .HasComment("鏁版嵁鏉冮檺");
+                        .HasColumnType("int");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<bool>("IsDisabled")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁绂佺敤");
+                        .HasColumnType("bit");
 
                     b.Property<int>("MinLevel")
-                        .HasColumnType("int")
-                        .HasComment("鏈�浣庣骇鍒�");
+                        .HasColumnType("int");
 
                     b.Property<string>("Name")
                         .IsRequired()
                         .HasMaxLength(128)
-                        .HasColumnType("nvarchar(128)")
-                        .HasComment("鍚嶇О");
+                        .HasColumnType("nvarchar(128)");
 
                     b.Property<string>("Remark")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("澶囨敞");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("UserType")
-                        .HasColumnType("int")
-                        .HasComment("鐢ㄦ埛绫诲瀷");
+                        .HasColumnType("int");
 
                     b.HasKey("Id");
 
-                    b.ToTable("Role", t =>
-                        {
-                            t.HasComment("瑙掕壊");
-                        });
+                    b.ToTable("Role");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.RoleMenu", b =>
@@ -798,35 +635,28 @@
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<Guid>("MenuId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鑿滃崟Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid>("RoleId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("瑙掕壊Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
@@ -834,10 +664,7 @@
 
                     b.HasIndex("RoleId");
 
-                    b.ToTable("RoleMenu", t =>
-                        {
-                            t.HasComment("瑙掕壊鑿滃崟");
-                        });
+                    b.ToTable("RoleMenu");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.RoleResource", b =>
@@ -850,39 +677,31 @@
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("DataPower")
-                        .HasColumnType("int")
-                        .HasComment("鏁版嵁鏉冮檺");
+                        .HasColumnType("int");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<Guid>("ResourceId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("璧勬簮Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid>("RoleId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("瑙掕壊Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
@@ -890,10 +709,7 @@
 
                     b.HasIndex("RoleId");
 
-                    b.ToTable("RoleResource", t =>
-                        {
-                            t.HasComment("瑙掕壊璧勬簮");
-                        });
+                    b.ToTable("RoleResource");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b =>
@@ -903,79 +719,62 @@
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("Address")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("浠诲姟鍦扮偣璇︾粏鍦板潃");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<int>("AgeMaxLimit")
-                        .HasColumnType("int")
-                        .HasComment("骞撮緞鑼冨洿澶�");
+                        .HasColumnType("int");
 
                     b.Property<int>("AgeMinLimit")
-                        .HasColumnType("int")
-                        .HasComment("骞撮緞鑼冨洿鏈�灏�");
+                        .HasColumnType("int");
 
                     b.Property<DateTime>("BeginTime")
-                        .HasColumnType("datetime2")
-                        .HasComment("浠诲姟寮�濮嬫椂闂�");
+                        .HasColumnType("datetime2");
 
                     b.Property<int>("BillingMethod")
-                        .HasColumnType("int")
-                        .HasComment("璁¤垂鏂瑰紡");
+                        .HasColumnType("int");
 
                     b.Property<Guid>("CityId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("浠诲姟鍦扮偣鎵�灞炲尯鍩烮d");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<DateTime>("EndTime")
-                        .HasColumnType("datetime2")
-                        .HasComment("浠诲姟缁撴潫鏃堕棿");
+                        .HasColumnType("datetime2");
 
                     b.Property<Guid>("EnterpriseId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("浼佷笟Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("GenderLimit")
-                        .HasColumnType("int")
-                        .HasComment("鎬у埆瑕佹眰");
+                        .HasColumnType("int");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<string>("Name")
                         .IsRequired()
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("浠诲姟鍚嶇О");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<decimal>("ServiceFee")
-                        .HasColumnType("decimal(18,2)")
-                        .HasComment("鏈嶅姟璐�");
+                        .HasColumnType("decimal(18,2)");
 
                     b.Property<int>("SettlementCycle")
-                        .HasColumnType("int")
-                        .HasComment("缁撶畻鏂瑰紡");
+                        .HasColumnType("int");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
@@ -983,10 +782,7 @@
 
                     b.HasIndex("EnterpriseId");
 
-                    b.ToTable("TaskInfo", t =>
-                        {
-                            t.HasComment("浠诲姟淇℃伅");
-                        });
+                    b.ToTable("TaskInfo");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.TaskInfoBenefit", b =>
@@ -996,52 +792,39 @@
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid>("BenefitId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("绂忓埄Id");
-
-                    b.Property<Guid>("BenefitId1")
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<Guid>("TaskInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("浠诲姟Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
                     b.HasIndex("BenefitId");
 
-                    b.HasIndex("BenefitId1");
+                    b.HasIndex("TaskInfoId");
 
-                    b.ToTable("TaskInfoBenefit", t =>
-                        {
-                            t.HasComment("浠诲姟绂忓埄");
-                        });
+                    b.ToTable("TaskInfoBenefit");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.TaskInfoCredentialLimit", b =>
@@ -1054,35 +837,28 @@
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<Guid>("TaskInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("浠诲姟Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<Guid?>("TypeId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("璇佷功绫诲瀷Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
@@ -1103,51 +879,40 @@
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("HireStatus")
-                        .HasColumnType("int")
-                        .HasComment("褰曠敤鐘舵��");
+                        .HasColumnType("int");
 
                     b.Property<DateTime?>("HireTime")
-                        .HasColumnType("datetime2")
-                        .HasComment("褰曠敤鏃堕棿");
+                        .HasColumnType("datetime2");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<int?>("SignContractStatus")
-                        .HasColumnType("int")
-                        .HasComment("绛剧害鐘舵��");
+                        .HasColumnType("int");
 
                     b.Property<DateTime?>("SignContractTime")
-                        .HasColumnType("datetime2")
-                        .HasComment("绛剧害鏃堕棿");
+                        .HasColumnType("datetime2");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<Guid>("TaskInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("浠诲姟Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid>("UserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鐢ㄦ埛淇℃伅Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
@@ -1155,10 +920,7 @@
 
                     b.HasIndex("UserInfoId");
 
-                    b.ToTable("TaskInfoUser", t =>
-                        {
-                            t.HasComment("浠诲姟鐢ㄦ埛淇℃伅");
-                        });
+                    b.ToTable("TaskInfoUser");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.UserAuth", b =>
@@ -1169,90 +931,70 @@
 
                     b.Property<string>("BankCard")
                         .HasMaxLength(32)
-                        .HasColumnType("nvarchar(32)")
-                        .HasComment("閾惰鍗″彿");
+                        .HasColumnType("nvarchar(32)");
 
                     b.Property<string>("BankCardImg")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("閾惰鍗$収鐗�");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("Identity")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("韬唤璇佸彿");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("IdentityBackImg")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("韬唤璇佸浗寰介潰");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("IdentityImg")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("韬唤璇佷汉鍍忛潰");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<bool>("IsCheckPhoneNumber")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁宸叉牎楠屾墜鏈哄彿");
+                        .HasColumnType("bit");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<bool>("IsReal")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁瀹炲悕");
+                        .HasColumnType("bit");
 
                     b.Property<string>("Name")
                         .IsRequired()
                         .HasMaxLength(32)
-                        .HasColumnType("nvarchar(32)")
-                        .HasComment("濮撳悕");
+                        .HasColumnType("nvarchar(32)");
 
                     b.Property<string>("Password")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("瀵嗙爜");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("PhoneNumber")
                         .HasMaxLength(11)
-                        .HasColumnType("nvarchar(11)")
-                        .HasComment("鎵嬫満鍙�");
+                        .HasColumnType("nvarchar(11)");
 
                     b.Property<int?>("RealAccess")
-                        .HasColumnType("int")
-                        .HasComment("瀹炲悕閫氶亾");
+                        .HasColumnType("int");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("UserName")
                         .IsRequired()
                         .HasMaxLength(32)
-                        .HasColumnType("nvarchar(32)")
-                        .HasComment("鐢ㄦ埛鍚�");
+                        .HasColumnType("nvarchar(32)");
 
                     b.HasKey("Id");
 
-                    b.ToTable("UserAuth", t =>
-                        {
-                            t.HasComment("鐢ㄦ埛");
-                        });
+                    b.ToTable("UserAuth");
 
                     b.HasData(
                         new
@@ -1276,103 +1018,80 @@
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("Avatar")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("澶村儚");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<Guid?>("CityId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("甯搁┗鍩庡競Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid?>("EducationalBackgroundId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("瀛﹀巻Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid?>("EnterpriseId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("浼佷笟Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<int?>("FreeTime")
-                        .HasColumnType("int")
-                        .HasComment("绌洪棽鏃堕棿");
+                        .HasColumnType("int");
 
                     b.Property<int?>("Height")
-                        .HasColumnType("int")
-                        .HasComment("韬珮");
+                        .HasColumnType("int");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<int?>("JobSeekingStatus")
-                        .HasColumnType("int")
-                        .HasComment("姹傝亴鐘舵��");
+                        .HasColumnType("int");
 
                     b.Property<int>("Level")
-                        .HasColumnType("int")
-                        .HasComment("绾у埆");
+                        .HasColumnType("int");
 
                     b.Property<Guid?>("PersonalIdentityId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("韬唤Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid?>("ProvinceId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("甯搁┗鐪佷唤Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("Remark")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("澶囨敞");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<int>("Status")
-                        .HasColumnType("int")
-                        .HasComment("鐘舵��");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<int>("Type")
-                        .HasColumnType("int")
-                        .HasComment("鐢ㄦ埛绫诲瀷");
+                        .HasColumnType("int");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid>("UserAuthId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鐢ㄦ埛Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<int?>("Weight")
-                        .HasColumnType("int")
-                        .HasComment("浣撻噸");
+                        .HasColumnType("int");
 
                     b.Property<string>("WorkExperience")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("宸ヤ綔缁忛獙");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("WorkSeniority")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("宸ヤ綔璧勫巻");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("WxmpOpenId")
                         .HasMaxLength(32)
-                        .HasColumnType("nvarchar(32)")
-                        .HasComment("寰俊寮�鏀綢d");
+                        .HasColumnType("nvarchar(32)");
 
                     b.HasKey("Id");
 
@@ -1388,10 +1107,7 @@
 
                     b.HasIndex("UserAuthId");
 
-                    b.ToTable("UserInfo", t =>
-                        {
-                            t.HasComment("鐢ㄦ埛淇℃伅");
-                        });
+                    b.ToTable("UserInfo");
 
                     b.HasData(
                         new
@@ -1416,59 +1132,47 @@
                     b.Property<string>("Bank")
                         .IsRequired()
                         .HasMaxLength(128)
-                        .HasColumnType("nvarchar(128)")
-                        .HasComment("寮�鎴疯");
+                        .HasColumnType("nvarchar(128)");
 
                     b.Property<string>("Code")
                         .IsRequired()
                         .HasMaxLength(32)
-                        .HasColumnType("nvarchar(32)")
-                        .HasComment("閾惰鍗″彿");
+                        .HasColumnType("nvarchar(32)");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<string>("PhoneNumber")
                         .IsRequired()
                         .HasMaxLength(11)
-                        .HasColumnType("nvarchar(11)")
-                        .HasComment("閾惰棰勭暀鎵嬫満鍙�");
+                        .HasColumnType("nvarchar(11)");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid>("UserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鐢ㄦ埛淇℃伅Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
                     b.HasIndex("UserInfoId");
 
-                    b.ToTable("UserInfoBankCard", t =>
-                        {
-                            t.HasComment("鐢ㄦ埛閾惰鍗′俊鎭�");
-                        });
+                    b.ToTable("UserInfoBankCard");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.UserInfoCredential", b =>
@@ -1478,68 +1182,54 @@
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("BackImg")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璇佷功鍙嶉潰鐓х墖");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("Code")
                         .IsRequired()
                         .HasMaxLength(128)
-                        .HasColumnType("nvarchar(128)")
-                        .HasComment("璇佷功缂栧彿");
+                        .HasColumnType("nvarchar(128)");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<DateTime>("EndDate")
-                        .HasColumnType("datetime2")
-                        .HasComment("缁撴潫鏃ユ湡");
+                        .HasColumnType("datetime2");
 
                     b.Property<string>("Img")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璇佷功姝i潰鐓х墖");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<bool>("IsForever")
-                        .HasColumnType("bit")
-                        .HasComment("姘镐箙璇佷功");
+                        .HasColumnType("bit");
 
                     b.Property<string>("IssueUnit")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鍙戣瘉鍗曚綅");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<DateTime>("StartDate")
-                        .HasColumnType("datetime2")
-                        .HasComment("寮�濮嬫棩鏈�");
+                        .HasColumnType("datetime2");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<Guid?>("TypeId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("璇佷功绫诲瀷Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid>("UserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鐢ㄦ埛淇℃伅Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
@@ -1547,10 +1237,7 @@
 
                     b.HasIndex("UserInfoId");
 
-                    b.ToTable("UserInfoCredential", t =>
-                        {
-                            t.HasComment("鐢ㄦ埛淇℃伅璧勬牸璇佷功");
-                        });
+                    b.ToTable("UserInfoCredential");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.UserInfoDepartment", b =>
@@ -1563,35 +1250,28 @@
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid>("DepartmentId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("閮ㄩ棬Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid>("UserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鐢ㄦ埛淇℃伅Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
@@ -1599,10 +1279,7 @@
 
                     b.HasIndex("UserInfoId");
 
-                    b.ToTable("UserInfoDepartment", t =>
-                        {
-                            t.HasComment("鐢ㄦ埛淇℃伅閮ㄩ棬");
-                        });
+                    b.ToTable("UserInfoDepartment");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.UserInfoExpectJob", b =>
@@ -1615,35 +1292,28 @@
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<Guid>("PersonalIdentityId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈熸湜宀椾綅Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid>("UserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鐢ㄦ埛淇℃伅Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
@@ -1651,10 +1321,7 @@
 
                     b.HasIndex("UserInfoId");
 
-                    b.ToTable("UserInfoExpectJob", t =>
-                        {
-                            t.HasComment("鐢ㄦ埛淇℃伅鏈熸湜宀椾綅");
-                        });
+                    b.ToTable("UserInfoExpectJob");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.UserInfoPhoto", b =>
@@ -1667,44 +1334,34 @@
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("Img")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鐓х墖");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid>("UserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鐢ㄦ埛淇℃伅Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
                     b.HasIndex("UserInfoId");
 
-                    b.ToTable("UserInfoPhoto", t =>
-                        {
-                            t.HasComment("鐢ㄦ埛淇℃伅鐢熸椿鐓�");
-                        });
+                    b.ToTable("UserInfoPhoto");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.UserInfoRole", b =>
@@ -1717,35 +1374,28 @@
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<Guid>("RoleId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("瑙掕壊Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("UpdatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<Guid>("UserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鐢ㄦ埛淇℃伅Id");
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
@@ -1753,10 +1403,7 @@
 
                     b.HasIndex("UserInfoId");
 
-                    b.ToTable("UserInfoRole", t =>
-                        {
-                            t.HasComment("鐢ㄦ埛淇℃伅瑙掕壊");
-                        });
+                    b.ToTable("UserInfoRole");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.Department", b =>
@@ -1890,18 +1537,18 @@
 
             modelBuilder.Entity("FlexJobApi.Core.TaskInfoBenefit", b =>
                 {
-                    b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo")
-                        .WithMany("Benefits")
-                        .HasForeignKey("BenefitId")
-                        .OnDelete(DeleteBehavior.Restrict)
-                        .IsRequired();
-
                     b.HasOne("FlexJobApi.Core.DictionaryData", "Benefit")
                         .WithMany()
-                        .HasForeignKey("BenefitId1")
+                        .HasForeignKey("BenefitId")
                         .OnDelete(DeleteBehavior.Cascade)
                         .IsRequired();
 
+                    b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo")
+                        .WithMany("Benefits")
+                        .HasForeignKey("TaskInfoId")
+                        .OnDelete(DeleteBehavior.Restrict)
+                        .IsRequired();
+
                     b.Navigation("Benefit");
 
                     b.Navigation("TaskInfo");
diff --git a/FlexJobApi.Database.Migrations/Migrations/LogDb/20250806155129_UpdateResourceLog.Designer.cs b/FlexJobApi.Database.Migrations/Migrations/LogDb/20250806155129_UpdateResourceLog.Designer.cs
new file mode 100644
index 0000000..ecc6dcd
--- /dev/null
+++ b/FlexJobApi.Database.Migrations/Migrations/LogDb/20250806155129_UpdateResourceLog.Designer.cs
@@ -0,0 +1,346 @@
+锘�// <auto-generated />
+using System;
+using FlexJobApi.EntityFramework.Core;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+
+#nullable disable
+
+namespace FlexJobApi.Database.Migrations.Migrations.LogDb
+{
+    [DbContext(typeof(LogDbContext))]
+    [Migration("20250806155129_UpdateResourceLog")]
+    partial class UpdateResourceLog
+    {
+        /// <inheritdoc />
+        protected override void BuildTargetModel(ModelBuilder modelBuilder)
+        {
+#pragma warning disable 612, 618
+            modelBuilder
+                .HasAnnotation("ProductVersion", "9.0.7")
+                .HasAnnotation("Relational:MaxIdentifierLength", 128);
+
+            SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
+
+            modelBuilder.Entity("FlexJobApi.Core.ConsoleLog", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<int>("Access")
+                        .HasColumnType("int");
+
+                    b.Property<string>("ClientIpAddress")
+                        .HasMaxLength(32)
+                        .HasColumnType("nvarchar(32)");
+
+                    b.Property<string>("Content")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<int>("Level")
+                        .HasColumnType("int");
+
+                    b.Property<int>("Sort")
+                        .HasColumnType("int");
+
+                    b.Property<string>("StackTrace")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("TraceId")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<Guid?>("UpdateUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset?>("UpdatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<string>("Url")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("ConsoleLog");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.DbAuditLog", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<string>("NewValues")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("OldValues")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<int>("Operate")
+                        .HasColumnType("int");
+
+                    b.Property<Guid>("PrimaryKey")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<int>("Sort")
+                        .HasColumnType("int");
+
+                    b.Property<string>("TableName")
+                        .IsRequired()
+                        .HasMaxLength(128)
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<string>("TraceId")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<Guid?>("UpdateUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset?>("UpdatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("DbAuditLog");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.Entities.Common.ResourceLog", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("ClientIpAddress")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Domain")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<long>("ElapsedMilliseconds")
+                        .HasColumnType("bigint");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<bool>("IsSuccess")
+                        .HasColumnType("bit");
+
+                    b.Property<int>("Method")
+                        .HasColumnType("int");
+
+                    b.Property<string>("Path")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("RefererUrl")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("Request")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("RequestHeaders")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("Response")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("ResponseHeaders")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<int>("Sort")
+                        .HasColumnType("int");
+
+                    b.Property<string>("TraceId")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<Guid?>("UpdateUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset?>("UpdatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("ResourceLog");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.ExceptionLog", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Code")
+                        .HasMaxLength(32)
+                        .HasColumnType("nvarchar(32)");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<string>("Message")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<int>("Sort")
+                        .HasColumnType("int");
+
+                    b.Property<string>("StackTrace")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("TraceId")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("Type")
+                        .HasMaxLength(256)
+                        .HasColumnType("nvarchar(256)");
+
+                    b.Property<Guid?>("UpdateUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset?>("UpdatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("ExceptionLog");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.QueueLog", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<int>("Access")
+                        .HasColumnType("int");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Data")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<long>("ElapsedMilliseconds")
+                        .HasColumnType("bigint");
+
+                    b.Property<string>("EventId")
+                        .IsRequired()
+                        .HasMaxLength(128)
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<bool>("IsConsumOnce")
+                        .HasColumnType("bit");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<int>("Sort")
+                        .HasColumnType("int");
+
+                    b.Property<string>("TraceId")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<Guid?>("UpdateUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset?>("UpdatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("QueueLog");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.SmsLog", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<int>("Access")
+                        .HasColumnType("int");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTime?>("Expiry")
+                        .HasColumnType("datetime2");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<bool>("IsUsed")
+                        .HasColumnType("bit");
+
+                    b.Property<string>("PhoneNumber")
+                        .IsRequired()
+                        .HasMaxLength(11)
+                        .HasColumnType("nvarchar(11)");
+
+                    b.Property<int>("Sort")
+                        .HasColumnType("int");
+
+                    b.Property<string>("TemplateCode")
+                        .IsRequired()
+                        .HasMaxLength(128)
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<string>("TemplateParam")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("TraceId")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<Guid?>("UpdateUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset?>("UpdatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("SmsLog");
+                });
+#pragma warning restore 612, 618
+        }
+    }
+}
diff --git a/FlexJobApi.Database.Migrations/Migrations/LogDb/20250806155129_UpdateResourceLog.cs b/FlexJobApi.Database.Migrations/Migrations/LogDb/20250806155129_UpdateResourceLog.cs
new file mode 100644
index 0000000..ba1cfba
--- /dev/null
+++ b/FlexJobApi.Database.Migrations/Migrations/LogDb/20250806155129_UpdateResourceLog.cs
@@ -0,0 +1,1242 @@
+锘縰sing System;
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace FlexJobApi.Database.Migrations.Migrations.LogDb
+{
+    /// <inheritdoc />
+    public partial class UpdateResourceLog : Migration
+    {
+        /// <inheritdoc />
+        protected override void Up(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.DropColumn(
+                name: "Url",
+                table: "ResourceLog");
+
+            migrationBuilder.RenameColumn(
+                name: "Headers",
+                table: "ResourceLog",
+                newName: "ResponseHeaders");
+
+            migrationBuilder.RenameColumn(
+                name: "Callback",
+                table: "ResourceLog",
+                newName: "Response");
+
+            migrationBuilder.AlterTable(
+                name: "SmsLog",
+                oldComment: "鐭俊鏃ュ織");
+
+            migrationBuilder.AlterTable(
+                name: "QueueLog",
+                oldComment: "娑堟伅闃熷垪鏃ュ織");
+
+            migrationBuilder.AlterTable(
+                name: "ExceptionLog",
+                oldComment: "寮傚父鏃ュ織");
+
+            migrationBuilder.AlterTable(
+                name: "DbAuditLog",
+                oldComment: "鏁版嵁搴撳璁℃棩蹇�");
+
+            migrationBuilder.AlterTable(
+                name: "ConsoleLog",
+                oldComment: "鎺у埗鍙版棩蹇�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdateUserInfoId",
+                table: "SmsLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "SmsLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TemplateParam",
+                table: "SmsLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "妯℃澘鍙傛暟");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TemplateCode",
+                table: "SmsLog",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128,
+                oldComment: "妯℃澘浠g爜");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "SmsLog",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "PhoneNumber",
+                table: "SmsLog",
+                type: "nvarchar(11)",
+                maxLength: 11,
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(11)",
+                oldMaxLength: 11,
+                oldComment: "鎵嬫満鍙风爜");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsUsed",
+                table: "SmsLog",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁浣跨敤");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "SmsLog",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<DateTime>(
+                name: "Expiry",
+                table: "SmsLog",
+                type: "datetime2",
+                nullable: true,
+                oldClrType: typeof(DateTime),
+                oldType: "datetime2",
+                oldNullable: true,
+                oldComment: "鏈夋晥鏈�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "SmsLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Access",
+                table: "SmsLog",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "閫氶亾");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdateUserInfoId",
+                table: "ResourceLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "ResourceLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "ResourceLog",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Method",
+                table: "ResourceLog",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(6)",
+                oldMaxLength: 6);
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "ResourceLog",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "ResourceLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AddColumn<string>(
+                name: "Domain",
+                table: "ResourceLog",
+                type: "nvarchar(max)",
+                nullable: true);
+
+            migrationBuilder.AddColumn<string>(
+                name: "Path",
+                table: "ResourceLog",
+                type: "nvarchar(max)",
+                nullable: true);
+
+            migrationBuilder.AddColumn<string>(
+                name: "RefererUrl",
+                table: "ResourceLog",
+                type: "nvarchar(max)",
+                nullable: true);
+
+            migrationBuilder.AddColumn<string>(
+                name: "RequestHeaders",
+                table: "ResourceLog",
+                type: "nvarchar(max)",
+                nullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdateUserInfoId",
+                table: "QueueLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "QueueLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "QueueLog",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "QueueLog",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsConsumOnce",
+                table: "QueueLog",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "娑堟伅鏄惁鍙秷璐逛竴娆�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "EventId",
+                table: "QueueLog",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128,
+                oldComment: "浜嬩欢Id");
+
+            migrationBuilder.AlterColumn<long>(
+                name: "ElapsedMilliseconds",
+                table: "QueueLog",
+                type: "bigint",
+                nullable: false,
+                oldClrType: typeof(long),
+                oldType: "bigint",
+                oldComment: "鑰楁椂姣鏁�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Data",
+                table: "QueueLog",
+                type: "nvarchar(max)",
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldComment: "鏁版嵁");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "QueueLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Access",
+                table: "QueueLog",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "閫氶亾");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdateUserInfoId",
+                table: "ExceptionLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Type",
+                table: "ExceptionLog",
+                type: "nvarchar(256)",
+                maxLength: 256,
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(256)",
+                oldMaxLength: 256,
+                oldNullable: true,
+                oldComment: "绫诲瀷");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "ExceptionLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "StackTrace",
+                table: "ExceptionLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "鍫嗘爤璺熻釜");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "ExceptionLog",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Message",
+                table: "ExceptionLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "娑堟伅");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "ExceptionLog",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "ExceptionLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Code",
+                table: "ExceptionLog",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldNullable: true,
+                oldComment: "浠g爜");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdateUserInfoId",
+                table: "DbAuditLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "DbAuditLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TableName",
+                table: "DbAuditLog",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128,
+                oldComment: "琛ㄥ悕");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "DbAuditLog",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "PrimaryKey",
+                table: "DbAuditLog",
+                type: "uniqueidentifier",
+                nullable: false,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldComment: "涓婚敭");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Operate",
+                table: "DbAuditLog",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎿嶄綔");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "OldValues",
+                table: "DbAuditLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "鏃у��");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "NewValues",
+                table: "DbAuditLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "鏂板��");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "DbAuditLog",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "DbAuditLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Url",
+                table: "ConsoleLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "閾炬帴鍦板潃");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdateUserInfoId",
+                table: "ConsoleLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鏈�鍚庢洿鏂版搷浣滀汉");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "ConsoleLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "璺熻釜Id");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "StackTrace",
+                table: "ConsoleLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true,
+                oldComment: "鍫嗘爤璺熻釜");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "ConsoleLog",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "鎺掑簭");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Level",
+                table: "ConsoleLog",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "绾у埆");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "ConsoleLog",
+                type: "bit",
+                nullable: false,
+                oldClrType: typeof(bool),
+                oldType: "bit",
+                oldComment: "鏄惁鍒犻櫎");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "ConsoleLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true,
+                oldComment: "鍒涘缓鎿嶄綔浜�");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Content",
+                table: "ConsoleLog",
+                type: "nvarchar(max)",
+                nullable: false,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldComment: "鍐呭");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ClientIpAddress",
+                table: "ConsoleLog",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: true,
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldNullable: true,
+                oldComment: "瀹㈡埛IP鍦板潃");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Access",
+                table: "ConsoleLog",
+                type: "int",
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int",
+                oldComment: "閫氶亾");
+        }
+
+        /// <inheritdoc />
+        protected override void Down(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.DropColumn(
+                name: "Domain",
+                table: "ResourceLog");
+
+            migrationBuilder.DropColumn(
+                name: "Path",
+                table: "ResourceLog");
+
+            migrationBuilder.DropColumn(
+                name: "RefererUrl",
+                table: "ResourceLog");
+
+            migrationBuilder.DropColumn(
+                name: "RequestHeaders",
+                table: "ResourceLog");
+
+            migrationBuilder.RenameColumn(
+                name: "ResponseHeaders",
+                table: "ResourceLog",
+                newName: "Headers");
+
+            migrationBuilder.RenameColumn(
+                name: "Response",
+                table: "ResourceLog",
+                newName: "Callback");
+
+            migrationBuilder.AlterTable(
+                name: "SmsLog",
+                comment: "鐭俊鏃ュ織");
+
+            migrationBuilder.AlterTable(
+                name: "QueueLog",
+                comment: "娑堟伅闃熷垪鏃ュ織");
+
+            migrationBuilder.AlterTable(
+                name: "ExceptionLog",
+                comment: "寮傚父鏃ュ織");
+
+            migrationBuilder.AlterTable(
+                name: "DbAuditLog",
+                comment: "鏁版嵁搴撳璁℃棩蹇�");
+
+            migrationBuilder.AlterTable(
+                name: "ConsoleLog",
+                comment: "鎺у埗鍙版棩蹇�");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdateUserInfoId",
+                table: "SmsLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "SmsLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TemplateParam",
+                table: "SmsLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "妯℃澘鍙傛暟",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TemplateCode",
+                table: "SmsLog",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                comment: "妯℃澘浠g爜",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "SmsLog",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "PhoneNumber",
+                table: "SmsLog",
+                type: "nvarchar(11)",
+                maxLength: 11,
+                nullable: false,
+                comment: "鎵嬫満鍙风爜",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(11)",
+                oldMaxLength: 11);
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsUsed",
+                table: "SmsLog",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁浣跨敤",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "SmsLog",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<DateTime>(
+                name: "Expiry",
+                table: "SmsLog",
+                type: "datetime2",
+                nullable: true,
+                comment: "鏈夋晥鏈�",
+                oldClrType: typeof(DateTime),
+                oldType: "datetime2",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "SmsLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Access",
+                table: "SmsLog",
+                type: "int",
+                nullable: false,
+                comment: "閫氶亾",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdateUserInfoId",
+                table: "ResourceLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "ResourceLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "ResourceLog",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Method",
+                table: "ResourceLog",
+                type: "nvarchar(6)",
+                maxLength: 6,
+                nullable: false,
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "ResourceLog",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "ResourceLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AddColumn<string>(
+                name: "Url",
+                table: "ResourceLog",
+                type: "nvarchar(max)",
+                nullable: false,
+                defaultValue: "");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdateUserInfoId",
+                table: "QueueLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "QueueLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "QueueLog",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "QueueLog",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsConsumOnce",
+                table: "QueueLog",
+                type: "bit",
+                nullable: false,
+                comment: "娑堟伅鏄惁鍙秷璐逛竴娆�",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "EventId",
+                table: "QueueLog",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                comment: "浜嬩欢Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128);
+
+            migrationBuilder.AlterColumn<long>(
+                name: "ElapsedMilliseconds",
+                table: "QueueLog",
+                type: "bigint",
+                nullable: false,
+                comment: "鑰楁椂姣鏁�",
+                oldClrType: typeof(long),
+                oldType: "bigint");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Data",
+                table: "QueueLog",
+                type: "nvarchar(max)",
+                nullable: false,
+                comment: "鏁版嵁",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "QueueLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Access",
+                table: "QueueLog",
+                type: "int",
+                nullable: false,
+                comment: "閫氶亾",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdateUserInfoId",
+                table: "ExceptionLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Type",
+                table: "ExceptionLog",
+                type: "nvarchar(256)",
+                maxLength: 256,
+                nullable: true,
+                comment: "绫诲瀷",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(256)",
+                oldMaxLength: 256,
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "ExceptionLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "StackTrace",
+                table: "ExceptionLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "鍫嗘爤璺熻釜",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "ExceptionLog",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Message",
+                table: "ExceptionLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "娑堟伅",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "ExceptionLog",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "ExceptionLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Code",
+                table: "ExceptionLog",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: true,
+                comment: "浠g爜",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdateUserInfoId",
+                table: "DbAuditLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "DbAuditLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TableName",
+                table: "DbAuditLog",
+                type: "nvarchar(128)",
+                maxLength: 128,
+                nullable: false,
+                comment: "琛ㄥ悕",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(128)",
+                oldMaxLength: 128);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "DbAuditLog",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "PrimaryKey",
+                table: "DbAuditLog",
+                type: "uniqueidentifier",
+                nullable: false,
+                comment: "涓婚敭",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Operate",
+                table: "DbAuditLog",
+                type: "int",
+                nullable: false,
+                comment: "鎿嶄綔",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "OldValues",
+                table: "DbAuditLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "鏃у��",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "NewValues",
+                table: "DbAuditLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "鏂板��",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "DbAuditLog",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "DbAuditLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Url",
+                table: "ConsoleLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "閾炬帴鍦板潃",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "UpdateUserInfoId",
+                table: "ConsoleLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鏈�鍚庢洿鏂版搷浣滀汉",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "TraceId",
+                table: "ConsoleLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "璺熻釜Id",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "StackTrace",
+                table: "ConsoleLog",
+                type: "nvarchar(max)",
+                nullable: true,
+                comment: "鍫嗘爤璺熻釜",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Sort",
+                table: "ConsoleLog",
+                type: "int",
+                nullable: false,
+                comment: "鎺掑簭",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Level",
+                table: "ConsoleLog",
+                type: "int",
+                nullable: false,
+                comment: "绾у埆",
+                oldClrType: typeof(int),
+                oldType: "int");
+
+            migrationBuilder.AlterColumn<bool>(
+                name: "IsDeleted",
+                table: "ConsoleLog",
+                type: "bit",
+                nullable: false,
+                comment: "鏄惁鍒犻櫎",
+                oldClrType: typeof(bool),
+                oldType: "bit");
+
+            migrationBuilder.AlterColumn<Guid>(
+                name: "CreatedUserInfoId",
+                table: "ConsoleLog",
+                type: "uniqueidentifier",
+                nullable: true,
+                comment: "鍒涘缓鎿嶄綔浜�",
+                oldClrType: typeof(Guid),
+                oldType: "uniqueidentifier",
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<string>(
+                name: "Content",
+                table: "ConsoleLog",
+                type: "nvarchar(max)",
+                nullable: false,
+                comment: "鍐呭",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(max)");
+
+            migrationBuilder.AlterColumn<string>(
+                name: "ClientIpAddress",
+                table: "ConsoleLog",
+                type: "nvarchar(32)",
+                maxLength: 32,
+                nullable: true,
+                comment: "瀹㈡埛IP鍦板潃",
+                oldClrType: typeof(string),
+                oldType: "nvarchar(32)",
+                oldMaxLength: 32,
+                oldNullable: true);
+
+            migrationBuilder.AlterColumn<int>(
+                name: "Access",
+                table: "ConsoleLog",
+                type: "int",
+                nullable: false,
+                comment: "閫氶亾",
+                oldClrType: typeof(int),
+                oldType: "int");
+        }
+    }
+}
diff --git a/FlexJobApi.Database.Migrations/Migrations/LogDb/20250807013503_UpdateCommonEntity.Designer.cs b/FlexJobApi.Database.Migrations/Migrations/LogDb/20250807013503_UpdateCommonEntity.Designer.cs
new file mode 100644
index 0000000..46904a3
--- /dev/null
+++ b/FlexJobApi.Database.Migrations/Migrations/LogDb/20250807013503_UpdateCommonEntity.Designer.cs
@@ -0,0 +1,346 @@
+锘�// <auto-generated />
+using System;
+using FlexJobApi.EntityFramework.Core;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+
+#nullable disable
+
+namespace FlexJobApi.Database.Migrations.Migrations.LogDb
+{
+    [DbContext(typeof(LogDbContext))]
+    [Migration("20250807013503_UpdateCommonEntity")]
+    partial class UpdateCommonEntity
+    {
+        /// <inheritdoc />
+        protected override void BuildTargetModel(ModelBuilder modelBuilder)
+        {
+#pragma warning disable 612, 618
+            modelBuilder
+                .HasAnnotation("ProductVersion", "9.0.7")
+                .HasAnnotation("Relational:MaxIdentifierLength", 128);
+
+            SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
+
+            modelBuilder.Entity("FlexJobApi.Core.ConsoleLog", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<int>("Access")
+                        .HasColumnType("int");
+
+                    b.Property<string>("ClientIpAddress")
+                        .HasMaxLength(32)
+                        .HasColumnType("nvarchar(32)");
+
+                    b.Property<string>("Content")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<int>("Level")
+                        .HasColumnType("int");
+
+                    b.Property<int>("Sort")
+                        .HasColumnType("int");
+
+                    b.Property<string>("StackTrace")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("TraceId")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<DateTimeOffset?>("UpdatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Url")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("ConsoleLog");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.DbAuditLog", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<string>("NewValues")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("OldValues")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<int>("Operate")
+                        .HasColumnType("int");
+
+                    b.Property<Guid>("PrimaryKey")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<int>("Sort")
+                        .HasColumnType("int");
+
+                    b.Property<string>("TableName")
+                        .IsRequired()
+                        .HasMaxLength(128)
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<string>("TraceId")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<DateTimeOffset?>("UpdatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("DbAuditLog");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.Entities.Common.ResourceLog", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("ClientIpAddress")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Domain")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<long>("ElapsedMilliseconds")
+                        .HasColumnType("bigint");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<bool>("IsSuccess")
+                        .HasColumnType("bit");
+
+                    b.Property<int>("Method")
+                        .HasColumnType("int");
+
+                    b.Property<string>("Path")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("RefererUrl")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("Request")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("RequestHeaders")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("Response")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("ResponseHeaders")
+                        .HasColumnType("nvarchar(max)");
+
+                    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.HasKey("Id");
+
+                    b.ToTable("ResourceLog");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.ExceptionLog", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Code")
+                        .HasMaxLength(32)
+                        .HasColumnType("nvarchar(32)");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<string>("Message")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<int>("Sort")
+                        .HasColumnType("int");
+
+                    b.Property<string>("StackTrace")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("TraceId")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("Type")
+                        .HasMaxLength(256)
+                        .HasColumnType("nvarchar(256)");
+
+                    b.Property<DateTimeOffset?>("UpdatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("ExceptionLog");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.QueueLog", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<int>("Access")
+                        .HasColumnType("int");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Data")
+                        .IsRequired()
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<long>("ElapsedMilliseconds")
+                        .HasColumnType("bigint");
+
+                    b.Property<string>("EventId")
+                        .IsRequired()
+                        .HasMaxLength(128)
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<bool>("IsConsumOnce")
+                        .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?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("QueueLog");
+                });
+
+            modelBuilder.Entity("FlexJobApi.Core.SmsLog", b =>
+                {
+                    b.Property<Guid>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<int>("Access")
+                        .HasColumnType("int");
+
+                    b.Property<DateTimeOffset>("CreatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("CreatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<DateTime?>("Expiry")
+                        .HasColumnType("datetime2");
+
+                    b.Property<bool>("IsDeleted")
+                        .HasColumnType("bit");
+
+                    b.Property<bool>("IsUsed")
+                        .HasColumnType("bit");
+
+                    b.Property<string>("PhoneNumber")
+                        .IsRequired()
+                        .HasMaxLength(11)
+                        .HasColumnType("nvarchar(11)");
+
+                    b.Property<int>("Sort")
+                        .HasColumnType("int");
+
+                    b.Property<string>("TemplateCode")
+                        .IsRequired()
+                        .HasMaxLength(128)
+                        .HasColumnType("nvarchar(128)");
+
+                    b.Property<string>("TemplateParam")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("TraceId")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<DateTimeOffset?>("UpdatedTime")
+                        .HasColumnType("datetimeoffset");
+
+                    b.Property<Guid?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("SmsLog");
+                });
+#pragma warning restore 612, 618
+        }
+    }
+}
diff --git a/FlexJobApi.Database.Migrations/Migrations/LogDb/20250807013503_UpdateCommonEntity.cs b/FlexJobApi.Database.Migrations/Migrations/LogDb/20250807013503_UpdateCommonEntity.cs
new file mode 100644
index 0000000..8aa7caf
--- /dev/null
+++ b/FlexJobApi.Database.Migrations/Migrations/LogDb/20250807013503_UpdateCommonEntity.cs
@@ -0,0 +1,78 @@
+锘縰sing Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace FlexJobApi.Database.Migrations.Migrations.LogDb
+{
+    /// <inheritdoc />
+    public partial class UpdateCommonEntity : Migration
+    {
+        /// <inheritdoc />
+        protected override void Up(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.RenameColumn(
+                name: "UpdateUserInfoId",
+                table: "SmsLog",
+                newName: "UpdatedUserInfoId");
+
+            migrationBuilder.RenameColumn(
+                name: "UpdateUserInfoId",
+                table: "ResourceLog",
+                newName: "UpdatedUserInfoId");
+
+            migrationBuilder.RenameColumn(
+                name: "UpdateUserInfoId",
+                table: "QueueLog",
+                newName: "UpdatedUserInfoId");
+
+            migrationBuilder.RenameColumn(
+                name: "UpdateUserInfoId",
+                table: "ExceptionLog",
+                newName: "UpdatedUserInfoId");
+
+            migrationBuilder.RenameColumn(
+                name: "UpdateUserInfoId",
+                table: "DbAuditLog",
+                newName: "UpdatedUserInfoId");
+
+            migrationBuilder.RenameColumn(
+                name: "UpdateUserInfoId",
+                table: "ConsoleLog",
+                newName: "UpdatedUserInfoId");
+        }
+
+        /// <inheritdoc />
+        protected override void Down(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.RenameColumn(
+                name: "UpdatedUserInfoId",
+                table: "SmsLog",
+                newName: "UpdateUserInfoId");
+
+            migrationBuilder.RenameColumn(
+                name: "UpdatedUserInfoId",
+                table: "ResourceLog",
+                newName: "UpdateUserInfoId");
+
+            migrationBuilder.RenameColumn(
+                name: "UpdatedUserInfoId",
+                table: "QueueLog",
+                newName: "UpdateUserInfoId");
+
+            migrationBuilder.RenameColumn(
+                name: "UpdatedUserInfoId",
+                table: "ExceptionLog",
+                newName: "UpdateUserInfoId");
+
+            migrationBuilder.RenameColumn(
+                name: "UpdatedUserInfoId",
+                table: "DbAuditLog",
+                newName: "UpdateUserInfoId");
+
+            migrationBuilder.RenameColumn(
+                name: "UpdatedUserInfoId",
+                table: "ConsoleLog",
+                newName: "UpdateUserInfoId");
+        }
+    }
+}
diff --git a/FlexJobApi.Database.Migrations/Migrations/LogDb/LogDbContextModelSnapshot.cs b/FlexJobApi.Database.Migrations/Migrations/LogDb/LogDbContextModelSnapshot.cs
index c3240d4..765925a 100644
--- a/FlexJobApi.Database.Migrations/Migrations/LogDb/LogDbContextModelSnapshot.cs
+++ b/FlexJobApi.Database.Migrations/Migrations/LogDb/LogDbContextModelSnapshot.cs
@@ -29,63 +29,49 @@
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("Access")
-                        .HasColumnType("int")
-                        .HasComment("閫氶亾");
+                        .HasColumnType("int");
 
                     b.Property<string>("ClientIpAddress")
                         .HasMaxLength(32)
-                        .HasColumnType("nvarchar(32)")
-                        .HasComment("瀹㈡埛IP鍦板潃");
+                        .HasColumnType("nvarchar(32)");
 
                     b.Property<string>("Content")
                         .IsRequired()
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鍐呭");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<int>("Level")
-                        .HasColumnType("int")
-                        .HasComment("绾у埆");
+                        .HasColumnType("int");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("StackTrace")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鍫嗘爤璺熻釜");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
-
-                    b.Property<Guid?>("UpdateUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
+                    b.Property<Guid?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.Property<string>("Url")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("閾炬帴鍦板潃");
+                        .HasColumnType("nvarchar(max)");
 
                     b.HasKey("Id");
 
-                    b.ToTable("ConsoleLog", t =>
-                        {
-                            t.HasComment("鎺у埗鍙版棩蹇�");
-                        });
+                    b.ToTable("ConsoleLog");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.DbAuditLog", b =>
@@ -98,56 +84,43 @@
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<string>("NewValues")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鏂板��");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("OldValues")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鏃у��");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<int>("Operate")
-                        .HasColumnType("int")
-                        .HasComment("鎿嶄綔");
+                        .HasColumnType("int");
 
                     b.Property<Guid>("PrimaryKey")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("涓婚敭");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TableName")
                         .IsRequired()
                         .HasMaxLength(128)
-                        .HasColumnType("nvarchar(128)")
-                        .HasComment("琛ㄥ悕");
+                        .HasColumnType("nvarchar(128)");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
-
-                    b.Property<Guid?>("UpdateUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
+                    b.Property<Guid?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.HasKey("Id");
 
-                    b.ToTable("DbAuditLog", t =>
-                        {
-                            t.HasComment("鏁版嵁搴撳璁℃棩蹇�");
-                        });
+                    b.ToTable("DbAuditLog");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.Entities.Common.ResourceLog", b =>
@@ -156,9 +129,6 @@
                         .ValueGeneratedOnAdd()
                         .HasColumnType("uniqueidentifier");
 
-                    b.Property<string>("Callback")
-                        .HasColumnType("nvarchar(max)");
-
                     b.Property<string>("ClientIpAddress")
                         .HasColumnType("nvarchar(max)");
 
@@ -166,48 +136,52 @@
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
+
+                    b.Property<string>("Domain")
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<long>("ElapsedMilliseconds")
                         .HasColumnType("bigint");
 
-                    b.Property<string>("Headers")
-                        .HasColumnType("nvarchar(max)");
-
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<bool>("IsSuccess")
                         .HasColumnType("bit");
 
-                    b.Property<string>("Method")
-                        .IsRequired()
-                        .HasMaxLength(6)
-                        .HasColumnType("nvarchar(6)");
+                    b.Property<int>("Method")
+                        .HasColumnType("int");
+
+                    b.Property<string>("Path")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("RefererUrl")
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("Request")
                         .HasColumnType("nvarchar(max)");
 
+                    b.Property<string>("RequestHeaders")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("Response")
+                        .HasColumnType("nvarchar(max)");
+
+                    b.Property<string>("ResponseHeaders")
+                        .HasColumnType("nvarchar(max)");
+
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
-
-                    b.Property<Guid?>("UpdateUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
-                    b.Property<string>("Url")
-                        .IsRequired()
-                        .HasColumnType("nvarchar(max)");
+                    b.Property<Guid?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
 
                     b.HasKey("Id");
 
@@ -222,54 +196,42 @@
 
                     b.Property<string>("Code")
                         .HasMaxLength(32)
-                        .HasColumnType("nvarchar(32)")
-                        .HasComment("浠g爜");
+                        .HasColumnType("nvarchar(32)");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<string>("Message")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("娑堟伅");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("StackTrace")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鍫嗘爤璺熻釜");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("Type")
                         .HasMaxLength(256)
-                        .HasColumnType("nvarchar(256)")
-                        .HasComment("绫诲瀷");
-
-                    b.Property<Guid?>("UpdateUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("nvarchar(256)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
+                    b.Property<Guid?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.HasKey("Id");
 
-                    b.ToTable("ExceptionLog", t =>
-                        {
-                            t.HasComment("寮傚父鏃ュ織");
-                        });
+                    b.ToTable("ExceptionLog");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.QueueLog", b =>
@@ -279,60 +241,47 @@
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("Access")
-                        .HasColumnType("int")
-                        .HasComment("閫氶亾");
+                        .HasColumnType("int");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<string>("Data")
                         .IsRequired()
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("鏁版嵁");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<long>("ElapsedMilliseconds")
-                        .HasColumnType("bigint")
-                        .HasComment("鑰楁椂姣鏁�");
+                        .HasColumnType("bigint");
 
                     b.Property<string>("EventId")
                         .IsRequired()
                         .HasMaxLength(128)
-                        .HasColumnType("nvarchar(128)")
-                        .HasComment("浜嬩欢Id");
+                        .HasColumnType("nvarchar(128)");
 
                     b.Property<bool>("IsConsumOnce")
-                        .HasColumnType("bit")
-                        .HasComment("娑堟伅鏄惁鍙秷璐逛竴娆�");
+                        .HasColumnType("bit");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
-
-                    b.Property<Guid?>("UpdateUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
+                    b.Property<Guid?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.HasKey("Id");
 
-                    b.ToTable("QueueLog", t =>
-                        {
-                            t.HasComment("娑堟伅闃熷垪鏃ュ織");
-                        });
+                    b.ToTable("QueueLog");
                 });
 
             modelBuilder.Entity("FlexJobApi.Core.SmsLog", b =>
@@ -342,65 +291,51 @@
                         .HasColumnType("uniqueidentifier");
 
                     b.Property<int>("Access")
-                        .HasColumnType("int")
-                        .HasComment("閫氶亾");
+                        .HasColumnType("int");
 
                     b.Property<DateTimeOffset>("CreatedTime")
                         .HasColumnType("datetimeoffset");
 
                     b.Property<Guid?>("CreatedUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鍒涘缓鎿嶄綔浜�");
+                        .HasColumnType("uniqueidentifier");
 
                     b.Property<DateTime?>("Expiry")
-                        .HasColumnType("datetime2")
-                        .HasComment("鏈夋晥鏈�");
+                        .HasColumnType("datetime2");
 
                     b.Property<bool>("IsDeleted")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁鍒犻櫎");
+                        .HasColumnType("bit");
 
                     b.Property<bool>("IsUsed")
-                        .HasColumnType("bit")
-                        .HasComment("鏄惁浣跨敤");
+                        .HasColumnType("bit");
 
                     b.Property<string>("PhoneNumber")
                         .IsRequired()
                         .HasMaxLength(11)
-                        .HasColumnType("nvarchar(11)")
-                        .HasComment("鎵嬫満鍙风爜");
+                        .HasColumnType("nvarchar(11)");
 
                     b.Property<int>("Sort")
-                        .HasColumnType("int")
-                        .HasComment("鎺掑簭");
+                        .HasColumnType("int");
 
                     b.Property<string>("TemplateCode")
                         .IsRequired()
                         .HasMaxLength(128)
-                        .HasColumnType("nvarchar(128)")
-                        .HasComment("妯℃澘浠g爜");
+                        .HasColumnType("nvarchar(128)");
 
                     b.Property<string>("TemplateParam")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("妯℃澘鍙傛暟");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<string>("TraceId")
-                        .HasColumnType("nvarchar(max)")
-                        .HasComment("璺熻釜Id");
-
-                    b.Property<Guid?>("UpdateUserInfoId")
-                        .HasColumnType("uniqueidentifier")
-                        .HasComment("鏈�鍚庢洿鏂版搷浣滀汉");
+                        .HasColumnType("nvarchar(max)");
 
                     b.Property<DateTimeOffset?>("UpdatedTime")
                         .HasColumnType("datetimeoffset");
 
+                    b.Property<Guid?>("UpdatedUserInfoId")
+                        .HasColumnType("uniqueidentifier");
+
                     b.HasKey("Id");
 
-                    b.ToTable("SmsLog", t =>
-                        {
-                            t.HasComment("鐭俊鏃ュ織");
-                        });
+                    b.ToTable("SmsLog");
                 });
 #pragma warning restore 612, 618
         }
diff --git a/FlexJobApi.Database.Migrations/REDEME.MD b/FlexJobApi.Database.Migrations/REDEME.MD
index 2f3d2ab..66ab628 100644
--- a/FlexJobApi.Database.Migrations/REDEME.MD
+++ b/FlexJobApi.Database.Migrations/REDEME.MD
@@ -1,7 +1,7 @@
 -------------------------------主数据库---------------------------------------
 
 新增迁移文件
-dotnet ef migrations add UpdateResource0806 -s "../FlexJobApi.Web.Entry" -c DefaultDbContext
+dotnet ef migrations add UpdateResource0806002 -s "../FlexJobApi.Web.Entry" -c DefaultDbContext
 
 删除迁移文件
 dotnet ef migrations remove -s "../FlexJobApi.Web.Entry" -c DefaultDbContext
@@ -12,7 +12,7 @@
 -------------------------------日志数据库---------------------------------------
 
 新增迁移文件
-dotnet ef migrations add Init -s "../FlexJobApi.Web.Entry" -c LogDbContext
+dotnet ef migrations add UpdateResourceLog -s "../FlexJobApi.Web.Entry" -c LogDbContext
 
 删除迁移文件
 dotnet ef migrations remove -s "../FlexJobApi.Web.Entry" -c LogDbContext
diff --git a/FlexJobApi.User.Application/Auths/Commands/PasswordLoginCommandHandler.cs b/FlexJobApi.User.Application/Auths/Commands/PasswordLoginCommandHandler.cs
index 55a4936..a981cce 100644
--- a/FlexJobApi.User.Application/Auths/Commands/PasswordLoginCommandHandler.cs
+++ b/FlexJobApi.User.Application/Auths/Commands/PasswordLoginCommandHandler.cs
@@ -34,6 +34,7 @@
                 {
                     it.Id,
                     it.Avatar,
+                    it.Level,
                     it.UserAuth.Name,
                     it.UserAuth.UserName,
                     it.UserAuth.PhoneNumber,
@@ -51,6 +52,7 @@
                 Name = userInfo.Name,
                 UserName = userInfo.UserName,
                 PhoneNumber = userInfo.PhoneNumber,
+                Level = userInfo.Level,
             };
             JwtUtils.GenerateToken(logier);
 
diff --git a/FlexJobApi.User.Application/Auths/Queries/GetCurrentLogierMenuQueryHandler.cs b/FlexJobApi.User.Application/Auths/Queries/GetCurrentLogierMenuQueryHandler.cs
index b83b5a3..a4d973e 100644
--- a/FlexJobApi.User.Application/Auths/Queries/GetCurrentLogierMenuQueryHandler.cs
+++ b/FlexJobApi.User.Application/Auths/Queries/GetCurrentLogierMenuQueryHandler.cs
@@ -35,9 +35,11 @@
                 .FirstOrDefaultAsync(cancellationToken);
             if (model == null) throw Oops.Oh(EnumErrorCodeType.s404, "璇ヨ彍鍗�");
             var items = await (from m in repMenu.AsQueryable().AsNoTracking()
-                               join rm in repRoleMenu.AsQueryable().AsNoTracking() on m.Id equals rm.MenuId
-                               join ur in repUserInfoRole.AsQueryable().AsNoTracking() on rm.RoleId equals ur.RoleId
-                               where m.ParentId == request.Id && ur.UserInfoId == logier.UserInfoId && !m.IsDisabled
+                               join rm in repRoleMenu.AsQueryable().AsNoTracking() on m.Id equals rm.MenuId into rmg
+                               from rmgi in rmg.DefaultIfEmpty()
+                               join ur in repUserInfoRole.AsQueryable().AsNoTracking() on rmgi.RoleId equals ur.RoleId into urg
+                               from urgi in urg.DefaultIfEmpty()
+                               where m.ParentId == request.Id && (logier.Level == 999 || urgi.UserInfoId == logier.UserInfoId) && !m.IsDisabled
                                && (m.Type == EnumMenuType.Button || m.Type == EnumMenuType.Field)
                                select m).ProjectToType<GetMenuQueryResultItem>().ToListAsync(cancellationToken);
             model.Groups = items.GroupBy(it => it.Group ?? "default")
diff --git a/FlexJobApi.User.Application/Auths/Queries/GetCurrentLogierMenusQueryHandler.cs b/FlexJobApi.User.Application/Auths/Queries/GetCurrentLogierMenusQueryHandler.cs
index 3d89064..e89cda8 100644
--- a/FlexJobApi.User.Application/Auths/Queries/GetCurrentLogierMenusQueryHandler.cs
+++ b/FlexJobApi.User.Application/Auths/Queries/GetCurrentLogierMenusQueryHandler.cs
@@ -32,9 +32,11 @@
         {
             var logier = JwtUtils.GetCurrentLogier();
             var all = await (from m in repMenu.AsQueryable().AsNoTracking()
-                             join rm in repRoleMenu.AsQueryable().AsNoTracking() on m.Id equals rm.MenuId
-                             join ur in repUserInfoRole.AsQueryable().AsNoTracking() on rm.RoleId equals ur.RoleId
-                             where ur.UserInfoId == logier.UserInfoId && !m.IsDisabled
+                             join rm in repRoleMenu.AsQueryable().AsNoTracking() on m.Id equals rm.MenuId into rmg
+                             from rmgi in rmg.DefaultIfEmpty()
+                             join ur in repUserInfoRole.AsQueryable().AsNoTracking() on rmgi.RoleId equals ur.RoleId into urg
+                             from urgi in urg.DefaultIfEmpty()
+                             where (logier.Level == 999 || urgi.UserInfoId == logier.UserInfoId) && !m.IsDisabled
                              && (m.Type == EnumMenuType.Menu || m.Type == EnumMenuType.Page || m.Type == EnumMenuType.Modal)
                              select m).ProjectToType<GetMenusQueryResultItem>().ToListAsync();
             var models = all.Where(it => it.ParentId == null).ToList();

--
Gitblit v1.9.1