✨ Lotteries
This commit is contained in:
@@ -1059,6 +1059,109 @@ namespace DysonNetwork.Pass.Migrations
|
||||
b.ToTable("experience_records", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DysonNetwork.Shared.Models.SnLottery", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid")
|
||||
.HasColumnName("id");
|
||||
|
||||
b.Property<Guid>("AccountId")
|
||||
.HasColumnType("uuid")
|
||||
.HasColumnName("account_id");
|
||||
|
||||
b.Property<Instant>("CreatedAt")
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("created_at");
|
||||
|
||||
b.Property<Instant?>("DeletedAt")
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("deleted_at");
|
||||
|
||||
b.Property<Instant?>("DrawDate")
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("draw_date");
|
||||
|
||||
b.Property<int>("DrawStatus")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("draw_status");
|
||||
|
||||
b.Property<int>("Multiplier")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("multiplier");
|
||||
|
||||
b.Property<List<int>>("RegionOneNumbers")
|
||||
.IsRequired()
|
||||
.HasColumnType("jsonb")
|
||||
.HasColumnName("region_one_numbers");
|
||||
|
||||
b.Property<int>("RegionTwoNumber")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("region_two_number");
|
||||
|
||||
b.Property<Instant>("UpdatedAt")
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("updated_at");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("pk_lotteries");
|
||||
|
||||
b.HasIndex("AccountId")
|
||||
.HasDatabaseName("ix_lotteries_account_id");
|
||||
|
||||
b.ToTable("lotteries", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DysonNetwork.Shared.Models.SnLotteryRecord", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid")
|
||||
.HasColumnName("id");
|
||||
|
||||
b.Property<Instant>("CreatedAt")
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("created_at");
|
||||
|
||||
b.Property<Instant?>("DeletedAt")
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("deleted_at");
|
||||
|
||||
b.Property<Instant>("DrawDate")
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("draw_date");
|
||||
|
||||
b.Property<long>("TotalPrizeAmount")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("total_prize_amount");
|
||||
|
||||
b.Property<int>("TotalPrizesAwarded")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("total_prizes_awarded");
|
||||
|
||||
b.Property<int>("TotalTickets")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("total_tickets");
|
||||
|
||||
b.Property<Instant>("UpdatedAt")
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("updated_at");
|
||||
|
||||
b.Property<List<int>>("WinningRegionOneNumbers")
|
||||
.IsRequired()
|
||||
.HasColumnType("jsonb")
|
||||
.HasColumnName("winning_region_one_numbers");
|
||||
|
||||
b.Property<int>("WinningRegionTwoNumber")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("winning_region_two_number");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("pk_lottery_records");
|
||||
|
||||
b.ToTable("lottery_records", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DysonNetwork.Shared.Models.SnMagicSpell", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
@@ -2234,6 +2337,18 @@ namespace DysonNetwork.Pass.Migrations
|
||||
b.Navigation("Account");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DysonNetwork.Shared.Models.SnLottery", b =>
|
||||
{
|
||||
b.HasOne("DysonNetwork.Shared.Models.SnAccount", "Account")
|
||||
.WithMany()
|
||||
.HasForeignKey("AccountId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("fk_lotteries_accounts_account_id");
|
||||
|
||||
b.Navigation("Account");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DysonNetwork.Shared.Models.SnMagicSpell", b =>
|
||||
{
|
||||
b.HasOne("DysonNetwork.Shared.Models.SnAccount", "Account")
|
||||
|
||||
Reference in New Issue
Block a user