// 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 { /// 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("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Access") .HasColumnType("int"); b.Property("ClientIpAddress") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("Content") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Level") .HasColumnType("int"); b.Property("Sort") .HasColumnType("int"); b.Property("StackTrace") .HasColumnType("nvarchar(max)"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdateUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.Property("Url") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("ConsoleLog"); }); modelBuilder.Entity("FlexJobApi.Core.DbAuditLog", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("NewValues") .HasColumnType("nvarchar(max)"); b.Property("OldValues") .HasColumnType("nvarchar(max)"); b.Property("Operate") .HasColumnType("int"); b.Property("PrimaryKey") .HasColumnType("uniqueidentifier"); b.Property("Sort") .HasColumnType("int"); b.Property("TableName") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdateUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.HasKey("Id"); b.ToTable("DbAuditLog"); }); modelBuilder.Entity("FlexJobApi.Core.Entities.Common.ResourceLog", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ClientIpAddress") .HasColumnType("nvarchar(max)"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("Domain") .HasColumnType("nvarchar(max)"); b.Property("ElapsedMilliseconds") .HasColumnType("bigint"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsSuccess") .HasColumnType("bit"); b.Property("Method") .HasColumnType("int"); b.Property("Path") .HasColumnType("nvarchar(max)"); b.Property("RefererUrl") .HasColumnType("nvarchar(max)"); b.Property("Request") .HasColumnType("nvarchar(max)"); b.Property("RequestHeaders") .HasColumnType("nvarchar(max)"); b.Property("Response") .HasColumnType("nvarchar(max)"); b.Property("ResponseHeaders") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdateUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.HasKey("Id"); b.ToTable("ResourceLog"); }); modelBuilder.Entity("FlexJobApi.Core.ExceptionLog", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Code") .HasMaxLength(32) .HasColumnType("nvarchar(32)"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Message") .HasColumnType("nvarchar(max)"); b.Property("Sort") .HasColumnType("int"); b.Property("StackTrace") .HasColumnType("nvarchar(max)"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("Type") .HasMaxLength(256) .HasColumnType("nvarchar(256)"); b.Property("UpdateUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.HasKey("Id"); b.ToTable("ExceptionLog"); }); modelBuilder.Entity("FlexJobApi.Core.QueueLog", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Access") .HasColumnType("int"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("Data") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("ElapsedMilliseconds") .HasColumnType("bigint"); b.Property("EventId") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("IsConsumOnce") .HasColumnType("bit"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("Sort") .HasColumnType("int"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdateUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.HasKey("Id"); b.ToTable("QueueLog"); }); modelBuilder.Entity("FlexJobApi.Core.SmsLog", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Access") .HasColumnType("int"); b.Property("CreatedTime") .HasColumnType("datetimeoffset"); b.Property("CreatedUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("Expiry") .HasColumnType("datetime2"); b.Property("IsDeleted") .HasColumnType("bit"); b.Property("IsUsed") .HasColumnType("bit"); b.Property("PhoneNumber") .IsRequired() .HasMaxLength(11) .HasColumnType("nvarchar(11)"); b.Property("Sort") .HasColumnType("int"); b.Property("TemplateCode") .IsRequired() .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("TemplateParam") .HasColumnType("nvarchar(max)"); b.Property("TraceId") .HasColumnType("nvarchar(max)"); b.Property("UpdateUserInfoId") .HasColumnType("uniqueidentifier"); b.Property("UpdatedTime") .HasColumnType("datetimeoffset"); b.HasKey("Id"); b.ToTable("SmsLog"); }); #pragma warning restore 612, 618 } } }