// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;

#nullable disable

namespace PhotoShareDb.Migrations
{
    [DbContext(typeof(PhotoShareDbContext))]
    [Migration("20260315140529_AddDesireTable2")]
    partial class AddDesireTable2
    {
        /// <inheritdoc />
        protected override void BuildTargetModel(ModelBuilder modelBuilder)
        {
#pragma warning disable 612, 618
            modelBuilder
                .HasAnnotation("ProductVersion", "10.0.3")
                .HasAnnotation("Relational:MaxIdentifierLength", 63);

            NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);

            modelBuilder.Entity("ModelsLib.BDD_Models.DesireData", b =>
                {
                    b.Property<int>("Key")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("integer");

                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Key"));

                    b.Property<string>("Desire")
                        .IsRequired()
                        .HasColumnType("text");

                    b.HasKey("Key");

                    b.ToTable("T_DesireData", (string)null);
                });

            modelBuilder.Entity("ModelsLib.ParametersDb", b =>
                {
                    b.Property<string>("Key")
                        .HasColumnType("text");

                    b.Property<string>("Value")
                        .IsRequired()
                        .HasColumnType("text");

                    b.HasKey("Key");

                    b.ToTable("T_Params", (string)null);
                });

            modelBuilder.Entity("ModelsLib.ShootingData", b =>
                {
                    b.Property<string>("Key")
                        .HasColumnType("text");

                    b.Property<string>("InstagramName")
                        .IsRequired()
                        .HasColumnType("text");

                    b.Property<bool>("IsPhotosSelected")
                        .HasColumnType("boolean");

                    b.Property<int>("MaxChoice")
                        .HasColumnType("integer");

                    b.Property<DateTime>("ShootingDate")
                        .HasColumnType("timestamp with time zone");

                    b.HasKey("Key");

                    b.ToTable("T_ShootingData", (string)null);
                });
#pragma warning restore 612, 618
        }
    }
}
