summaryrefslogtreecommitdiff
path: root/Migrations/ApplicationDbContextModelSnapshot.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Migrations/ApplicationDbContextModelSnapshot.cs')
-rw-r--r--Migrations/ApplicationDbContextModelSnapshot.cs56
1 files changed, 56 insertions, 0 deletions
diff --git a/Migrations/ApplicationDbContextModelSnapshot.cs b/Migrations/ApplicationDbContextModelSnapshot.cs
index e11a6ec..917cafd 100644
--- a/Migrations/ApplicationDbContextModelSnapshot.cs
+++ b/Migrations/ApplicationDbContextModelSnapshot.cs
@@ -75,6 +75,35 @@ namespace BackendPIA.Migrations
b.ToTable("Raffles");
});
+ modelBuilder.Entity("BackendPIA.Models.RaffleWinner", b =>
+ {
+ b.Property<long>("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
+
+ b.Property<long>("PrizeId")
+ .HasColumnType("bigint");
+
+ b.Property<long>("RaffleId")
+ .HasColumnType("bigint");
+
+ b.Property<string>("UserAccountId")
+ .IsRequired()
+ .HasColumnType("text");
+
+ b.HasKey("Id");
+
+ b.HasIndex("PrizeId");
+
+ b.HasIndex("RaffleId");
+
+ b.HasIndex("UserAccountId");
+
+ b.ToTable("RaffleWinners");
+ });
+
modelBuilder.Entity("BackendPIA.Models.Ticket", b =>
{
b.Property<long>("Id")
@@ -319,6 +348,33 @@ namespace BackendPIA.Migrations
b.Navigation("Raffle");
});
+ modelBuilder.Entity("BackendPIA.Models.RaffleWinner", b =>
+ {
+ b.HasOne("BackendPIA.Models.Prize", "Prize")
+ .WithMany()
+ .HasForeignKey("PrizeId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.HasOne("BackendPIA.Models.Raffle", "Raffle")
+ .WithMany()
+ .HasForeignKey("RaffleId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.HasOne("BackendPIA.Models.UserAccount", "UserAccount")
+ .WithMany()
+ .HasForeignKey("UserAccountId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Prize");
+
+ b.Navigation("Raffle");
+
+ b.Navigation("UserAccount");
+ });
+
modelBuilder.Entity("BackendPIA.Models.Ticket", b =>
{
b.HasOne("BackendPIA.Models.Raffle", "Raffle")