This commit is contained in:
Paul Schneider 2021-06-21 23:38:05 +01:00
commit b8809deaa1
12 changed files with 625 additions and 182 deletions

View file

@ -204,7 +204,8 @@ namespace nugethost.Migrations
b.Property<string>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("Description");
b.Property<string>("Description")
.HasMaxLength(1024);
b.Property<string>("OwnerId")
.IsRequired();
@ -223,6 +224,9 @@ namespace nugethost.Migrations
b.Property<string>("FullString")
.HasMaxLength(256);
b.Property<string>("Type")
.HasMaxLength(256);
b.Property<bool>("IsPrerelease");
b.Property<int>("Major");
@ -231,7 +235,7 @@ namespace nugethost.Migrations
b.Property<int>("Patch");
b.HasKey("PackageId", "FullString");
b.HasKey("PackageId", "FullString", "Type");
b.ToTable("PackageVersions");
});
@ -300,7 +304,7 @@ namespace nugethost.Migrations
modelBuilder.Entity("nuget_host.Data.PackageVersion", b =>
{
b.HasOne("nuget_host.Data.Package", "Package")
.WithMany()
.WithMany("Versions")
.HasForeignKey("PackageId")
.OnDelete(DeleteBehavior.Cascade);
});