summaryrefslogtreecommitdiff
path: root/Migrations/ApplicationDbContextModelSnapshot.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Migrations/ApplicationDbContextModelSnapshot.cs')
-rw-r--r--Migrations/ApplicationDbContextModelSnapshot.cs22
1 files changed, 11 insertions, 11 deletions
diff --git a/Migrations/ApplicationDbContextModelSnapshot.cs b/Migrations/ApplicationDbContextModelSnapshot.cs
index 556a52f..a0d5dfa 100644
--- a/Migrations/ApplicationDbContextModelSnapshot.cs
+++ b/Migrations/ApplicationDbContextModelSnapshot.cs
@@ -60,21 +60,19 @@ namespace BackendPIA.Migrations
b.Property<int>("Number")
.HasColumnType("integer");
- b.Property<string>("OwnerId")
- .HasColumnType("text");
-
b.Property<long>("RaffleId")
.HasColumnType("bigint");
- b.Property<long>("UserAccountId")
- .HasColumnType("bigint");
+ b.Property<string>("UserAccountId")
+ .IsRequired()
+ .HasColumnType("text");
b.HasKey("Id");
- b.HasIndex("OwnerId");
-
b.HasIndex("RaffleId");
+ b.HasIndex("UserAccountId");
+
b.ToTable("Tickets");
});
@@ -283,16 +281,18 @@ namespace BackendPIA.Migrations
modelBuilder.Entity("BackendPIA.Models.Ticket", b =>
{
- b.HasOne("BackendPIA.Models.UserAccount", "Owner")
- .WithMany("Tickets")
- .HasForeignKey("OwnerId");
-
b.HasOne("BackendPIA.Models.Raffle", "Raffle")
.WithMany("Tickets")
.HasForeignKey("RaffleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
+ b.HasOne("BackendPIA.Models.UserAccount", "Owner")
+ .WithMany("Tickets")
+ .HasForeignKey("UserAccountId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
b.Navigation("Owner");
b.Navigation("Raffle");