Pack opening
This commit is contained in:
@@ -25422,6 +25422,71 @@ namespace SVSim.Database.Migrations
|
||||
b.ToTable("MyRotationSettings");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SVSim.Database.Models.PackConfigEntry", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("BasePackId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTime>("CommenceDate")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<DateTime>("CompleteDate")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<DateTime>("DateCreated")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<DateTime?>("DateUpdated")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("GachaDetail")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("GachaType")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<bool>("IsHide")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("IsNew")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("IsPreRelease")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<int>("OpenCountLimit")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("OverrideDrawEffectPackId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("OverrideUiEffectPackId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("PackCategory")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("PosterType")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTime?>("SalesPeriodTime")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<int>("SleeveId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("SpecialSleeveId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Packs");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SVSim.Database.Models.PaymentItemEntry", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -34209,6 +34274,110 @@ namespace SVSim.Database.Migrations
|
||||
b.Navigation("Class");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SVSim.Database.Models.PackConfigEntry", b =>
|
||||
{
|
||||
b.OwnsMany("SVSim.Database.Models.PackBannerEntry", "Banners", b1 =>
|
||||
{
|
||||
b1.Property<int>("PackConfigEntryId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b1.Property<int>("Id"));
|
||||
|
||||
b1.Property<string>("BannerName")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b1.Property<string>("DialogTitle")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b1.HasKey("PackConfigEntryId", "Id");
|
||||
|
||||
b1.ToTable("PackBannerEntry");
|
||||
|
||||
b1.WithOwner()
|
||||
.HasForeignKey("PackConfigEntryId");
|
||||
});
|
||||
|
||||
b.OwnsMany("SVSim.Database.Models.PackChildGachaEntry", "ChildGachas", b1 =>
|
||||
{
|
||||
b1.Property<int>("PackConfigEntryId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b1.Property<int>("Id"));
|
||||
|
||||
b1.Property<string>("CampaignName")
|
||||
.HasColumnType("text");
|
||||
|
||||
b1.Property<int>("CardCount")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("Cost")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int?>("FreeGachaCampaignId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("GachaId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<bool>("IsDailySingle")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b1.Property<long?>("ItemId")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b1.Property<int>("OverrideIncreaseGachaPoint")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("PurchaseLimitCount")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("TypeDetail")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.HasKey("PackConfigEntryId", "Id");
|
||||
|
||||
b1.ToTable("PackChildGachaEntry");
|
||||
|
||||
b1.WithOwner()
|
||||
.HasForeignKey("PackConfigEntryId");
|
||||
});
|
||||
|
||||
b.OwnsOne("SVSim.Database.Models.PackGachaPointConfig", "GachaPointConfig", b1 =>
|
||||
{
|
||||
b1.Property<int>("PackConfigEntryId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("ExchangeablePoint")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("IncreaseGachaPoint")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.HasKey("PackConfigEntryId");
|
||||
|
||||
b1.ToTable("Packs");
|
||||
|
||||
b1.WithOwner()
|
||||
.HasForeignKey("PackConfigEntryId");
|
||||
});
|
||||
|
||||
b.Navigation("Banners");
|
||||
|
||||
b.Navigation("ChildGachas");
|
||||
|
||||
b.Navigation("GachaPointConfig");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SVSim.Database.Models.ShadowverseCardEntry", b =>
|
||||
{
|
||||
b.HasOne("SVSim.Database.Models.ClassEntry", "Class")
|
||||
@@ -34588,6 +34757,34 @@ namespace SVSim.Database.Migrations
|
||||
.HasForeignKey("ViewerId");
|
||||
});
|
||||
|
||||
b.OwnsMany("SVSim.Database.Models.ViewerPackOpenCount", "PackOpenCounts", b1 =>
|
||||
{
|
||||
b1.Property<long>("ViewerId")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b1.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b1.Property<int>("Id"));
|
||||
|
||||
b1.Property<DateTime?>("LastDailyFreeAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b1.Property<int>("OpenCount")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("PackId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.HasKey("ViewerId", "Id");
|
||||
|
||||
b1.ToTable("ViewerPackOpenCount");
|
||||
|
||||
b1.WithOwner()
|
||||
.HasForeignKey("ViewerId");
|
||||
});
|
||||
|
||||
b.Navigation("Cards");
|
||||
|
||||
b.Navigation("Classes");
|
||||
@@ -34603,6 +34800,8 @@ namespace SVSim.Database.Migrations
|
||||
b.Navigation("MissionData")
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("PackOpenCounts");
|
||||
|
||||
b.Navigation("SocialAccountConnections");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user