Files
Cleanuparr/code/Data/Migrations/DataContextModelSnapshot.cs
2025-05-27 03:03:06 +03:00

63 lines
1.8 KiB
C#

// <auto-generated />
using System;
using Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace Data.Migrations
{
[DbContext(typeof(DataContext))]
partial class DataContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "9.0.5");
modelBuilder.Entity("Data.Models.Events.AppEvent", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property<string>("Data")
.HasColumnType("TEXT");
b.Property<int>("EventType")
.HasColumnType("INTEGER");
b.Property<string>("Message")
.IsRequired()
.HasMaxLength(1000)
.HasColumnType("TEXT");
b.Property<int>("Severity")
.HasColumnType("INTEGER");
b.Property<DateTime>("Timestamp")
.HasColumnType("TEXT");
b.Property<Guid?>("TrackingId")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("EventType");
b.HasIndex("Message");
b.HasIndex("Severity");
b.HasIndex("Timestamp")
.IsDescending();
b.ToTable("Events");
});
#pragma warning restore 612, 618
}
}
}