// using System; using LogCentral.Server.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace EonaCat.Logger.LogServer.Migrations { [DbContext(typeof(LogCentralDbContext))] [Migration("20260108140035_InitialCreate")] partial class InitialCreate { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "10.0.1"); modelBuilder.Entity("LogCentral.Server.Models.Application", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ApiKey") .IsRequired() .HasColumnType("TEXT"); b.Property("CreatedAt") .HasColumnType("TEXT"); b.Property("IsActive") .HasColumnType("INTEGER"); b.Property("Name") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("Name") .IsUnique(); b.ToTable("Applications"); }); modelBuilder.Entity("LogCentral.Server.Models.LogEntry", b => { b.Property("Id") .HasColumnType("TEXT"); b.Property("ApplicationName") .IsRequired() .HasColumnType("TEXT"); b.Property("ApplicationVersion") .IsRequired() .HasColumnType("TEXT"); b.Property("Category") .IsRequired() .HasColumnType("TEXT"); b.Property("CorrelationId") .HasColumnType("TEXT"); b.Property("Environment") .IsRequired() .HasColumnType("TEXT"); b.Property("Exception") .HasColumnType("TEXT"); b.Property("Level") .HasColumnType("INTEGER"); b.Property("MachineName") .IsRequired() .HasColumnType("TEXT"); b.Property("Message") .IsRequired() .HasColumnType("TEXT"); b.Property("PropertiesJson") .HasColumnType("TEXT"); b.Property("RequestId") .HasColumnType("TEXT"); b.Property("SessionId") .HasColumnType("TEXT"); b.Property("StackTrace") .HasColumnType("TEXT"); b.Property("Timestamp") .HasColumnType("TEXT"); b.Property("UserId") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("ApplicationName"); b.HasIndex("Environment"); b.HasIndex("Level"); b.HasIndex("Timestamp"); b.ToTable("LogEntries"); }); #pragma warning restore 612, 618 } } }