Files
marechai/Cicm.Database/Migrations/cicmContextModelSnapshot.cs

2159 lines
75 KiB
C#
Raw Normal View History

2018-08-05 23:11:15 +01:00
// <auto-generated />
2019-05-27 03:17:11 +01:00
uusing System;
2018-08-05 23:11:15 +01:00
using Cicm.Database.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
2019-05-27 03:17:11 +01:00
ing Microsoft.EntityFrameworkCore.Storage.ValueConversion;
2018-08-05 23:11:15 +01:00
namespace Cicm.Database.Migrations
{
[DbContext(typeof(cicmContext))]
2019-05-27 03:17:11 +01:00
partial class cicmContextModelSnapshot : ModelSnapshot
2018-08-05 23:11:15 +01:00
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
2019-05-27 03:17:11 +01:00
#pragma warning disable 612, 618
modelBuilder
2019-05-27 03:17:11 +01:00
ation("ProductVersion", "2.2.4-servicing-10062")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
2019-05-27 03:17:11 +01:00
modelBuilder.Entity("Cicm.Database.Models.BrowserTest", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
ype("int(11)");
b.Property<sbyte>("Agif")
.ValueGeneratedOnAdd()
if")
.HasColumnType("tinyint(1)")
.HasDefaultValueSql("'0'");
b.Property<string>("Browser")
.IsReq
.ValueGeneratedOnAdd()
.HasColumnName("browser")
.HasColumnType("varchar(64)")
.HasDefaultValueSql("''")
.HasMaxLength(64);
b.Property<sbyte>("Colors")
.
d()
.HasColumnName("colors")
.HasColumnType("tinyint(1)")
.HasDefaultVal
b.Property<sbyte>("Flash")
.ValueGeneratedOnAdd()
.HasColumnName("flash")
.HasColumnType("tinyint(1)")
.HasDefaultValueSql("'0'");
b.Property<sbyte>("Frames")
eGeneratedOnAdd()
.HasColumnName("frames")
.HasColumnType("tinyint(1)")
alueSql("'0'");
b.Property<sbyte>("Gif87")
.ValueGeneratedOnAdd()
umnName("gif87")
.HasColumnType("tinyint(1)")
.HasDefaultValueSql("'0'");
b.Property<sbyte>("Gif89")
eGeneratedOnAdd()
.HasColumnName("gif89")
.HasColumnType("tinyint(1)")
.HasDefaultValueSql("'0'");
y<sbyte>("Jpeg")
.ValueGeneratedOnAdd()
.HasColumnName("jpeg")
.HasCol
)")
.HasDefaultValueSql("'0'");
b.Property<sbyte>("Js")
.ValueGeneratedOnAd
.HasColumnName("js")
.HasColumnType("tinyint(1)")
.HasDefaultValueSql("'0'");
b.Property<string>("Os")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnName("os")
.H
har(32)")
.HasDefaultValueSql("''")
.HasMaxLength(32);
b.Property<string>("Platform")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnName("platform")
.HasColumnType("varchar(8)")
.HasDefaultValueSql("''")
.HasMaxLength(8);
b.Property<sbyte>("Png")
.ValueGeneratedOnAdd()
.HasColumnName("png")
.HasColumnType("tinyint(1)")
.HasDefaultValueSql("'0'");
b.Property<sbyte>("Pngt")
.ValueGeneratedOnAdd()
.HasColumnName("pngt")
umnType("tinyint(1)")
.HasDefaultValueSql("'0'");
b.Property<sbyte>("Table")
.ValueGeneratedOnAdd()
.HasColumnName("table")
.HasColumnType("tinyint(1)")
.HasDefaultValueSql("'0'");
b.Property<string>("UserAgent")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnName("user_agent")
.HasColumnType("varchar(128)")
.HasDefaultValueSql("''")
.HasMaxLength(128);
b.Property<string>("Version")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnName("version")
.HasColumnType("varchar(16)")
.HasDefaultValueSql("''")
.HasMaxLength(16);
b.HasKey("Id");
b.HasIndex("Browser")
.Ha
_tests_browser");
b.HasIndex("Os")
.HasName("idx_browser_tests_os");
b.HasIndex("Platform")
.HasName("idx_browser_tests_platform");
b.HasIndex("UserAgent")
.HasName("idx_browser_tests_user_agent");
b.HasIndex("Version")
.HasName("idx_browser_tests_version");
b.ToTable("browser_tests");
});
2018-08-05 23:11:15 +01:00
modelBuilder.Entity("Cicm.Database.Models.CicmDb", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<DateTime?>("Updated")
.ValueGeneratedOnAdd()
.HasColumnName("updated")
.HasColumnType("datetime")
.HasDefaultValueSql("'CURRENT_TIMESTAMP'");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int>("Version")
.HasColumnName("version")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("cicm_db");
});
2018-08-05 23:11:15 +01:00
2018-08-06 21:27:14 +01:00
modelBuilder.Entity("Cicm.Database.Models.Company", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
.HasColumnType("int(11)");
b.Property<string>("Address")
.HasColumnName("address")
.HasColumnType("varchar(80)")
.HasMaxLength(80);
b.Property<string>("City")
.HasColumnName("city")
.HasColumnType("varchar(80)")
.HasMaxLength(80);
b.Property<short?>("CountryId")
.HasColumnName("country")
.HasColumnType("smallint(3)");
b.Property<string>("Facebook")
.HasColumnName("facebook")
.HasColumnType("varchar(45)")
.HasMaxLength(45);
b.Property<DateTime?>("Founded")
.HasColumnName("founded")
.HasColumnType("datetime");
b.Property<string>("Name")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnName("name")
.HasColumnType("varchar(128)")
.HasDefaultValueSql("''");
b.Property<string>("PostalCode")
.HasColumnName("postal_code")
.HasColumnType("varchar(25)")
.HasMaxLength(25);
b.Property<string>("Province")
.HasColumnName("province")
.HasColumnType("varchar(80)")
.HasMaxLength(80);
b.Property<DateTime?>("Sold")
.HasColumnName("sold")
.HasColumnType("datetime");
b.Property<int?>("SoldToId")
.HasColumnName("sold_to")
.HasColumnType("int(11)");
b.Property<int>("Status")
ame("status")
.HasColumnType("int(11)");
b.Property<string>("Twitter")
.HasColumnName
.HasColumnType("varchar(45)")
.HasMaxLength(45);
b.Property<string>("Website")
HasColumnName("website")
.HasColumnType("varchar(255)")
.HasMaxLength(255);
b.HasKey("Id")
b.HasIndex("Address")
.HasName("idx_companies_address");
b.HasIndex("City")
.HasName("idx_companies_city");
b.HasIndex("CountryId")
.HasName("idx_companies_country");
b.HasIndex("Facebook")
.HasName("idx_companies_facebook");
b.HasIndex("Founded")
.HasName("idx_companies_founded");
b.HasIndex("Name")
.HasName("idx_companies_name");
b.HasIndex("PostalCode")
.HasName("idx_companies_postal_code");
b.HasIndex("Province")
.HasName("idx_companies_province");
b.HasIndex("Sold")
.HasName("idx_companies_sold");
b.HasIndex("SoldToId")
.HasName("idx_companies_so
b.HasIndex("Status")
.HasName("idx_companies_status");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIn
.HasName("idx_companies_twitter");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Website")
.HasName("idx_companies_website");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("companies");
});
2018-08-05 23:11:15 +01:00
2018-08-06 21:27:14 +01:00
modelBuilder.Entity("Cicm.Database.Models.CompanyDescription", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
2019-05-27 03:17:11 +01:00
b.Property<int>("CompanyId");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("Html")
.HasMaxLength(262144);
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("Text")
.IsRequired()
.HasMaxLength(262144);
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("CompanyId");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Text")
.HasAnnotation("MySql:FullTextIndex", true);
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("CompanyDescriptions");
});
2018-08-05 23:11:15 +01:00
2018-08-06 21:27:14 +01:00
modelBuilder.Entity("Cicm.Database.Models.CompanyLogo", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
.HasColumnType("int(11)");
b.Property<int>("CompanyId")
.HasColumnName("company_id")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<Guid>("Guid")
.HasColumnName("logo_guid")
.HasColumnType("char(36)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int?>("Year")
.HasColumnName("year")
.HasColumnType("int(4)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("Id", "CompanyId", "Guid");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("CompanyId")
.HasName("idx_company_id");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Guid")
.HasName("idx_guid");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Id")
.IsUnique()
.HasName("idx_id");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("company_logos");
});
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
modelBuilder.Entity("Cicm.Database.Models.F
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("Browser")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnName("browser")
.HasColumnType("char(128)")
2019-05-27 03:17:11 +01:00
.HasDefaultValueSql("''");
2019-05-27 03:17:11 +01:00
b.Property<string>("Date")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnName("date")
.HasColumnType("char(20)")
.HasDefaultValueSql("''");
2019-05-27 03:17:11 +01:00
b.Property<string>("Ip")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnName("ip")
.HasColumnType("char(16)")
.HasDefaultValueSql("''");
2019-05-27 03:17:11 +01:00
b.Property<string>("Referer")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnName("referer")
.HasColumnType("char(255)")
.HasDefaultValueSql("''");
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2019-05-27 03:17:11 +01:00
b.HasIndex("Browser")
.HasName("idx_forbidden_browser");
2019-05-27 03:17:11 +01:00
b.HasIndex("Date")
.HasName("idx_forbidden_date");
2019-05-27 03:17:11 +01:00
b.HasIndex("Ip")
rbidden_ip");
2019-05-27 03:17:11 +01:00
b.HasIndex("Referer")
.HasName("idx_forbidden_referer");
2019-05-27 03:17:11 +01:00
b.ToTable("forbidden");
});
2018-08-05 23:11:15 +01:00
2018-08-06 21:27:14 +01:00
modelBuilder.Entity("Cicm.Database.Models.Gpu", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
t?>("CompanyId")
.HasColumnName("company")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<floa
.HasColumnName("die_size");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<DateTime?>("Introduced")
.HasColumnName("int
.HasColumnType("datetime");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("ModelCode")
.HasColumnName("model_code")
sColumnType("varchar(45)")
.HasMaxLength(45);
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("Name")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnName("name")
.HasColumnType("char(128)")
.HasDefaultValueSql("''")
.HasMaxLength(128);
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("Package")
.HasColumnName("package")
.HasColumnType("varchar(45)")
.HasMaxLength(45);
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("Process")
.HasColumnName("process")
.HasColumnType("varchar(45)")
.HasMaxLength(45);
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<float?>("ProcessNm")
.HasColumnName("process_nm");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<long?>("Transistors")
.HasColumnName("transistors")
.HasColumnType("bigint(20)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("CompanyId")
.Ha
mpany");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("DieSize")
.HasName("idx_gpus_die_size");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b
ced")
.HasName("idx_gpus_introduced");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("ModelCode")
.HasName("idx_gpus_model_code");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Name")
.HasName("idx_gpus_name");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Package")
.HasName("idx_gpus_package");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Process")
.HasName("idx_gpus_process");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("ProcessNm")
.HasName("idx_gpus_process_nm");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Transistors")
.HasName("idx_gpus_transistors");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("gpus");
});
2018-08-05 23:11:15 +01:00
modelBuilder.Entity("Cicm.Database.Models.GpusByMachine", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("i
.HasColumnType("bigint(20)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int>("GpuId")
.HasColumnName("gpu")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int>("MachineId")
.HasColumnName("machine")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("GpuId")
.HasName("idx_gpus_by_machine_gpus");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("MachineId")
.HasName("idx_gpus_by_machine_machine");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("gpus_by_machine");
});
2018-08-05 23:11:15 +01:00
2018-08-06 21:27:14 +01:00
modelBuilder.Entity("Cicm.Database.Models.InstructionSet", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
.HasColumnType("int(11)");
2018-08-06 21:27:14 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("Name")
.HasColumnName("instruction_set")
.HasColumnType("varchar(45)")
.HasMaxLength(45);
2018-08-06 21:27:14 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2018-08-06 21:27:14 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("instruction_sets");
});
2018-08-06 21:27:14 +01:00
modelBuilder.Entity("Cicm.Database.Models.InstructionSetExtension", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
.HasColumnType("int(11)");
b.Property<string>("Extension")
.IsRequired()
.HasColumnName("extension")
.HasColumnType("varchar(45)")
.HasMaxLength(45);
b.ToTable("instruction_set_extensions");
});
modelBuilder.Entity("Cicm.Database.Models.InstructionSetE
or", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
.HasColumnType("int(11)");
b.Property<int>("ProcessorId")
.HasColumnName("processor_id")
.HasColumnType("int(11)");
b.Property<int>("ExtensionId")
.HasColumnName("extension_id")
.HasColumnType("int(11)");
b.HasKey("Id", "ProcessorId", "ExtensionId");
b.Ha
d")
.HasName("idx_setextension_extension");
b.HasIndex("ProcessorId")
.HasName("idx_setextension_processor");
b.ToTable("instruction_set_exten
");
});
2018-08-05 23:11:15 +01:00
modelBuilder.Entity("Cicm.Database.Models.Iso31661Numeric", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<short>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
.HasColumnType("smallint(3)");
b.Property<string>("Name")
.IsRequired()
.HasColumnName("name")
.HasColumnType("varchar(64)")
.HasMaxLength(64);
b.HasKey("Id");
b.HasInd
.HasName("idx_name");
b.ToTable("iso3166_1_numeric");
});
modelBuilder
base.Models.Log", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
HasColumnName("id")
.HasColumnType("int(11)");
b.Property<string>("Browser")
ed()
.ValueGeneratedOnAdd()
.HasColumnName("browser")
.HasColumnT
.HasDefaultValueSql("''");
b.Property<string>("Date")
.IsReq
.ValueGeneratedOnAdd()
.HasColumnName("date")
.HasColumnType("char(20)")
.HasDef
;
b.Property<string>("Ip")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnName("ip")
.HasColumnType("char(16)")
.HasDefaultValueSql("''");
ring>("Referer")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnName("r
.HasColumnType("char(255)")
.HasDefaultValueSql("''");
b.HasKey("Id");
rowser")
.HasName("idx_log_browser");
b.HasIndex("Date")
.HasName("idx_log_dat
b.HasIndex("Ip")
.HasName("idx_log_ip");
b.HasIndex("Referer")
_log_referer");
b.ToTable("log");
});
modelBuilder.Entity("Cicm.Database.Models.
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
("int(11)");
b.Property<int>("CompanyId")
.ValueGeneratedOnAdd()
.HasC
")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
b.Property<
.HasColumnName("family")
.HasColumnType("int(11)");
b.Property<DateTime?>("Introduced")
.HasColumnName("introduced")
.HasColumnType("datetime");
b.Property<string>("Model")
.HasColumnName("model")
.HasColumnType("varchar(50)")
.HasMaxLength(50);
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("Name")
.IsRequired()
.HasColumnName("name")
.HasColumnType("varchar(255)")
.HasMaxLength(255);
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int>("Type")
.ValueGeneratedOnAdd()
.HasColumnName("type")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("CompanyId")
.HasName("idx_machines_company");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("FamilyId")
.HasName("idx_machines_family");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Introduced")
.HasName("idx_machines_introduced");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Model")
.HasName("idx_machines_model");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Name")
.HasName("idx_machines_name");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Type")
.HasName("idx_machines_type");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("machines");
});
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
modelBuilder.Entity("Cicm.Database.Models.Machine
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.
)
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int>("CompanyId")
.HasColumnName("company")
ColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("Name")
.IsRequired()
.HasColumn
.HasColumnType("varchar(255)")
.HasMaxLength(255);
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2019-05-27 03:17:11 +01:00
dex("CompanyId")
.HasName("idx_machine_families_company");
2019-05-27 03:17:11 +01:00
b.HasIndex("Name")
idx_machine_families_name");
2019-05-27 03:17:11 +01:00
b.ToTable("machine_families");
});
2019-05-27 03:17:11 +01:00
modelBuilder.Entity("Cicm.Database.Models.MachinePhoto", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd();
2019-05-27 03:17:11 +01:00
b.Property<string>("Author");
2019-05-27 03:17:11 +01:00
b.Property<string>("CameraManufacturer");
2019-05-27 03:17:11 +01:00
b.Property<string>("CameraModel");
2019-05-27 03:17:11 +01:00
b.Property<string>("ColorSpace");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("Comments");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("Contrast");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<DateTime?>("CreationDate");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<double?>("DigitalZoomRatio");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("ExifVersion");
2018-08-07 21:47:29 +01:00
2019-05-27 03:17:11 +01:00
b.Property<double?>("Exposure");
2018-08-07 21:47:29 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("ExposureMethod");
2018-08-07 21:47:29 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("ExposureProgram");
2018-08-07 21:47:29 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("Flash");
2019-05-27 03:17:11 +01:00
b.Property<int?>("Focal");
2019-05-27 03:17:11 +01:00
b.Property<int?>("FocalLength");
2019-05-27 03:17:11 +01:00
b.Property<string>("FocalLengthEquivalent");
2019-05-27 03:17:11 +01:00
b.Property<int?>("HorizontalResolution");
2019-05-27 03:17:11 +01:00
b.Property<int?>("IsoRating");
2019-05-27 03:17:11 +01:00
b.Property<string>("Lens");
2019-05-27 03:17:11 +01:00
b.Property<string>("License");
2019-05-27 03:17:11 +01:00
b.Property<string>("LightSource");
2019-05-27 03:17:11 +01:00
b.Property<int?>("MachineId");
2019-05-27 03:17:11 +01:00
b.Property<string>("MeteringMode");
2019-05-27 03:17:11 +01:00
b.Property<string>("Orientation");
2019-05-27 03:17:11 +01:00
b.Property<string>("PixelComposition");
2019-05-27 03:17:11 +01:00
b.Property<string>("Saturation");
2019-05-27 03:17:11 +01:00
b.Property<string>("SceneCaptureType");
2019-05-27 03:17:11 +01:00
b.Property<string>("SceneControl");
2019-05-27 03:17:11 +01:00
b.Property<string>("SensingMethod");
2019-05-27 03:17:11 +01:00
b.Property<string>("Sharpness");
2019-05-27 03:17:11 +01:00
b.Property<string>("SoftwareUsed");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("SubjectDistanceRange");
2019-05-27 03:17:11 +01:00
b.Property<DateTime>("UploadDate")
cyToken()
.ValueGeneratedOnAddOrUpdate();
2019-05-27 03:17:11 +01:00
b.Property<string>("UserId");
2019-05-27 03:17:11 +01:00
b.Property<int?>("VerticalResolution");
2019-05-27 03:17:11 +01:00
b.Property<string>("WhiteBalance");
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2019-05-27 03:17:11 +01:00
b.HasIndex("Author");
2019-05-27 03:17:11 +01:00
b.HasIndex("CameraManufacturer");
2019-05-27 03:17:11 +01:00
b.HasIndex("CameraModel");
2019-05-27 03:17:11 +01:00
b.HasIndex("ColorSpace");
2019-05-27 03:17:11 +01:00
b.HasIndex("Comments");
2019-05-27 03:17:11 +01:00
b.HasIndex("Contrast");
2019-05-27 03:17:11 +01:00
b.HasIndex("CreationDate");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("DigitalZoomRatio");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("ExifVersion");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Exposure");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("ExposureMethod");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("ExposureProgram");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Flash");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Focal");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("FocalLength");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("FocalLengthEquivalent");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("HorizontalResolution");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("IsoRating");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Lens");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("License");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("LightSource");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("MachineId");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("MeteringMode");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Orientation");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("PixelComposition");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Saturation");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("SceneCaptureType");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("SceneControl");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("SensingMethod");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Sharpness");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("SoftwareUsed");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("SubjectDistanceRange");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("UploadDate");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("UserId");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("VerticalResolution");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("WhiteBalance");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("MachinePhotos");
});
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
modelBuilder.Entity("Cicm.Database.Models.MemoryByMachine", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
.HasColumnType("bigint(20)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int>("MachineId")
.HasColumnName("machine")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<long?>("Size")
.HasColumnName("size")
.HasColumnType("bigint(20)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<double?>("Speed")
.HasColumnName("speed");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int>("Type")
.ValueGeneratedOnAdd()
.HasColumnName("type")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int>("Usage")
.ValueGeneratedOnAdd()
.HasColumnName("usage")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("MachineId")
.HasName("idx_memory_by_machine_machine");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Size")
.HasName("idx_memory_by_machine_size");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Speed")
.HasName("idx_memory_by_machine_speed");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Type")
.HasName("idx_memory_by_machine_type");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Usage")
.HasName("idx_memory_by_machine_usage");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("memory_by_machine");
});
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
modelBuilder.Entity("Cicm.Database.Models.MoneyDonation", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
.
(11)");
b.Property<string>("Donator")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnName("donator")
.HasColumnType("char(128)")
.HasDefaultValueS
b.Property<decimal>("Quantity")
.ValueGeneratedOnAdd()
.HasColumnName("quantity")
.HasColumnType("decimal(11,2)")
.HasDefaultValue
b.HasKey("Id");
b.HasIndex("Donator")
.HasName("idx_money_donations_donator");
b.HasIndex("Quantity")
.HasName("idx_money_donations_quantity");
b.ToTable("money_donations");
});
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
modelBuilder.Entity("Cicm.Database.Models.News", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
AddedId")
.ValueGeneratedOnAdd()
.HasColumnName("added_id")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<DateTime>("Date")
.HasColumnName("date")
.HasColumnType("datetime");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int>("Type")
.ValueGeneratedOnAdd()
.HasColumnName("type")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("AddedId")
.HasName("idx_news_ip");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Date")
.HasName("idx_news_date");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Type")
.HasName("idx_news_type");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("news");
});
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
modelBuilder.Entity("Cicm.Database.Models.OwnedComputer", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
.HasColumnType("int(11)");
b.Property<int>("Boxed")
.ValueGeneratedOnAdd()
.HasColumnName("boxed")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
b.Property<int>("Cap1")
.ValueGeneratedOnAdd()
.HasColumnName("cap1")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
b.Property<int>("Cap2")
.ValueGeneratedOnAdd()
.HasColumnName("cap2")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
b.Property<int>("Cpu1")
.ValueGeneratedOnAdd()
.HasColumnName("cpu1")
lumnType("int(11)")
.HasDefaultValueSql("'0'");
b.Property<int>("Cpu2")
.ValueGeneratedOnAdd()
.HasColumnName("cpu2")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
b.Property<string>("Date")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnName("date")
.HasColumnType("varchar(20)")
.HasDefaultValueSql("''");
b.Property<int>("DbId")
.ValueGeneratedOnAdd()
.HasColumnName("db_id")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
b.Property<int>("Disk1")
.ValueGeneratedOnAdd()
.HasColumnName("disk1")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
b.Property<int>("Disk2")
.ValueGeneratedOnAdd()
.HasColumnName("disk2")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
b.Property<int>("Manuals")
.ValueGeneratedOnAdd()
.HasColumnName("manuals")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
b.Property<decimal>("Mhz1")
.ValueGeneratedOnAdd()
.HasColumnName("mhz1")
.HasColumnType("decimal(10,0)")
.HasDefaultValueSql("'0'");
b.Property<decimal>("Mhz2")
neratedOnAdd()
.HasColumnName("mhz2")
.HasColumnType("decimal(10,0)")
.HasDefaultValueSql("'0'");
b.Property<int>("Ram")
dOnAdd()
.HasColumnName("ram")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
b.Property<string>("Rigid")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnName("rigid")
.HasColumnType("varchar(64)")
.HasDefaultValueSql("''");
b.Property<int>("Status")
.ValueGeneratedOnAdd()
.HasColumnName("status")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
b.Property<int>("Trade")
.ValueGeneratedOnAdd()
.HasColumnName("trade")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
b.Property<int>("Vram")
.ValueGeneratedOnAdd()
.HasColumnName("vram")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
b.HasKey("Id");
b.HasIndex("Boxed")
.HasName("idx_owned_computers_boxed");
b.HasIndex("Cap1")
.HasName("idx_owned_computers_cap1");
b.HasIndex("Cap2")
.HasName("idx_owned_computers_cap2");
b.HasIndex("Cpu1")
.HasName("idx_owned_computers_cpu1");
b.HasIndex("Cpu2")
.HasName("idx_owned_computers_cpu2");
b.HasIndex("Date")
.HasName("idx_owned_computers_date");
b.HasIndex("DbId")
.HasName("idx_owned_computers_db_id");
b.HasIndex("Disk1")
.HasName("idx_owned_computers_disk1");
b.HasIndex("Disk2")
.HasName("idx_owned_computers_disk2");
b.HasIndex("Manuals")
.HasName("idx_owned_computers_manuals");
b.HasIndex("Mhz1")
.HasName("idx_owned_computers_mhz1");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Mhz2")
.HasName("idx_owned_computers_mhz2");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Ram")
.HasName("idx_owned_computers_ram");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Rigid")
.HasName("idx_owned_computers_rigid");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Status")
.HasName("idx_owned_computers_status");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Trade")
.HasName("idx_owned_computers_trade");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Vram")
.HasName("idx_owned_computers_vram");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("owned_computers");
});
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
modelBuilder.Entity("Cicm.Database.Models.OwnedConsole", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
.HasColumnType("int(11)");
b.Property<int>("Boxed")
.ValueGeneratedOnAdd()
.HasColumnName("boxed")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
b.Property<string>("Date")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnName("date")
.HasColumnType("char(20)")
.HasDefaultValueSql("''");
b.Property<int>("DbId")
.ValueGeneratedOnAdd()
.HasColumnName("db_id")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
b.Property<int>("Manuals")
.ValueGeneratedOnAdd()
.HasColumnName("manuals")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
b.Property<int>("Status")
.ValueGeneratedOnAdd()
.HasColumnName("status")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
b.Property<int>("Trade")
.ValueGeneratedOnAdd()
.HasColumn
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
b.HasKey("Id");
b.HasIndex("Boxed"
.HasName("idx_owned_consoles_boxed");
b.HasIndex("Date")
.HasName("idx_owned_consoles_date");
c
b.HasIndex("Manuals")
.HasName("idx_owned_consoles_
ndex("Status")
.HasName("idx_owned_co
b.HasIndex("Trade")
.HasName("idx_owned_con
b
er.Entity("Cicm.Database.Models.Processor", b =>
{
)
.ValueGeneratedOnAdd()
.H
.HasColumnType("int(11)");
b.Prop
"
ype("int(11)");
b.Property<int?>("CompanyId")
"company")
.HasColumnType("int(11)");
>("Cores")
.HasColumnName("cores")
.HasColumnType("int(11)");
b.Property<int?>("DataBus")
.HasColumnName("dat
.HasColumnType("int(11)");
b.Property<float?>("DieSize")
.HasColumnName("die_size");
b.Property<int?>("FprSize"
.HasColumnName("FPR_size")
.HasColumnType("int(11)");
b.Property<int?>("Fprs")
.HasColumnName("FPRs")
.HasColumnType("int(11)");
b.Property<int?>("GprSize")
ame("GPR_size")
.HasColumnType("int(11)");
rty<int?>("Gprs")
.HasColumnName("GPRs")
.HasColumnType("int(11)");
b.Property<int?>("Ins
.HasColumnName("instruction_set")
.HasColumnType("int(11)");
b.Property<DateTime?>("Introduced")
.HasColumnName("introduced")
.HasColumnType("datetime");
b.P
1Data")
.HasColumnName("L1_data");
b.Property<float?>("L1Instruction")
.HasColumnName("L1_inst
b.Property<float?>("L2");
b.Property<float?>("L3");
b.Property<string>("
.
char(45)")
.HasMaxLength(45);
b.Pr
.IsRequired()
.ValueGeneratedOnAdd()
")
.HasCol
.HasDefaultValueSql("''")
.HasMaxLength(5
ty<s
.HasColumnType("varchar(45)")
b.Property<string>("Process")
.HasColumnName("
ColumnType("varchar(45)")
;
b.Property<float?>("ProcessNm")
.HasColumnName("process_nm");
b.Property<int?>("SimdRegisters")
.HasColumnName("SIM
.HasColumnType("int(11)");
b.Property<int?>("SimdSize")
.HasColumnName("SIMD_size")
.HasColumnType("int(11)");
b.Property<double?>("Speed")
.HasColumnName("speed");
b.Property<int?>("ThreadsPerCore")
.HasColumnName("threads_per_core")
.HasColumnType("int(11)");
>("Transistors")
.HasColumnName("transistors")
.HasColumnType("bigint(20)");
b.HasKey("Id");
b.HasIndex
.HasName("idx_processors_addr_bus");
b.HasInde
.HasName("idx_processors_company");
b.HasIndex("Cores")
.HasName("idx_processors_cores");
b.HasIndex("DataBus")
.HasName("idx_processors_data_bu
b.HasIndex("DieSize")
.HasName("idx_processors_die_size");
b.HasIndex("FprSize")
.HasName("idx_processors_FP
b.HasIndex("Fprs")
.HasName("idx_processors_FPR
b.HasIndex("GprSize")
.HasName("idx_processors_GPR_size");
b.HasIndex("Gprs")
.HasName("idx_processors_GPRs");
b.HasIndex("InstructionSetId")
("idx_processors_instruction_set");
b.HasIndex("Introduced")
.HasName("idx_processors_introduced");
b.HasIndex("L1Data"
.HasName("idx_processors_L1_data");
b.HasIndex("L1Inst
.HasName("idx_processors_L1_instruction");
b.HasIndex("L2")
)
x_processors_L3");
b.HasIndex("ModelCode")
model_code");
b.HasIndex("Name")
e");
b.HasIndex("Package")
.HasN
s
idx_processors_process");
b.HasIndex("ProcessNm")
processors_process_nm");
b.HasIndex("SimdRegisters")
essors_SIMD_registers");
)
.HasName("idx_processors_SIMD_size");
b.HasIndex
.Ha
PerCore")
.HasName("idx_processors_thread
asIndex("Transistors")
.HasName("i
b.ToTable("processors");
});
modelBuilder.Entity(
yMac
)
.ValueGeneratedOnAdd()
.HasColumnType("bigint(20)");
d")
.HasColumnName("machine")
.HasColumnType("i
Prop
sor")
.HasColumnType("int(11)");
")
.HasColumnName("speed");
b.HasIndex("MachineId")
.HasName("idx_processors_by_machine_machine");
b.HasIndex("ProcessorId")
.HasName("idx_processors_by_machin
b.HasIndex("Speed")
.HasName("idx_processors_by_machine_speed");
b.ToTable("pr
e");
});
2018-08-05 23:11:15 +01:00
2018-08-06 21:27:14 +01:00
modelBuilder.Entity("Cicm.Database.Models.Resolution", b =>
2019-05-27 03:17:11 +01:00
{
b.Prop
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValueSql("'0'");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<long?>("Colors")
.HasColumnName("colors")
.HasColumnType("bigint(20)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<bool>("Grayscale");
2019-05-19 15:56:12 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int>("Height")
.ValueGeneratedOnAdd()
.HasColumnName("height")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<long?>("Palette")
.HasColumnName("palette")
.HasColumnType("bigint(20)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int>("Width")
.ValueGeneratedOnAdd()
.HasColumnName("width")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Colors")
.HasName("idx_resolutions_colors");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Height")
.HasName("idx_resolutions_height");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Palette")
.HasName("idx_resolutions_palette");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Width")
.HasName("idx_resolutions_width");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Width", "Height")
.HasName("idx_resolutions_resolution");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Width", "Height", "Colors")
.HasName("idx_resolutions_resolution_with_color");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Width", "Height", "Colors", "Palette")
.HasName("idx_resolutions_resolution_with_color_and_palette");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("resolutions");
});
2018-08-05 23:11:15 +01:00
modelBuilder.Entity("Cicm.Database.Models.ResolutionsByGpu", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
.HasColumnType("bigint(20)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int>("GpuId")
.HasColumnName("gpu")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int>("ResolutionId")
.HasColumnName("resolution")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("GpuId")
.HasName("idx_resolutions_by_gpu_gpu");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("ResolutionId")
.HasName("idx_resolutions_by_gpu_resolution");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("resolutions_by_gpu");
});
2018-08-05 23:11:15 +01:00
modelBuilder.Entity("Cicm.Database.Models.SoundByMachine", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
.HasColumnType("bigint(20)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int>("MachineId")
.HasColumnName("machine")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int>("SoundSynthId")
.HasColumnName("sound_synth")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("MachineId")
.HasName("idx_sound_by_machine_machine");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("SoundSynthId")
.HasName("idx_sound_by_machine_sound_synth");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("sound_by_machine");
});
2018-08-05 23:11:15 +01:00
2018-08-06 21:27:14 +01:00
modelBuilder.Entity("Cicm.Database.Models.SoundSynth", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int?>("CompanyId")
.HasColumnName("company")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int?>("Depth")
.HasColumnName("depth")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<double?>("Frequency")
.HasColumnName("frequency");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<DateTime?>("Introduced")
.HasColumnName("introduced")
.HasColumnType("datetime");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("ModelCode")
.HasColumnName("model_code")
.HasColumnType("varchar(45)")
.HasMaxLength(45);
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("Name")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnName("name")
.HasColumnType("char(50)")
.HasDefaultValueSql("''")
.HasMaxLength(50);
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int?>("SquareWave")
.HasColumnName("square_wave")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int?>("Type")
.HasColumnName("type")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int?>("Voices")
.HasColumnName("voices")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int?>("WhiteNoise")
.HasColumnName("white_noise")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("CompanyId")
.HasName("idx_sound_synths_company");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Depth")
.HasName("idx_sound_synths_depth");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Frequency")
.HasName("idx_sound_synths_frequency");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Introduced")
.HasName("idx_sound_synths_introduced");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("ModelCode")
.HasName("idx_sound_synths_model_code");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Name")
.HasName("idx_sound_synths_name");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("SquareWave")
.HasName("idx_sound_synths_square_wave");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Type")
.HasName("idx_sound_synths_type");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Voices")
.HasName("idx_sound_synths_voices");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("WhiteNoise")
.HasName("idx_sound_synths_white_noise");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("sound_synths");
});
2018-08-05 23:11:15 +01:00
modelBuilder.Entity("Cicm.Database.Models.StorageByMachine", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("id")
.HasColumnType("bigint(20)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<long?>("Capacity")
.HasColumnName("capacity")
.HasColumnType("bigint(20)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int>("Interface")
.ValueGeneratedOnAdd()
.HasColumnName("interface")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int>("MachineId")
.HasColumnName("machine")
.HasColumnType("int(11)");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.Property<int>("Type")
.ValueGeneratedOnAdd()
.HasColumnName("type")
.HasColumnType("int(11)")
.HasDefaultValueSql("'0'");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Capacity")
.HasName("idx_storage_capacity");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Interface")
.HasName("idx_storage_interface");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("MachineId")
.HasName("idx_storage_machine");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("Type")
.HasName("idx_storage_type");
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("storage_by_machine");
});
2018-08-05 23:11:15 +01:00
2018-08-11 20:53:34 +01:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken();
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("Name")
.HasMaxLength(256);
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("NormalizedName")
.HasMaxLength(256);
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("NormalizedName")
.IsUnique()
.HasName("RoleNameIndex");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("AspNetRoles");
});
2018-08-11 20:53:34 +01:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("ClaimType");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("ClaimValue");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("RoleId")
.IsRequired();
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("RoleId");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("AspNetRoleClaims");
});
2018-08-11 20:53:34 +01:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUser", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
b.Property<int>("AccessFailedCount");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken();
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("Discriminator")
.IsRequired();
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("Email")
.HasMaxLength(256);
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<bool>("EmailConfirmed");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<bool>("LockoutEnabled");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<DateTimeOffset?>("LockoutEnd");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("NormalizedEmail")
.HasMaxLength(256);
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("NormalizedUserName")
.HasMaxLength(256);
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("PasswordHash");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("PhoneNumber");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<bool>("PhoneNumberConfirmed");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("SecurityStamp");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<bool>("TwoFactorEnabled");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("UserName")
.HasMaxLength(256);
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("NormalizedEmail")
.HasName("EmailIndex");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("NormalizedUserName")
.IsUnique()
.HasName("UserNameIndex");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("AspNetUsers");
b.HasDiscriminator<string>("Discriminator").HasValue("IdentityUser");
});
2018-08-11 20:53:34 +01:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("ClaimType");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("ClaimValue");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("UserId")
.IsRequired();
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("Id");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("UserId");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("AspNetUserClaims");
});
2018-08-11 20:53:34 +01:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<string>("LoginProvider")
.HasMaxLength(128);
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("ProviderKey")
.HasMaxLength(128);
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("ProviderDisplayName");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("UserId")
.IsRequired();
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("LoginProvider", "ProviderKey");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("UserId");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("AspNetUserLogins");
});
2018-08-11 20:53:34 +01:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<string>("UserId");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("RoleId");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("UserId", "RoleId");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.HasIndex("RoleId");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("AspNetUserRoles");
});
2018-08-11 20:53:34 +01:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
2019-05-27 03:17:11 +01:00
{
b.Property<string>("UserId");
b.Property<string>("LoginProvider")
.HasMaxLength(128);
b.Property<string>("Name")
.HasMaxLength(128);
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.Property<string>("Value");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.HasKey("UserId", "LoginProvider", "Name");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.ToTable("AspNetUserTokens");
});
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
modelBuilder.Entity("Cicm.Database.Models.ApplicationUser", b =>
{
b.HasBaseType("Microsoft.AspNetCore.Identity.IdentityUser");
2018-08-11 20:53:34 +01:00
2019-05-27 03:17:11 +01:00
b.HasDiscriminator().HasValue("ApplicationUser");
});
2018-08-11 20:53:34 +01:00
2018-08-06 21:27:14 +01:00
modelBuilder.Entity("Cicm.Database.Models.Company", b =>
2019-05-27 03:17:11 +01:00
{
b.HasOne("Cicm.Database.Models.Iso31661Numeric", "Country")
.WithMany("Companies")
.HasForeignKey("CountryId")
.HasConstraintName("fk_companies_country");
b.HasOne("Cicm.Database.Models.Company", "SoldTo")
.WithMany("InverseSoldToNavigation")
.HasForeignKey("SoldToId")
.HasConstraintName("fk_companies_sold_to");
});
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
modelBuilder.Entity("Cicm.Database.Models.CompanyDescription", b =>
{
b.HasOne("Cicm.Database.Models.Company", "Company")
.WithMany("Descriptions")
.HasForeignKey("CompanyId")
.OnDelete(DeleteBehavior.Cascade);
});
2019-05-18 17:49:44 +01:00
2019-05-27 03:17:11 +01:00
modelBuilder.Entity("Cicm.Database.Models.CompanyLogo", b =>
{
b.HasOne("Cicm.Database.Models.Company", "Company")
.WithMany("Logos")
.HasForeignKey("CompanyId")
.HasConstraintName("fk_company_logos_company1");
});
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
modelBuilder.Entity("Cicm.Database.Models.Gpu", b =>
{
b.HasOne("Cicm.Database.Models.Company", "Company")
.WithMany("Gpus")
.HasForeignKey("CompanyId")
.HasConstraintName("fk_gpus_company");
});
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
modelBuilder.Entity("Cicm.Database.Models.GpusByMachine", b =>
{
b.HasOne("Cicm.Database.Models.Gpu", "Gpu")
.WithMany("GpusByMachine")
.HasForeignKey("GpuId")
.HasConstraintName("fk_gpus_by_machine_gpu")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("Cicm.Database.Models.Machine", "Machine")
.WithMany("Gpus")
.HasForeignKey("MachineId")
.HasConstraintName("fk_gpus_by_machine_machine")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Cicm.Database.Models.InstructionSetExtensionsByProcessor", b =>
{
b.HasOne("Cicm.Database.Models.InstructionSetExtension", "Extension")
.WithMany("InstructionSetExtensionsByProcessor")
.HasForeignKey("ExtensionId")
.HasConstraintName("fk_extension_extension_id");
b.HasOne("Cicm.Database.Models.Processor", "Processor")
.WithMany("InstructionSetExtensions")
.HasForeignKey("ProcessorId")
.HasConstraintName("fk_extension_processor_id");
});
2018-08-07 21:47:29 +01:00
modelBuilder.Entity("Cicm.Database.Models.Machine", b =>
2019-05-27 03:17:11 +01:00
{
b.HasOne("Cicm.Database.Models.Company", "Company")
.WithMany("Machines")
.HasForeignKey("CompanyId")
.HasConstraintName("fk_machines_company");
b.HasOne("Cicm.Database.Models.MachineFamily", "Family")
.WithMany("Machines")
.HasForeignKey("FamilyId")
.HasConstraintName("fk_machines_family");
});
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
modelBuilder.Entity("Cicm.Database.Models.MachineFamily", b =>
{
b.HasOne("Cicm.Database.Models.Company", "Company")
.WithMany("MachineFamilies")
.HasForeignKey("CompanyId")
.HasConstraintName("fk_machine_families_company")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Cicm.Database.Models.MachinePhoto", b =>
{
b.HasOne("Cicm.Database.Models.Machine", "Machine")
.WithMany("Photos")
.HasForeignKey("MachineId")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("Cicm.Database.Models.ApplicationUser", "User")
.WithMany("Photos")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.SetNull);
});
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
modelBuilder.Entity("Cicm.Database.Models.MemoryByMachine", b =>
{
b.HasOne("Cicm.Database.Models.Machine", "Machine")
.WithMany("Memory")
.HasForeignKey("MachineId")
.HasConstraintName("fk_memory_by_machine_machine")
.OnDelete(DeleteBehavior.Cascade);
});
2018-08-05 23:11:15 +01:00
2019-05-27 03:17:11 +01:00
modelBuilder.Entity("Cicm.Database.Models.Processor", b =>
{
b.HasOne("Cicm.Database.Models.Company", "Company")
.WithMany("Processors")
.HasForeignKey("CompanyId")
.HasConstraintName("fk_processors_company");
b.HasOne("Cicm.Database.Models.InstructionSet", "InstructionSet")
.WithMany("Processors")
.HasForeignKey("InstructionSetId")
.HasConstraintName("fk_processors_instruction_set");
});
2019-05-18 17:49:44 +01:00
2019-05-27 03:17:11 +01:00
modelBuilder.Entity("Cicm.Database.Models.ProcessorsByMachine", b =>
{
b.HasOne("Cicm.Database.Models.Machine", "Machine")
.WithMany("Processors")
.HasForeignKey("MachineId")
.HasConstraintName("fk_processors_by_machine_machine")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("Cicm.Database.Models.Processor", "Processor")
.WithMany("ProcessorsByMachine")
.HasForeignKey("ProcessorId")
.HasConstraintName("fk_processors_by_machine_processor")
.OnDelete(DeleteBehavior.Cascade);
});
2019-05-18 17:49:44 +01:00
modelBuilder.Entity("Cicm.Database.Models.ResolutionsByGpu", b =>
2019-05-27 03:17:11 +01:00
{
b.HasOne("Cicm.Database.Models.Gpu", "Gpu")
.WithMany("ResolutionsByGpu")
.HasForeignKey("GpuId")
.HasConstraintName("fk_resolutions_by_gpu_gpu")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("Cicm.Database.Models.Resolution", "Resolution")
.WithMany("ResolutionsByGpu")
.HasForeignKey("ResolutionId")
.HasConstraintName("fk_resolutions_by_gpu_resolution")
.OnDelete(DeleteBehavior.Cascade);
});
2019-05-18 17:49:44 +01:00
modelBuilder.Entity("Cicm.Database.Models.SoundByMachine", b =>
2019-05-27 03:17:11 +01:00
{
b.HasOne("Cicm.Database.Models.Machine", "Machine")
.WithMany("Sound")
.HasForeignKey("MachineId")
.HasConstraintName("fk_sound_by_machine_machine")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("Cicm.Database.Models.SoundSynth", "SoundSynth")
.WithMany("SoundByMachine")
.HasForeignKey("SoundSynthId")
.HasConstraintName("fk_sound_by_machine_sound_synth")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Cicm.Database.Models.SoundSynth", b =>
{
b.HasOne("Cicm.Database.Models.Company", "Company")
.WithMany("SoundSynths")
.HasForeignKey("CompanyId")
.HasConstraintName("fk_sound_synths_company");
});
modelBuilder.Entity("Cicm.Database.Models.StorageByMachine", b =>
{
b.HasOne("Cicm.Database.Models.Machine", "Machine")
.WithMany("Storage")
.HasForeignKey("MachineId")
.HasConstraintName("fk_storage_by_machine_machine")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
2018-08-11 20:53:34 +01:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
2019-05-27 03:17:11 +01:00
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
#pragma warning restore 612, 618
2018-08-05 23:11:15 +01:00
}
}
2019-05-27 03:17:11 +01:00
}