dev
This commit is contained in:
@@ -136,7 +136,7 @@ namespace ZpcBulletinBoard.Migrations
|
||||
|
||||
b.HasKey("IdBulletinBoard");
|
||||
|
||||
b.ToTable("BulletinBoards");
|
||||
b.ToTable("BulletinBoards", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.BulletinBoardPage", b =>
|
||||
@@ -145,21 +145,52 @@ namespace ZpcBulletinBoard.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Duration")
|
||||
.HasColumnType("int");
|
||||
b.Property<string>("ExternalLink")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<int>("IdBulletinBoard")
|
||||
.HasColumnType("int");
|
||||
b.Property<string>("Image")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<int>("Ratio")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Type")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("IdBulletinBoardPage");
|
||||
|
||||
b.HasIndex("IdBulletinBoard");
|
||||
b.ToTable("BulletinBoardPage", (string)null);
|
||||
});
|
||||
|
||||
b.ToTable("BulletinBoardPage");
|
||||
modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.BulletinBoardPageLink", b =>
|
||||
{
|
||||
b.Property<int>("IdLink")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Duration")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("IdBulletinBoardFk")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("IdBulletinBoardPageFk")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Order")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("IdLink");
|
||||
|
||||
b.HasIndex("IdBulletinBoardFk");
|
||||
|
||||
b.HasIndex("IdBulletinBoardPageFk");
|
||||
|
||||
b.ToTable("BulletinBoardPageLinks", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.Note", b =>
|
||||
@@ -182,6 +213,9 @@ namespace ZpcBulletinBoard.Migrations
|
||||
b.Property<int>("IdBulletinBoardPage")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Type")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Width")
|
||||
.HasColumnType("int");
|
||||
|
||||
@@ -198,7 +232,7 @@ namespace ZpcBulletinBoard.Migrations
|
||||
|
||||
b.HasIndex("IdBulletinBoardPage");
|
||||
|
||||
b.ToTable("Notes");
|
||||
b.ToTable("Notes", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ZpcBulletinBoard.Models.IdentityApplicationRole", b =>
|
||||
@@ -368,21 +402,29 @@ namespace ZpcBulletinBoard.Migrations
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.BulletinBoardPage", b =>
|
||||
modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.BulletinBoardPageLink", b =>
|
||||
{
|
||||
b.HasOne("ZpcBulletinBoard.Models.Editor.BulletinBoard", "BulletinBoard")
|
||||
.WithMany("Pages")
|
||||
.HasForeignKey("IdBulletinBoard")
|
||||
.WithMany("Links")
|
||||
.HasForeignKey("IdBulletinBoardFk")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("ZpcBulletinBoard.Models.Editor.BulletinBoardPage", "BulletinBoardPage")
|
||||
.WithMany("Links")
|
||||
.HasForeignKey("IdBulletinBoardPageFk")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("BulletinBoard");
|
||||
|
||||
b.Navigation("BulletinBoardPage");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.Note", b =>
|
||||
{
|
||||
b.HasOne("ZpcBulletinBoard.Models.Editor.BulletinBoardPage", "BulletinBoardPage")
|
||||
.WithMany("Notes")
|
||||
.WithMany()
|
||||
.HasForeignKey("IdBulletinBoardPage")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
@@ -392,12 +434,12 @@ namespace ZpcBulletinBoard.Migrations
|
||||
|
||||
modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.BulletinBoard", b =>
|
||||
{
|
||||
b.Navigation("Pages");
|
||||
b.Navigation("Links");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.BulletinBoardPage", b =>
|
||||
{
|
||||
b.Navigation("Notes");
|
||||
b.Navigation("Links");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user