// <auto-generated />
using System;
using ExampleApeart;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace ExampleApeart.EntityFrameworkCore.Migrations.MyAuditingDbMigrations
{
[DbContext(typeof(MyAuditingDb))]
partial class MyAuditingDbModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "8.0.19");
modelBuilder.Entity("PasteApeart.auditmodels.ApAuditLog", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Exception")
.HasColumnType("TEXT");
b.Property<long>("ExecutionDuration")
.HasColumnType("INTEGER");
b.Property<DateTime>("ExecutionTime")
.HasColumnType("TEXT");
b.Property<bool>("HasEntityChange")
.HasColumnType("INTEGER");
b.Property<bool>("HasException")
.HasColumnType("INTEGER");
b.Property<string>("Headers")
.HasColumnType("TEXT");
b.Property<string>("HttpMethod")
.HasMaxLength(16)
.HasColumnType("TEXT");
b.Property<int>("HttpStatusCode")
.HasColumnType("INTEGER");
b.Property<string>("IpAddress")
.HasColumnType("TEXT");
b.Property<string>("LogId")
.HasMaxLength(32)
.HasColumnType("TEXT");
b.Property<string>("QueryString")
.HasColumnType("TEXT");
b.Property<string>("RequestBody")
.HasColumnType("TEXT");
b.Property<string>("ResponseBody")
.HasColumnType("TEXT");
b.Property<string>("Url")
.HasColumnType("TEXT");
b.Property<string>("UserId")
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("ApAuditLog", (string)null);
});
modelBuilder.Entity("PasteApeart.auditmodels.ApEntityChangeInfo", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<long?>("ApAuditLogId")
.HasColumnType("INTEGER");
b.Property<DateTime>("ChangeTime")
.HasColumnType("TEXT");
b.Property<int>("ChangeType")
.HasColumnType("INTEGER");
b.Property<string>("EntityId")
.HasColumnType("TEXT");
b.Property<string>("EntityType")
.HasColumnType("TEXT");
b.Property<string>("LogId")
.HasMaxLength(32)
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("ApAuditLogId");
b.ToTable("ApEntityChangeInfo", (string)null);
});
modelBuilder.Entity("PasteApeart.auditmodels.ApPropertyChangeInfo", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<long?>("ApEntityChangeInfoId")
.HasColumnType("INTEGER");
b.Property<string>("LogId")
.HasMaxLength(32)
.HasColumnType("TEXT");
b.Property<string>("NewValue")
.HasColumnType("TEXT");
b.Property<string>("OriginalValue")
.HasColumnType("TEXT");
b.Property<string>("PropertyName")
.HasColumnType("TEXT");
b.Property<string>("ValueType")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("ApEntityChangeInfoId");
b.ToTable("ApPropertyChangeInfo", (string)null);
});
modelBuilder.Entity("PasteApeart.auditmodels.ApEntityChangeInfo", b =>
{
b.HasOne("PasteApeart.auditmodels.ApAuditLog", null)
.WithMany("EntityChanges")
.HasForeignKey("ApAuditLogId");
});
modelBuilder.Entity("PasteApeart.auditmodels.ApPropertyChangeInfo", b =>
{
b.HasOne("PasteApeart.auditmodels.ApEntityChangeInfo", null)
.WithMany("PropertyChanges")
.HasForeignKey("ApEntityChangeInfoId");
});
modelBuilder.Entity("PasteApeart.auditmodels.ApAuditLog", b =>
{
b.Navigation("EntityChanges");
});
modelBuilder.Entity("PasteApeart.auditmodels.ApEntityChangeInfo", b =>
{
b.Navigation("PropertyChanges");
});
#pragma warning restore 612, 618
}
}
}