using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Infrastructure.Migrations
{
///
public partial class Initialize : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Exercices",
columns: table => new
{
Id = table.Column(type: "TEXT", nullable: false),
Name = table.Column(type: "TEXT", nullable: false),
Description = table.Column(type: "TEXT", nullable: false),
Duration = table.Column(type: "REAL", nullable: false),
Image = table.Column(type: "TEXT", nullable: false),
Video = table.Column(type: "TEXT", nullable: false),
NbSeries = table.Column(type: "INTEGER", nullable: false),
NbRepetitions = table.Column(type: "INTEGER", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Exercices", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Users",
columns: table => new
{
Id = table.Column(type: "TEXT", nullable: false),
Name = table.Column(type: "TEXT", nullable: false),
Age = table.Column(type: "INTEGER", nullable: false),
Height = table.Column(type: "REAL", nullable: false),
Weight = table.Column(type: "REAL", nullable: false),
Sexe = table.Column(type: "INTEGER", nullable: false),
Logo = table.Column(type: "TEXT", nullable: false),
NbSessionPerWeek = table.Column(type: "INTEGER", nullable: false),
EGoal = table.Column(type: "TEXT", nullable: true),
ESleepLevel = table.Column(type: "TEXT", nullable: true),
ESportLevel = table.Column(type: "TEXT", nullable: true),
HashPassword = table.Column(type: "TEXT", nullable: false),
OAuthProvider = table.Column(type: "TEXT", nullable: true),
OAuthId = table.Column(type: "TEXT", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Users", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Exercices");
migrationBuilder.DropTable(
name: "Users");
}
}
}