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.
112 lines
3.4 KiB
112 lines
3.4 KiB
// <auto-generated />
|
|
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("20250109081041_Initialize")]
|
|
partial class Initialize
|
|
{
|
|
/// <inheritdoc />
|
|
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<string>("Id")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<float>("Duration")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<string>("Image")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("NbRepetitions")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("NbSeries")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Video")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Exercices");
|
|
});
|
|
|
|
modelBuilder.Entity("Infrastructure.Entities.User", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Age")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("EGoal")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ESleepLevel")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ESportLevel")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("HashPassword")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<float>("Height")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<string>("Logo")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("NbSessionPerWeek")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("OAuthId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("OAuthProvider")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("Sexe")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<float>("Weight")
|
|
.HasColumnType("REAL");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Users");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|