summaryrefslogtreecommitdiff
path: root/Migrations
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2022-11-24 16:50:03 -0600
committerHombreLaser <sebastian-440@live.com>2022-11-24 16:50:03 -0600
commit1a504435120bf50f7a51ff1351abe8b7e398d6a2 (patch)
tree2b93e6911ede5456dea840208d8f6f12a125c197 /Migrations
parentbc6c7c8a8071eb5c5f8877247dde5dfab9f5e4f8 (diff)
Añadido DTO POST para Prize
Diffstat (limited to 'Migrations')
-rw-r--r--Migrations/ApplicationDbContextModelSnapshot.cs40
1 files changed, 40 insertions, 0 deletions
diff --git a/Migrations/ApplicationDbContextModelSnapshot.cs b/Migrations/ApplicationDbContextModelSnapshot.cs
index a0d5dfa..e11a6ec 100644
--- a/Migrations/ApplicationDbContextModelSnapshot.cs
+++ b/Migrations/ApplicationDbContextModelSnapshot.cs
@@ -22,6 +22,35 @@ namespace BackendPIA.Migrations
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
+ modelBuilder.Entity("BackendPIA.Models.Prize", b =>
+ {
+ b.Property<long>("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
+
+ b.Property<string>("Category")
+ .IsRequired()
+ .HasColumnType("text");
+
+ b.Property<string>("Name")
+ .IsRequired()
+ .HasColumnType("text");
+
+ b.Property<long>("RaffleId")
+ .HasColumnType("bigint");
+
+ b.Property<int>("Tier")
+ .HasColumnType("integer");
+
+ b.HasKey("Id");
+
+ b.HasIndex("RaffleId");
+
+ b.ToTable("Prizes");
+ });
+
modelBuilder.Entity("BackendPIA.Models.Raffle", b =>
{
b.Property<long>("Id")
@@ -279,6 +308,17 @@ namespace BackendPIA.Migrations
b.ToTable("AspNetUserTokens", (string)null);
});
+ modelBuilder.Entity("BackendPIA.Models.Prize", b =>
+ {
+ b.HasOne("BackendPIA.Models.Raffle", "Raffle")
+ .WithMany()
+ .HasForeignKey("RaffleId")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Raffle");
+ });
+
modelBuilder.Entity("BackendPIA.Models.Ticket", b =>
{
b.HasOne("BackendPIA.Models.Raffle", "Raffle")