From 574176ee4cbde5822af8ee6ca7072fc7aa5ea05a Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Mon, 27 May 2019 18:03:08 +0100 Subject: [PATCH] Use license table in machine photos. --- ...65154_UseLicenseInMachinePhoto.Designer.cs | 5404 +++++++++++++++++ ...20190527165154_UseLicenseInMachinePhoto.cs | 34 + .../Migrations/cicmContextModelSnapshot.cs | 7 +- Cicm.Database/Models/License.cs | 4 +- Cicm.Database/Models/MachinePhoto.cs | 5 +- Cicm.Database/Models/cicmContext.cs | 4 +- cicm_web/cicm_web.csproj | 2 +- 7 files changed, 5452 insertions(+), 8 deletions(-) create mode 100644 Cicm.Database/Migrations/20190527165154_UseLicenseInMachinePhoto.Designer.cs create mode 100644 Cicm.Database/Migrations/20190527165154_UseLicenseInMachinePhoto.cs diff --git a/Cicm.Database/Migrations/20190527165154_UseLicenseInMachinePhoto.Designer.cs b/Cicm.Database/Migrations/20190527165154_UseLicenseInMachinePhoto.Designer.cs new file mode 100644 index 00000000..9bb66a17 --- /dev/null +++ b/Cicm.Database/Migrations/20190527165154_UseLicenseInMachinePhoto.Designer.cs @@ -0,0 +1,5404 @@ +// +using System; +using Cicm.Database.Models; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Cicm.Database.Migrations +{ + [DbContext(typeof(cicmContext))] + [Migration("20190527165154_UseLicenseInMachinePhoto")] + partial class UseLicenseInMachinePhoto + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.2.4-servicing-10062") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("Cicm.Database.Models.BrowserTest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("Agif") + .ValueGeneratedOnAdd() + .HasColumnName("agif") + .HasColumnType("tinyint(1)") + .HasDefaultValueSql("'0'"); + + b.Property("Browser") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("browser") + .HasColumnType("varchar(64)") + .HasDefaultValueSql("''") + .HasMaxLength(64); + + b.Property("Colors") + .ValueGeneratedOnAdd() + .HasColumnName("colors") + .HasColumnType("tinyint(1)") + .HasDefaultValueSql("'0'"); + + b.Property("Flash") + .ValueGeneratedOnAdd() + .HasColumnName("flash") + .HasColumnType("tinyint(1)") + .HasDefaultValueSql("'0'"); + + b.Property("Frames") + .ValueGeneratedOnAdd() + .HasColumnName("frames") + .HasColumnType("tinyint(1)") + .HasDefaultValueSql("'0'"); + + b.Property("Gif87") + .ValueGeneratedOnAdd() + .HasColumnName("gif87") + .HasColumnType("tinyint(1)") + .HasDefaultValueSql("'0'"); + + b.Property("Gif89") + .ValueGeneratedOnAdd() + .HasColumnName("gif89") + .HasColumnType("tinyint(1)") + .HasDefaultValueSql("'0'"); + + b.Property("Jpeg") + .ValueGeneratedOnAdd() + .HasColumnName("jpeg") + .HasColumnType("tinyint(1)") + .HasDefaultValueSql("'0'"); + + b.Property("Js") + .ValueGeneratedOnAdd() + .HasColumnName("js") + .HasColumnType("tinyint(1)") + .HasDefaultValueSql("'0'"); + + b.Property("Os") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("os") + .HasColumnType("varchar(32)") + .HasDefaultValueSql("''") + .HasMaxLength(32); + + b.Property("Platform") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("platform") + .HasColumnType("varchar(8)") + .HasDefaultValueSql("''") + .HasMaxLength(8); + + b.Property("Png") + .ValueGeneratedOnAdd() + .HasColumnName("png") + .HasColumnType("tinyint(1)") + .HasDefaultValueSql("'0'"); + + b.Property("Pngt") + .ValueGeneratedOnAdd() + .HasColumnName("pngt") + .HasColumnType("tinyint(1)") + .HasDefaultValueSql("'0'"); + + b.Property("Table") + .ValueGeneratedOnAdd() + .HasColumnName("table") + .HasColumnType("tinyint(1)") + .HasDefaultValueSql("'0'"); + + b.Property("UserAgent") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("user_agent") + .HasColumnType("varchar(128)") + .HasDefaultValueSql("''") + .HasMaxLength(128); + + b.Property("Version") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("version") + .HasColumnType("varchar(16)") + .HasDefaultValueSql("''") + .HasMaxLength(16); + + b.HasKey("Id"); + + b.HasIndex("Browser") + .HasName("idx_browser_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"); + }); + + modelBuilder.Entity("Cicm.Database.Models.CicmDb", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("Updated") + .ValueGeneratedOnAdd() + .HasColumnName("updated") + .HasColumnType("datetime") + .HasDefaultValueSql("'CURRENT_TIMESTAMP'"); + + b.Property("Version") + .HasColumnName("version") + .HasColumnType("int(11)"); + + b.HasKey("Id"); + + b.ToTable("cicm_db"); + }); + + modelBuilder.Entity("Cicm.Database.Models.Company", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("Address") + .HasColumnName("address") + .HasColumnType("varchar(80)") + .HasMaxLength(80); + + b.Property("City") + .HasColumnName("city") + .HasColumnType("varchar(80)") + .HasMaxLength(80); + + b.Property("CountryId") + .HasColumnName("country") + .HasColumnType("smallint(3)"); + + b.Property("Facebook") + .HasColumnName("facebook") + .HasColumnType("varchar(45)") + .HasMaxLength(45); + + b.Property("Founded") + .HasColumnName("founded") + .HasColumnType("datetime"); + + b.Property("Name") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("name") + .HasColumnType("varchar(128)") + .HasDefaultValueSql("''"); + + b.Property("PostalCode") + .HasColumnName("postal_code") + .HasColumnType("varchar(25)") + .HasMaxLength(25); + + b.Property("Province") + .HasColumnName("province") + .HasColumnType("varchar(80)") + .HasMaxLength(80); + + b.Property("Sold") + .HasColumnName("sold") + .HasColumnType("datetime"); + + b.Property("SoldToId") + .HasColumnName("sold_to") + .HasColumnType("int(11)"); + + b.Property("Status") + .HasColumnName("status") + .HasColumnType("int(11)"); + + b.Property("Twitter") + .HasColumnName("twitter") + .HasColumnType("varchar(45)") + .HasMaxLength(45); + + b.Property("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_sold_to"); + + b.HasIndex("Status") + .HasName("idx_companies_status"); + + b.HasIndex("Twitter") + .HasName("idx_companies_twitter"); + + b.HasIndex("Website") + .HasName("idx_companies_website"); + + b.ToTable("companies"); + }); + + modelBuilder.Entity("Cicm.Database.Models.CompanyDescription", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CompanyId"); + + b.Property("Html") + .HasMaxLength(262144); + + b.Property("Text") + .IsRequired() + .HasMaxLength(262144); + + b.HasKey("Id"); + + b.HasIndex("CompanyId"); + + b.HasIndex("Text") + .HasAnnotation("MySql:FullTextIndex", true); + + b.ToTable("CompanyDescriptions"); + }); + + modelBuilder.Entity("Cicm.Database.Models.CompanyLogo", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("CompanyId") + .HasColumnName("company_id") + .HasColumnType("int(11)"); + + b.Property("Guid") + .HasColumnName("logo_guid") + .HasColumnType("char(36)"); + + b.Property("Year") + .HasColumnName("year") + .HasColumnType("int(4)"); + + b.HasKey("Id", "CompanyId", "Guid"); + + b.HasIndex("CompanyId") + .HasName("idx_company_id"); + + b.HasIndex("Guid") + .HasName("idx_guid"); + + b.HasIndex("Id") + .IsUnique() + .HasName("idx_id"); + + b.ToTable("company_logos"); + }); + + modelBuilder.Entity("Cicm.Database.Models.Forbidden", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("Browser") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("browser") + .HasColumnType("char(128)") + .HasDefaultValueSql("''"); + + b.Property("Date") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("date") + .HasColumnType("char(20)") + .HasDefaultValueSql("''"); + + b.Property("Ip") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("ip") + .HasColumnType("char(16)") + .HasDefaultValueSql("''"); + + b.Property("Referer") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("referer") + .HasColumnType("char(255)") + .HasDefaultValueSql("''"); + + b.HasKey("Id"); + + b.HasIndex("Browser") + .HasName("idx_forbidden_browser"); + + b.HasIndex("Date") + .HasName("idx_forbidden_date"); + + b.HasIndex("Ip") + .HasName("idx_forbidden_ip"); + + b.HasIndex("Referer") + .HasName("idx_forbidden_referer"); + + b.ToTable("forbidden"); + }); + + modelBuilder.Entity("Cicm.Database.Models.Gpu", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("CompanyId") + .HasColumnName("company") + .HasColumnType("int(11)"); + + b.Property("DieSize") + .HasColumnName("die_size"); + + b.Property("Introduced") + .HasColumnName("introduced") + .HasColumnType("datetime"); + + b.Property("ModelCode") + .HasColumnName("model_code") + .HasColumnType("varchar(45)") + .HasMaxLength(45); + + b.Property("Name") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("name") + .HasColumnType("char(128)") + .HasDefaultValueSql("''") + .HasMaxLength(128); + + b.Property("Package") + .HasColumnName("package") + .HasColumnType("varchar(45)") + .HasMaxLength(45); + + b.Property("Process") + .HasColumnName("process") + .HasColumnType("varchar(45)") + .HasMaxLength(45); + + b.Property("ProcessNm") + .HasColumnName("process_nm"); + + b.Property("Transistors") + .HasColumnName("transistors") + .HasColumnType("bigint(20)"); + + b.HasKey("Id"); + + b.HasIndex("CompanyId") + .HasName("idx_gpus_company"); + + b.HasIndex("DieSize") + .HasName("idx_gpus_die_size"); + + b.HasIndex("Introduced") + .HasName("idx_gpus_introduced"); + + b.HasIndex("ModelCode") + .HasName("idx_gpus_model_code"); + + b.HasIndex("Name") + .HasName("idx_gpus_name"); + + b.HasIndex("Package") + .HasName("idx_gpus_package"); + + b.HasIndex("Process") + .HasName("idx_gpus_process"); + + b.HasIndex("ProcessNm") + .HasName("idx_gpus_process_nm"); + + b.HasIndex("Transistors") + .HasName("idx_gpus_transistors"); + + b.ToTable("gpus"); + }); + + modelBuilder.Entity("Cicm.Database.Models.GpusByMachine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("bigint(20)"); + + b.Property("GpuId") + .HasColumnName("gpu") + .HasColumnType("int(11)"); + + b.Property("MachineId") + .HasColumnName("machine") + .HasColumnType("int(11)"); + + b.HasKey("Id"); + + b.HasIndex("GpuId") + .HasName("idx_gpus_by_machine_gpus"); + + b.HasIndex("MachineId") + .HasName("idx_gpus_by_machine_machine"); + + b.ToTable("gpus_by_machine"); + }); + + modelBuilder.Entity("Cicm.Database.Models.InstructionSet", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("Name") + .IsRequired() + .HasColumnName("instruction_set") + .HasColumnType("varchar(45)") + .HasMaxLength(45); + + b.HasKey("Id"); + + b.ToTable("instruction_sets"); + }); + + modelBuilder.Entity("Cicm.Database.Models.InstructionSetExtension", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("Extension") + .IsRequired() + .HasColumnName("extension") + .HasColumnType("varchar(45)") + .HasMaxLength(45); + + b.HasKey("Id"); + + b.ToTable("instruction_set_extensions"); + }); + + modelBuilder.Entity("Cicm.Database.Models.InstructionSetExtensionsByProcessor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("ProcessorId") + .HasColumnName("processor_id") + .HasColumnType("int(11)"); + + b.Property("ExtensionId") + .HasColumnName("extension_id") + .HasColumnType("int(11)"); + + b.HasKey("Id", "ProcessorId", "ExtensionId"); + + b.HasIndex("ExtensionId") + .HasName("idx_setextension_extension"); + + b.HasIndex("ProcessorId") + .HasName("idx_setextension_processor"); + + b.ToTable("instruction_set_extensions_by_processor"); + }); + + modelBuilder.Entity("Cicm.Database.Models.Iso31661Numeric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("smallint(3)"); + + b.Property("Name") + .IsRequired() + .HasColumnName("name") + .HasColumnType("varchar(64)") + .HasMaxLength(64); + + b.HasKey("Id"); + + b.HasIndex("Name") + .HasName("idx_name"); + + b.ToTable("iso3166_1_numeric"); + }); + + modelBuilder.Entity("Cicm.Database.Models.License", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("FsfApproved"); + + b.Property("Link") + .HasMaxLength(512); + + b.Property("Name") + .IsRequired(); + + b.Property("OsiApproved"); + + b.Property("SPDX"); + + b.Property("Text") + .HasColumnType("longtext") + .HasMaxLength(131072); + + b.HasKey("Id"); + + b.HasIndex("FsfApproved"); + + b.HasIndex("Name"); + + b.HasIndex("OsiApproved"); + + b.HasIndex("SPDX"); + + b.ToTable("Licenses"); + + b.HasData( + new + { + Id = 1, + FsfApproved = false, + Name = "Fair use", + OsiApproved = false + }, + new + { + Id = 2, + FsfApproved = false, + Name = "Advertisement use", + OsiApproved = false + }, + new + { + Id = 3, + FsfApproved = false, + Name = "All rights reserved", + OsiApproved = false + }, + new + { + Id = 4, + FsfApproved = false, + Link = "https://spdx.org/licenses/0BSD.html#licenseText", + Name = "BSD Zero Clause License", + OsiApproved = true, + SPDX = "0BSD" + }, + new + { + Id = 5, + FsfApproved = false, + Link = "https://spdx.org/licenses/AAL.html#licenseText", + Name = "Attribution Assurance License", + OsiApproved = true, + SPDX = "AAL" + }, + new + { + Id = 6, + FsfApproved = false, + Link = "https://spdx.org/licenses/Abstyles.html#licenseText", + Name = "Abstyles License", + OsiApproved = false, + SPDX = "Abstyles" + }, + new + { + Id = 7, + FsfApproved = false, + Link = "https://spdx.org/licenses/Adobe-2006.html#licenseText", + Name = "Adobe Systems Incorporated Source Code License Agreement", + OsiApproved = false, + SPDX = "Adobe-2006" + }, + new + { + Id = 8, + FsfApproved = false, + Link = "https://spdx.org/licenses/Adobe-Glyph.html#licenseText", + Name = "Adobe Glyph List License", + OsiApproved = false, + SPDX = "Adobe-Glyph" + }, + new + { + Id = 9, + FsfApproved = false, + Link = "https://spdx.org/licenses/ADSL.html#licenseText", + Name = "Amazon Digital Services License", + OsiApproved = false, + SPDX = "ADSL" + }, + new + { + Id = 10, + FsfApproved = true, + Link = "https://spdx.org/licenses/AFL-1.1.html#licenseText", + Name = "Academic Free License v1.1", + OsiApproved = true, + SPDX = "AFL-1.1" + }, + new + { + Id = 11, + FsfApproved = true, + Link = "https://spdx.org/licenses/AFL-1.2.html#licenseText", + Name = "Academic Free License v1.2", + OsiApproved = true, + SPDX = "AFL-1.2" + }, + new + { + Id = 12, + FsfApproved = true, + Link = "https://spdx.org/licenses/AFL-2.0.html#licenseText", + Name = "Academic Free License v2.0", + OsiApproved = true, + SPDX = "AFL-2.0" + }, + new + { + Id = 13, + FsfApproved = true, + Link = "https://spdx.org/licenses/AFL-2.1.html#licenseText", + Name = "Academic Free License v2.1", + OsiApproved = true, + SPDX = "AFL-2.1" + }, + new + { + Id = 14, + FsfApproved = true, + Link = "https://spdx.org/licenses/AFL-3.0.html#licenseText", + Name = "Academic Free License v3.0", + OsiApproved = true, + SPDX = "AFL-3.0" + }, + new + { + Id = 15, + FsfApproved = false, + Link = "https://spdx.org/licenses/Afmparse.html#licenseText", + Name = "Afmparse License", + OsiApproved = false, + SPDX = "Afmparse" + }, + new + { + Id = 16, + FsfApproved = false, + Link = "https://spdx.org/licenses/AGPL-1.0-only.html#licenseText", + Name = "Affero General Public License v1.0 only", + OsiApproved = false, + SPDX = "AGPL-1.0-only" + }, + new + { + Id = 17, + FsfApproved = false, + Link = "https://spdx.org/licenses/AGPL-1.0-or-later.html#licenseText", + Name = "Affero General Public License v1.0 or later", + OsiApproved = false, + SPDX = "AGPL-1.0-or-later" + }, + new + { + Id = 18, + FsfApproved = true, + Link = "https://spdx.org/licenses/AGPL-3.0-only.html#licenseText", + Name = "GNU Affero General Public License v3.0 only", + OsiApproved = true, + SPDX = "AGPL-3.0-only" + }, + new + { + Id = 19, + FsfApproved = true, + Link = "https://spdx.org/licenses/AGPL-3.0-or-later.html#licenseText", + Name = "GNU Affero General Public License v3.0 or later", + OsiApproved = true, + SPDX = "AGPL-3.0-or-later" + }, + new + { + Id = 20, + FsfApproved = false, + Link = "https://spdx.org/licenses/Aladdin.html#licenseText", + Name = "Aladdin Free Public License", + OsiApproved = false, + SPDX = "Aladdin" + }, + new + { + Id = 21, + FsfApproved = false, + Link = "https://spdx.org/licenses/AMDPLPA.html#licenseText", + Name = "AMD's plpa_map.c License", + OsiApproved = false, + SPDX = "AMDPLPA" + }, + new + { + Id = 22, + FsfApproved = false, + Link = "https://spdx.org/licenses/AML.html#licenseText", + Name = "Apple MIT License", + OsiApproved = false, + SPDX = "AML" + }, + new + { + Id = 23, + FsfApproved = false, + Link = "https://spdx.org/licenses/AMPAS.html#licenseText", + Name = "Academy of Motion Picture Arts and Sciences BSD", + OsiApproved = false, + SPDX = "AMPAS" + }, + new + { + Id = 24, + FsfApproved = false, + Link = "https://spdx.org/licenses/ANTLR-PD.html#licenseText", + Name = "ANTLR Software Rights Notice", + OsiApproved = false, + SPDX = "ANTLR-PD" + }, + new + { + Id = 25, + FsfApproved = true, + Link = "https://spdx.org/licenses/Apache-1.0.html#licenseText", + Name = "Apache License 1.0", + OsiApproved = false, + SPDX = "Apache-1.0" + }, + new + { + Id = 26, + FsfApproved = true, + Link = "https://spdx.org/licenses/Apache-1.1.html#licenseText", + Name = "Apache License 1.1", + OsiApproved = true, + SPDX = "Apache-1.1" + }, + new + { + Id = 27, + FsfApproved = true, + Link = "https://spdx.org/licenses/Apache-2.0.html#licenseText", + Name = "Apache License 2.0", + OsiApproved = true, + SPDX = "Apache-2.0" + }, + new + { + Id = 28, + FsfApproved = false, + Link = "https://spdx.org/licenses/APAFML.html#licenseText", + Name = "Adobe Postscript AFM License", + OsiApproved = false, + SPDX = "APAFML" + }, + new + { + Id = 29, + FsfApproved = false, + Link = "https://spdx.org/licenses/APL-1.0.html#licenseText", + Name = "Adaptive Public License 1.0", + OsiApproved = true, + SPDX = "APL-1.0" + }, + new + { + Id = 30, + FsfApproved = false, + Link = "https://spdx.org/licenses/APSL-1.0.html#licenseText", + Name = "Apple Public Source License 1.0", + OsiApproved = true, + SPDX = "APSL-1.0" + }, + new + { + Id = 31, + FsfApproved = false, + Link = "https://spdx.org/licenses/APSL-1.1.html#licenseText", + Name = "Apple Public Source License 1.1", + OsiApproved = true, + SPDX = "APSL-1.1" + }, + new + { + Id = 32, + FsfApproved = false, + Link = "https://spdx.org/licenses/APSL-1.2.html#licenseText", + Name = "Apple Public Source License 1.2", + OsiApproved = true, + SPDX = "APSL-1.2" + }, + new + { + Id = 33, + FsfApproved = true, + Link = "https://spdx.org/licenses/APSL-2.0.html#licenseText", + Name = "Apple Public Source License 2.0", + OsiApproved = true, + SPDX = "APSL-2.0" + }, + new + { + Id = 34, + FsfApproved = false, + Link = "https://spdx.org/licenses/Artistic-1.0.html#licenseText", + Name = "Artistic License 1.0", + OsiApproved = true, + SPDX = "Artistic-1.0" + }, + new + { + Id = 35, + FsfApproved = false, + Link = "https://spdx.org/licenses/Artistic-1.0-cl8.html#licenseText", + Name = "Artistic License 1.0 w/clause 8", + OsiApproved = true, + SPDX = "Artistic-1.0-cl8" + }, + new + { + Id = 36, + FsfApproved = false, + Link = "https://spdx.org/licenses/Artistic-1.0-Perl.html#licenseText", + Name = "Artistic License 1.0 (Perl)", + OsiApproved = true, + SPDX = "Artistic-1.0-Perl" + }, + new + { + Id = 37, + FsfApproved = true, + Link = "https://spdx.org/licenses/Artistic-2.0.html#licenseText", + Name = "Artistic License 2.0", + OsiApproved = true, + SPDX = "Artistic-2.0" + }, + new + { + Id = 38, + FsfApproved = false, + Link = "https://spdx.org/licenses/Bahyph.html#licenseText", + Name = "Bahyph License", + OsiApproved = false, + SPDX = "Bahyph" + }, + new + { + Id = 39, + FsfApproved = false, + Link = "https://spdx.org/licenses/Barr.html#licenseText", + Name = "Barr License", + OsiApproved = false, + SPDX = "Barr" + }, + new + { + Id = 40, + FsfApproved = false, + Link = "https://spdx.org/licenses/Beerware.html#licenseText", + Name = "Beerware License", + OsiApproved = false, + SPDX = "Beerware" + }, + new + { + Id = 41, + FsfApproved = false, + Link = "https://spdx.org/licenses/BitTorrent-1.0.html#licenseText", + Name = "BitTorrent Open Source License v1.0", + OsiApproved = false, + SPDX = "BitTorrent-1.0" + }, + new + { + Id = 42, + FsfApproved = true, + Link = "https://spdx.org/licenses/BitTorrent-1.1.html#licenseText", + Name = "BitTorrent Open Source License v1.1", + OsiApproved = false, + SPDX = "BitTorrent-1.1" + }, + new + { + Id = 43, + FsfApproved = false, + Link = "https://spdx.org/licenses/Borceux.html#licenseText", + Name = "Borceux license", + OsiApproved = false, + SPDX = "Borceux" + }, + new + { + Id = 44, + FsfApproved = false, + Link = "https://spdx.org/licenses/BSD-1-Clause.html#licenseText", + Name = "BSD 1-Clause License", + OsiApproved = false, + SPDX = "BSD-1-Clause" + }, + new + { + Id = 45, + FsfApproved = false, + Link = "https://spdx.org/licenses/BSD-2-Clause.html#licenseText", + Name = "BSD 2-Clause \"Simplified\" License", + OsiApproved = true, + SPDX = "BSD-2-Clause" + }, + new + { + Id = 46, + FsfApproved = true, + Link = "https://spdx.org/licenses/BSD-2-Clause-FreeBSD.html#licenseText", + Name = "BSD 2-Clause FreeBSD License", + OsiApproved = false, + SPDX = "BSD-2-Clause-FreeBSD" + }, + new + { + Id = 47, + FsfApproved = false, + Link = "https://spdx.org/licenses/BSD-2-Clause-NetBSD.html#licenseText", + Name = "BSD 2-Clause NetBSD License", + OsiApproved = false, + SPDX = "BSD-2-Clause-NetBSD" + }, + new + { + Id = 48, + FsfApproved = false, + Link = "https://spdx.org/licenses/BSD-2-Clause-Patent.html#licenseText", + Name = "BSD-2-Clause Plus Patent License", + OsiApproved = true, + SPDX = "BSD-2-Clause-Patent" + }, + new + { + Id = 49, + FsfApproved = true, + Link = "https://spdx.org/licenses/BSD-3-Clause.html#licenseText", + Name = "BSD 3-Clause \"New\" or \"Revised\" License", + OsiApproved = true, + SPDX = "BSD-3-Clause" + }, + new + { + Id = 50, + FsfApproved = false, + Link = "https://spdx.org/licenses/BSD-3-Clause-Attribution.html#licenseText", + Name = "BSD with attribution", + OsiApproved = false, + SPDX = "BSD-3-Clause-Attribution" + }, + new + { + Id = 51, + FsfApproved = true, + Link = "https://spdx.org/licenses/BSD-3-Clause-Clear.html#licenseText", + Name = "BSD 3-Clause Clear License", + OsiApproved = false, + SPDX = "BSD-3-Clause-Clear" + }, + new + { + Id = 52, + FsfApproved = false, + Link = "https://spdx.org/licenses/BSD-3-Clause-LBNL.html#licenseText", + Name = "Lawrence Berkeley National Labs BSD variant license", + OsiApproved = false, + SPDX = "BSD-3-Clause-LBNL" + }, + new + { + Id = 53, + FsfApproved = false, + Link = "https://spdx.org/licenses/BSD-3-Clause-No-Nuclear-License.html#licenseText", + Name = "BSD 3-Clause No Nuclear License", + OsiApproved = false, + SPDX = "BSD-3-Clause-No-Nuclear-License" + }, + new + { + Id = 54, + FsfApproved = false, + Link = "https://spdx.org/licenses/BSD-3-Clause-No-Nuclear-License-2014.html#licenseText", + Name = "BSD 3-Clause No Nuclear License 2014", + OsiApproved = false, + SPDX = "BSD-3-Clause-No-Nuclear-License-2014" + }, + new + { + Id = 55, + FsfApproved = false, + Link = "https://spdx.org/licenses/BSD-3-Clause-No-Nuclear-Warranty.html#licenseText", + Name = "BSD 3-Clause No Nuclear Warranty", + OsiApproved = false, + SPDX = "BSD-3-Clause-No-Nuclear-Warranty" + }, + new + { + Id = 56, + FsfApproved = true, + Link = "https://spdx.org/licenses/BSD-4-Clause.html#licenseText", + Name = "BSD 4-Clause \"Original\" or \"Old\" License", + OsiApproved = false, + SPDX = "BSD-4-Clause" + }, + new + { + Id = 57, + FsfApproved = false, + Link = "https://spdx.org/licenses/BSD-4-Clause-UC.html#licenseText", + Name = "BSD-4-Clause (University of California-Specific)", + OsiApproved = false, + SPDX = "BSD-4-Clause-UC" + }, + new + { + Id = 58, + FsfApproved = false, + Link = "https://spdx.org/licenses/BSD-Protection.html#licenseText", + Name = "BSD Protection License", + OsiApproved = false, + SPDX = "BSD-Protection" + }, + new + { + Id = 59, + FsfApproved = false, + Link = "https://spdx.org/licenses/BSD-Source-Code.html#licenseText", + Name = "BSD Source Code Attribution", + OsiApproved = false, + SPDX = "BSD-Source-Code" + }, + new + { + Id = 60, + FsfApproved = true, + Link = "https://spdx.org/licenses/BSL-1.0.html#licenseText", + Name = "Boost Software License 1.0", + OsiApproved = true, + SPDX = "BSL-1.0" + }, + new + { + Id = 61, + FsfApproved = false, + Link = "https://spdx.org/licenses/bzip2-1.0.5.html#licenseText", + Name = "bzip2 and libbzip2 License v1.0.5", + OsiApproved = false, + SPDX = "bzip2-1.0.5" + }, + new + { + Id = 62, + FsfApproved = false, + Link = "https://spdx.org/licenses/bzip2-1.0.6.html#licenseText", + Name = "bzip2 and libbzip2 License v1.0.6", + OsiApproved = false, + SPDX = "bzip2-1.0.6" + }, + new + { + Id = 63, + FsfApproved = false, + Link = "https://spdx.org/licenses/Caldera.html#licenseText", + Name = "Caldera License", + OsiApproved = false, + SPDX = "Caldera" + }, + new + { + Id = 64, + FsfApproved = false, + Link = "https://spdx.org/licenses/CATOSL-1.1.html#licenseText", + Name = "Computer Associates Trusted Open Source License 1.1", + OsiApproved = true, + SPDX = "CATOSL-1.1" + }, + new + { + Id = 65, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-1.0.html#licenseText", + Name = "Creative Commons Attribution 1.0 Generic", + OsiApproved = false, + SPDX = "CC-BY-1.0" + }, + new + { + Id = 66, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-2.0.html#licenseText", + Name = "Creative Commons Attribution 2.0 Generic", + OsiApproved = false, + SPDX = "CC-BY-2.0" + }, + new + { + Id = 67, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-2.5.html#licenseText", + Name = "Creative Commons Attribution 2.5 Generic", + OsiApproved = false, + SPDX = "CC-BY-2.5" + }, + new + { + Id = 68, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-3.0.html#licenseText", + Name = "Creative Commons Attribution 3.0 Unported", + OsiApproved = false, + SPDX = "CC-BY-3.0" + }, + new + { + Id = 69, + FsfApproved = true, + Link = "https://spdx.org/licenses/CC-BY-4.0.html#licenseText", + Name = "Creative Commons Attribution 4.0 International", + OsiApproved = false, + SPDX = "CC-BY-4.0" + }, + new + { + Id = 70, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-NC-1.0.html#licenseText", + Name = "Creative Commons Attribution Non Commercial 1.0 Generic", + OsiApproved = false, + SPDX = "CC-BY-NC-1.0" + }, + new + { + Id = 71, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-NC-2.0.html#licenseText", + Name = "Creative Commons Attribution Non Commercial 2.0 Generic", + OsiApproved = false, + SPDX = "CC-BY-NC-2.0" + }, + new + { + Id = 72, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-NC-2.5.html#licenseText", + Name = "Creative Commons Attribution Non Commercial 2.5 Generic", + OsiApproved = false, + SPDX = "CC-BY-NC-2.5" + }, + new + { + Id = 73, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-NC-3.0.html#licenseText", + Name = "Creative Commons Attribution Non Commercial 3.0 Unported", + OsiApproved = false, + SPDX = "CC-BY-NC-3.0" + }, + new + { + Id = 74, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-NC-4.0.html#licenseText", + Name = "Creative Commons Attribution Non Commercial 4.0 International", + OsiApproved = false, + SPDX = "CC-BY-NC-4.0" + }, + new + { + Id = 75, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-NC-ND-1.0.html#licenseText", + Name = "Creative Commons Attribution Non Commercial No Derivatives 1.0 Generic", + OsiApproved = false, + SPDX = "CC-BY-NC-ND-1.0" + }, + new + { + Id = 76, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-NC-ND-2.0.html#licenseText", + Name = "Creative Commons Attribution Non Commercial No Derivatives 2.0 Generic", + OsiApproved = false, + SPDX = "CC-BY-NC-ND-2.0" + }, + new + { + Id = 77, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-NC-ND-2.5.html#licenseText", + Name = "Creative Commons Attribution Non Commercial No Derivatives 2.5 Generic", + OsiApproved = false, + SPDX = "CC-BY-NC-ND-2.5" + }, + new + { + Id = 78, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-NC-ND-3.0.html#licenseText", + Name = "Creative Commons Attribution Non Commercial No Derivatives 3.0 Unported", + OsiApproved = false, + SPDX = "CC-BY-NC-ND-3.0" + }, + new + { + Id = 79, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-NC-ND-4.0.html#licenseText", + Name = "Creative Commons Attribution Non Commercial No Derivatives 4.0 International", + OsiApproved = false, + SPDX = "CC-BY-NC-ND-4.0" + }, + new + { + Id = 80, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-NC-SA-1.0.html#licenseText", + Name = "Creative Commons Attribution Non Commercial Share Alike 1.0 Generic", + OsiApproved = false, + SPDX = "CC-BY-NC-SA-1.0" + }, + new + { + Id = 81, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-NC-SA-2.0.html#licenseText", + Name = "Creative Commons Attribution Non Commercial Share Alike 2.0 Generic", + OsiApproved = false, + SPDX = "CC-BY-NC-SA-2.0" + }, + new + { + Id = 82, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-NC-SA-2.5.html#licenseText", + Name = "Creative Commons Attribution Non Commercial Share Alike 2.5 Generic", + OsiApproved = false, + SPDX = "CC-BY-NC-SA-2.5" + }, + new + { + Id = 83, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-NC-SA-3.0.html#licenseText", + Name = "Creative Commons Attribution Non Commercial Share Alike 3.0 Unported", + OsiApproved = false, + SPDX = "CC-BY-NC-SA-3.0" + }, + new + { + Id = 84, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-NC-SA-4.0.html#licenseText", + Name = "Creative Commons Attribution Non Commercial Share Alike 4.0 International", + OsiApproved = false, + SPDX = "CC-BY-NC-SA-4.0" + }, + new + { + Id = 85, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-ND-1.0.html#licenseText", + Name = "Creative Commons Attribution No Derivatives 1.0 Generic", + OsiApproved = false, + SPDX = "CC-BY-ND-1.0" + }, + new + { + Id = 86, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-ND-2.0.html#licenseText", + Name = "Creative Commons Attribution No Derivatives 2.0 Generic", + OsiApproved = false, + SPDX = "CC-BY-ND-2.0" + }, + new + { + Id = 87, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-ND-2.5.html#licenseText", + Name = "Creative Commons Attribution No Derivatives 2.5 Generic", + OsiApproved = false, + SPDX = "CC-BY-ND-2.5" + }, + new + { + Id = 88, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-ND-3.0.html#licenseText", + Name = "Creative Commons Attribution No Derivatives 3.0 Unported", + OsiApproved = false, + SPDX = "CC-BY-ND-3.0" + }, + new + { + Id = 89, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-ND-4.0.html#licenseText", + Name = "Creative Commons Attribution No Derivatives 4.0 International", + OsiApproved = false, + SPDX = "CC-BY-ND-4.0" + }, + new + { + Id = 90, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-SA-1.0.html#licenseText", + Name = "Creative Commons Attribution Share Alike 1.0 Generic", + OsiApproved = false, + SPDX = "CC-BY-SA-1.0" + }, + new + { + Id = 91, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-SA-2.0.html#licenseText", + Name = "Creative Commons Attribution Share Alike 2.0 Generic", + OsiApproved = false, + SPDX = "CC-BY-SA-2.0" + }, + new + { + Id = 92, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-SA-2.5.html#licenseText", + Name = "Creative Commons Attribution Share Alike 2.5 Generic", + OsiApproved = false, + SPDX = "CC-BY-SA-2.5" + }, + new + { + Id = 93, + FsfApproved = false, + Link = "https://spdx.org/licenses/CC-BY-SA-3.0.html#licenseText", + Name = "Creative Commons Attribution Share Alike 3.0 Unported", + OsiApproved = false, + SPDX = "CC-BY-SA-3.0" + }, + new + { + Id = 94, + FsfApproved = true, + Link = "https://spdx.org/licenses/CC-BY-SA-4.0.html#licenseText", + Name = "Creative Commons Attribution Share Alike 4.0 International", + OsiApproved = false, + SPDX = "CC-BY-SA-4.0" + }, + new + { + Id = 95, + FsfApproved = true, + Link = "https://spdx.org/licenses/CC0-1.0.html#licenseText", + Name = "Creative Commons Zero v1.0 Universal", + OsiApproved = false, + SPDX = "CC0-1.0" + }, + new + { + Id = 96, + FsfApproved = true, + Link = "https://spdx.org/licenses/CDDL-1.0.html#licenseText", + Name = "Common Development and Distribution License 1.0", + OsiApproved = true, + SPDX = "CDDL-1.0" + }, + new + { + Id = 97, + FsfApproved = false, + Link = "https://spdx.org/licenses/CDDL-1.1.html#licenseText", + Name = "Common Development and Distribution License 1.1", + OsiApproved = false, + SPDX = "CDDL-1.1" + }, + new + { + Id = 98, + FsfApproved = false, + Link = "https://spdx.org/licenses/CDLA-Permissive-1.0.html#licenseText", + Name = "Community Data License Agreement Permissive 1.0", + OsiApproved = false, + SPDX = "CDLA-Permissive-1.0" + }, + new + { + Id = 99, + FsfApproved = false, + Link = "https://spdx.org/licenses/CDLA-Sharing-1.0.html#licenseText", + Name = "Community Data License Agreement Sharing 1.0", + OsiApproved = false, + SPDX = "CDLA-Sharing-1.0" + }, + new + { + Id = 100, + FsfApproved = false, + Link = "https://spdx.org/licenses/CECILL-1.0.html#licenseText", + Name = "CeCILL Free Software License Agreement v1.0", + OsiApproved = false, + SPDX = "CECILL-1.0" + }, + new + { + Id = 101, + FsfApproved = false, + Link = "https://spdx.org/licenses/CECILL-1.1.html#licenseText", + Name = "CeCILL Free Software License Agreement v1.1", + OsiApproved = false, + SPDX = "CECILL-1.1" + }, + new + { + Id = 102, + FsfApproved = true, + Link = "https://spdx.org/licenses/CECILL-2.0.html#licenseText", + Name = "CeCILL Free Software License Agreement v2.0", + OsiApproved = false, + SPDX = "CECILL-2.0" + }, + new + { + Id = 103, + FsfApproved = false, + Link = "https://spdx.org/licenses/CECILL-2.1.html#licenseText", + Name = "CeCILL Free Software License Agreement v2.1", + OsiApproved = true, + SPDX = "CECILL-2.1" + }, + new + { + Id = 104, + FsfApproved = true, + Link = "https://spdx.org/licenses/CECILL-B.html#licenseText", + Name = "CeCILL-B Free Software License Agreement", + OsiApproved = false, + SPDX = "CECILL-B" + }, + new + { + Id = 105, + FsfApproved = true, + Link = "https://spdx.org/licenses/CECILL-C.html#licenseText", + Name = "CeCILL-C Free Software License Agreement", + OsiApproved = false, + SPDX = "CECILL-C" + }, + new + { + Id = 106, + FsfApproved = false, + Link = "https://spdx.org/licenses/CERN-OHL-1.1.html#licenseText", + Name = "CERN Open Hardware License v1.1", + OsiApproved = false, + SPDX = "CERN-OHL-1.1" + }, + new + { + Id = 107, + FsfApproved = false, + Link = "https://spdx.org/licenses/CERN-OHL-1.2.html#licenseText", + Name = "CERN Open Hardware Licence v1.2", + OsiApproved = false, + SPDX = "CERN-OHL-1.2" + }, + new + { + Id = 108, + FsfApproved = true, + Link = "https://spdx.org/licenses/ClArtistic.html#licenseText", + Name = "Clarified Artistic License", + OsiApproved = false, + SPDX = "ClArtistic" + }, + new + { + Id = 109, + FsfApproved = false, + Link = "https://spdx.org/licenses/CNRI-Jython.html#licenseText", + Name = "CNRI Jython License", + OsiApproved = false, + SPDX = "CNRI-Jython" + }, + new + { + Id = 110, + FsfApproved = false, + Link = "https://spdx.org/licenses/CNRI-Python.html#licenseText", + Name = "CNRI Python License", + OsiApproved = true, + SPDX = "CNRI-Python" + }, + new + { + Id = 111, + FsfApproved = false, + Link = "https://spdx.org/licenses/CNRI-Python-GPL-Compatible.html#licenseText", + Name = "CNRI Python Open Source GPL Compatible License Agreement", + OsiApproved = false, + SPDX = "CNRI-Python-GPL-Compatible" + }, + new + { + Id = 112, + FsfApproved = true, + Link = "https://spdx.org/licenses/Condor-1.1.html#licenseText", + Name = "Condor Public License v1.1", + OsiApproved = false, + SPDX = "Condor-1.1" + }, + new + { + Id = 113, + FsfApproved = false, + Link = "https://spdx.org/licenses/copyleft-next-0.3.0.html#licenseText", + Name = "copyleft-next 0.3.0", + OsiApproved = false, + SPDX = "copyleft-next-0.3.0" + }, + new + { + Id = 114, + FsfApproved = false, + Link = "https://spdx.org/licenses/copyleft-next-0.3.1.html#licenseText", + Name = "copyleft-next 0.3.1", + OsiApproved = false, + SPDX = "copyleft-next-0.3.1" + }, + new + { + Id = 115, + FsfApproved = true, + Link = "https://spdx.org/licenses/CPAL-1.0.html#licenseText", + Name = "Common Public Attribution License 1.0", + OsiApproved = true, + SPDX = "CPAL-1.0" + }, + new + { + Id = 116, + FsfApproved = true, + Link = "https://spdx.org/licenses/CPL-1.0.html#licenseText", + Name = "Common Public License 1.0", + OsiApproved = true, + SPDX = "CPL-1.0" + }, + new + { + Id = 117, + FsfApproved = false, + Link = "https://spdx.org/licenses/CPOL-1.02.html#licenseText", + Name = "Code Project Open License 1.02", + OsiApproved = false, + SPDX = "CPOL-1.02" + }, + new + { + Id = 118, + FsfApproved = false, + Link = "https://spdx.org/licenses/Crossword.html#licenseText", + Name = "Crossword License", + OsiApproved = false, + SPDX = "Crossword" + }, + new + { + Id = 119, + FsfApproved = false, + Link = "https://spdx.org/licenses/CrystalStacker.html#licenseText", + Name = "CrystalStacker License", + OsiApproved = false, + SPDX = "CrystalStacker" + }, + new + { + Id = 120, + FsfApproved = false, + Link = "https://spdx.org/licenses/CUA-OPL-1.0.html#licenseText", + Name = "CUA Office Public License v1.0", + OsiApproved = true, + SPDX = "CUA-OPL-1.0" + }, + new + { + Id = 121, + FsfApproved = false, + Link = "https://spdx.org/licenses/Cube.html#licenseText", + Name = "Cube License", + OsiApproved = false, + SPDX = "Cube" + }, + new + { + Id = 122, + FsfApproved = false, + Link = "https://spdx.org/licenses/curl.html#licenseText", + Name = "curl License", + OsiApproved = false, + SPDX = "curl" + }, + new + { + Id = 123, + FsfApproved = false, + Link = "https://spdx.org/licenses/D-FSL-1.0.html#licenseText", + Name = "Deutsche Freie Software Lizenz", + OsiApproved = false, + SPDX = "D-FSL-1.0" + }, + new + { + Id = 124, + FsfApproved = false, + Link = "https://spdx.org/licenses/diffmark.html#licenseText", + Name = "diffmark license", + OsiApproved = false, + SPDX = "diffmark" + }, + new + { + Id = 125, + FsfApproved = false, + Link = "https://spdx.org/licenses/DOC.html#licenseText", + Name = "DOC License", + OsiApproved = false, + SPDX = "DOC" + }, + new + { + Id = 126, + FsfApproved = false, + Link = "https://spdx.org/licenses/Dotseqn.html#licenseText", + Name = "Dotseqn License", + OsiApproved = false, + SPDX = "Dotseqn" + }, + new + { + Id = 127, + FsfApproved = false, + Link = "https://spdx.org/licenses/DSDP.html#licenseText", + Name = "DSDP License", + OsiApproved = false, + SPDX = "DSDP" + }, + new + { + Id = 128, + FsfApproved = false, + Link = "https://spdx.org/licenses/dvipdfm.html#licenseText", + Name = "dvipdfm License", + OsiApproved = false, + SPDX = "dvipdfm" + }, + new + { + Id = 129, + FsfApproved = false, + Link = "https://spdx.org/licenses/ECL-1.0.html#licenseText", + Name = "Educational Community License v1.0", + OsiApproved = true, + SPDX = "ECL-1.0" + }, + new + { + Id = 130, + FsfApproved = true, + Link = "https://spdx.org/licenses/ECL-2.0.html#licenseText", + Name = "Educational Community License v2.0", + OsiApproved = true, + SPDX = "ECL-2.0" + }, + new + { + Id = 131, + FsfApproved = false, + Link = "https://spdx.org/licenses/EFL-1.0.html#licenseText", + Name = "Eiffel Forum License v1.0", + OsiApproved = true, + SPDX = "EFL-1.0" + }, + new + { + Id = 132, + FsfApproved = true, + Link = "https://spdx.org/licenses/EFL-2.0.html#licenseText", + Name = "Eiffel Forum License v2.0", + OsiApproved = true, + SPDX = "EFL-2.0" + }, + new + { + Id = 133, + FsfApproved = false, + Link = "https://spdx.org/licenses/eGenix.html#licenseText", + Name = "eGenix.com Public License 1.1.0", + OsiApproved = false, + SPDX = "eGenix" + }, + new + { + Id = 134, + FsfApproved = false, + Link = "https://spdx.org/licenses/Entessa.html#licenseText", + Name = "Entessa Public License v1.0", + OsiApproved = true, + SPDX = "Entessa" + }, + new + { + Id = 135, + FsfApproved = true, + Link = "https://spdx.org/licenses/EPL-1.0.html#licenseText", + Name = "Eclipse Public License 1.0", + OsiApproved = true, + SPDX = "EPL-1.0" + }, + new + { + Id = 136, + FsfApproved = true, + Link = "https://spdx.org/licenses/EPL-2.0.html#licenseText", + Name = "Eclipse Public License 2.0", + OsiApproved = true, + SPDX = "EPL-2.0" + }, + new + { + Id = 137, + FsfApproved = false, + Link = "https://spdx.org/licenses/ErlPL-1.1.html#licenseText", + Name = "Erlang Public License v1.1", + OsiApproved = false, + SPDX = "ErlPL-1.1" + }, + new + { + Id = 138, + FsfApproved = true, + Link = "https://spdx.org/licenses/EUDatagrid.html#licenseText", + Name = "EU DataGrid Software License", + OsiApproved = true, + SPDX = "EUDatagrid" + }, + new + { + Id = 139, + FsfApproved = false, + Link = "https://spdx.org/licenses/EUPL-1.0.html#licenseText", + Name = "European Union Public License 1.0", + OsiApproved = false, + SPDX = "EUPL-1.0" + }, + new + { + Id = 140, + FsfApproved = true, + Link = "https://spdx.org/licenses/EUPL-1.1.html#licenseText", + Name = "European Union Public License 1.1", + OsiApproved = true, + SPDX = "EUPL-1.1" + }, + new + { + Id = 141, + FsfApproved = true, + Link = "https://spdx.org/licenses/EUPL-1.2.html#licenseText", + Name = "European Union Public License 1.2", + OsiApproved = true, + SPDX = "EUPL-1.2" + }, + new + { + Id = 142, + FsfApproved = false, + Link = "https://spdx.org/licenses/Eurosym.html#licenseText", + Name = "Eurosym License", + OsiApproved = false, + SPDX = "Eurosym" + }, + new + { + Id = 143, + FsfApproved = false, + Link = "https://spdx.org/licenses/Fair.html#licenseText", + Name = "Fair License", + OsiApproved = true, + SPDX = "Fair" + }, + new + { + Id = 144, + FsfApproved = false, + Link = "https://spdx.org/licenses/Frameworx-1.0.html#licenseText", + Name = "Frameworx Open License 1.0", + OsiApproved = true, + SPDX = "Frameworx-1.0" + }, + new + { + Id = 145, + FsfApproved = false, + Link = "https://spdx.org/licenses/FreeImage.html#licenseText", + Name = "FreeImage Public License v1.0", + OsiApproved = false, + SPDX = "FreeImage" + }, + new + { + Id = 146, + FsfApproved = true, + Link = "https://spdx.org/licenses/FSFAP.html#licenseText", + Name = "FSF All Permissive License", + OsiApproved = false, + SPDX = "FSFAP" + }, + new + { + Id = 147, + FsfApproved = false, + Link = "https://spdx.org/licenses/FSFUL.html#licenseText", + Name = "FSF Unlimited License", + OsiApproved = false, + SPDX = "FSFUL" + }, + new + { + Id = 148, + FsfApproved = false, + Link = "https://spdx.org/licenses/FSFULLR.html#licenseText", + Name = "FSF Unlimited License (with License Retention)", + OsiApproved = false, + SPDX = "FSFULLR" + }, + new + { + Id = 149, + FsfApproved = true, + Link = "https://spdx.org/licenses/FTL.html#licenseText", + Name = "Freetype Project License", + OsiApproved = false, + SPDX = "FTL" + }, + new + { + Id = 150, + FsfApproved = true, + Link = "https://spdx.org/licenses/GFDL-1.1-only.html#licenseText", + Name = "GNU Free Documentation License v1.1 only", + OsiApproved = false, + SPDX = "GFDL-1.1-only" + }, + new + { + Id = 151, + FsfApproved = true, + Link = "https://spdx.org/licenses/GFDL-1.1-or-later.html#licenseText", + Name = "GNU Free Documentation License v1.1 or later", + OsiApproved = false, + SPDX = "GFDL-1.1-or-later" + }, + new + { + Id = 152, + FsfApproved = true, + Link = "https://spdx.org/licenses/GFDL-1.2-only.html#licenseText", + Name = "GNU Free Documentation License v1.2 only", + OsiApproved = false, + SPDX = "GFDL-1.2-only" + }, + new + { + Id = 153, + FsfApproved = true, + Link = "https://spdx.org/licenses/GFDL-1.2-or-later.html#licenseText", + Name = "GNU Free Documentation License v1.2 or later", + OsiApproved = false, + SPDX = "GFDL-1.2-or-later" + }, + new + { + Id = 154, + FsfApproved = true, + Link = "https://spdx.org/licenses/GFDL-1.3-only.html#licenseText", + Name = "GNU Free Documentation License v1.3 only", + OsiApproved = false, + SPDX = "GFDL-1.3-only" + }, + new + { + Id = 155, + FsfApproved = true, + Link = "https://spdx.org/licenses/GFDL-1.3-or-later.html#licenseText", + Name = "GNU Free Documentation License v1.3 or later", + OsiApproved = false, + SPDX = "GFDL-1.3-or-later" + }, + new + { + Id = 156, + FsfApproved = false, + Link = "https://spdx.org/licenses/Giftware.html#licenseText", + Name = "Giftware License", + OsiApproved = false, + SPDX = "Giftware" + }, + new + { + Id = 157, + FsfApproved = false, + Link = "https://spdx.org/licenses/GL2PS.html#licenseText", + Name = "GL2PS License", + OsiApproved = false, + SPDX = "GL2PS" + }, + new + { + Id = 158, + FsfApproved = false, + Link = "https://spdx.org/licenses/Glide.html#licenseText", + Name = "3dfx Glide License", + OsiApproved = false, + SPDX = "Glide" + }, + new + { + Id = 159, + FsfApproved = false, + Link = "https://spdx.org/licenses/Glulxe.html#licenseText", + Name = "Glulxe License", + OsiApproved = false, + SPDX = "Glulxe" + }, + new + { + Id = 160, + FsfApproved = true, + Link = "https://spdx.org/licenses/gnuplot.html#licenseText", + Name = "gnuplot License", + OsiApproved = false, + SPDX = "gnuplot" + }, + new + { + Id = 161, + FsfApproved = false, + Link = "https://spdx.org/licenses/GPL-1.0-only.html#licenseText", + Name = "GNU General Public License v1.0 only", + OsiApproved = false, + SPDX = "GPL-1.0-only" + }, + new + { + Id = 162, + FsfApproved = false, + Link = "https://spdx.org/licenses/GPL-1.0-or-later.html#licenseText", + Name = "GNU General Public License v1.0 or later", + OsiApproved = false, + SPDX = "GPL-1.0-or-later" + }, + new + { + Id = 163, + FsfApproved = true, + Link = "https://spdx.org/licenses/GPL-2.0-only.html#licenseText", + Name = "GNU General Public License v2.0 only", + OsiApproved = true, + SPDX = "GPL-2.0-only" + }, + new + { + Id = 164, + FsfApproved = true, + Link = "https://spdx.org/licenses/GPL-2.0-or-later.html#licenseText", + Name = "GNU General Public License v2.0 or later", + OsiApproved = true, + SPDX = "GPL-2.0-or-later" + }, + new + { + Id = 165, + FsfApproved = true, + Link = "https://spdx.org/licenses/GPL-3.0-only.html#licenseText", + Name = "GNU General Public License v3.0 only", + OsiApproved = true, + SPDX = "GPL-3.0-only" + }, + new + { + Id = 166, + FsfApproved = true, + Link = "https://spdx.org/licenses/GPL-3.0-or-later.html#licenseText", + Name = "GNU General Public License v3.0 or later", + OsiApproved = true, + SPDX = "GPL-3.0-or-later" + }, + new + { + Id = 167, + FsfApproved = false, + Link = "https://spdx.org/licenses/gSOAP-1.3b.html#licenseText", + Name = "gSOAP Public License v1.3b", + OsiApproved = false, + SPDX = "gSOAP-1.3b" + }, + new + { + Id = 168, + FsfApproved = false, + Link = "https://spdx.org/licenses/HaskellReport.html#licenseText", + Name = "Haskell Language Report License", + OsiApproved = false, + SPDX = "HaskellReport" + }, + new + { + Id = 169, + FsfApproved = true, + Link = "https://spdx.org/licenses/HPND.html#licenseText", + Name = "Historical Permission Notice and Disclaimer", + OsiApproved = true, + SPDX = "HPND" + }, + new + { + Id = 170, + FsfApproved = false, + Link = "https://spdx.org/licenses/HPND-sell-variant.html#licenseText", + Name = "Historical Permission Notice and Disclaimer - sell variant", + OsiApproved = false, + SPDX = "HPND-sell-variant" + }, + new + { + Id = 171, + FsfApproved = false, + Link = "https://spdx.org/licenses/IBM-pibs.html#licenseText", + Name = "IBM PowerPC Initialization and Boot Software", + OsiApproved = false, + SPDX = "IBM-pibs" + }, + new + { + Id = 172, + FsfApproved = false, + Link = "https://spdx.org/licenses/ICU.html#licenseText", + Name = "ICU License", + OsiApproved = false, + SPDX = "ICU" + }, + new + { + Id = 173, + FsfApproved = true, + Link = "https://spdx.org/licenses/IJG.html#licenseText", + Name = "Independent JPEG Group License", + OsiApproved = false, + SPDX = "IJG" + }, + new + { + Id = 174, + FsfApproved = false, + Link = "https://spdx.org/licenses/ImageMagick.html#licenseText", + Name = "ImageMagick License", + OsiApproved = false, + SPDX = "ImageMagick" + }, + new + { + Id = 175, + FsfApproved = true, + Link = "https://spdx.org/licenses/iMatix.html#licenseText", + Name = "iMatix Standard Function Library Agreement", + OsiApproved = false, + SPDX = "iMatix" + }, + new + { + Id = 176, + FsfApproved = true, + Link = "https://spdx.org/licenses/Imlib2.html#licenseText", + Name = "Imlib2 License", + OsiApproved = false, + SPDX = "Imlib2" + }, + new + { + Id = 177, + FsfApproved = false, + Link = "https://spdx.org/licenses/Info-ZIP.html#licenseText", + Name = "Info-ZIP License", + OsiApproved = false, + SPDX = "Info-ZIP" + }, + new + { + Id = 178, + FsfApproved = true, + Link = "https://spdx.org/licenses/Intel.html#licenseText", + Name = "Intel Open Source License", + OsiApproved = true, + SPDX = "Intel" + }, + new + { + Id = 179, + FsfApproved = false, + Link = "https://spdx.org/licenses/Intel-ACPI.html#licenseText", + Name = "Intel ACPI Software License Agreement", + OsiApproved = false, + SPDX = "Intel-ACPI" + }, + new + { + Id = 180, + FsfApproved = false, + Link = "https://spdx.org/licenses/Interbase-1.0.html#licenseText", + Name = "Interbase Public License v1.0", + OsiApproved = false, + SPDX = "Interbase-1.0" + }, + new + { + Id = 181, + FsfApproved = true, + Link = "https://spdx.org/licenses/IPA.html#licenseText", + Name = "IPA Font License", + OsiApproved = true, + SPDX = "IPA" + }, + new + { + Id = 182, + FsfApproved = true, + Link = "https://spdx.org/licenses/IPL-1.0.html#licenseText", + Name = "IBM Public License v1.0", + OsiApproved = true, + SPDX = "IPL-1.0" + }, + new + { + Id = 183, + FsfApproved = true, + Link = "https://spdx.org/licenses/ISC.html#licenseText", + Name = "ISC License", + OsiApproved = true, + SPDX = "ISC" + }, + new + { + Id = 184, + FsfApproved = false, + Link = "https://spdx.org/licenses/JasPer-2.0.html#licenseText", + Name = "JasPer License", + OsiApproved = false, + SPDX = "JasPer-2.0" + }, + new + { + Id = 185, + FsfApproved = false, + Link = "https://spdx.org/licenses/JPNIC.html#licenseText", + Name = "Japan Network Information Center License", + OsiApproved = false, + SPDX = "JPNIC" + }, + new + { + Id = 186, + FsfApproved = false, + Link = "https://spdx.org/licenses/JSON.html#licenseText", + Name = "JSON License", + OsiApproved = false, + SPDX = "JSON" + }, + new + { + Id = 187, + FsfApproved = false, + Link = "https://spdx.org/licenses/LAL-1.2.html#licenseText", + Name = "Licence Art Libre 1.2", + OsiApproved = false, + SPDX = "LAL-1.2" + }, + new + { + Id = 188, + FsfApproved = false, + Link = "https://spdx.org/licenses/LAL-1.3.html#licenseText", + Name = "Licence Art Libre 1.3", + OsiApproved = false, + SPDX = "LAL-1.3" + }, + new + { + Id = 189, + FsfApproved = false, + Link = "https://spdx.org/licenses/Latex2e.html#licenseText", + Name = "Latex2e License", + OsiApproved = false, + SPDX = "Latex2e" + }, + new + { + Id = 190, + FsfApproved = false, + Link = "https://spdx.org/licenses/Leptonica.html#licenseText", + Name = "Leptonica License", + OsiApproved = false, + SPDX = "Leptonica" + }, + new + { + Id = 191, + FsfApproved = false, + Link = "https://spdx.org/licenses/LGPL-2.0-only.html#licenseText", + Name = "GNU Library General Public License v2 only", + OsiApproved = true, + SPDX = "LGPL-2.0-only" + }, + new + { + Id = 192, + FsfApproved = false, + Link = "https://spdx.org/licenses/LGPL-2.0-or-later.html#licenseText", + Name = "GNU Library General Public License v2 or later", + OsiApproved = true, + SPDX = "LGPL-2.0-or-later" + }, + new + { + Id = 193, + FsfApproved = true, + Link = "https://spdx.org/licenses/LGPL-2.1-only.html#licenseText", + Name = "GNU Lesser General Public License v2.1 only", + OsiApproved = true, + SPDX = "LGPL-2.1-only" + }, + new + { + Id = 194, + FsfApproved = true, + Link = "https://spdx.org/licenses/LGPL-2.1-or-later.html#licenseText", + Name = "GNU Lesser General Public License v2.1 or later", + OsiApproved = true, + SPDX = "LGPL-2.1-or-later" + }, + new + { + Id = 195, + FsfApproved = true, + Link = "https://spdx.org/licenses/LGPL-3.0-only.html#licenseText", + Name = "GNU Lesser General Public License v3.0 only", + OsiApproved = true, + SPDX = "LGPL-3.0-only" + }, + new + { + Id = 196, + FsfApproved = true, + Link = "https://spdx.org/licenses/LGPL-3.0-or-later.html#licenseText", + Name = "GNU Lesser General Public License v3.0 or later", + OsiApproved = true, + SPDX = "LGPL-3.0-or-later" + }, + new + { + Id = 197, + FsfApproved = false, + Link = "https://spdx.org/licenses/LGPLLR.html#licenseText", + Name = "Lesser General Public License For Linguistic Resources", + OsiApproved = false, + SPDX = "LGPLLR" + }, + new + { + Id = 198, + FsfApproved = false, + Link = "https://spdx.org/licenses/Libpng.html#licenseText", + Name = "libpng License", + OsiApproved = false, + SPDX = "Libpng" + }, + new + { + Id = 199, + FsfApproved = false, + Link = "https://spdx.org/licenses/libpng-2.0.html#licenseText", + Name = "PNG Reference Library version 2", + OsiApproved = false, + SPDX = "libpng-2.0" + }, + new + { + Id = 200, + FsfApproved = false, + Link = "https://spdx.org/licenses/libtiff.html#licenseText", + Name = "libtiff License", + OsiApproved = false, + SPDX = "libtiff" + }, + new + { + Id = 201, + FsfApproved = false, + Link = "https://spdx.org/licenses/LiLiQ-P-1.1.html#licenseText", + Name = "Licence Libre du Québec – Permissive version 1.1", + OsiApproved = true, + SPDX = "LiLiQ-P-1.1" + }, + new + { + Id = 202, + FsfApproved = false, + Link = "https://spdx.org/licenses/LiLiQ-R-1.1.html#licenseText", + Name = "Licence Libre du Québec – Réciprocité version 1.1", + OsiApproved = true, + SPDX = "LiLiQ-R-1.1" + }, + new + { + Id = 203, + FsfApproved = false, + Link = "https://spdx.org/licenses/LiLiQ-Rplus-1.1.html#licenseText", + Name = "Licence Libre du Québec – Réciprocité forte version 1.1", + OsiApproved = true, + SPDX = "LiLiQ-Rplus-1.1" + }, + new + { + Id = 204, + FsfApproved = false, + Link = "https://spdx.org/licenses/Linux-OpenIB.html#licenseText", + Name = "Linux Kernel Variant of OpenIB.org license", + OsiApproved = false, + SPDX = "Linux-OpenIB" + }, + new + { + Id = 205, + FsfApproved = false, + Link = "https://spdx.org/licenses/LPL-1.0.html#licenseText", + Name = "Lucent Public License Version 1.0", + OsiApproved = true, + SPDX = "LPL-1.0" + }, + new + { + Id = 206, + FsfApproved = true, + Link = "https://spdx.org/licenses/LPL-1.02.html#licenseText", + Name = "Lucent Public License v1.02", + OsiApproved = true, + SPDX = "LPL-1.02" + }, + new + { + Id = 207, + FsfApproved = false, + Link = "https://spdx.org/licenses/LPPL-1.0.html#licenseText", + Name = "LaTeX Project Public License v1.0", + OsiApproved = false, + SPDX = "LPPL-1.0" + }, + new + { + Id = 208, + FsfApproved = false, + Link = "https://spdx.org/licenses/LPPL-1.1.html#licenseText", + Name = "LaTeX Project Public License v1.1", + OsiApproved = false, + SPDX = "LPPL-1.1" + }, + new + { + Id = 209, + FsfApproved = true, + Link = "https://spdx.org/licenses/LPPL-1.2.html#licenseText", + Name = "LaTeX Project Public License v1.2", + OsiApproved = false, + SPDX = "LPPL-1.2" + }, + new + { + Id = 210, + FsfApproved = true, + Link = "https://spdx.org/licenses/LPPL-1.3a.html#licenseText", + Name = "LaTeX Project Public License v1.3a", + OsiApproved = false, + SPDX = "LPPL-1.3a" + }, + new + { + Id = 211, + FsfApproved = false, + Link = "https://spdx.org/licenses/LPPL-1.3c.html#licenseText", + Name = "LaTeX Project Public License v1.3c", + OsiApproved = true, + SPDX = "LPPL-1.3c" + }, + new + { + Id = 212, + FsfApproved = false, + Link = "https://spdx.org/licenses/MakeIndex.html#licenseText", + Name = "MakeIndex License", + OsiApproved = false, + SPDX = "MakeIndex" + }, + new + { + Id = 213, + FsfApproved = false, + Link = "https://spdx.org/licenses/MirOS.html#licenseText", + Name = "MirOS License", + OsiApproved = true, + SPDX = "MirOS" + }, + new + { + Id = 214, + FsfApproved = true, + Link = "https://spdx.org/licenses/MIT.html#licenseText", + Name = "MIT License", + OsiApproved = true, + SPDX = "MIT" + }, + new + { + Id = 215, + FsfApproved = false, + Link = "https://spdx.org/licenses/MIT-0.html#licenseText", + Name = "MIT No Attribution", + OsiApproved = true, + SPDX = "MIT-0" + }, + new + { + Id = 216, + FsfApproved = false, + Link = "https://spdx.org/licenses/MIT-advertising.html#licenseText", + Name = "Enlightenment License (e16)", + OsiApproved = false, + SPDX = "MIT-advertising" + }, + new + { + Id = 217, + FsfApproved = false, + Link = "https://spdx.org/licenses/MIT-CMU.html#licenseText", + Name = "CMU License", + OsiApproved = false, + SPDX = "MIT-CMU" + }, + new + { + Id = 218, + FsfApproved = false, + Link = "https://spdx.org/licenses/MIT-enna.html#licenseText", + Name = "enna License", + OsiApproved = false, + SPDX = "MIT-enna" + }, + new + { + Id = 219, + FsfApproved = false, + Link = "https://spdx.org/licenses/MIT-feh.html#licenseText", + Name = "feh License", + OsiApproved = false, + SPDX = "MIT-feh" + }, + new + { + Id = 220, + FsfApproved = false, + Link = "https://spdx.org/licenses/MITNFA.html#licenseText", + Name = "MIT +no-false-attribs license", + OsiApproved = false, + SPDX = "MITNFA" + }, + new + { + Id = 221, + FsfApproved = false, + Link = "https://spdx.org/licenses/Motosoto.html#licenseText", + Name = "Motosoto License", + OsiApproved = true, + SPDX = "Motosoto" + }, + new + { + Id = 222, + FsfApproved = false, + Link = "https://spdx.org/licenses/mpich2.html#licenseText", + Name = "mpich2 License", + OsiApproved = false, + SPDX = "mpich2" + }, + new + { + Id = 223, + FsfApproved = false, + Link = "https://spdx.org/licenses/MPL-1.0.html#licenseText", + Name = "Mozilla Public License 1.0", + OsiApproved = true, + SPDX = "MPL-1.0" + }, + new + { + Id = 224, + FsfApproved = true, + Link = "https://spdx.org/licenses/MPL-1.1.html#licenseText", + Name = "Mozilla Public License 1.1", + OsiApproved = true, + SPDX = "MPL-1.1" + }, + new + { + Id = 225, + FsfApproved = true, + Link = "https://spdx.org/licenses/MPL-2.0.html#licenseText", + Name = "Mozilla Public License 2.0", + OsiApproved = true, + SPDX = "MPL-2.0" + }, + new + { + Id = 226, + FsfApproved = false, + Link = "https://spdx.org/licenses/MPL-2.0-no-copyleft-exception.html#licenseText", + Name = "Mozilla Public License 2.0 (no copyleft exception)", + OsiApproved = true, + SPDX = "MPL-2.0-no-copyleft-exception" + }, + new + { + Id = 227, + FsfApproved = true, + Link = "https://spdx.org/licenses/MS-PL.html#licenseText", + Name = "Microsoft Public License", + OsiApproved = true, + SPDX = "MS-PL" + }, + new + { + Id = 228, + FsfApproved = true, + Link = "https://spdx.org/licenses/MS-RL.html#licenseText", + Name = "Microsoft Reciprocal License", + OsiApproved = true, + SPDX = "MS-RL" + }, + new + { + Id = 229, + FsfApproved = false, + Link = "https://spdx.org/licenses/MTLL.html#licenseText", + Name = "Matrix Template Library License", + OsiApproved = false, + SPDX = "MTLL" + }, + new + { + Id = 230, + FsfApproved = false, + Link = "https://spdx.org/licenses/Multics.html#licenseText", + Name = "Multics License", + OsiApproved = true, + SPDX = "Multics" + }, + new + { + Id = 231, + FsfApproved = false, + Link = "https://spdx.org/licenses/Mup.html#licenseText", + Name = "Mup License", + OsiApproved = false, + SPDX = "Mup" + }, + new + { + Id = 232, + FsfApproved = false, + Link = "https://spdx.org/licenses/NASA-1.3.html#licenseText", + Name = "NASA Open Source Agreement 1.3", + OsiApproved = true, + SPDX = "NASA-1.3" + }, + new + { + Id = 233, + FsfApproved = false, + Link = "https://spdx.org/licenses/Naumen.html#licenseText", + Name = "Naumen Public License", + OsiApproved = true, + SPDX = "Naumen" + }, + new + { + Id = 234, + FsfApproved = false, + Link = "https://spdx.org/licenses/NBPL-1.0.html#licenseText", + Name = "Net Boolean Public License v1", + OsiApproved = false, + SPDX = "NBPL-1.0" + }, + new + { + Id = 235, + FsfApproved = true, + Link = "https://spdx.org/licenses/NCSA.html#licenseText", + Name = "University of Illinois/NCSA Open Source License", + OsiApproved = true, + SPDX = "NCSA" + }, + new + { + Id = 236, + FsfApproved = false, + Link = "https://spdx.org/licenses/Net-SNMP.html#licenseText", + Name = "Net-SNMP License", + OsiApproved = false, + SPDX = "Net-SNMP" + }, + new + { + Id = 237, + FsfApproved = false, + Link = "https://spdx.org/licenses/NetCDF.html#licenseText", + Name = "NetCDF license", + OsiApproved = false, + SPDX = "NetCDF" + }, + new + { + Id = 238, + FsfApproved = false, + Link = "https://spdx.org/licenses/Newsletr.html#licenseText", + Name = "Newsletr License", + OsiApproved = false, + SPDX = "Newsletr" + }, + new + { + Id = 239, + FsfApproved = false, + Link = "https://spdx.org/licenses/NGPL.html#licenseText", + Name = "Nethack General Public License", + OsiApproved = true, + SPDX = "NGPL" + }, + new + { + Id = 240, + FsfApproved = false, + Link = "https://spdx.org/licenses/NLOD-1.0.html#licenseText", + Name = "Norwegian Licence for Open Government Data", + OsiApproved = false, + SPDX = "NLOD-1.0" + }, + new + { + Id = 241, + FsfApproved = false, + Link = "https://spdx.org/licenses/NLPL.html#licenseText", + Name = "No Limit Public License", + OsiApproved = false, + SPDX = "NLPL" + }, + new + { + Id = 242, + FsfApproved = true, + Link = "https://spdx.org/licenses/Nokia.html#licenseText", + Name = "Nokia Open Source License", + OsiApproved = true, + SPDX = "Nokia" + }, + new + { + Id = 243, + FsfApproved = true, + Link = "https://spdx.org/licenses/NOSL.html#licenseText", + Name = "Netizen Open Source License", + OsiApproved = false, + SPDX = "NOSL" + }, + new + { + Id = 244, + FsfApproved = false, + Link = "https://spdx.org/licenses/Noweb.html#licenseText", + Name = "Noweb License", + OsiApproved = false, + SPDX = "Noweb" + }, + new + { + Id = 245, + FsfApproved = true, + Link = "https://spdx.org/licenses/NPL-1.0.html#licenseText", + Name = "Netscape Public License v1.0", + OsiApproved = false, + SPDX = "NPL-1.0" + }, + new + { + Id = 246, + FsfApproved = true, + Link = "https://spdx.org/licenses/NPL-1.1.html#licenseText", + Name = "Netscape Public License v1.1", + OsiApproved = false, + SPDX = "NPL-1.1" + }, + new + { + Id = 247, + FsfApproved = false, + Link = "https://spdx.org/licenses/NPOSL-3.0.html#licenseText", + Name = "Non-Profit Open Software License 3.0", + OsiApproved = true, + SPDX = "NPOSL-3.0" + }, + new + { + Id = 248, + FsfApproved = false, + Link = "https://spdx.org/licenses/NRL.html#licenseText", + Name = "NRL License", + OsiApproved = false, + SPDX = "NRL" + }, + new + { + Id = 249, + FsfApproved = false, + Link = "https://spdx.org/licenses/NTP.html#licenseText", + Name = "NTP License", + OsiApproved = true, + SPDX = "NTP" + }, + new + { + Id = 250, + FsfApproved = false, + Link = "https://spdx.org/licenses/OCCT-PL.html#licenseText", + Name = "Open CASCADE Technology Public License", + OsiApproved = false, + SPDX = "OCCT-PL" + }, + new + { + Id = 251, + FsfApproved = false, + Link = "https://spdx.org/licenses/OCLC-2.0.html#licenseText", + Name = "OCLC Research Public License 2.0", + OsiApproved = true, + SPDX = "OCLC-2.0" + }, + new + { + Id = 252, + FsfApproved = true, + Link = "https://spdx.org/licenses/ODbL-1.0.html#licenseText", + Name = "ODC Open Database License v1.0", + OsiApproved = false, + SPDX = "ODbL-1.0" + }, + new + { + Id = 253, + FsfApproved = false, + Link = "https://spdx.org/licenses/ODC-By-1.0.html#licenseText", + Name = "Open Data Commons Attribution License v1.0", + OsiApproved = false, + SPDX = "ODC-By-1.0" + }, + new + { + Id = 254, + FsfApproved = true, + Link = "https://spdx.org/licenses/OFL-1.0.html#licenseText", + Name = "SIL Open Font License 1.0", + OsiApproved = false, + SPDX = "OFL-1.0" + }, + new + { + Id = 255, + FsfApproved = true, + Link = "https://spdx.org/licenses/OFL-1.1.html#licenseText", + Name = "SIL Open Font License 1.1", + OsiApproved = true, + SPDX = "OFL-1.1" + }, + new + { + Id = 256, + FsfApproved = false, + Link = "https://spdx.org/licenses/OGL-UK-1.0.html#licenseText", + Name = "Open Government Licence v1.0", + OsiApproved = false, + SPDX = "OGL-UK-1.0" + }, + new + { + Id = 257, + FsfApproved = false, + Link = "https://spdx.org/licenses/OGL-UK-2.0.html#licenseText", + Name = "Open Government Licence v2.0", + OsiApproved = false, + SPDX = "OGL-UK-2.0" + }, + new + { + Id = 258, + FsfApproved = false, + Link = "https://spdx.org/licenses/OGL-UK-3.0.html#licenseText", + Name = "Open Government Licence v3.0", + OsiApproved = false, + SPDX = "OGL-UK-3.0" + }, + new + { + Id = 259, + FsfApproved = false, + Link = "https://spdx.org/licenses/OGTSL.html#licenseText", + Name = "Open Group Test Suite License", + OsiApproved = true, + SPDX = "OGTSL" + }, + new + { + Id = 260, + FsfApproved = false, + Link = "https://spdx.org/licenses/OLDAP-1.1.html#licenseText", + Name = "Open LDAP Public License v1.1", + OsiApproved = false, + SPDX = "OLDAP-1.1" + }, + new + { + Id = 261, + FsfApproved = false, + Link = "https://spdx.org/licenses/OLDAP-1.2.html#licenseText", + Name = "Open LDAP Public License v1.2", + OsiApproved = false, + SPDX = "OLDAP-1.2" + }, + new + { + Id = 262, + FsfApproved = false, + Link = "https://spdx.org/licenses/OLDAP-1.3.html#licenseText", + Name = "Open LDAP Public License v1.3", + OsiApproved = false, + SPDX = "OLDAP-1.3" + }, + new + { + Id = 263, + FsfApproved = false, + Link = "https://spdx.org/licenses/OLDAP-1.4.html#licenseText", + Name = "Open LDAP Public License v1.4", + OsiApproved = false, + SPDX = "OLDAP-1.4" + }, + new + { + Id = 264, + FsfApproved = false, + Link = "https://spdx.org/licenses/OLDAP-2.0.html#licenseText", + Name = "Open LDAP Public License v2.0 (or possibly 2.0A and 2.0B)", + OsiApproved = false, + SPDX = "OLDAP-2.0" + }, + new + { + Id = 265, + FsfApproved = false, + Link = "https://spdx.org/licenses/OLDAP-2.0.1.html#licenseText", + Name = "Open LDAP Public License v2.0.1", + OsiApproved = false, + SPDX = "OLDAP-2.0.1" + }, + new + { + Id = 266, + FsfApproved = false, + Link = "https://spdx.org/licenses/OLDAP-2.1.html#licenseText", + Name = "Open LDAP Public License v2.1", + OsiApproved = false, + SPDX = "OLDAP-2.1" + }, + new + { + Id = 267, + FsfApproved = false, + Link = "https://spdx.org/licenses/OLDAP-2.2.html#licenseText", + Name = "Open LDAP Public License v2.2", + OsiApproved = false, + SPDX = "OLDAP-2.2" + }, + new + { + Id = 268, + FsfApproved = false, + Link = "https://spdx.org/licenses/OLDAP-2.2.1.html#licenseText", + Name = "Open LDAP Public License v2.2.1", + OsiApproved = false, + SPDX = "OLDAP-2.2.1" + }, + new + { + Id = 269, + FsfApproved = false, + Link = "https://spdx.org/licenses/OLDAP-2.2.2.html#licenseText", + Name = "Open LDAP Public License 2.2.2", + OsiApproved = false, + SPDX = "OLDAP-2.2.2" + }, + new + { + Id = 270, + FsfApproved = true, + Link = "https://spdx.org/licenses/OLDAP-2.3.html#licenseText", + Name = "Open LDAP Public License v2.3", + OsiApproved = false, + SPDX = "OLDAP-2.3" + }, + new + { + Id = 271, + FsfApproved = false, + Link = "https://spdx.org/licenses/OLDAP-2.4.html#licenseText", + Name = "Open LDAP Public License v2.4", + OsiApproved = false, + SPDX = "OLDAP-2.4" + }, + new + { + Id = 272, + FsfApproved = false, + Link = "https://spdx.org/licenses/OLDAP-2.5.html#licenseText", + Name = "Open LDAP Public License v2.5", + OsiApproved = false, + SPDX = "OLDAP-2.5" + }, + new + { + Id = 273, + FsfApproved = false, + Link = "https://spdx.org/licenses/OLDAP-2.6.html#licenseText", + Name = "Open LDAP Public License v2.6", + OsiApproved = false, + SPDX = "OLDAP-2.6" + }, + new + { + Id = 274, + FsfApproved = true, + Link = "https://spdx.org/licenses/OLDAP-2.7.html#licenseText", + Name = "Open LDAP Public License v2.7", + OsiApproved = false, + SPDX = "OLDAP-2.7" + }, + new + { + Id = 275, + FsfApproved = false, + Link = "https://spdx.org/licenses/OLDAP-2.8.html#licenseText", + Name = "Open LDAP Public License v2.8", + OsiApproved = false, + SPDX = "OLDAP-2.8" + }, + new + { + Id = 276, + FsfApproved = false, + Link = "https://spdx.org/licenses/OML.html#licenseText", + Name = "Open Market License", + OsiApproved = false, + SPDX = "OML" + }, + new + { + Id = 277, + FsfApproved = true, + Link = "https://spdx.org/licenses/OpenSSL.html#licenseText", + Name = "OpenSSL License", + OsiApproved = false, + SPDX = "OpenSSL" + }, + new + { + Id = 278, + FsfApproved = false, + Link = "https://spdx.org/licenses/OPL-1.0.html#licenseText", + Name = "Open Public License v1.0", + OsiApproved = false, + SPDX = "OPL-1.0" + }, + new + { + Id = 279, + FsfApproved = false, + Link = "https://spdx.org/licenses/OSET-PL-2.1.html#licenseText", + Name = "OSET Public License version 2.1", + OsiApproved = true, + SPDX = "OSET-PL-2.1" + }, + new + { + Id = 280, + FsfApproved = true, + Link = "https://spdx.org/licenses/OSL-1.0.html#licenseText", + Name = "Open Software License 1.0", + OsiApproved = true, + SPDX = "OSL-1.0" + }, + new + { + Id = 281, + FsfApproved = true, + Link = "https://spdx.org/licenses/OSL-1.1.html#licenseText", + Name = "Open Software License 1.1", + OsiApproved = false, + SPDX = "OSL-1.1" + }, + new + { + Id = 282, + FsfApproved = true, + Link = "https://spdx.org/licenses/OSL-2.0.html#licenseText", + Name = "Open Software License 2.0", + OsiApproved = true, + SPDX = "OSL-2.0" + }, + new + { + Id = 283, + FsfApproved = true, + Link = "https://spdx.org/licenses/OSL-2.1.html#licenseText", + Name = "Open Software License 2.1", + OsiApproved = true, + SPDX = "OSL-2.1" + }, + new + { + Id = 284, + FsfApproved = true, + Link = "https://spdx.org/licenses/OSL-3.0.html#licenseText", + Name = "Open Software License 3.0", + OsiApproved = true, + SPDX = "OSL-3.0" + }, + new + { + Id = 285, + FsfApproved = false, + Link = "https://spdx.org/licenses/PDDL-1.0.html#licenseText", + Name = "ODC Public Domain Dedication & License 1.0", + OsiApproved = false, + SPDX = "PDDL-1.0" + }, + new + { + Id = 286, + FsfApproved = false, + Link = "https://spdx.org/licenses/PHP-3.0.html#licenseText", + Name = "PHP License v3.0", + OsiApproved = true, + SPDX = "PHP-3.0" + }, + new + { + Id = 287, + FsfApproved = true, + Link = "https://spdx.org/licenses/PHP-3.01.html#licenseText", + Name = "PHP License v3.01", + OsiApproved = false, + SPDX = "PHP-3.01" + }, + new + { + Id = 288, + FsfApproved = false, + Link = "https://spdx.org/licenses/Plexus.html#licenseText", + Name = "Plexus Classworlds License", + OsiApproved = false, + SPDX = "Plexus" + }, + new + { + Id = 289, + FsfApproved = false, + Link = "https://spdx.org/licenses/PostgreSQL.html#licenseText", + Name = "PostgreSQL License", + OsiApproved = true, + SPDX = "PostgreSQL" + }, + new + { + Id = 290, + FsfApproved = false, + Link = "https://spdx.org/licenses/psfrag.html#licenseText", + Name = "psfrag License", + OsiApproved = false, + SPDX = "psfrag" + }, + new + { + Id = 291, + FsfApproved = false, + Link = "https://spdx.org/licenses/psutils.html#licenseText", + Name = "psutils License", + OsiApproved = false, + SPDX = "psutils" + }, + new + { + Id = 292, + FsfApproved = true, + Link = "https://spdx.org/licenses/Python-2.0.html#licenseText", + Name = "Python License 2.0", + OsiApproved = true, + SPDX = "Python-2.0" + }, + new + { + Id = 293, + FsfApproved = false, + Link = "https://spdx.org/licenses/Qhull.html#licenseText", + Name = "Qhull License", + OsiApproved = false, + SPDX = "Qhull" + }, + new + { + Id = 294, + FsfApproved = true, + Link = "https://spdx.org/licenses/QPL-1.0.html#licenseText", + Name = "Q Public License 1.0", + OsiApproved = true, + SPDX = "QPL-1.0" + }, + new + { + Id = 295, + FsfApproved = false, + Link = "https://spdx.org/licenses/Rdisc.html#licenseText", + Name = "Rdisc License", + OsiApproved = false, + SPDX = "Rdisc" + }, + new + { + Id = 296, + FsfApproved = false, + Link = "https://spdx.org/licenses/RHeCos-1.1.html#licenseText", + Name = "Red Hat eCos Public License v1.1", + OsiApproved = false, + SPDX = "RHeCos-1.1" + }, + new + { + Id = 297, + FsfApproved = false, + Link = "https://spdx.org/licenses/RPL-1.1.html#licenseText", + Name = "Reciprocal Public License 1.1", + OsiApproved = true, + SPDX = "RPL-1.1" + }, + new + { + Id = 298, + FsfApproved = false, + Link = "https://spdx.org/licenses/RPL-1.5.html#licenseText", + Name = "Reciprocal Public License 1.5", + OsiApproved = true, + SPDX = "RPL-1.5" + }, + new + { + Id = 299, + FsfApproved = true, + Link = "https://spdx.org/licenses/RPSL-1.0.html#licenseText", + Name = "RealNetworks Public Source License v1.0", + OsiApproved = true, + SPDX = "RPSL-1.0" + }, + new + { + Id = 300, + FsfApproved = false, + Link = "https://spdx.org/licenses/RSA-MD.html#licenseText", + Name = "RSA Message-Digest License", + OsiApproved = false, + SPDX = "RSA-MD" + }, + new + { + Id = 301, + FsfApproved = false, + Link = "https://spdx.org/licenses/RSCPL.html#licenseText", + Name = "Ricoh Source Code Public License", + OsiApproved = true, + SPDX = "RSCPL" + }, + new + { + Id = 302, + FsfApproved = true, + Link = "https://spdx.org/licenses/Ruby.html#licenseText", + Name = "Ruby License", + OsiApproved = false, + SPDX = "Ruby" + }, + new + { + Id = 303, + FsfApproved = false, + Link = "https://spdx.org/licenses/SAX-PD.html#licenseText", + Name = "Sax Public Domain Notice", + OsiApproved = false, + SPDX = "SAX-PD" + }, + new + { + Id = 304, + FsfApproved = false, + Link = "https://spdx.org/licenses/Saxpath.html#licenseText", + Name = "Saxpath License", + OsiApproved = false, + SPDX = "Saxpath" + }, + new + { + Id = 305, + FsfApproved = false, + Link = "https://spdx.org/licenses/SCEA.html#licenseText", + Name = "SCEA Shared Source License", + OsiApproved = false, + SPDX = "SCEA" + }, + new + { + Id = 306, + FsfApproved = false, + Link = "https://spdx.org/licenses/Sendmail.html#licenseText", + Name = "Sendmail License", + OsiApproved = false, + SPDX = "Sendmail" + }, + new + { + Id = 307, + FsfApproved = false, + Link = "https://spdx.org/licenses/Sendmail-8.23.html#licenseText", + Name = "Sendmail License 8.23", + OsiApproved = false, + SPDX = "Sendmail-8.23" + }, + new + { + Id = 308, + FsfApproved = false, + Link = "https://spdx.org/licenses/SGI-B-1.0.html#licenseText", + Name = "SGI Free Software License B v1.0", + OsiApproved = false, + SPDX = "SGI-B-1.0" + }, + new + { + Id = 309, + FsfApproved = false, + Link = "https://spdx.org/licenses/SGI-B-1.1.html#licenseText", + Name = "SGI Free Software License B v1.1", + OsiApproved = false, + SPDX = "SGI-B-1.1" + }, + new + { + Id = 310, + FsfApproved = true, + Link = "https://spdx.org/licenses/SGI-B-2.0.html#licenseText", + Name = "SGI Free Software License B v2.0", + OsiApproved = false, + SPDX = "SGI-B-2.0" + }, + new + { + Id = 311, + FsfApproved = false, + Link = "https://spdx.org/licenses/SimPL-2.0.html#licenseText", + Name = "Simple Public License 2.0", + OsiApproved = true, + SPDX = "SimPL-2.0" + }, + new + { + Id = 312, + FsfApproved = true, + Link = "https://spdx.org/licenses/SISSL.html#licenseText", + Name = "Sun Industry Standards Source License v1.1", + OsiApproved = true, + SPDX = "SISSL" + }, + new + { + Id = 313, + FsfApproved = false, + Link = "https://spdx.org/licenses/SISSL-1.2.html#licenseText", + Name = "Sun Industry Standards Source License v1.2", + OsiApproved = false, + SPDX = "SISSL-1.2" + }, + new + { + Id = 314, + FsfApproved = true, + Link = "https://spdx.org/licenses/Sleepycat.html#licenseText", + Name = "Sleepycat License", + OsiApproved = true, + SPDX = "Sleepycat" + }, + new + { + Id = 315, + FsfApproved = true, + Link = "https://spdx.org/licenses/SMLNJ.html#licenseText", + Name = "Standard ML of New Jersey License", + OsiApproved = false, + SPDX = "SMLNJ" + }, + new + { + Id = 316, + FsfApproved = false, + Link = "https://spdx.org/licenses/SMPPL.html#licenseText", + Name = "Secure Messaging Protocol Public License", + OsiApproved = false, + SPDX = "SMPPL" + }, + new + { + Id = 317, + FsfApproved = false, + Link = "https://spdx.org/licenses/SNIA.html#licenseText", + Name = "SNIA Public License 1.1", + OsiApproved = false, + SPDX = "SNIA" + }, + new + { + Id = 318, + FsfApproved = false, + Link = "https://spdx.org/licenses/Spencer-86.html#licenseText", + Name = "Spencer License 86", + OsiApproved = false, + SPDX = "Spencer-86" + }, + new + { + Id = 319, + FsfApproved = false, + Link = "https://spdx.org/licenses/Spencer-94.html#licenseText", + Name = "Spencer License 94", + OsiApproved = false, + SPDX = "Spencer-94" + }, + new + { + Id = 320, + FsfApproved = false, + Link = "https://spdx.org/licenses/Spencer-99.html#licenseText", + Name = "Spencer License 99", + OsiApproved = false, + SPDX = "Spencer-99" + }, + new + { + Id = 321, + FsfApproved = true, + Link = "https://spdx.org/licenses/SPL-1.0.html#licenseText", + Name = "Sun Public License v1.0", + OsiApproved = true, + SPDX = "SPL-1.0" + }, + new + { + Id = 322, + FsfApproved = false, + Link = "https://spdx.org/licenses/SugarCRM-1.1.3.html#licenseText", + Name = "SugarCRM Public License v1.1.3", + OsiApproved = false, + SPDX = "SugarCRM-1.1.3" + }, + new + { + Id = 323, + FsfApproved = false, + Link = "https://spdx.org/licenses/SWL.html#licenseText", + Name = "Scheme Widget Library (SWL) Software License Agreement", + OsiApproved = false, + SPDX = "SWL" + }, + new + { + Id = 324, + FsfApproved = false, + Link = "https://spdx.org/licenses/TAPR-OHL-1.0.html#licenseText", + Name = "TAPR Open Hardware License v1.0", + OsiApproved = false, + SPDX = "TAPR-OHL-1.0" + }, + new + { + Id = 325, + FsfApproved = false, + Link = "https://spdx.org/licenses/TCL.html#licenseText", + Name = "TCL/TK License", + OsiApproved = false, + SPDX = "TCL" + }, + new + { + Id = 326, + FsfApproved = false, + Link = "https://spdx.org/licenses/TCP-wrappers.html#licenseText", + Name = "TCP Wrappers License", + OsiApproved = false, + SPDX = "TCP-wrappers" + }, + new + { + Id = 327, + FsfApproved = false, + Link = "https://spdx.org/licenses/TMate.html#licenseText", + Name = "TMate Open Source License", + OsiApproved = false, + SPDX = "TMate" + }, + new + { + Id = 328, + FsfApproved = false, + Link = "https://spdx.org/licenses/TORQUE-1.1.html#licenseText", + Name = "TORQUE v2.5+ Software License v1.1", + OsiApproved = false, + SPDX = "TORQUE-1.1" + }, + new + { + Id = 329, + FsfApproved = false, + Link = "https://spdx.org/licenses/TOSL.html#licenseText", + Name = "Trusster Open Source License", + OsiApproved = false, + SPDX = "TOSL" + }, + new + { + Id = 330, + FsfApproved = false, + Link = "https://spdx.org/licenses/TU-Berlin-1.0.html#licenseText", + Name = "Technische Universitaet Berlin License 1.0", + OsiApproved = false, + SPDX = "TU-Berlin-1.0" + }, + new + { + Id = 331, + FsfApproved = false, + Link = "https://spdx.org/licenses/TU-Berlin-2.0.html#licenseText", + Name = "Technische Universitaet Berlin License 2.0", + OsiApproved = false, + SPDX = "TU-Berlin-2.0" + }, + new + { + Id = 332, + FsfApproved = false, + Link = "https://spdx.org/licenses/Unicode-DFS-2015.html#licenseText", + Name = "Unicode License Agreement - Data Files and Software (2015)", + OsiApproved = false, + SPDX = "Unicode-DFS-2015" + }, + new + { + Id = 333, + FsfApproved = false, + Link = "https://spdx.org/licenses/Unicode-DFS-2016.html#licenseText", + Name = "Unicode License Agreement - Data Files and Software (2016)", + OsiApproved = false, + SPDX = "Unicode-DFS-2016" + }, + new + { + Id = 334, + FsfApproved = false, + Link = "https://spdx.org/licenses/Unicode-TOU.html#licenseText", + Name = "Unicode Terms of Use", + OsiApproved = false, + SPDX = "Unicode-TOU" + }, + new + { + Id = 335, + FsfApproved = true, + Link = "https://spdx.org/licenses/Unlicense.html#licenseText", + Name = "The Unlicense", + OsiApproved = false, + SPDX = "Unlicense" + }, + new + { + Id = 336, + FsfApproved = true, + Link = "https://spdx.org/licenses/UPL-1.0.html#licenseText", + Name = "Universal Permissive License v1.0", + OsiApproved = true, + SPDX = "UPL-1.0" + }, + new + { + Id = 337, + FsfApproved = true, + Link = "https://spdx.org/licenses/Vim.html#licenseText", + Name = "Vim License", + OsiApproved = false, + SPDX = "Vim" + }, + new + { + Id = 338, + FsfApproved = false, + Link = "https://spdx.org/licenses/VOSTROM.html#licenseText", + Name = "VOSTROM Public License for Open Source", + OsiApproved = false, + SPDX = "VOSTROM" + }, + new + { + Id = 339, + FsfApproved = false, + Link = "https://spdx.org/licenses/VSL-1.0.html#licenseText", + Name = "Vovida Software License v1.0", + OsiApproved = true, + SPDX = "VSL-1.0" + }, + new + { + Id = 340, + FsfApproved = true, + Link = "https://spdx.org/licenses/W3C.html#licenseText", + Name = "W3C Software Notice and License (2002-12-31)", + OsiApproved = true, + SPDX = "W3C" + }, + new + { + Id = 341, + FsfApproved = false, + Link = "https://spdx.org/licenses/W3C-19980720.html#licenseText", + Name = "W3C Software Notice and License (1998-07-20)", + OsiApproved = false, + SPDX = "W3C-19980720" + }, + new + { + Id = 342, + FsfApproved = false, + Link = "https://spdx.org/licenses/W3C-20150513.html#licenseText", + Name = "W3C Software Notice and Document License (2015-05-13)", + OsiApproved = false, + SPDX = "W3C-20150513" + }, + new + { + Id = 343, + FsfApproved = false, + Link = "https://spdx.org/licenses/Watcom-1.0.html#licenseText", + Name = "Sybase Open Watcom Public License 1.0", + OsiApproved = true, + SPDX = "Watcom-1.0" + }, + new + { + Id = 344, + FsfApproved = false, + Link = "https://spdx.org/licenses/Wsuipa.html#licenseText", + Name = "Wsuipa License", + OsiApproved = false, + SPDX = "Wsuipa" + }, + new + { + Id = 345, + FsfApproved = true, + Link = "https://spdx.org/licenses/WTFPL.html#licenseText", + Name = "Do What The F*ck You Want To Public License", + OsiApproved = false, + SPDX = "WTFPL" + }, + new + { + Id = 346, + FsfApproved = true, + Link = "https://spdx.org/licenses/X11.html#licenseText", + Name = "X11 License", + OsiApproved = false, + SPDX = "X11" + }, + new + { + Id = 347, + FsfApproved = false, + Link = "https://spdx.org/licenses/Xerox.html#licenseText", + Name = "Xerox License", + OsiApproved = false, + SPDX = "Xerox" + }, + new + { + Id = 348, + FsfApproved = true, + Link = "https://spdx.org/licenses/XFree86-1.1.html#licenseText", + Name = "XFree86 License 1.1", + OsiApproved = false, + SPDX = "XFree86-1.1" + }, + new + { + Id = 349, + FsfApproved = true, + Link = "https://spdx.org/licenses/xinetd.html#licenseText", + Name = "xinetd License", + OsiApproved = false, + SPDX = "xinetd" + }, + new + { + Id = 350, + FsfApproved = false, + Link = "https://spdx.org/licenses/Xnet.html#licenseText", + Name = "X.Net License", + OsiApproved = true, + SPDX = "Xnet" + }, + new + { + Id = 351, + FsfApproved = false, + Link = "https://spdx.org/licenses/xpp.html#licenseText", + Name = "XPP License", + OsiApproved = false, + SPDX = "xpp" + }, + new + { + Id = 352, + FsfApproved = false, + Link = "https://spdx.org/licenses/XSkat.html#licenseText", + Name = "XSkat License", + OsiApproved = false, + SPDX = "XSkat" + }, + new + { + Id = 353, + FsfApproved = false, + Link = "https://spdx.org/licenses/YPL-1.0.html#licenseText", + Name = "Yahoo! Public License v1.0", + OsiApproved = false, + SPDX = "YPL-1.0" + }, + new + { + Id = 354, + FsfApproved = true, + Link = "https://spdx.org/licenses/YPL-1.1.html#licenseText", + Name = "Yahoo! Public License v1.1", + OsiApproved = false, + SPDX = "YPL-1.1" + }, + new + { + Id = 355, + FsfApproved = false, + Link = "https://spdx.org/licenses/Zed.html#licenseText", + Name = "Zed License", + OsiApproved = false, + SPDX = "Zed" + }, + new + { + Id = 356, + FsfApproved = true, + Link = "https://spdx.org/licenses/Zend-2.0.html#licenseText", + Name = "Zend License v2.0", + OsiApproved = false, + SPDX = "Zend-2.0" + }, + new + { + Id = 357, + FsfApproved = true, + Link = "https://spdx.org/licenses/Zimbra-1.3.html#licenseText", + Name = "Zimbra Public License v1.3", + OsiApproved = false, + SPDX = "Zimbra-1.3" + }, + new + { + Id = 358, + FsfApproved = false, + Link = "https://spdx.org/licenses/Zimbra-1.4.html#licenseText", + Name = "Zimbra Public License v1.4", + OsiApproved = false, + SPDX = "Zimbra-1.4" + }, + new + { + Id = 359, + FsfApproved = true, + Link = "https://spdx.org/licenses/Zlib.html#licenseText", + Name = "zlib License", + OsiApproved = true, + SPDX = "Zlib" + }, + new + { + Id = 360, + FsfApproved = false, + Link = "https://spdx.org/licenses/zlib-acknowledgement.html#licenseText", + Name = "zlib/libpng License with Acknowledgement", + OsiApproved = false, + SPDX = "zlib-acknowledgement" + }, + new + { + Id = 361, + FsfApproved = false, + Link = "https://spdx.org/licenses/ZPL-1.1.html#licenseText", + Name = "Zope Public License 1.1", + OsiApproved = false, + SPDX = "ZPL-1.1" + }, + new + { + Id = 362, + FsfApproved = true, + Link = "https://spdx.org/licenses/ZPL-2.0.html#licenseText", + Name = "Zope Public License 2.0", + OsiApproved = true, + SPDX = "ZPL-2.0" + }, + new + { + Id = 363, + FsfApproved = true, + Link = "https://spdx.org/licenses/ZPL-2.1.html#licenseText", + Name = "Zope Public License 2.1", + OsiApproved = false, + SPDX = "ZPL-2.1" + }); + }); + + modelBuilder.Entity("Cicm.Database.Models.Log", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("Browser") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("browser") + .HasColumnType("char(128)") + .HasDefaultValueSql("''"); + + b.Property("Date") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("date") + .HasColumnType("char(20)") + .HasDefaultValueSql("''"); + + b.Property("Ip") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("ip") + .HasColumnType("char(16)") + .HasDefaultValueSql("''"); + + b.Property("Referer") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("referer") + .HasColumnType("char(255)") + .HasDefaultValueSql("''"); + + b.HasKey("Id"); + + b.HasIndex("Browser") + .HasName("idx_log_browser"); + + b.HasIndex("Date") + .HasName("idx_log_date"); + + b.HasIndex("Ip") + .HasName("idx_log_ip"); + + b.HasIndex("Referer") + .HasName("idx_log_referer"); + + b.ToTable("log"); + }); + + modelBuilder.Entity("Cicm.Database.Models.Machine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("CompanyId") + .ValueGeneratedOnAdd() + .HasColumnName("company") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("FamilyId") + .HasColumnName("family") + .HasColumnType("int(11)"); + + b.Property("Introduced") + .HasColumnName("introduced") + .HasColumnType("datetime"); + + b.Property("Model") + .HasColumnName("model") + .HasColumnType("varchar(50)") + .HasMaxLength(50); + + b.Property("Name") + .IsRequired() + .HasColumnName("name") + .HasColumnType("varchar(255)") + .HasMaxLength(255); + + b.Property("Type") + .ValueGeneratedOnAdd() + .HasColumnName("type") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.HasKey("Id"); + + b.HasIndex("CompanyId") + .HasName("idx_machines_company"); + + b.HasIndex("FamilyId") + .HasName("idx_machines_family"); + + b.HasIndex("Introduced") + .HasName("idx_machines_introduced"); + + b.HasIndex("Model") + .HasName("idx_machines_model"); + + b.HasIndex("Name") + .HasName("idx_machines_name"); + + b.HasIndex("Type") + .HasName("idx_machines_type"); + + b.ToTable("machines"); + }); + + modelBuilder.Entity("Cicm.Database.Models.MachineFamily", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("CompanyId") + .HasColumnName("company") + .HasColumnType("int(11)"); + + b.Property("Name") + .IsRequired() + .HasColumnName("name") + .HasColumnType("varchar(255)") + .HasMaxLength(255); + + b.HasKey("Id"); + + b.HasIndex("CompanyId") + .HasName("idx_machine_families_company"); + + b.HasIndex("Name") + .HasName("idx_machine_families_name"); + + b.ToTable("machine_families"); + }); + + modelBuilder.Entity("Cicm.Database.Models.MachinePhoto", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Author"); + + b.Property("CameraManufacturer"); + + b.Property("CameraModel"); + + b.Property("ColorSpace"); + + b.Property("Comments"); + + b.Property("Contrast"); + + b.Property("CreationDate"); + + b.Property("DigitalZoomRatio"); + + b.Property("ExifVersion"); + + b.Property("Exposure"); + + b.Property("ExposureMethod"); + + b.Property("ExposureProgram"); + + b.Property("Flash"); + + b.Property("Focal"); + + b.Property("FocalLength"); + + b.Property("FocalLengthEquivalent"); + + b.Property("HorizontalResolution"); + + b.Property("IsoRating"); + + b.Property("Lens"); + + b.Property("LicenseId"); + + b.Property("LightSource"); + + b.Property("MachineId"); + + b.Property("MeteringMode"); + + b.Property("Orientation"); + + b.Property("PixelComposition"); + + b.Property("Saturation"); + + b.Property("SceneCaptureType"); + + b.Property("SceneControl"); + + b.Property("SensingMethod"); + + b.Property("Sharpness"); + + b.Property("SoftwareUsed"); + + b.Property("SubjectDistanceRange"); + + b.Property("UploadDate") + .IsConcurrencyToken() + .ValueGeneratedOnAddOrUpdate(); + + b.Property("UserId"); + + b.Property("VerticalResolution"); + + b.Property("WhiteBalance"); + + b.HasKey("Id"); + + b.HasIndex("Author"); + + b.HasIndex("CameraManufacturer"); + + b.HasIndex("CameraModel"); + + b.HasIndex("ColorSpace"); + + b.HasIndex("Comments"); + + b.HasIndex("Contrast"); + + b.HasIndex("CreationDate"); + + b.HasIndex("DigitalZoomRatio"); + + b.HasIndex("ExifVersion"); + + b.HasIndex("Exposure"); + + b.HasIndex("ExposureMethod"); + + b.HasIndex("ExposureProgram"); + + b.HasIndex("Flash"); + + b.HasIndex("Focal"); + + b.HasIndex("FocalLength"); + + b.HasIndex("FocalLengthEquivalent"); + + b.HasIndex("HorizontalResolution"); + + b.HasIndex("IsoRating"); + + b.HasIndex("Lens"); + + b.HasIndex("LicenseId"); + + b.HasIndex("LightSource"); + + b.HasIndex("MachineId"); + + b.HasIndex("MeteringMode"); + + b.HasIndex("Orientation"); + + b.HasIndex("PixelComposition"); + + b.HasIndex("Saturation"); + + b.HasIndex("SceneCaptureType"); + + b.HasIndex("SceneControl"); + + b.HasIndex("SensingMethod"); + + b.HasIndex("Sharpness"); + + b.HasIndex("SoftwareUsed"); + + b.HasIndex("SubjectDistanceRange"); + + b.HasIndex("UploadDate"); + + b.HasIndex("UserId"); + + b.HasIndex("VerticalResolution"); + + b.HasIndex("WhiteBalance"); + + b.ToTable("MachinePhotos"); + }); + + modelBuilder.Entity("Cicm.Database.Models.MemoryByMachine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("bigint(20)"); + + b.Property("MachineId") + .HasColumnName("machine") + .HasColumnType("int(11)"); + + b.Property("Size") + .HasColumnName("size") + .HasColumnType("bigint(20)"); + + b.Property("Speed") + .HasColumnName("speed"); + + b.Property("Type") + .ValueGeneratedOnAdd() + .HasColumnName("type") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("Usage") + .ValueGeneratedOnAdd() + .HasColumnName("usage") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.HasKey("Id"); + + b.HasIndex("MachineId") + .HasName("idx_memory_by_machine_machine"); + + b.HasIndex("Size") + .HasName("idx_memory_by_machine_size"); + + b.HasIndex("Speed") + .HasName("idx_memory_by_machine_speed"); + + b.HasIndex("Type") + .HasName("idx_memory_by_machine_type"); + + b.HasIndex("Usage") + .HasName("idx_memory_by_machine_usage"); + + b.ToTable("memory_by_machine"); + }); + + modelBuilder.Entity("Cicm.Database.Models.MoneyDonation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("Donator") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("donator") + .HasColumnType("char(128)") + .HasDefaultValueSql("''"); + + b.Property("Quantity") + .ValueGeneratedOnAdd() + .HasColumnName("quantity") + .HasColumnType("decimal(11,2)") + .HasDefaultValueSql("'0.00'"); + + b.HasKey("Id"); + + b.HasIndex("Donator") + .HasName("idx_money_donations_donator"); + + b.HasIndex("Quantity") + .HasName("idx_money_donations_quantity"); + + b.ToTable("money_donations"); + }); + + modelBuilder.Entity("Cicm.Database.Models.News", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("AddedId") + .ValueGeneratedOnAdd() + .HasColumnName("added_id") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("Date") + .HasColumnName("date") + .HasColumnType("datetime"); + + b.Property("Type") + .ValueGeneratedOnAdd() + .HasColumnName("type") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.HasKey("Id"); + + b.HasIndex("AddedId") + .HasName("idx_news_ip"); + + b.HasIndex("Date") + .HasName("idx_news_date"); + + b.HasIndex("Type") + .HasName("idx_news_type"); + + b.ToTable("news"); + }); + + modelBuilder.Entity("Cicm.Database.Models.OwnedComputer", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("Boxed") + .ValueGeneratedOnAdd() + .HasColumnName("boxed") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("Cap1") + .ValueGeneratedOnAdd() + .HasColumnName("cap1") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("Cap2") + .ValueGeneratedOnAdd() + .HasColumnName("cap2") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("Cpu1") + .ValueGeneratedOnAdd() + .HasColumnName("cpu1") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("Cpu2") + .ValueGeneratedOnAdd() + .HasColumnName("cpu2") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("Date") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("date") + .HasColumnType("varchar(20)") + .HasDefaultValueSql("''"); + + b.Property("DbId") + .ValueGeneratedOnAdd() + .HasColumnName("db_id") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("Disk1") + .ValueGeneratedOnAdd() + .HasColumnName("disk1") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("Disk2") + .ValueGeneratedOnAdd() + .HasColumnName("disk2") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("Manuals") + .ValueGeneratedOnAdd() + .HasColumnName("manuals") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("Mhz1") + .ValueGeneratedOnAdd() + .HasColumnName("mhz1") + .HasColumnType("decimal(10,0)") + .HasDefaultValueSql("'0'"); + + b.Property("Mhz2") + .ValueGeneratedOnAdd() + .HasColumnName("mhz2") + .HasColumnType("decimal(10,0)") + .HasDefaultValueSql("'0'"); + + b.Property("Ram") + .ValueGeneratedOnAdd() + .HasColumnName("ram") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("Rigid") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("rigid") + .HasColumnType("varchar(64)") + .HasDefaultValueSql("''"); + + b.Property("Status") + .ValueGeneratedOnAdd() + .HasColumnName("status") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("Trade") + .ValueGeneratedOnAdd() + .HasColumnName("trade") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("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"); + + b.HasIndex("Mhz2") + .HasName("idx_owned_computers_mhz2"); + + b.HasIndex("Ram") + .HasName("idx_owned_computers_ram"); + + b.HasIndex("Rigid") + .HasName("idx_owned_computers_rigid"); + + b.HasIndex("Status") + .HasName("idx_owned_computers_status"); + + b.HasIndex("Trade") + .HasName("idx_owned_computers_trade"); + + b.HasIndex("Vram") + .HasName("idx_owned_computers_vram"); + + b.ToTable("owned_computers"); + }); + + modelBuilder.Entity("Cicm.Database.Models.OwnedConsole", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("Boxed") + .ValueGeneratedOnAdd() + .HasColumnName("boxed") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("Date") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("date") + .HasColumnType("char(20)") + .HasDefaultValueSql("''"); + + b.Property("DbId") + .ValueGeneratedOnAdd() + .HasColumnName("db_id") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("Manuals") + .ValueGeneratedOnAdd() + .HasColumnName("manuals") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("Status") + .ValueGeneratedOnAdd() + .HasColumnName("status") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("Trade") + .ValueGeneratedOnAdd() + .HasColumnName("trade") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.HasKey("Id"); + + b.HasIndex("Boxed") + .HasName("idx_owned_consoles_boxed"); + + b.HasIndex("Date") + .HasName("idx_owned_consoles_date"); + + b.HasIndex("DbId") + .HasName("idx_owned_consoles_db_id"); + + b.HasIndex("Manuals") + .HasName("idx_owned_consoles_manuals"); + + b.HasIndex("Status") + .HasName("idx_owned_consoles_status"); + + b.HasIndex("Trade") + .HasName("idx_owned_consoles_trade"); + + b.ToTable("owned_consoles"); + }); + + modelBuilder.Entity("Cicm.Database.Models.Processor", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("AddrBus") + .HasColumnName("addr_bus") + .HasColumnType("int(11)"); + + b.Property("CompanyId") + .HasColumnName("company") + .HasColumnType("int(11)"); + + b.Property("Cores") + .HasColumnName("cores") + .HasColumnType("int(11)"); + + b.Property("DataBus") + .HasColumnName("data_bus") + .HasColumnType("int(11)"); + + b.Property("DieSize") + .HasColumnName("die_size"); + + b.Property("FprSize") + .HasColumnName("FPR_size") + .HasColumnType("int(11)"); + + b.Property("Fprs") + .HasColumnName("FPRs") + .HasColumnType("int(11)"); + + b.Property("GprSize") + .HasColumnName("GPR_size") + .HasColumnType("int(11)"); + + b.Property("Gprs") + .HasColumnName("GPRs") + .HasColumnType("int(11)"); + + b.Property("InstructionSetId") + .HasColumnName("instruction_set") + .HasColumnType("int(11)"); + + b.Property("Introduced") + .HasColumnName("introduced") + .HasColumnType("datetime"); + + b.Property("L1Data") + .HasColumnName("L1_data"); + + b.Property("L1Instruction") + .HasColumnName("L1_instruction"); + + b.Property("L2"); + + b.Property("L3"); + + b.Property("ModelCode") + .HasColumnName("model_code") + .HasColumnType("varchar(45)") + .HasMaxLength(45); + + b.Property("Name") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("name") + .HasColumnType("char(50)") + .HasDefaultValueSql("''") + .HasMaxLength(50); + + b.Property("Package") + .HasColumnName("package") + .HasColumnType("varchar(45)") + .HasMaxLength(45); + + b.Property("Process") + .HasColumnName("process") + .HasColumnType("varchar(45)") + .HasMaxLength(45); + + b.Property("ProcessNm") + .HasColumnName("process_nm"); + + b.Property("SimdRegisters") + .HasColumnName("SIMD_registers") + .HasColumnType("int(11)"); + + b.Property("SimdSize") + .HasColumnName("SIMD_size") + .HasColumnType("int(11)"); + + b.Property("Speed") + .HasColumnName("speed"); + + b.Property("ThreadsPerCore") + .HasColumnName("threads_per_core") + .HasColumnType("int(11)"); + + b.Property("Transistors") + .HasColumnName("transistors") + .HasColumnType("bigint(20)"); + + b.HasKey("Id"); + + b.HasIndex("AddrBus") + .HasName("idx_processors_addr_bus"); + + b.HasIndex("CompanyId") + .HasName("idx_processors_company"); + + b.HasIndex("Cores") + .HasName("idx_processors_cores"); + + b.HasIndex("DataBus") + .HasName("idx_processors_data_bus"); + + b.HasIndex("DieSize") + .HasName("idx_processors_die_size"); + + b.HasIndex("FprSize") + .HasName("idx_processors_FPR_size"); + + b.HasIndex("Fprs") + .HasName("idx_processors_FPRs"); + + b.HasIndex("GprSize") + .HasName("idx_processors_GPR_size"); + + b.HasIndex("Gprs") + .HasName("idx_processors_GPRs"); + + b.HasIndex("InstructionSetId") + .HasName("idx_processors_instruction_set"); + + b.HasIndex("Introduced") + .HasName("idx_processors_introduced"); + + b.HasIndex("L1Data") + .HasName("idx_processors_L1_data"); + + b.HasIndex("L1Instruction") + .HasName("idx_processors_L1_instruction"); + + b.HasIndex("L2") + .HasName("idx_processors_L2"); + + b.HasIndex("L3") + .HasName("idx_processors_L3"); + + b.HasIndex("ModelCode") + .HasName("idx_processors_model_code"); + + b.HasIndex("Name") + .HasName("idx_processors_name"); + + b.HasIndex("Package") + .HasName("idx_processors_package"); + + b.HasIndex("Process") + .HasName("idx_processors_process"); + + b.HasIndex("ProcessNm") + .HasName("idx_processors_process_nm"); + + b.HasIndex("SimdRegisters") + .HasName("idx_processors_SIMD_registers"); + + b.HasIndex("SimdSize") + .HasName("idx_processors_SIMD_size"); + + b.HasIndex("Speed") + .HasName("idx_processors_speed"); + + b.HasIndex("ThreadsPerCore") + .HasName("idx_processors_threads_per_core"); + + b.HasIndex("Transistors") + .HasName("idx_processors_transistors"); + + b.ToTable("processors"); + }); + + modelBuilder.Entity("Cicm.Database.Models.ProcessorsByMachine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("bigint(20)"); + + b.Property("MachineId") + .HasColumnName("machine") + .HasColumnType("int(11)"); + + b.Property("ProcessorId") + .HasColumnName("processor") + .HasColumnType("int(11)"); + + b.Property("Speed") + .HasColumnName("speed"); + + b.HasKey("Id"); + + b.HasIndex("MachineId") + .HasName("idx_processors_by_machine_machine"); + + b.HasIndex("ProcessorId") + .HasName("idx_processors_by_machine_processor"); + + b.HasIndex("Speed") + .HasName("idx_processors_by_machine_speed"); + + b.ToTable("processors_by_machine"); + }); + + modelBuilder.Entity("Cicm.Database.Models.Resolution", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("Chars") + .ValueGeneratedOnAdd() + .HasColumnName("chars") + .HasColumnType("tinyint(1)") + .HasDefaultValueSql("'0'"); + + b.Property("Colors") + .HasColumnName("colors") + .HasColumnType("bigint(20)"); + + b.Property("Grayscale"); + + b.Property("Height") + .ValueGeneratedOnAdd() + .HasColumnName("height") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("Palette") + .HasColumnName("palette") + .HasColumnType("bigint(20)"); + + b.Property("Width") + .ValueGeneratedOnAdd() + .HasColumnName("width") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.HasKey("Id"); + + b.HasIndex("Colors") + .HasName("idx_resolutions_colors"); + + b.HasIndex("Height") + .HasName("idx_resolutions_height"); + + b.HasIndex("Palette") + .HasName("idx_resolutions_palette"); + + b.HasIndex("Width") + .HasName("idx_resolutions_width"); + + b.HasIndex("Width", "Height") + .HasName("idx_resolutions_resolution"); + + b.HasIndex("Width", "Height", "Colors") + .HasName("idx_resolutions_resolution_with_color"); + + b.HasIndex("Width", "Height", "Colors", "Palette") + .HasName("idx_resolutions_resolution_with_color_and_palette"); + + b.ToTable("resolutions"); + }); + + modelBuilder.Entity("Cicm.Database.Models.ResolutionsByGpu", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("bigint(20)"); + + b.Property("GpuId") + .HasColumnName("gpu") + .HasColumnType("int(11)"); + + b.Property("ResolutionId") + .HasColumnName("resolution") + .HasColumnType("int(11)"); + + b.HasKey("Id"); + + b.HasIndex("GpuId") + .HasName("idx_resolutions_by_gpu_gpu"); + + b.HasIndex("ResolutionId") + .HasName("idx_resolutions_by_gpu_resolution"); + + b.ToTable("resolutions_by_gpu"); + }); + + modelBuilder.Entity("Cicm.Database.Models.SoundByMachine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("bigint(20)"); + + b.Property("MachineId") + .HasColumnName("machine") + .HasColumnType("int(11)"); + + b.Property("SoundSynthId") + .HasColumnName("sound_synth") + .HasColumnType("int(11)"); + + b.HasKey("Id"); + + b.HasIndex("MachineId") + .HasName("idx_sound_by_machine_machine"); + + b.HasIndex("SoundSynthId") + .HasName("idx_sound_by_machine_sound_synth"); + + b.ToTable("sound_by_machine"); + }); + + modelBuilder.Entity("Cicm.Database.Models.SoundSynth", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("int(11)"); + + b.Property("CompanyId") + .HasColumnName("company") + .HasColumnType("int(11)"); + + b.Property("Depth") + .HasColumnName("depth") + .HasColumnType("int(11)"); + + b.Property("Frequency") + .HasColumnName("frequency"); + + b.Property("Introduced") + .HasColumnName("introduced") + .HasColumnType("datetime"); + + b.Property("ModelCode") + .HasColumnName("model_code") + .HasColumnType("varchar(45)") + .HasMaxLength(45); + + b.Property("Name") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnName("name") + .HasColumnType("char(50)") + .HasDefaultValueSql("''") + .HasMaxLength(50); + + b.Property("SquareWave") + .HasColumnName("square_wave") + .HasColumnType("int(11)"); + + b.Property("Type") + .HasColumnName("type") + .HasColumnType("int(11)"); + + b.Property("Voices") + .HasColumnName("voices") + .HasColumnType("int(11)"); + + b.Property("WhiteNoise") + .HasColumnName("white_noise") + .HasColumnType("int(11)"); + + b.HasKey("Id"); + + b.HasIndex("CompanyId") + .HasName("idx_sound_synths_company"); + + b.HasIndex("Depth") + .HasName("idx_sound_synths_depth"); + + b.HasIndex("Frequency") + .HasName("idx_sound_synths_frequency"); + + b.HasIndex("Introduced") + .HasName("idx_sound_synths_introduced"); + + b.HasIndex("ModelCode") + .HasName("idx_sound_synths_model_code"); + + b.HasIndex("Name") + .HasName("idx_sound_synths_name"); + + b.HasIndex("SquareWave") + .HasName("idx_sound_synths_square_wave"); + + b.HasIndex("Type") + .HasName("idx_sound_synths_type"); + + b.HasIndex("Voices") + .HasName("idx_sound_synths_voices"); + + b.HasIndex("WhiteNoise") + .HasName("idx_sound_synths_white_noise"); + + b.ToTable("sound_synths"); + }); + + modelBuilder.Entity("Cicm.Database.Models.StorageByMachine", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnName("id") + .HasColumnType("bigint(20)"); + + b.Property("Capacity") + .HasColumnName("capacity") + .HasColumnType("bigint(20)"); + + b.Property("Interface") + .ValueGeneratedOnAdd() + .HasColumnName("interface") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.Property("MachineId") + .HasColumnName("machine") + .HasColumnType("int(11)"); + + b.Property("Type") + .ValueGeneratedOnAdd() + .HasColumnName("type") + .HasColumnType("int(11)") + .HasDefaultValueSql("'0'"); + + b.HasKey("Id"); + + b.HasIndex("Capacity") + .HasName("idx_storage_capacity"); + + b.HasIndex("Interface") + .HasName("idx_storage_interface"); + + b.HasIndex("MachineId") + .HasName("idx_storage_machine"); + + b.HasIndex("Type") + .HasName("idx_storage_type"); + + b.ToTable("storage_by_machine"); + }); + + modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken(); + + b.Property("Name") + .HasMaxLength(256); + + b.Property("NormalizedName") + .HasMaxLength(256); + + b.HasKey("Id"); + + b.HasIndex("NormalizedName") + .IsUnique() + .HasName("RoleNameIndex"); + + b.ToTable("AspNetRoles"); + }); + + modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClaimType"); + + b.Property("ClaimValue"); + + b.Property("RoleId") + .IsRequired(); + + b.HasKey("Id"); + + b.HasIndex("RoleId"); + + b.ToTable("AspNetRoleClaims"); + }); + + modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUser", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AccessFailedCount"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken(); + + b.Property("Discriminator") + .IsRequired(); + + b.Property("Email") + .HasMaxLength(256); + + b.Property("EmailConfirmed"); + + b.Property("LockoutEnabled"); + + b.Property("LockoutEnd"); + + b.Property("NormalizedEmail") + .HasMaxLength(256); + + b.Property("NormalizedUserName") + .HasMaxLength(256); + + b.Property("PasswordHash"); + + b.Property("PhoneNumber"); + + b.Property("PhoneNumberConfirmed"); + + b.Property("SecurityStamp"); + + b.Property("TwoFactorEnabled"); + + b.Property("UserName") + .HasMaxLength(256); + + b.HasKey("Id"); + + b.HasIndex("NormalizedEmail") + .HasName("EmailIndex"); + + b.HasIndex("NormalizedUserName") + .IsUnique() + .HasName("UserNameIndex"); + + b.ToTable("AspNetUsers"); + + b.HasDiscriminator("Discriminator").HasValue("IdentityUser"); + }); + + modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClaimType"); + + b.Property("ClaimValue"); + + b.Property("UserId") + .IsRequired(); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.ToTable("AspNetUserClaims"); + }); + + modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => + { + b.Property("LoginProvider") + .HasMaxLength(128); + + b.Property("ProviderKey") + .HasMaxLength(128); + + b.Property("ProviderDisplayName"); + + b.Property("UserId") + .IsRequired(); + + b.HasKey("LoginProvider", "ProviderKey"); + + b.HasIndex("UserId"); + + b.ToTable("AspNetUserLogins"); + }); + + modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => + { + b.Property("UserId"); + + b.Property("RoleId"); + + b.HasKey("UserId", "RoleId"); + + b.HasIndex("RoleId"); + + b.ToTable("AspNetUserRoles"); + }); + + modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => + { + b.Property("UserId"); + + b.Property("LoginProvider") + .HasMaxLength(128); + + b.Property("Name") + .HasMaxLength(128); + + b.Property("Value"); + + b.HasKey("UserId", "LoginProvider", "Name"); + + b.ToTable("AspNetUserTokens"); + }); + + modelBuilder.Entity("Cicm.Database.Models.ApplicationUser", b => + { + b.HasBaseType("Microsoft.AspNetCore.Identity.IdentityUser"); + + b.HasDiscriminator().HasValue("ApplicationUser"); + }); + + modelBuilder.Entity("Cicm.Database.Models.Company", b => + { + 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"); + }); + + modelBuilder.Entity("Cicm.Database.Models.CompanyDescription", b => + { + b.HasOne("Cicm.Database.Models.Company", "Company") + .WithMany("Descriptions") + .HasForeignKey("CompanyId") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Cicm.Database.Models.CompanyLogo", b => + { + b.HasOne("Cicm.Database.Models.Company", "Company") + .WithMany("Logos") + .HasForeignKey("CompanyId") + .HasConstraintName("fk_company_logos_company1"); + }); + + modelBuilder.Entity("Cicm.Database.Models.Gpu", b => + { + b.HasOne("Cicm.Database.Models.Company", "Company") + .WithMany("Gpus") + .HasForeignKey("CompanyId") + .HasConstraintName("fk_gpus_company"); + }); + + 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"); + }); + + modelBuilder.Entity("Cicm.Database.Models.Machine", b => + { + 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"); + }); + + 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.License", "License") + .WithMany("Photos") + .HasForeignKey("LicenseId") + .OnDelete(DeleteBehavior.Cascade); + + 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); + }); + + 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); + }); + + 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"); + }); + + 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); + }); + + modelBuilder.Entity("Cicm.Database.Models.ResolutionsByGpu", b => + { + 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); + }); + + modelBuilder.Entity("Cicm.Database.Models.SoundByMachine", b => + { + 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", b => + { + b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole") + .WithMany() + .HasForeignKey("RoleId") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => + { + b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => + { + b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => + { + 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", b => + { + b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/Cicm.Database/Migrations/20190527165154_UseLicenseInMachinePhoto.cs b/Cicm.Database/Migrations/20190527165154_UseLicenseInMachinePhoto.cs new file mode 100644 index 00000000..c2186678 --- /dev/null +++ b/Cicm.Database/Migrations/20190527165154_UseLicenseInMachinePhoto.cs @@ -0,0 +1,34 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Cicm.Database.Migrations +{ + public partial class UseLicenseInMachinePhoto : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropIndex("IX_MachinePhotos_License", "MachinePhotos"); + + migrationBuilder.DropColumn("License", "MachinePhotos"); + + migrationBuilder.AddColumn("LicenseId", "MachinePhotos", nullable: false, defaultValue: 0); + + migrationBuilder.CreateIndex("IX_MachinePhotos_LicenseId", "MachinePhotos", "LicenseId"); + + migrationBuilder.AddForeignKey("FK_MachinePhotos_Licenses_LicenseId", "MachinePhotos", "LicenseId", + "Licenses", principalColumn: "Id", onDelete: ReferentialAction.Cascade); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropForeignKey("FK_MachinePhotos_Licenses_LicenseId", "MachinePhotos"); + + migrationBuilder.DropIndex("IX_MachinePhotos_LicenseId", "MachinePhotos"); + + migrationBuilder.DropColumn("LicenseId", "MachinePhotos"); + + migrationBuilder.AddColumn("License", "MachinePhotos", nullable: true); + + migrationBuilder.CreateIndex("IX_MachinePhotos_License", "MachinePhotos", "License"); + } + } +} \ No newline at end of file diff --git a/Cicm.Database/Migrations/cicmContextModelSnapshot.cs b/Cicm.Database/Migrations/cicmContextModelSnapshot.cs index a3b6393b..991ec41f 100644 --- a/Cicm.Database/Migrations/cicmContextModelSnapshot.cs +++ b/Cicm.Database/Migrations/cicmContextModelSnapshot.cs @@ -3750,7 +3750,7 @@ namespace Cicm.Database.Migrations b.Property("Lens"); - b.Property("License"); + b.Property("LicenseId"); b.Property("LightSource"); @@ -3824,7 +3824,7 @@ namespace Cicm.Database.Migrations b.HasIndex("Lens"); - b.HasIndex("License"); + b.HasIndex("LicenseId"); b.HasIndex("LightSource"); @@ -4566,6 +4566,9 @@ namespace Cicm.Database.Migrations modelBuilder.Entity("Cicm.Database.Models.MachinePhoto", b => { + b.HasOne("Cicm.Database.Models.License", "License").WithMany("Photos").HasForeignKey("LicenseId") + .OnDelete(DeleteBehavior.Cascade); + b.HasOne("Cicm.Database.Models.Machine", "Machine").WithMany("Photos").HasForeignKey("MachineId") .OnDelete(DeleteBehavior.Cascade); diff --git a/Cicm.Database/Models/License.cs b/Cicm.Database/Models/License.cs index c6d178a4..7392b3e7 100644 --- a/Cicm.Database/Models/License.cs +++ b/Cicm.Database/Models/License.cs @@ -1,3 +1,4 @@ +using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; @@ -22,6 +23,7 @@ namespace Cicm.Database.Models [DisplayName("License text")] [Column(TypeName = "longtext")] [StringLength(131072)] - public string Text { get; set; } + public string Text { get; set; } + public virtual ICollection Photos { get; set; } } } \ No newline at end of file diff --git a/Cicm.Database/Models/MachinePhoto.cs b/Cicm.Database/Models/MachinePhoto.cs index f4564a68..10d2ab0a 100644 --- a/Cicm.Database/Models/MachinePhoto.cs +++ b/Cicm.Database/Models/MachinePhoto.cs @@ -40,8 +40,7 @@ namespace Cicm.Database.Models [DisplayName("ISO speed rating")] public int? IsoRating { get; set; } [DisplayName("Lens used")] - public string Lens { get; set; } - public string License { get; set; } + public string Lens { get; set; } [DisplayName("Light source")] public string LightSource { get; set; } [DisplayName("Metering mode")] @@ -70,5 +69,7 @@ namespace Cicm.Database.Models public virtual ApplicationUser User { get; set; } public virtual Machine Machine { get; set; } + [Required] + public virtual License License { get; set; } } } \ No newline at end of file diff --git a/Cicm.Database/Models/cicmContext.cs b/Cicm.Database/Models/cicmContext.cs index 0940acb2..334cf81a 100644 --- a/Cicm.Database/Models/cicmContext.cs +++ b/Cicm.Database/Models/cicmContext.cs @@ -521,8 +521,6 @@ namespace Cicm.Database.Models entity.HasIndex(e => e.Lens); - entity.HasIndex(e => e.License); - entity.HasIndex(e => e.LightSource); entity.HasIndex(e => e.MeteringMode); @@ -554,6 +552,8 @@ namespace Cicm.Database.Models entity.HasOne(d => d.Machine).WithMany(p => p.Photos).OnDelete(DeleteBehavior.Cascade); entity.HasOne(d => d.User).WithMany(p => p.Photos).OnDelete(DeleteBehavior.SetNull); + + entity.HasOne(d => d.License).WithMany(p => p.Photos).OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity(entity => diff --git a/cicm_web/cicm_web.csproj b/cicm_web/cicm_web.csproj index b4d75f90..f6e2e0b5 100644 --- a/cicm_web/cicm_web.csproj +++ b/cicm_web/cicm_web.csproj @@ -2,7 +2,7 @@ netcoreapp2.2 - 3.0.99.591 + 3.0.99.597 Canary Islands Computer Museum Copyright © 2003-2018 Natalia Portillo Canary Islands Computer Museum Website