mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Add magazines issues.
This commit is contained in:
@@ -4470,6 +4470,39 @@ namespace Cicm.Database.Migrations
|
||||
b.ToTable("Magazines");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Cicm.Database.Models.MagazineIssue", b =>
|
||||
{
|
||||
b.Property<long>("Id").ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<string>("Caption").IsRequired();
|
||||
|
||||
b.Property<long>("MagazineId");
|
||||
|
||||
b.Property<string>("NativeCaption");
|
||||
|
||||
b.Property<short>("Pages");
|
||||
|
||||
b.Property<string>("ProductCode").HasMaxLength(18);
|
||||
|
||||
b.Property<DateTime?>("Published");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("Caption");
|
||||
|
||||
b.HasIndex("MagazineId");
|
||||
|
||||
b.HasIndex("NativeCaption");
|
||||
|
||||
b.HasIndex("Pages");
|
||||
|
||||
b.HasIndex("ProductCode");
|
||||
|
||||
b.HasIndex("Published");
|
||||
|
||||
b.ToTable("MagazineIssues");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Cicm.Database.Models.MemoryByMachine", b =>
|
||||
{
|
||||
b.Property<long>("Id").ValueGeneratedOnAdd().HasColumnName("id").HasColumnType("bigint(20)");
|
||||
@@ -5638,6 +5671,13 @@ namespace Cicm.Database.Migrations
|
||||
.HasForeignKey("CountryId");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Cicm.Database.Models.MagazineIssue",
|
||||
b =>
|
||||
{
|
||||
b.HasOne("Cicm.Database.Models.Magazine", "Magazine").WithMany("Issues")
|
||||
.HasForeignKey("MagazineId").OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Cicm.Database.Models.MemoryByMachine",
|
||||
b =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user