sunpengfei
2025-08-15 49452eca97d0fa062d7180ab24d61f5e5f68c52c
FlexJobApi.Database.Migrations/Migrations/LogDb/LogDbContextModelSnapshot.cs
@@ -29,63 +29,52 @@
                        .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<Guid?>("CreatedEnterpriseId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<DateTimeOffset>("CreatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("CreatedUserInfoId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("创建操作人");
                    b.Property<Guid?>("CreatedUserId")
                        .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?>("UpdatedUserId")
                        .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 =>
@@ -94,60 +83,50 @@
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<Guid?>("CreatedEnterpriseId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<DateTimeOffset>("CreatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("CreatedUserInfoId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("创建操作人");
                    b.Property<Guid?>("CreatedUserId")
                        .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?>("UpdatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.HasKey("Id");
                    b.ToTable("DbAuditLog", t =>
                        {
                            t.HasComment("数据库审计日志");
                        });
                    b.ToTable("DbAuditLog");
                });
            modelBuilder.Entity("FlexJobApi.Core.Entities.Common.ResourceLog", b =>
@@ -156,58 +135,62 @@
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<string>("Callback")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("ClientIpAddress")
                        .HasColumnType("nvarchar(max)");
                    b.Property<Guid?>("CreatedEnterpriseId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<DateTimeOffset>("CreatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("CreatedUserInfoId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("创建操作人");
                    b.Property<Guid?>("CreatedUserId")
                        .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?>("UpdatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.HasKey("Id");
@@ -222,54 +205,45 @@
                    b.Property<string>("Code")
                        .HasMaxLength(32)
                        .HasColumnType("nvarchar(32)")
                        .HasComment("代码");
                        .HasColumnType("nvarchar(32)");
                    b.Property<Guid?>("CreatedEnterpriseId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<DateTimeOffset>("CreatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("CreatedUserInfoId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("创建操作人");
                    b.Property<Guid?>("CreatedUserId")
                        .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?>("UpdatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.HasKey("Id");
                    b.ToTable("ExceptionLog", t =>
                        {
                            t.HasComment("异常日志");
                        });
                    b.ToTable("ExceptionLog");
                });
            modelBuilder.Entity("FlexJobApi.Core.QueueLog", b =>
@@ -279,60 +253,115 @@
                        .HasColumnType("uniqueidentifier");
                    b.Property<int>("Access")
                        .HasColumnType("int")
                        .HasComment("通道");
                        .HasColumnType("int");
                    b.Property<Guid?>("CreatedEnterpriseId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<DateTimeOffset>("CreatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("CreatedUserInfoId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("创建操作人");
                    b.Property<Guid?>("CreatedUserId")
                        .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?>("UpdatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.HasKey("Id");
                    b.ToTable("QueueLog", t =>
                        {
                            t.HasComment("消息队列日志");
                        });
                    b.ToTable("QueueLog");
                });
            modelBuilder.Entity("FlexJobApi.Core.ScheduleJobTriggerTimeline", b =>
                {
                    b.Property<Guid>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
                    b.Property<Guid?>("CreatedEnterpriseId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<DateTimeOffset>("CreatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("CreatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<long>("ElapsedTime")
                        .HasColumnType("bigint");
                    b.Property<string>("Exception")
                        .HasColumnType("nvarchar(max)");
                    b.Property<bool>("IsDeleted")
                        .HasColumnType("bit");
                    b.Property<string>("JobId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<DateTime?>("LastRunTime")
                        .HasColumnType("datetime2");
                    b.Property<int>("Mode")
                        .HasColumnType("int");
                    b.Property<DateTime?>("NextRunTime")
                        .HasColumnType("datetime2");
                    b.Property<long>("NumberOfRuns")
                        .HasColumnType("bigint");
                    b.Property<string>("Result")
                        .HasColumnType("nvarchar(max)");
                    b.Property<int>("Sort")
                        .HasColumnType("int");
                    b.Property<long>("Status")
                        .HasColumnType("bigint");
                    b.Property<string>("TraceId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<string>("TriggerId")
                        .HasColumnType("nvarchar(max)");
                    b.Property<DateTimeOffset?>("UpdatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("UpdatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.HasKey("Id");
                    b.ToTable("ScheduleJobTriggerTimeline");
                });
            modelBuilder.Entity("FlexJobApi.Core.SmsLog", b =>
@@ -342,65 +371,54 @@
                        .HasColumnType("uniqueidentifier");
                    b.Property<int>("Access")
                        .HasColumnType("int")
                        .HasComment("通道");
                        .HasColumnType("int");
                    b.Property<Guid?>("CreatedEnterpriseId")
                        .HasColumnType("uniqueidentifier");
                    b.Property<DateTimeOffset>("CreatedTime")
                        .HasColumnType("datetimeoffset");
                    b.Property<Guid?>("CreatedUserInfoId")
                        .HasColumnType("uniqueidentifier")
                        .HasComment("创建操作人");
                    b.Property<Guid?>("CreatedUserId")
                        .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("模板代码");
                        .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?>("UpdatedUserId")
                        .HasColumnType("uniqueidentifier");
                    b.HasKey("Id");
                    b.ToTable("SmsLog", t =>
                        {
                            t.HasComment("短信日志");
                        });
                    b.ToTable("SmsLog");
                });
#pragma warning restore 612, 618
        }