192 lines
6.8 KiB
C#
192 lines
6.8 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using MP.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace MP.Data.Migrations.MoonPro_Utils
|
|
{
|
|
[DbContext(typeof(MoonPro_UtilsContext))]
|
|
partial class MoonPro_UtilsContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.UseCollation("SQL_Latin1_General_CP1_CI_AS")
|
|
.HasAnnotation("ProductVersion", "6.0.36")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
|
|
|
|
modelBuilder.Entity("MP.Data.DbModels.Mtc.MtcSetupModel", b =>
|
|
{
|
|
b.Property<string>("IdxMacchina")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("MtcDataItemsRaw")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("IdxMacchina");
|
|
|
|
b.ToTable("mtc_setup");
|
|
});
|
|
|
|
modelBuilder.Entity("MP.Data.DbModels.Utils.StatsAggregatedModel", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
b.Property<double>("AvgDuration")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("Destination")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<DateTime>("Hour")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("MachineId")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<double>("MaxDuration")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("MinDuration")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<long>("NoReply")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("RequestCount")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Destination", "MachineId", "Hour")
|
|
.IsUnique()
|
|
.HasDatabaseName("idx_statsaggr_env_mach_hour")
|
|
.HasFilter("[Destination] IS NOT NULL AND [MachineId] IS NOT NULL");
|
|
|
|
b.ToTable("stats_aggr");
|
|
});
|
|
|
|
modelBuilder.Entity("MP.Data.DbModels.Utils.StatsDetailModel", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
b.Property<double>("AvgDuration")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("Destination")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<DateTime>("Hour")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<double>("MaxDuration")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("MinDuration")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<long>("NoReply")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("RequestCount")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Type")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Destination", "Type", "Hour")
|
|
.IsUnique()
|
|
.HasDatabaseName("idx_statsdet_hour_env_type")
|
|
.HasFilter("[Destination] IS NOT NULL AND [Type] IS NOT NULL");
|
|
|
|
b.ToTable("stats_detail");
|
|
});
|
|
|
|
modelBuilder.Entity("MP.Data.DbModels.Utils.StatsErrorModel", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
b.Property<long>("Count")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Destination")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("ErrorMessage")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<DateTime>("Hour")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Type")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Destination", "Type", "Hour", "ErrorMessage")
|
|
.IsUnique()
|
|
.HasDatabaseName("idx_statserr_dest_type_hour_err")
|
|
.HasFilter("[Destination] IS NOT NULL AND [Type] IS NOT NULL AND [ErrorMessage] IS NOT NULL");
|
|
|
|
b.ToTable("stats_errors");
|
|
});
|
|
|
|
modelBuilder.Entity("MP.Data.DbModels.Utils.StatsStatusCodeModel", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
|
|
|
b.Property<long>("Count")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Destination")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<DateTime>("Hour")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("StatusCode")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Type")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Destination", "Type", "Hour", "StatusCode")
|
|
.IsUnique()
|
|
.HasDatabaseName("idx_statscode_dest_type_hour_code")
|
|
.HasFilter("[Destination] IS NOT NULL AND [Type] IS NOT NULL");
|
|
|
|
b.ToTable("stats_status_codes");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|