//
using System;
using Aaru.Database;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Aaru.Database.Migrations
{
[DbContext(typeof(AaruContext))]
[Migration("20181221040408_OperatingSystemStatistics")]
partial class OperatingSystemStatistics
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.1.4-rtm-31024");
modelBuilder.Entity("Aaru.CommonTypes.Metadata.Ata", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("Identify");
b.Property("ReadCapabilitiesId");
b.HasKey("Id");
b.HasIndex("ReadCapabilitiesId");
b.ToTable("Ata");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.BlockDescriptor", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("BlockLength");
b.Property("Blocks");
b.Property("Density");
b.Property("ScsiModeId");
b.HasKey("Id");
b.HasIndex("ScsiModeId");
b.ToTable("BlockDescriptor");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.Chs", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("Cylinders");
b.Property("Heads");
b.Property("Sectors");
b.HasKey("Id");
b.ToTable("Chs");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.DensityCode", b =>
{
b.Property("Code")
.ValueGeneratedOnAdd();
b.Property("SscSupportedMediaId");
b.HasKey("Code");
b.HasIndex("SscSupportedMediaId");
b.ToTable("DensityCode");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.FireWire", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("Manufacturer");
b.Property("Product");
b.Property("ProductID");
b.Property("RemovableMedia");
b.Property("VendorID");
b.HasKey("Id");
b.ToTable("FireWire");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.Mmc", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("FeaturesId");
b.HasKey("Id");
b.HasIndex("FeaturesId");
b.ToTable("Mmc");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.MmcFeatures", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("AACSVersion");
b.Property("AGIDs");
b.Property("BindingNonceBlocks");
b.Property("BlocksPerReadableUnit");
b.Property("BufferUnderrunFreeInDVD");
b.Property("BufferUnderrunFreeInSAO");
b.Property("BufferUnderrunFreeInTAO");
b.Property("CPRMVersion");
b.Property("CSSVersion");
b.Property("CanAudioScan");
b.Property("CanEject");
b.Property("CanEraseSector");
b.Property("CanExpandBDRESpareArea");
b.Property("CanFormat");
b.Property("CanFormatBDREWithoutSpare");
b.Property("CanFormatCert");
b.Property("CanFormatFRF");
b.Property("CanFormatQCert");
b.Property("CanFormatRRM");
b.Property("CanGenerateBindingNonce");
b.Property("CanLoad");
b.Property("CanMuteSeparateChannels");
b.Property("CanOverwriteSAOTrack");
b.Property("CanOverwriteTAOTrack");
b.Property("CanPlayCDAudio");
b.Property("CanPseudoOverwriteBDR");
b.Property("CanReadAllDualR");
b.Property("CanReadAllDualRW");
b.Property("CanReadBD");
b.Property("CanReadBDR");
b.Property("CanReadBDRE1");
b.Property("CanReadBDRE2");
b.Property("CanReadBDROM");
b.Property("CanReadBluBCA");
b.Property("CanReadCD");
b.Property("CanReadCDMRW");
b.Property("CanReadCPRM_MKB");
b.Property("CanReadDDCD");
b.Property("CanReadDVD");
b.Property("CanReadDVDPlusMRW");
b.Property("CanReadDVDPlusR");
b.Property("CanReadDVDPlusRDL");
b.Property("CanReadDVDPlusRW");
b.Property("CanReadDVDPlusRWDL");
b.Property("CanReadDriveAACSCertificate");
b.Property("CanReadHDDVD");
b.Property("CanReadHDDVDR");
b.Property("CanReadHDDVDRAM");
b.Property("CanReadLeadInCDText");
b.Property("CanReadOldBDR");
b.Property("CanReadOldBDRE");
b.Property("CanReadOldBDROM");
b.Property("CanReadSpareAreaInformation");
b.Property("CanReportDriveSerial");
b.Property("CanReportMediaSerial");
b.Property("CanTestWriteDDCDR");
b.Property("CanTestWriteDVD");
b.Property("CanTestWriteInSAO");
b.Property("CanTestWriteInTAO");
b.Property("CanUpgradeFirmware");
b.Property("CanWriteBD");
b.Property("CanWriteBDR");
b.Property("CanWriteBDRE1");
b.Property("CanWriteBDRE2");
b.Property("CanWriteBusEncryptedBlocks");
b.Property("CanWriteCDMRW");
b.Property("CanWriteCDRW");
b.Property("CanWriteCDRWCAV");
b.Property("CanWriteCDSAO");
b.Property("CanWriteCDTAO");
b.Property("CanWriteCSSManagedDVD");
b.Property("CanWriteDDCDR");
b.Property("CanWriteDDCDRW");
b.Property("CanWriteDVDPlusMRW");
b.Property("CanWriteDVDPlusR");
b.Property("CanWriteDVDPlusRDL");
b.Property("CanWriteDVDPlusRW");
b.Property("CanWriteDVDPlusRWDL");
b.Property("CanWriteDVDR");
b.Property("CanWriteDVDRDL");
b.Property("CanWriteDVDRW");
b.Property("CanWriteHDDVDR");
b.Property("CanWriteHDDVDRAM");
b.Property("CanWriteOldBDR");
b.Property("CanWriteOldBDRE");
b.Property("CanWritePackedSubchannelInTAO");
b.Property("CanWriteRWSubchannelInSAO");
b.Property("CanWriteRWSubchannelInTAO");
b.Property("CanWriteRaw");
b.Property("CanWriteRawMultiSession");
b.Property("CanWriteRawSubchannelInTAO");
b.Property("ChangerIsSideChangeCapable");
b.Property("ChangerSlots");
b.Property("ChangerSupportsDiscPresent");
b.Property("DBML");
b.Property("DVDMultiRead");
b.Property("EmbeddedChanger");
b.Property("ErrorRecoveryPage");
b.Property("FirmwareDate");
b.Property("LoadingMechanismType");
b.Property("Locked");
b.Property("LogicalBlockSize");
b.Property("MultiRead");
b.Property("PhysicalInterfaceStandardNumber");
b.Property("PreventJumper");
b.Property("SupportsAACS");
b.Property("SupportsBusEncryption");
b.Property("SupportsC2");
b.Property("SupportsCPRM");
b.Property("SupportsCSS");
b.Property("SupportsDAP");
b.Property("SupportsDeviceBusyEvent");
b.Property("SupportsHybridDiscs");
b.Property("SupportsModePage1Ch");
b.Property("SupportsOSSC");
b.Property("SupportsPWP");
b.Property("SupportsSWPP");
b.Property("SupportsSecurDisc");
b.Property("SupportsSeparateVolume");
b.Property("SupportsVCPS");
b.Property("SupportsWriteInhibitDCB");
b.Property("SupportsWriteProtectPAC");
b.Property("VolumeLevels");
b.HasKey("Id");
b.ToTable("MmcFeatures");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.MmcSd", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("CID");
b.Property("CSD");
b.Property("ExtendedCSD");
b.Property("OCR");
b.Property("SCR");
b.HasKey("Id");
b.ToTable("MmcSd");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.Pcmcia", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("CIS");
b.Property("CardCode");
b.Property("Compliance");
b.Property("Manufacturer");
b.Property("ManufacturerCode");
b.Property("ProductName");
b.HasKey("Id");
b.ToTable("Pcmcia");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.Scsi", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("InquiryData");
b.Property("ModeSense10Data");
b.Property("ModeSense6Data");
b.Property("ModeSenseId");
b.Property("MultiMediaDeviceId");
b.Property("ReadCapabilitiesId");
b.Property("SequentialDeviceId");
b.Property("SupportsModeSense10");
b.Property("SupportsModeSense6");
b.Property("SupportsModeSubpages");
b.HasKey("Id");
b.HasIndex("ModeSenseId");
b.HasIndex("MultiMediaDeviceId");
b.HasIndex("ReadCapabilitiesId");
b.HasIndex("SequentialDeviceId");
b.ToTable("Scsi");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.ScsiMode", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("BlankCheckEnabled");
b.Property("BufferedMode");
b.Property("DPOandFUA");
b.Property("MediumType");
b.Property("Speed");
b.Property("WriteProtected");
b.HasKey("Id");
b.ToTable("ScsiMode");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.ScsiPage", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("ScsiId");
b.Property("ScsiModeId");
b.Property("page");
b.Property("subpage");
b.Property("value");
b.HasKey("Id");
b.HasIndex("ScsiId");
b.HasIndex("ScsiModeId");
b.ToTable("ScsiPage");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.Ssc", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("BlockSizeGranularity");
b.Property("MaxBlockLength");
b.Property("MinBlockLength");
b.HasKey("Id");
b.ToTable("Ssc");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.SscSupportedMedia", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("Description");
b.Property("Length");
b.Property("MediumType");
b.Property("Name");
b.Property("Organization");
b.Property("SscId");
b.Property("TestedSequentialMediaId");
b.Property("Width");
b.HasKey("Id");
b.HasIndex("SscId");
b.HasIndex("TestedSequentialMediaId");
b.ToTable("SscSupportedMedia");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.SupportedDensity", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("BitsPerMm");
b.Property("Capacity");
b.Property("DefaultDensity");
b.Property("Description");
b.Property("Duplicate");
b.Property("Name");
b.Property("Organization");
b.Property("PrimaryCode");
b.Property("SecondaryCode");
b.Property("SscId");
b.Property("TestedSequentialMediaId");
b.Property("Tracks");
b.Property("Width");
b.Property("Writable");
b.HasKey("Id");
b.HasIndex("SscId");
b.HasIndex("TestedSequentialMediaId");
b.ToTable("SupportedDensity");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.TestedMedia", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("AtaId");
b.Property("BlockSize");
b.Property("Blocks");
b.Property("CHSId");
b.Property("CanReadAACS");
b.Property("CanReadADIP");
b.Property("CanReadATIP");
b.Property("CanReadBCA");
b.Property("CanReadC2Pointers");
b.Property("CanReadCMI");
b.Property("CanReadCorrectedSubchannel");
b.Property("CanReadCorrectedSubchannelWithC2");
b.Property("CanReadDCB");
b.Property("CanReadDDS");
b.Property("CanReadDMI");
b.Property("CanReadDiscInformation");
b.Property("CanReadFirstTrackPreGap");
b.Property("CanReadFullTOC");
b.Property("CanReadHDCMI");
b.Property("CanReadLayerCapacity");
b.Property("CanReadLeadIn");
b.Property("CanReadLeadOut");
b.Property("CanReadMediaID");
b.Property("CanReadMediaSerial");
b.Property("CanReadPAC");
b.Property("CanReadPFI");
b.Property("CanReadPMA");
b.Property("CanReadPQSubchannel");
b.Property("CanReadPQSubchannelWithC2");
b.Property("CanReadPRI");
b.Property("CanReadRWSubchannel");
b.Property("CanReadRWSubchannelWithC2");
b.Property("CanReadRecordablePFI");
b.Property("CanReadSpareAreaInformation");
b.Property("CanReadTOC");
b.Property("CurrentCHSId");
b.Property("Density");
b.Property("IdentifyData");
b.Property("LBA48Sectors");
b.Property("LBASectors");
b.Property("LogicalAlignment");
b.Property("LongBlockSize");
b.Property