From 05686f193ffc4ebd7f9dfcbd94924ae965ef4834 Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Sun, 4 Jan 2026 21:11:31 -0600 Subject: [PATCH] feat(migrations): add ContextModelSnapshot for Payments entity --- .../Migrations/ContextModelSnapshot.cs | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/GroundsForSupport.Server/Migrations/ContextModelSnapshot.cs diff --git a/src/GroundsForSupport.Server/Migrations/ContextModelSnapshot.cs b/src/GroundsForSupport.Server/Migrations/ContextModelSnapshot.cs new file mode 100644 index 0000000..2769218 --- /dev/null +++ b/src/GroundsForSupport.Server/Migrations/ContextModelSnapshot.cs @@ -0,0 +1,44 @@ +// +using GroundsForSupport.Server.Data; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace GroundsForSupport.Server.Migrations +{ + [DbContext(typeof(Context))] + partial class ContextModelSnapshot : ModelSnapshot + { + protected override void BuildModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder.HasAnnotation("ProductVersion", "10.0.1"); + + modelBuilder.Entity("GroundsForSupport.Server.Payments.Payment", b => + { + b.Property("Id") + .HasColumnType("TEXT"); + + b.Property("Amount") + .HasColumnType("INTEGER"); + + b.Property("CreatedAtUnix") + .HasColumnType("INTEGER"); + + b.Property("Message") + .HasColumnType("TEXT"); + + b.Property("Name") + .IsRequired() + .HasColumnType("TEXT"); + + b.HasKey("Id"); + + b.ToTable("Payments"); + }); +#pragma warning restore 612, 618 + } + } +}