| | 1 | | // <auto-generated /> |
| | 2 | | using System; |
| | 3 | | using Microsoft.EntityFrameworkCore; |
| | 4 | | using Microsoft.EntityFrameworkCore.Infrastructure; |
| | 5 | | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| | 6 | | using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; |
| | 7 | |
|
| | 8 | | #nullable disable |
| | 9 | |
|
| | 10 | | namespace PaymentService.Migrations |
| | 11 | | { |
| | 12 | | [DbContext(typeof(PaymentDbContext))] |
| | 13 | | partial class PaymentDbContextModelSnapshot : ModelSnapshot |
| | 14 | | { |
| | 15 | | protected override void BuildModel(ModelBuilder modelBuilder) |
| | 16 | | { |
| | 17 | | #pragma warning disable 612, 618 |
| 0 | 18 | | modelBuilder |
| 0 | 19 | | .HasAnnotation("ProductVersion", "9.0.4") |
| 0 | 20 | | .HasAnnotation("Relational:MaxIdentifierLength", 63); |
| | 21 | |
|
| 0 | 22 | | NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); |
| | 23 | |
|
| 0 | 24 | | modelBuilder.Entity("Contracts.Payment", b => |
| 0 | 25 | | { |
| 0 | 26 | | b.Property<Guid>("Id") |
| 0 | 27 | | .ValueGeneratedOnAdd() |
| 0 | 28 | | .HasColumnType("uuid"); |
| 0 | 29 | |
|
| 0 | 30 | | b.Property<Guid>("OrderId") |
| 0 | 31 | | .HasColumnType("uuid"); |
| 0 | 32 | |
|
| 0 | 33 | | b.Property<DateTime>("ProcessedAt") |
| 0 | 34 | | .HasColumnType("timestamp with time zone"); |
| 0 | 35 | |
|
| 0 | 36 | | b.Property<string>("ProductName") |
| 0 | 37 | | .IsRequired() |
| 0 | 38 | | .HasColumnType("text"); |
| 0 | 39 | |
|
| 0 | 40 | | b.Property<int>("Quantity") |
| 0 | 41 | | .HasColumnType("integer"); |
| 0 | 42 | |
|
| 0 | 43 | | b.HasKey("Id"); |
| 0 | 44 | |
|
| 0 | 45 | | b.ToTable("Payments"); |
| 0 | 46 | | }); |
| | 47 | | #pragma warning restore 612, 618 |
| 0 | 48 | | } |
| | 49 | | } |
| | 50 | | } |