// using Infrastructure; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace Infrastructure.Migrations { [DbContext(typeof(OptifitDbContext))] [Migration("20250109094527_Second")] partial class Second { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "8.0.1"); modelBuilder.Entity("Infrastructure.Entities.Exercice", b => { b.Property("Id") .HasColumnType("TEXT"); b.Property("Description") .IsRequired() .HasColumnType("TEXT"); b.Property("Duration") .HasColumnType("REAL"); b.Property("Image") .IsRequired() .HasColumnType("TEXT"); b.Property("Name") .IsRequired() .HasColumnType("TEXT"); b.Property("NbRepetitions") .HasColumnType("INTEGER"); b.Property("NbSeries") .HasColumnType("INTEGER"); b.Property("Video") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Exercices"); }); modelBuilder.Entity("Infrastructure.Entities.User", b => { b.Property("Id") .HasColumnType("TEXT"); b.Property("Age") .HasColumnType("INTEGER"); b.Property("EGoal") .HasColumnType("TEXT"); b.Property("EHealthProblem") .HasColumnType("INTEGER"); b.Property("ESleepLevel") .HasColumnType("INTEGER"); b.Property("ESport") .HasColumnType("INTEGER"); b.Property("ESportLevel") .HasColumnType("INTEGER"); b.Property("HashPassword") .IsRequired() .HasColumnType("TEXT"); b.Property("Height") .HasColumnType("REAL"); b.Property("Logo") .IsRequired() .HasColumnType("TEXT"); b.Property("Name") .IsRequired() .HasColumnType("TEXT"); b.Property("NbSessionPerWeek") .HasColumnType("INTEGER"); b.Property("OAuthId") .HasColumnType("TEXT"); b.Property("OAuthProvider") .HasColumnType("TEXT"); b.Property("Sexe") .HasColumnType("INTEGER"); b.Property("Weight") .HasColumnType("REAL"); b.HasKey("Id"); b.ToTable("Users"); }); #pragma warning restore 612, 618 } } }