// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using StubbedContextLib; #nullable disable namespace StubbedContextLib.Migrations { [DbContext(typeof(AthleteStubbedContext))] [Migration("20240216134447_MyMirgations")] partial class MyMirgations { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "8.0.2"); modelBuilder.Entity("Entities.AthleteEntity", b => { b.Property("IdAthlete") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateOfBirth") .HasColumnType("TEXT"); b.Property("Email") .IsRequired() .HasColumnType("TEXT"); b.Property("FirstName") .IsRequired() .HasMaxLength(150) .HasColumnType("TEXT"); b.Property("IsCoach") .HasColumnType("INTEGER"); b.Property("LastName") .IsRequired() .HasMaxLength(100) .HasColumnType("TEXT"); b.Property("Lenght") .HasColumnType("REAL"); b.Property("Password") .IsRequired() .HasColumnType("TEXT"); b.Property("Sexe") .IsRequired() .HasColumnType("TEXT"); b.Property("Username") .IsRequired() .HasMaxLength(100) .HasColumnType("TEXT"); b.Property("Weight") .HasColumnType("REAL"); b.HasKey("IdAthlete"); b.ToTable("Athlete"); b.HasData( new { IdAthlete = 1, DateOfBirth = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), Email = "john.doe@example.com", FirstName = "John", IsCoach = true, LastName = "Doe", Lenght = 1.8, Password = "password123", Sexe = "M", Username = "Doe", Weight = 75f }, new { IdAthlete = 2, DateOfBirth = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), Email = "jane.smith@example.com", FirstName = "Jane", IsCoach = false, LastName = "Smith", Lenght = 1.6499999999999999, Password = "secure456", Sexe = "F", Username = "Smith", Weight = 60f }, new { IdAthlete = 3, DateOfBirth = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), Email = "paul.martin@example.com", FirstName = "Paul", IsCoach = true, LastName = "Martin", Lenght = 1.75, Password = "super789", Sexe = "M", Username = "Martin", Weight = 68f }, new { IdAthlete = 4, DateOfBirth = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), Email = "anna.brown@example.com", FirstName = "Anna", IsCoach = false, LastName = "Brown", Lenght = 1.7, Password = "test000", Sexe = "F", Username = "Brown", Weight = 58f }, new { IdAthlete = 5, DateOfBirth = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), Email = "bruce.lee@example.com", FirstName = "Bruce", IsCoach = false, LastName = "Lee", Lenght = 2.0, Password = "hello321", Sexe = "M", Username = "Lee", Weight = 90f }); }); #pragma warning restore 612, 618 } } }