//
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("20260315131731_AddDesireTable")]
partial class AddDesireTable
{
///
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("Key")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Key"));
b.Property("Desire")
.IsRequired()
.HasColumnType("text");
b.HasKey("Key");
b.ToTable("T_DesireData", (string)null);
});
modelBuilder.Entity("ModelsLib.ParametersDb", b =>
{
b.Property("Key")
.HasColumnType("text");
b.Property("Value")
.IsRequired()
.HasColumnType("text");
b.HasKey("Key");
b.ToTable("T_Params", (string)null);
});
modelBuilder.Entity("ModelsLib.ShootingData", b =>
{
b.Property("Key")
.HasColumnType("text");
b.Property("InstagramName")
.IsRequired()
.HasColumnType("text");
b.Property("IsPhotosSelected")
.HasColumnType("boolean");
b.Property("MaxChoice")
.HasColumnType("integer");
b.Property("ShootingDate")
.HasColumnType("timestamp with time zone");
b.HasKey("Key");
b.ToTable("T_ShootingData", (string)null);
});
#pragma warning restore 612, 618
}
}
}