//
using System;
using Edge.Core.Database;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Edge.Core.Database.Migrations
{
[DbContext(typeof(SqliteDbContext))]
[Migration("20210625080336_AddGenericAlarms")]
partial class AddGenericAlarms
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "5.0.5");
modelBuilder.Entity("Edge.Core.Database.Configuration.Models.ProcessorMetaConfigDbModel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("Activated")
.HasColumnType("INTEGER");
b.Property("Description")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property("TimeStamp")
.HasColumnType("TEXT");
b.Property("Type")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("Name")
.IsUnique();
b.HasIndex("TimeStamp");
b.ToTable("ProcessorMetaConfigs");
});
modelBuilder.Entity("Edge.Core.Database.Configuration.Models.ProcessorMetaPartsMetaConfigDbModel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("FullTypeString")
.IsRequired()
.HasColumnType("TEXT");
b.Property("ParametersJsonArrayStr")
.HasColumnType("TEXT");
b.Property("ProcessorMetaConfigId")
.HasColumnType("INTEGER");
b.Property("Type")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("ProcessorMetaConfigId", "Type")
.IsUnique();
b.ToTable("ProcessorMetaPartsMetaConfigs");
});
modelBuilder.Entity("Edge.Core.Database.Models.FuelPointReservation", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("FuelPointId")
.HasColumnType("INTEGER");
b.Property("ReservedByFdcClientId")
.HasColumnType("INTEGER");
b.Property("ReservingTime")
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("FuelPointReservationModels");
});
modelBuilder.Entity("Edge.Core.Database.Models.FuelPriceChange", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("FinishTime")
.HasColumnType("TEXT");
b.Property("LogicalNozzleId")
.HasColumnType("INTEGER");
b.Property("NewPriceWithoutDecimal")
.HasColumnType("INTEGER");
b.Property("PumpId")
.HasColumnType("INTEGER");
b.Property("StartTime")
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("FuelPriceChanges");
});
modelBuilder.Entity("Edge.Core.Database.Models.FuelSaleTransaction", b =>
{
b.Property("ReleaseToken")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("Amount")
.HasColumnType("INTEGER");
b.Property("AmountTotalizer")
.HasColumnType("INTEGER");
b.Property("AuthorizedByFdcClientId")
.HasColumnType("TEXT");
b.Property("AuthorizedTime")
.HasColumnType("TEXT");
b.Property("LockedByFdcClientId")
.HasColumnType("TEXT");
b.Property("LockedTime")
.HasColumnType("TEXT");
b.Property("LogicalNozzleId")
.HasColumnType("INTEGER");
b.Property("PaidByFdcClientId")
.HasColumnType("TEXT");
b.Property("PaidTime")
.HasColumnType("TEXT");
b.Property("ProductBarcode")
.HasColumnType("TEXT");
b.Property("PumpId")
.HasColumnType("INTEGER");
b.Property("SaleEndTime")
.HasColumnType("TEXT");
b.Property("SaleStartTime")
.HasColumnType("TEXT");
b.Property("State")
.HasColumnType("INTEGER");
b.Property("TransactionSeqNumberFromPhysicalPump")
.HasColumnType("TEXT");
b.Property("UnitPrice")
.HasColumnType("INTEGER");
b.Property("VolumeTotalizer")
.HasColumnType("INTEGER");
b.Property("Volumn")
.HasColumnType("INTEGER");
b.HasKey("ReleaseToken");
b.ToTable("PumpTransactionModels");
});
modelBuilder.Entity("Edge.Core.Database.Models.GenericAlarmDbModel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("AckedReason")
.HasColumnType("TEXT");
b.Property("AckedTimestamp")
.HasColumnType("TEXT");
b.Property("Action")
.HasColumnType("TEXT");
b.Property("Category")
.HasColumnType("TEXT");
b.Property("ClosedReason")
.HasColumnType("TEXT");
b.Property("ClosedTimestamp")
.HasColumnType("TEXT");
b.Property("Detail")
.HasColumnType("TEXT");
b.Property("HiddenData")
.HasColumnType("TEXT");
b.Property("OpeningTimestamp")
.HasColumnType("TEXT");
b.Property("OriginatorDisplayName")
.HasColumnType("TEXT");
b.Property("ProcessorEndpointFullTypeStr")
.HasColumnType("TEXT");
b.Property("Severity")
.HasColumnType("INTEGER");
b.Property("SubCategory")
.HasColumnType("TEXT");
b.Property("Title")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("ClosedTimestamp");
b.HasIndex("HiddenData");
b.HasIndex("OpeningTimestamp");
b.HasIndex("ProcessorEndpointFullTypeStr");
b.HasIndex("Severity");
b.HasIndex("Category", "SubCategory");
b.HasIndex("OriginatorDisplayName", "OpeningTimestamp", "ClosedTimestamp");
b.ToTable("GenericAlarms");
});
modelBuilder.Entity("Edge.Core.Database.Models.GenericData", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("ComplexData")
.HasColumnType("TEXT");
b.Property("CreatedTimeStamp")
.HasColumnType("TEXT");
b.Property("Description")
.HasColumnType("TEXT");
b.Property("DoubleProperty0")
.HasColumnType("REAL");
b.Property("DoubleProperty1")
.HasColumnType("REAL");
b.Property("DoubleProperty2")
.HasColumnType("REAL");
b.Property("DoubleProperty3")
.HasColumnType("REAL");
b.Property("DoubleProperty4")
.HasColumnType("REAL");
b.Property("DoubleProperty5")
.HasColumnType("REAL");
b.Property("DoubleProperty6")
.HasColumnType("REAL");
b.Property("DoubleProperty7")
.HasColumnType("REAL");
b.Property("DoubleProperty8")
.HasColumnType("REAL");
b.Property("DoubleProperty9")
.HasColumnType("REAL");
b.Property("IntProperty0")
.HasColumnType("INTEGER");
b.Property("IntProperty1")
.HasColumnType("INTEGER");
b.Property("IntProperty2")
.HasColumnType("INTEGER");
b.Property("IntProperty3")
.HasColumnType("INTEGER");
b.Property("IntProperty4")
.HasColumnType("INTEGER");
b.Property("IntProperty5")
.HasColumnType("INTEGER");
b.Property("IntProperty6")
.HasColumnType("INTEGER");
b.Property("IntProperty7")
.HasColumnType("INTEGER");
b.Property("IntProperty8")
.HasColumnType("INTEGER");
b.Property("IntProperty9")
.HasColumnType("INTEGER");
b.Property("ModifiedTimeStamp")
.HasColumnType("TEXT");
b.Property("Owner")
.IsRequired()
.HasColumnType("TEXT");
b.Property("State")
.HasColumnType("TEXT");
b.Property("StrProperty0")
.HasColumnType("TEXT");
b.Property("StrProperty1")
.HasColumnType("TEXT");
b.Property("StrProperty2")
.HasColumnType("TEXT");
b.Property("StrProperty3")
.HasColumnType("TEXT");
b.Property("StrProperty4")
.HasColumnType("TEXT");
b.Property("StrProperty5")
.HasColumnType("TEXT");
b.Property("StrProperty6")
.HasColumnType("TEXT");
b.Property("StrProperty7")
.HasColumnType("TEXT");
b.Property("StrProperty8")
.HasColumnType("TEXT");
b.Property("StrProperty9")
.HasColumnType("TEXT");
b.Property("TimeStampProperty0")
.HasColumnType("TEXT");
b.Property("TimeStampProperty1")
.HasColumnType("TEXT");
b.Property("TimeStampProperty2")
.HasColumnType("TEXT");
b.Property("TimeStampProperty3")
.HasColumnType("TEXT");
b.Property("TimeStampProperty4")
.HasColumnType("TEXT");
b.Property("Type")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("CreatedTimeStamp");
b.HasIndex("DoubleProperty0");
b.HasIndex("DoubleProperty1");
b.HasIndex("DoubleProperty2");
b.HasIndex("DoubleProperty3");
b.HasIndex("DoubleProperty4");
b.HasIndex("DoubleProperty5");
b.HasIndex("DoubleProperty6");
b.HasIndex("DoubleProperty7");
b.HasIndex("DoubleProperty8");
b.HasIndex("DoubleProperty9");
b.HasIndex("IntProperty0");
b.HasIndex("IntProperty1");
b.HasIndex("IntProperty2");
b.HasIndex("IntProperty3");
b.HasIndex("IntProperty4");
b.HasIndex("IntProperty5");
b.HasIndex("IntProperty6");
b.HasIndex("IntProperty7");
b.HasIndex("IntProperty8");
b.HasIndex("IntProperty9");
b.HasIndex("ModifiedTimeStamp");
b.HasIndex("Owner");
b.HasIndex("State");
b.HasIndex("StrProperty0");
b.HasIndex("StrProperty1");
b.HasIndex("StrProperty2");
b.HasIndex("StrProperty3");
b.HasIndex("StrProperty4");
b.HasIndex("StrProperty5");
b.HasIndex("StrProperty6");
b.HasIndex("StrProperty7");
b.HasIndex("StrProperty8");
b.HasIndex("StrProperty9");
b.HasIndex("TimeStampProperty0");
b.HasIndex("TimeStampProperty1");
b.HasIndex("TimeStampProperty2");
b.HasIndex("TimeStampProperty3");
b.HasIndex("TimeStampProperty4");
b.HasIndex("Type");
b.ToTable("GenericDatas");
});
modelBuilder.Entity("Edge.Core.Database.Configuration.Models.ProcessorMetaPartsMetaConfigDbModel", b =>
{
b.HasOne("Edge.Core.Database.Configuration.Models.ProcessorMetaConfigDbModel", "ProcessorMetaConfig")
.WithMany("Parts")
.HasForeignKey("ProcessorMetaConfigId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("ProcessorMetaConfig");
});
modelBuilder.Entity("Edge.Core.Database.Configuration.Models.ProcessorMetaConfigDbModel", b =>
{
b.Navigation("Parts");
});
#pragma warning restore 612, 618
}
}
}