Files
Aaru/Aaru.Database/Migrations/20190102230036_AddOptimalReadMultipleCount.Designer.cs

1562 lines
46 KiB
C#

// <auto-generated />
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("20190102230036_AddOptimalReadMultipleCount")]
partial class AddOptimalReadMultipleCount
{
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<int>("Id")
.ValueGeneratedOnAdd();
b.Property<byte[]>("Identify");
b.Property<int?>("ReadCapabilitiesId");
b.HasKey("Id");
b.HasIndex("ReadCapabilitiesId");
b.ToTable("Ata");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.BlockDescriptor", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<uint?>("BlockLength");
b.Property<int?>("BlockLengthSql");
b.Property<ulong?>("Blocks");
b.Property<long?>("BlocksSql");
b.Property<byte>("Density");
b.Property<int?>("ScsiModeId");
b.HasKey("Id");
b.HasIndex("ScsiModeId");
b.ToTable("BlockDescriptor");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.Chs", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<ushort>("Cylinders");
b.Property<short>("CylindersSql");
b.Property<ushort>("Heads");
b.Property<short>("HeadsSql");
b.Property<ushort>("Sectors");
b.Property<short>("SectorsSql");
b.HasKey("Id");
b.ToTable("Chs");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.DensityCode", b =>
{
b.Property<int>("Code")
.ValueGeneratedOnAdd();
b.Property<int?>("SscSupportedMediaId");
b.HasKey("Code");
b.HasIndex("SscSupportedMediaId");
b.ToTable("DensityCode");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.FireWire", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("Manufacturer");
b.Property<string>("Product");
b.Property<uint>("ProductID");
b.Property<int>("ProductIDSql");
b.Property<bool>("RemovableMedia");
b.Property<uint>("VendorID");
b.Property<int>("VendorIDSql");
b.HasKey("Id");
b.ToTable("FireWire");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.Mmc", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int?>("FeaturesId");
b.Property<byte[]>("ModeSense2AData");
b.HasKey("Id");
b.HasIndex("FeaturesId");
b.ToTable("Mmc");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.MmcFeatures", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<byte?>("AACSVersion");
b.Property<byte?>("AGIDs");
b.Property<byte[]>("BinaryData");
b.Property<byte?>("BindingNonceBlocks");
b.Property<ushort?>("BlocksPerReadableUnit");
b.Property<short?>("BlocksPerReadableUnitSql");
b.Property<bool>("BufferUnderrunFreeInDVD");
b.Property<bool>("BufferUnderrunFreeInSAO");
b.Property<bool>("BufferUnderrunFreeInTAO");
b.Property<byte?>("CPRMVersion");
b.Property<byte?>("CSSVersion");
b.Property<bool>("CanAudioScan");
b.Property<bool>("CanEject");
b.Property<bool>("CanEraseSector");
b.Property<bool>("CanExpandBDRESpareArea");
b.Property<bool>("CanFormat");
b.Property<bool>("CanFormatBDREWithoutSpare");
b.Property<bool>("CanFormatCert");
b.Property<bool>("CanFormatFRF");
b.Property<bool>("CanFormatQCert");
b.Property<bool>("CanFormatRRM");
b.Property<bool>("CanGenerateBindingNonce");
b.Property<bool>("CanLoad");
b.Property<bool>("CanMuteSeparateChannels");
b.Property<bool>("CanOverwriteSAOTrack");
b.Property<bool>("CanOverwriteTAOTrack");
b.Property<bool>("CanPlayCDAudio");
b.Property<bool>("CanPseudoOverwriteBDR");
b.Property<bool>("CanReadAllDualR");
b.Property<bool>("CanReadAllDualRW");
b.Property<bool>("CanReadBD");
b.Property<bool>("CanReadBDR");
b.Property<bool>("CanReadBDRE1");
b.Property<bool>("CanReadBDRE2");
b.Property<bool>("CanReadBDROM");
b.Property<bool>("CanReadBluBCA");
b.Property<bool>("CanReadCD");
b.Property<bool>("CanReadCDMRW");
b.Property<bool>("CanReadCPRM_MKB");
b.Property<bool>("CanReadDDCD");
b.Property<bool>("CanReadDVD");
b.Property<bool>("CanReadDVDPlusMRW");
b.Property<bool>("CanReadDVDPlusR");
b.Property<bool>("CanReadDVDPlusRDL");
b.Property<bool>("CanReadDVDPlusRW");
b.Property<bool>("CanReadDVDPlusRWDL");
b.Property<bool>("CanReadDriveAACSCertificate");
b.Property<bool>("CanReadHDDVD");
b.Property<bool>("CanReadHDDVDR");
b.Property<bool>("CanReadHDDVDRAM");
b.Property<bool>("CanReadLeadInCDText");
b.Property<bool>("CanReadOldBDR");
b.Property<bool>("CanReadOldBDRE");
b.Property<bool>("CanReadOldBDROM");
b.Property<bool>("CanReadSpareAreaInformation");
b.Property<bool>("CanReportDriveSerial");
b.Property<bool>("CanReportMediaSerial");
b.Property<bool>("CanTestWriteDDCDR");
b.Property<bool>("CanTestWriteDVD");
b.Property<bool>("CanTestWriteInSAO");
b.Property<bool>("CanTestWriteInTAO");
b.Property<bool>("CanUpgradeFirmware");
b.Property<bool>("CanWriteBD");
b.Property<bool>("CanWriteBDR");
b.Property<bool>("CanWriteBDRE1");
b.Property<bool>("CanWriteBDRE2");
b.Property<bool>("CanWriteBusEncryptedBlocks");
b.Property<bool>("CanWriteCDMRW");
b.Property<bool>("CanWriteCDRW");
b.Property<bool>("CanWriteCDRWCAV");
b.Property<bool>("CanWriteCDSAO");
b.Property<bool>("CanWriteCDTAO");
b.Property<bool>("CanWriteCSSManagedDVD");
b.Property<bool>("CanWriteDDCDR");
b.Property<bool>("CanWriteDDCDRW");
b.Property<bool>("CanWriteDVDPlusMRW");
b.Property<bool>("CanWriteDVDPlusR");
b.Property<bool>("CanWriteDVDPlusRDL");
b.Property<bool>("CanWriteDVDPlusRW");
b.Property<bool>("CanWriteDVDPlusRWDL");
b.Property<bool>("CanWriteDVDR");
b.Property<bool>("CanWriteDVDRDL");
b.Property<bool>("CanWriteDVDRW");
b.Property<bool>("CanWriteHDDVDR");
b.Property<bool>("CanWriteHDDVDRAM");
b.Property<bool>("CanWriteOldBDR");
b.Property<bool>("CanWriteOldBDRE");
b.Property<bool>("CanWritePackedSubchannelInTAO");
b.Property<bool>("CanWriteRWSubchannelInSAO");
b.Property<bool>("CanWriteRWSubchannelInTAO");
b.Property<bool>("CanWriteRaw");
b.Property<bool>("CanWriteRawMultiSession");
b.Property<bool>("CanWriteRawSubchannelInTAO");
b.Property<bool>("ChangerIsSideChangeCapable");
b.Property<byte>("ChangerSlots");
b.Property<bool>("ChangerSupportsDiscPresent");
b.Property<bool>("DBML");
b.Property<bool>("DVDMultiRead");
b.Property<bool>("EmbeddedChanger");
b.Property<bool>("ErrorRecoveryPage");
b.Property<DateTime?>("FirmwareDate");
b.Property<byte?>("LoadingMechanismType");
b.Property<bool>("Locked");
b.Property<uint?>("LogicalBlockSize");
b.Property<int?>("LogicalBlockSizeSql");
b.Property<bool>("MultiRead");
b.Property<uint?>("PhysicalInterfaceStandardNumber");
b.Property<int?>("PhysicalInterfaceStandardNumberSql");
b.Property<bool>("PreventJumper");
b.Property<bool>("SupportsAACS");
b.Property<bool>("SupportsBusEncryption");
b.Property<bool>("SupportsC2");
b.Property<bool>("SupportsCPRM");
b.Property<bool>("SupportsCSS");
b.Property<bool>("SupportsDAP");
b.Property<bool>("SupportsDeviceBusyEvent");
b.Property<bool>("SupportsHybridDiscs");
b.Property<bool>("SupportsModePage1Ch");
b.Property<bool>("SupportsOSSC");
b.Property<bool>("SupportsPWP");
b.Property<bool>("SupportsSWPP");
b.Property<bool>("SupportsSecurDisc");
b.Property<bool>("SupportsSeparateVolume");
b.Property<bool>("SupportsVCPS");
b.Property<bool>("SupportsWriteInhibitDCB");
b.Property<bool>("SupportsWriteProtectPAC");
b.Property<ushort?>("VolumeLevels");
b.Property<short?>("VolumeLevelsSql");
b.HasKey("Id");
b.ToTable("MmcFeatures");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.MmcSd", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<byte[]>("CID");
b.Property<byte[]>("CSD");
b.Property<byte[]>("ExtendedCSD");
b.Property<byte[]>("OCR");
b.Property<byte[]>("SCR");
b.HasKey("Id");
b.ToTable("MmcSd");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.Pcmcia", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<byte[]>("CIS");
b.Property<ushort?>("CardCode");
b.Property<short?>("CardCodeSql");
b.Property<string>("Compliance");
b.Property<string>("Manufacturer");
b.Property<ushort?>("ManufacturerCode");
b.Property<short?>("ManufacturerCodeSql");
b.Property<string>("ProductName");
b.HasKey("Id");
b.ToTable("Pcmcia");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.Scsi", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<byte[]>("InquiryData");
b.Property<byte[]>("ModeSense10Data");
b.Property<byte[]>("ModeSense6Data");
b.Property<int?>("ModeSenseId");
b.Property<int?>("MultiMediaDeviceId");
b.Property<int?>("ReadCapabilitiesId");
b.Property<int?>("SequentialDeviceId");
b.Property<bool>("SupportsModeSense10");
b.Property<bool>("SupportsModeSense6");
b.Property<bool>("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<int>("Id")
.ValueGeneratedOnAdd();
b.Property<bool>("BlankCheckEnabled");
b.Property<byte?>("BufferedMode");
b.Property<bool>("DPOandFUA");
b.Property<byte?>("MediumType");
b.Property<byte?>("Speed");
b.Property<bool>("WriteProtected");
b.HasKey("Id");
b.ToTable("ScsiMode");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.ScsiPage", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int?>("ScsiId");
b.Property<int?>("ScsiModeId");
b.Property<byte>("page");
b.Property<byte?>("subpage");
b.Property<byte[]>("value");
b.HasKey("Id");
b.HasIndex("ScsiId");
b.HasIndex("ScsiModeId");
b.ToTable("ScsiPage");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.Ssc", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<byte?>("BlockSizeGranularity");
b.Property<uint?>("MaxBlockLength");
b.Property<int?>("MaxBlockLengthSql");
b.Property<uint?>("MinBlockLength");
b.Property<int?>("MinBlockLengthSql");
b.HasKey("Id");
b.ToTable("Ssc");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.SscSupportedMedia", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("Description");
b.Property<ushort>("Length");
b.Property<short>("LengthSql");
b.Property<byte>("MediumType");
b.Property<string>("Name");
b.Property<string>("Organization");
b.Property<int?>("SscId");
b.Property<int?>("TestedSequentialMediaId");
b.Property<ushort>("Width");
b.Property<short>("WidthSql");
b.HasKey("Id");
b.HasIndex("SscId");
b.HasIndex("TestedSequentialMediaId");
b.ToTable("SscSupportedMedia");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.SupportedDensity", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<uint>("BitsPerMm");
b.Property<int>("BitsPerMmSql");
b.Property<uint>("Capacity");
b.Property<int>("CapacitySql");
b.Property<bool>("DefaultDensity");
b.Property<string>("Description");
b.Property<bool>("Duplicate");
b.Property<string>("Name");
b.Property<string>("Organization");
b.Property<byte>("PrimaryCode");
b.Property<byte>("SecondaryCode");
b.Property<int?>("SscId");
b.Property<int?>("TestedSequentialMediaId");
b.Property<ushort>("Tracks");
b.Property<short>("TracksSql");
b.Property<ushort>("Width");
b.Property<short>("WidthSql");
b.Property<bool>("Writable");
b.HasKey("Id");
b.HasIndex("SscId");
b.HasIndex("TestedSequentialMediaId");
b.ToTable("SupportedDensity");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.TestedMedia", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<byte[]>("AdipData");
b.Property<int?>("AtaId");
b.Property<byte[]>("AtipData");
b.Property<uint?>("BlockSize");
b.Property<int?>("BlockSizeSql");
b.Property<ulong?>("Blocks");
b.Property<long?>("BlocksSql");
b.Property<byte[]>("BluBcaData");
b.Property<byte[]>("BluDdsData");
b.Property<byte[]>("BluDiData");
b.Property<byte[]>("BluPacData");
b.Property<byte[]>("BluSaiData");
b.Property<byte[]>("C2PointersData");
b.Property<int?>("CHSId");
b.Property<bool?>("CanReadAACS");
b.Property<bool?>("CanReadADIP");
b.Property<bool?>("CanReadATIP");
b.Property<bool?>("CanReadBCA");
b.Property<bool?>("CanReadC2Pointers");
b.Property<bool?>("CanReadCMI");
b.Property<bool?>("CanReadCorrectedSubchannel");
b.Property<bool?>("CanReadCorrectedSubchannelWithC2");
b.Property<bool?>("CanReadDCB");
b.Property<bool?>("CanReadDDS");
b.Property<bool?>("CanReadDMI");
b.Property<bool?>("CanReadDiscInformation");
b.Property<bool?>("CanReadFirstTrackPreGap");
b.Property<bool?>("CanReadFullTOC");
b.Property<bool?>("CanReadHDCMI");
b.Property<bool?>("CanReadLayerCapacity");
b.Property<bool?>("CanReadLeadIn");
b.Property<bool?>("CanReadLeadOut");
b.Property<bool?>("CanReadMediaID");
b.Property<bool?>("CanReadMediaSerial");
b.Property<bool?>("CanReadPAC");
b.Property<bool?>("CanReadPFI");
b.Property<bool?>("CanReadPMA");
b.Property<bool?>("CanReadPQSubchannel");
b.Property<bool?>("CanReadPQSubchannelWithC2");
b.Property<bool?>("CanReadPRI");
b.Property<bool?>("CanReadRWSubchannel");
b.Property<bool?>("CanReadRWSubchannelWithC2");
b.Property<bool?>("CanReadRecordablePFI");
b.Property<bool?>("CanReadSpareAreaInformation");
b.Property<bool?>("CanReadTOC");
b.Property<bool?>("CanReadingIntersessionLeadIn");
b.Property<bool?>("CanReadingIntersessionLeadOut");
b.Property<byte[]>("CmiData");
b.Property<byte[]>("CorrectedSubchannelData");
b.Property<byte[]>("CorrectedSubchannelWithC2Data");
b.Property<int?>("CurrentCHSId");
b.Property<byte[]>("DcbData");
b.Property<byte?>("Density");
b.Property<byte[]>("DmiData");
b.Property<byte[]>("DvdAacsData");
b.Property<byte[]>("DvdBcaData");
b.Property<byte[]>("DvdDdsData");
b.Property<byte[]>("DvdLayerData");
b.Property<byte[]>("DvdSaiData");
b.Property<byte[]>("EmbossedPfiData");
b.Property<byte[]>("FullTocData");
b.Property<byte[]>("HLDTSTReadRawDVDData");
b.Property<byte[]>("HdCmiData");
b.Property<byte[]>("IdentifyData");
b.Property<byte[]>("IntersessionLeadInData");
b.Property<byte[]>("IntersessionLeadOutData");
b.Property<ulong?>("LBA48Sectors");
b.Property<long?>("LBA48SectorsSql");
b.Property<uint?>("LBASectors");
b.Property<int?>("LBASectorsSql");
b.Property<byte[]>("LeadInData");
b.Property<byte[]>("LeadOutData");
b.Property<ushort?>("LogicalAlignment");
b.Property<short?>("LogicalAlignmentSql");
b.Property<uint?>("LongBlockSize");
b.Property<int?>("LongBlockSizeSql");
b.Property<string>("Manufacturer");
b.Property<bool>("MediaIsRecognized");
b.Property<byte?>("MediumType");
b.Property<string>("MediumTypeName");
b.Property<int?>("MmcId");
b.Property<byte[]>("ModeSense10Data");
b.Property<byte[]>("ModeSense6Data");
b.Property<string>("Model");
b.Property<byte[]>("NecReadCddaData");
b.Property<ushort?>("NominalRotationRate");
b.Property<short?>("NominalRotationRateSql");
b.Property<byte[]>("PQSubchannelData");
b.Property<byte[]>("PQSubchannelWithC2Data");
b.Property<byte[]>("PfiData");
b.Property<uint?>("PhysicalBlockSize");
b.Property<int?>("PhysicalBlockSizeSql");
b.Property<byte[]>("PioneerReadCddaData");
b.Property<byte[]>("PioneerReadCddaMsfData");
b.Property<byte[]>("PlextorReadCddaData");
b.Property<byte[]>("PlextorReadRawDVDData");
b.Property<byte[]>("PmaData");
b.Property<byte[]>("PriData");
b.Property<byte[]>("RWSubchannelData");
b.Property<byte[]>("RWSubchannelWithC2Data");
b.Property<byte[]>("Read10Data");
b.Property<byte[]>("Read12Data");
b.Property<byte[]>("Read16Data");
b.Property<byte[]>("Read6Data");
b.Property<byte[]>("ReadCdData");
b.Property<byte[]>("ReadCdFullData");
b.Property<byte[]>("ReadCdMsfData");
b.Property<byte[]>("ReadCdMsfFullData");
b.Property<byte[]>("ReadDmaData");
b.Property<byte[]>("ReadDmaLba48Data");
b.Property<byte[]>("ReadDmaLbaData");
b.Property<byte[]>("ReadDmaRetryData");
b.Property<byte[]>("ReadDmaRetryLbaData");
b.Property<byte[]>("ReadLba48Data");
b.Property<byte[]>("ReadLbaData");
b.Property<byte[]>("ReadLong10Data");
b.Property<byte[]>("ReadLong16Data");
b.Property<byte[]>("ReadLongData");
b.Property<byte[]>("ReadLongLbaData");
b.Property<byte[]>("ReadLongRetryData");
b.Property<byte[]>("ReadLongRetryLbaData");
b.Property<byte[]>("ReadRetryLbaData");
b.Property<byte[]>("ReadSectorsData");
b.Property<byte[]>("ReadSectorsRetryData");
b.Property<int?>("ScsiId");
b.Property<bool?>("SolidStateDevice");
b.Property<bool?>("SupportsHLDTSTReadRawDVD");
b.Property<bool?>("SupportsNECReadCDDA");
b.Property<bool?>("SupportsPioneerReadCDDA");
b.Property<bool?>("SupportsPioneerReadCDDAMSF");
b.Property<bool?>("SupportsPlextorReadCDDA");
b.Property<bool?>("SupportsPlextorReadRawDVD");
b.Property<bool?>("SupportsRead10");
b.Property<bool?>("SupportsRead12");
b.Property<bool?>("SupportsRead16");
b.Property<bool?>("SupportsRead6");
b.Property<bool?>("SupportsReadCapacity");
b.Property<bool?>("SupportsReadCapacity16");
b.Property<bool?>("SupportsReadCd");
b.Property<bool?>("SupportsReadCdMsf");
b.Property<bool?>("SupportsReadCdMsfRaw");
b.Property<bool?>("SupportsReadCdRaw");
b.Property<bool?>("SupportsReadDma");
b.Property<bool?>("SupportsReadDmaLba");
b.Property<bool?>("SupportsReadDmaLba48");
b.Property<bool?>("SupportsReadDmaRetry");
b.Property<bool?>("SupportsReadDmaRetryLba");
b.Property<bool?>("SupportsReadLba");
b.Property<bool?>("SupportsReadLba48");
b.Property<bool?>("SupportsReadLong");
b.Property<bool?>("SupportsReadLong16");
b.Property<bool?>("SupportsReadLongLba");
b.Property<bool?>("SupportsReadLongRetry");
b.Property<bool?>("SupportsReadLongRetryLba");
b.Property<bool?>("SupportsReadRetry");
b.Property<bool?>("SupportsReadRetryLba");
b.Property<bool?>("SupportsReadSectors");
b.Property<bool?>("SupportsSeek");
b.Property<bool?>("SupportsSeekLba");
b.Property<byte[]>("TocData");
b.Property<byte[]>("Track1PregapData");
b.Property<ushort?>("UnformattedBPS");
b.Property<short?>("UnformattedBPSSql");
b.Property<ushort?>("UnformattedBPT");
b.Property<short?>("UnformattedBPTSql");
b.HasKey("Id");
b.HasIndex("AtaId");
b.HasIndex("CHSId");
b.HasIndex("CurrentCHSId");
b.HasIndex("MmcId");
b.HasIndex("ScsiId");
b.ToTable("TestedMedia");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.TestedSequentialMedia", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<bool?>("CanReadMediaSerial");
b.Property<byte?>("Density");
b.Property<string>("Manufacturer");
b.Property<bool>("MediaIsRecognized");
b.Property<byte?>("MediumType");
b.Property<string>("MediumTypeName");
b.Property<byte[]>("ModeSense10Data");
b.Property<byte[]>("ModeSense6Data");
b.Property<string>("Model");
b.Property<int?>("SscId");
b.HasKey("Id");
b.HasIndex("SscId");
b.ToTable("TestedSequentialMedia");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.Usb", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<byte[]>("Descriptors");
b.Property<string>("Manufacturer");
b.Property<string>("Product");
b.Property<ushort>("ProductID");
b.Property<short>("ProductIDSql");
b.Property<bool>("RemovableMedia");
b.Property<ushort>("VendorID");
b.Property<short>("VendorIDSql");
b.HasKey("Id");
b.ToTable("Usb");
});
modelBuilder.Entity("Aaru.Database.Models.CdOffset", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<DateTime>("AddedWhen");
b.Property<float>("Agreement");
b.Property<string>("Manufacturer");
b.Property<string>("Model");
b.Property<DateTime>("ModifiedWhen");
b.Property<short>("Offset");
b.Property<int>("Submissions");
b.HasKey("Id");
b.ToTable("CdOffsets");
});
modelBuilder.Entity("Aaru.Database.Models.Command", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<ulong>("Count");
b.Property<string>("Name");
b.Property<bool>("Synchronized");
b.HasKey("Id");
b.ToTable("Commands");
});
modelBuilder.Entity("Aaru.Database.Models.Device", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int?>("ATAId");
b.Property<int?>("ATAPIId");
b.Property<bool>("CompactFlash");
b.Property<int?>("FireWireId");
b.Property<DateTime>("LastSynchronized");
b.Property<string>("Manufacturer");
b.Property<string>("Model");
b.Property<int?>("MultiMediaCardId");
b.Property<int>("OptimalMultipleSectorsRead");
b.Property<int?>("PCMCIAId");
b.Property<string>("Revision");
b.Property<int?>("SCSIId");
b.Property<int?>("SecureDigitalId");
b.Property<int>("Type");
b.Property<int?>("USBId");
b.HasKey("Id");
b.HasIndex("ATAId");
b.HasIndex("ATAPIId");
b.HasIndex("FireWireId");
b.HasIndex("MultiMediaCardId");
b.HasIndex("PCMCIAId");
b.HasIndex("SCSIId");
b.HasIndex("SecureDigitalId");
b.HasIndex("USBId");
b.ToTable("Devices");
});
modelBuilder.Entity("Aaru.Database.Models.DeviceStat", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("Bus");
b.Property<string>("Manufacturer");
b.Property<string>("Model");
b.Property<string>("Revision");
b.Property<bool>("Synchronized");
b.HasKey("Id");
b.ToTable("SeenDevices");
});
modelBuilder.Entity("Aaru.Database.Models.Filesystem", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<ulong>("Count");
b.Property<string>("Name");
b.Property<bool>("Synchronized");
b.HasKey("Id");
b.ToTable("Filesystems");
});
modelBuilder.Entity("Aaru.Database.Models.Filter", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<ulong>("Count");
b.Property<string>("Name");
b.Property<bool>("Synchronized");
b.HasKey("Id");
b.ToTable("Filters");
});
modelBuilder.Entity("Aaru.Database.Models.Media", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<ulong>("Count");
b.Property<bool>("Real");
b.Property<bool>("Synchronized");
b.Property<string>("Type");
b.HasKey("Id");
b.ToTable("Medias");
});
modelBuilder.Entity("Aaru.Database.Models.MediaFormat", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<ulong>("Count");
b.Property<string>("Name");
b.Property<bool>("Synchronized");
b.HasKey("Id");
b.ToTable("MediaFormats");
});
modelBuilder.Entity("Aaru.Database.Models.OperatingSystem", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<ulong>("Count");
b.Property<string>("Name");
b.Property<bool>("Synchronized");
b.Property<string>("Version");
b.HasKey("Id");
b.ToTable("OperatingSystems");
});
modelBuilder.Entity("Aaru.Database.Models.Partition", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<ulong>("Count");
b.Property<string>("Name");
b.Property<bool>("Synchronized");
b.HasKey("Id");
b.ToTable("Partitions");
});
modelBuilder.Entity("Aaru.Database.Models.Report", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int?>("ATAId");
b.Property<int?>("ATAPIId");
b.Property<bool>("CompactFlash");
b.Property<DateTime>("Created");
b.Property<int?>("FireWireId");
b.Property<string>("Manufacturer");
b.Property<string>("Model");
b.Property<int?>("MultiMediaCardId");
b.Property<int?>("PCMCIAId");
b.Property<string>("Revision");
b.Property<int?>("SCSIId");
b.Property<int?>("SecureDigitalId");
b.Property<int>("Type");
b.Property<int?>("USBId");
b.Property<bool>("Uploaded");
b.HasKey("Id");
b.HasIndex("ATAId");
b.HasIndex("ATAPIId");
b.HasIndex("FireWireId");
b.HasIndex("MultiMediaCardId");
b.HasIndex("PCMCIAId");
b.HasIndex("SCSIId");
b.HasIndex("SecureDigitalId");
b.HasIndex("USBId");
b.ToTable("Reports");
});
modelBuilder.Entity("Aaru.Database.Models.UsbProduct", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<DateTime>("AddedWhen");
b.Property<DateTime>("ModifiedWhen");
b.Property<string>("Product");
b.Property<ushort>("ProductId");
b.Property<ushort>("VendorId");
b.HasKey("Id");
b.HasIndex("VendorId");
b.ToTable("UsbProducts");
});
modelBuilder.Entity("Aaru.Database.Models.UsbVendor", b =>
{
b.Property<ushort>("Id")
.ValueGeneratedOnAdd();
b.Property<DateTime>("AddedWhen");
b.Property<DateTime>("ModifiedWhen");
b.Property<string>("Vendor");
b.HasKey("Id");
b.ToTable("UsbVendors");
});
modelBuilder.Entity("Aaru.Database.Models.Version", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<ulong>("Count");
b.Property<bool>("Synchronized");
b.Property<string>("Value");
b.HasKey("Id");
b.ToTable("Versions");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.Ata", b =>
{
b.HasOne("Aaru.CommonTypes.Metadata.TestedMedia", "ReadCapabilities")
.WithMany()
.HasForeignKey("ReadCapabilitiesId");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.BlockDescriptor", b =>
{
b.HasOne("Aaru.CommonTypes.Metadata.ScsiMode")
.WithMany("BlockDescriptors")
.HasForeignKey("ScsiModeId");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.DensityCode", b =>
{
b.HasOne("Aaru.CommonTypes.Metadata.SscSupportedMedia")
.WithMany("DensityCodes")
.HasForeignKey("SscSupportedMediaId");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.Mmc", b =>
{
b.HasOne("Aaru.CommonTypes.Metadata.MmcFeatures", "Features")
.WithMany()
.HasForeignKey("FeaturesId");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.Scsi", b =>
{
b.HasOne("Aaru.CommonTypes.Metadata.ScsiMode", "ModeSense")
.WithMany()
.HasForeignKey("ModeSenseId");
b.HasOne("Aaru.CommonTypes.Metadata.Mmc", "MultiMediaDevice")
.WithMany()
.HasForeignKey("MultiMediaDeviceId");
b.HasOne("Aaru.CommonTypes.Metadata.TestedMedia", "ReadCapabilities")
.WithMany()
.HasForeignKey("ReadCapabilitiesId");
b.HasOne("Aaru.CommonTypes.Metadata.Ssc", "SequentialDevice")
.WithMany()
.HasForeignKey("SequentialDeviceId");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.ScsiPage", b =>
{
b.HasOne("Aaru.CommonTypes.Metadata.Scsi")
.WithMany("EVPDPages")
.HasForeignKey("ScsiId");
b.HasOne("Aaru.CommonTypes.Metadata.ScsiMode")
.WithMany("ModePages")
.HasForeignKey("ScsiModeId");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.SscSupportedMedia", b =>
{
b.HasOne("Aaru.CommonTypes.Metadata.Ssc")
.WithMany("SupportedMediaTypes")
.HasForeignKey("SscId");
b.HasOne("Aaru.CommonTypes.Metadata.TestedSequentialMedia")
.WithMany("SupportedMediaTypes")
.HasForeignKey("TestedSequentialMediaId");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.SupportedDensity", b =>
{
b.HasOne("Aaru.CommonTypes.Metadata.Ssc")
.WithMany("SupportedDensities")
.HasForeignKey("SscId");
b.HasOne("Aaru.CommonTypes.Metadata.TestedSequentialMedia")
.WithMany("SupportedDensities")
.HasForeignKey("TestedSequentialMediaId");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.TestedMedia", b =>
{
b.HasOne("Aaru.CommonTypes.Metadata.Ata")
.WithMany("RemovableMedias")
.HasForeignKey("AtaId");
b.HasOne("Aaru.CommonTypes.Metadata.Chs", "CHS")
.WithMany()
.HasForeignKey("CHSId");
b.HasOne("Aaru.CommonTypes.Metadata.Chs", "CurrentCHS")
.WithMany()
.HasForeignKey("CurrentCHSId");
b.HasOne("Aaru.CommonTypes.Metadata.Mmc")
.WithMany("TestedMedia")
.HasForeignKey("MmcId");
b.HasOne("Aaru.CommonTypes.Metadata.Scsi")
.WithMany("RemovableMedias")
.HasForeignKey("ScsiId");
});
modelBuilder.Entity("Aaru.CommonTypes.Metadata.TestedSequentialMedia", b =>
{
b.HasOne("Aaru.CommonTypes.Metadata.Ssc")
.WithMany("TestedMedia")
.HasForeignKey("SscId");
});
modelBuilder.Entity("Aaru.Database.Models.Device", b =>
{
b.HasOne("Aaru.CommonTypes.Metadata.Ata", "ATA")
.WithMany()
.HasForeignKey("ATAId");
b.HasOne("Aaru.CommonTypes.Metadata.Ata", "ATAPI")
.WithMany()
.HasForeignKey("ATAPIId");
b.HasOne("Aaru.CommonTypes.Metadata.FireWire", "FireWire")
.WithMany()
.HasForeignKey("FireWireId");
b.HasOne("Aaru.CommonTypes.Metadata.MmcSd", "MultiMediaCard")
.WithMany()
.HasForeignKey("MultiMediaCardId");
b.HasOne("Aaru.CommonTypes.Metadata.Pcmcia", "PCMCIA")
.WithMany()
.HasForeignKey("PCMCIAId");
b.HasOne("Aaru.CommonTypes.Metadata.Scsi", "SCSI")
.WithMany()
.HasForeignKey("SCSIId");
b.HasOne("Aaru.CommonTypes.Metadata.MmcSd", "SecureDigital")
.WithMany()
.HasForeignKey("SecureDigitalId");
b.HasOne("Aaru.CommonTypes.Metadata.Usb", "USB")
.WithMany()
.HasForeignKey("USBId");
});
modelBuilder.Entity("Aaru.Database.Models.Report", b =>
{
b.HasOne("Aaru.CommonTypes.Metadata.Ata", "ATA")
.WithMany()
.HasForeignKey("ATAId");
b.HasOne("Aaru.CommonTypes.Metadata.Ata", "ATAPI")
.WithMany()
.HasForeignKey("ATAPIId");
b.HasOne("Aaru.CommonTypes.Metadata.FireWire", "FireWire")
.WithMany()
.HasForeignKey("FireWireId");
b.HasOne("Aaru.CommonTypes.Metadata.MmcSd", "MultiMediaCard")
.WithMany()
.HasForeignKey("MultiMediaCardId");
b.HasOne("Aaru.CommonTypes.Metadata.Pcmcia", "PCMCIA")
.WithMany()
.HasForeignKey("PCMCIAId");
b.HasOne("Aaru.CommonTypes.Metadata.Scsi", "SCSI")
.WithMany()
.HasForeignKey("SCSIId");
b.HasOne("Aaru.CommonTypes.Metadata.MmcSd", "SecureDigital")
.WithMany()
.HasForeignKey("SecureDigitalId");
b.HasOne("Aaru.CommonTypes.Metadata.Usb", "USB")
.WithMany()
.HasForeignKey("USBId");
});
modelBuilder.Entity("Aaru.Database.Models.UsbProduct", b =>
{
b.HasOne("Aaru.Database.Models.UsbVendor", "Vendor")
.WithMany("Products")
.HasForeignKey("VendorId")
.OnDelete(DeleteBehavior.Cascade);
});
#pragma warning restore 612, 618
}
}
}