You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
API/src/StubbedContextLib/Migrations/20240216134447_MyMirgations...

148 lines
5.6 KiB

// <auto-generated />
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
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "8.0.2");
modelBuilder.Entity("Entities.AthleteEntity", b =>
{
b.Property<int>("IdAthlete")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime>("DateOfBirth")
.HasColumnType("TEXT");
b.Property<string>("Email")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("FirstName")
.IsRequired()
.HasMaxLength(150)
.HasColumnType("TEXT");
b.Property<bool>("IsCoach")
.HasColumnType("INTEGER");
b.Property<string>("LastName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property<double>("Lenght")
.HasColumnType("REAL");
b.Property<string>("Password")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("Sexe")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("Username")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property<float>("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
}
}
}