|
|
|
@ -20,9 +20,9 @@ namespace StubbedContextLib.Migrations
|
|
|
|
|
IdActivity = table.Column<int>(type: "INTEGER", nullable: false)
|
|
|
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
Type = table.Column<string>(type: "TEXT", maxLength: 100, nullable: false),
|
|
|
|
|
Date = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
|
|
|
StartTime = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
|
|
|
EndTime = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
|
|
|
Date = table.Column<DateOnly>(type: "TEXT", nullable: false),
|
|
|
|
|
StartTime = table.Column<TimeOnly>(type: "TEXT", nullable: false),
|
|
|
|
|
EndTime = table.Column<TimeOnly>(type: "TEXT", nullable: false),
|
|
|
|
|
EffortFelt = table.Column<int>(type: "INTEGER", nullable: false),
|
|
|
|
|
Variability = table.Column<float>(type: "REAL", nullable: false),
|
|
|
|
|
Variance = table.Column<float>(type: "REAL", nullable: false),
|
|
|
|
@ -52,7 +52,7 @@ namespace StubbedContextLib.Migrations
|
|
|
|
|
Lenght = table.Column<double>(type: "REAL", nullable: false),
|
|
|
|
|
Weight = table.Column<float>(type: "REAL", nullable: false),
|
|
|
|
|
Password = table.Column<string>(type: "TEXT", nullable: false),
|
|
|
|
|
DateOfBirth = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
|
|
|
DateOfBirth = table.Column<DateOnly>(type: "TEXT", nullable: false),
|
|
|
|
|
IsCoach = table.Column<bool>(type: "INTEGER", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
@ -82,7 +82,7 @@ namespace StubbedContextLib.Migrations
|
|
|
|
|
IdHeartRate = table.Column<int>(type: "INTEGER", nullable: false)
|
|
|
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
Altitude = table.Column<double>(type: "REAL", nullable: false),
|
|
|
|
|
Time = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
|
|
|
Time = table.Column<TimeOnly>(type: "TEXT", nullable: false),
|
|
|
|
|
Temperature = table.Column<float>(type: "REAL", nullable: false),
|
|
|
|
|
Bpm = table.Column<int>(type: "INTEGER", nullable: false),
|
|
|
|
|
Longitude = table.Column<float>(type: "REAL", nullable: false),
|
|
|
|
@ -119,7 +119,7 @@ namespace StubbedContextLib.Migrations
|
|
|
|
|
AverageHeartRate = table.Column<double>(type: "REAL", nullable: false),
|
|
|
|
|
MaximumHeartRate = table.Column<double>(type: "REAL", nullable: false),
|
|
|
|
|
AverageCaloriesBurned = table.Column<double>(type: "REAL", nullable: false),
|
|
|
|
|
Date = table.Column<DateTime>(type: "TEXT", nullable: false)
|
|
|
|
|
Date = table.Column<DateOnly>(type: "TEXT", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
@ -132,7 +132,7 @@ namespace StubbedContextLib.Migrations
|
|
|
|
|
{
|
|
|
|
|
IdTraining = table.Column<int>(type: "INTEGER", nullable: false)
|
|
|
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
Date = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
|
|
|
Date = table.Column<DateOnly>(type: "TEXT", nullable: false),
|
|
|
|
|
Description = table.Column<string>(type: "TEXT", maxLength: 300, nullable: true),
|
|
|
|
|
Latitude = table.Column<float>(type: "REAL", nullable: false),
|
|
|
|
|
Longitude = table.Column<float>(type: "REAL", nullable: false),
|
|
|
|
@ -148,13 +148,13 @@ namespace StubbedContextLib.Migrations
|
|
|
|
|
columns: new[] { "IdActivity", "Average", "AverageTemperature", "Date", "EffortFelt", "EndTime", "HasAutoPause", "Maximum", "Minimum", "StandardDeviation", "StartTime", "Type", "Variability", "Variance" },
|
|
|
|
|
values: new object[,]
|
|
|
|
|
{
|
|
|
|
|
{ 1, 0.5f, 20f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), false, 0, 0, 0.5f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "Running", 0.5f, 0.5f },
|
|
|
|
|
{ 2, 0.5f, 20f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), false, 0, 0, 0.5f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "Cycling", 0.5f, 0.5f },
|
|
|
|
|
{ 3, 0.5f, 20f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), false, 0, 0, 0.5f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "Swimming", 0.5f, 0.5f },
|
|
|
|
|
{ 4, 0.5f, 20f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), false, 0, 0, 0.5f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "Walking", 0.5f, 0.5f },
|
|
|
|
|
{ 5, 0.5f, 20f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), false, 0, 0, 0.5f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "Hiking", 0.5f, 0.5f },
|
|
|
|
|
{ 6, 0.5f, 20f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), false, 0, 0, 0.5f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "Climbing", 0.5f, 0.5f },
|
|
|
|
|
{ 7, 0.5f, 20f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), false, 0, 0, 0.5f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "Yoga", 0.5f, 0.5f }
|
|
|
|
|
{ 1, 0.5f, 20f, new DateOnly(2023, 1, 10), 5, new TimeOnly(14, 0, 22), false, 0, 0, 0.5f, new TimeOnly(13, 0, 34), "Running", 0.5f, 0.5f },
|
|
|
|
|
{ 2, 0.5f, 20f, new DateOnly(2023, 1, 25), 5, new TimeOnly(14, 0, 22), false, 0, 0, 0.5f, new TimeOnly(13, 4, 34), "Cycling", 0.5f, 0.5f },
|
|
|
|
|
{ 3, 0.5f, 20f, new DateOnly(2023, 12, 10), 5, new TimeOnly(15, 2, 22), false, 0, 0, 0.5f, new TimeOnly(13, 30, 34), "Swimming", 0.5f, 0.5f },
|
|
|
|
|
{ 4, 0.5f, 20f, new DateOnly(2024, 1, 2), 5, new TimeOnly(16, 1, 55), false, 0, 0, 0.5f, new TimeOnly(15, 0, 0), "Walking", 0.5f, 0.5f },
|
|
|
|
|
{ 5, 0.5f, 20f, new DateOnly(2024, 1, 12), 5, new TimeOnly(9, 0, 22), false, 0, 0, 0.5f, new TimeOnly(7, 45, 34), "Hiking", 0.5f, 0.5f },
|
|
|
|
|
{ 6, 0.5f, 20f, new DateOnly(2024, 1, 27), 5, new TimeOnly(14, 0, 22), false, 0, 0, 0.5f, new TimeOnly(13, 30, 1), "Climbing", 0.5f, 0.5f },
|
|
|
|
|
{ 7, 0.5f, 20f, new DateOnly(2024, 2, 22), 5, new TimeOnly(23, 50, 58), false, 0, 0, 0.5f, new TimeOnly(22, 0, 34), "Yoga", 0.5f, 0.5f }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.InsertData(
|
|
|
|
@ -162,11 +162,11 @@ namespace StubbedContextLib.Migrations
|
|
|
|
|
columns: new[] { "IdAthlete", "DateOfBirth", "Email", "FirstName", "IsCoach", "LastName", "Lenght", "Password", "Sexe", "Username", "Weight" },
|
|
|
|
|
values: new object[,]
|
|
|
|
|
{
|
|
|
|
|
{ 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "john.doe@example.com", "John", true, "Doe", 1.8, "password123", "M", "Doe", 75f },
|
|
|
|
|
{ 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "jane.smith@example.com", "Jane", false, "Smith", 1.6499999999999999, "secure456", "F", "Smith", 60f },
|
|
|
|
|
{ 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "paul.martin@example.com", "Paul", true, "Martin", 1.75, "super789", "M", "Martin", 68f },
|
|
|
|
|
{ 4, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "anna.brown@example.com", "Anna", false, "Brown", 1.7, "test000", "F", "Brown", 58f },
|
|
|
|
|
{ 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "bruce.lee@example.com", "Bruce", false, "Lee", 2.0, "hello321", "M", "Lee", 90f }
|
|
|
|
|
{ 1, new DateOnly(1990, 1, 1), "john.doe@example.com", "John", true, "Doe", 1.8, "password123", "M", "Doe", 75f },
|
|
|
|
|
{ 2, new DateOnly(1995, 1, 1), "jane.smith@exemple.com", "Jane", false, "Smith", 1.6499999999999999, "secure456", "F", "Smith", 60f },
|
|
|
|
|
{ 3, new DateOnly(1992, 1, 1), "paul.martin@example.com", "Paul", true, "Martin", 1.75, "super789", "M", "Martin", 68f },
|
|
|
|
|
{ 4, new DateOnly(1993, 1, 1), "anna.brown@example.com", "Anna", false, "Brown", 1.7, "test000", "F", "Brown", 58f },
|
|
|
|
|
{ 5, new DateOnly(1991, 1, 1), "bruce.lee@example.com", "Bruce", false, "Lee", 2.0, "hello321", "M", "Lee", 90f }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.InsertData(
|
|
|
|
@ -186,11 +186,11 @@ namespace StubbedContextLib.Migrations
|
|
|
|
|
columns: new[] { "IdHeartRate", "Altitude", "Bpm", "Latitude", "Longitude", "Temperature", "Time" },
|
|
|
|
|
values: new object[,]
|
|
|
|
|
{
|
|
|
|
|
{ 1, 0.0, 60, 66f, 35f, 20f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
|
|
|
|
|
{ 2, 10.0, 65, 67f, 35f, 20.5f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
|
|
|
|
|
{ 3, 11.0, 71, 66f, 36f, 20f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
|
|
|
|
|
{ 4, 12.0, 75, 67f, 36f, 20.5f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
|
|
|
|
|
{ 5, 13.0, 80, 66f, 37f, 20f, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) }
|
|
|
|
|
{ 1, 0.0, 60, 66f, 35f, 20f, new TimeOnly(13, 0, 30) },
|
|
|
|
|
{ 2, 10.0, 65, 67f, 35f, 20.5f, new TimeOnly(13, 0, 31) },
|
|
|
|
|
{ 3, 11.0, 71, 66f, 36f, 20f, new TimeOnly(13, 0, 32) },
|
|
|
|
|
{ 4, 12.0, 75, 67f, 36f, 20.5f, new TimeOnly(13, 0, 33) },
|
|
|
|
|
{ 5, 13.0, 80, 66f, 37f, 20f, new TimeOnly(13, 0, 34) }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.InsertData(
|
|
|
|
@ -198,11 +198,11 @@ namespace StubbedContextLib.Migrations
|
|
|
|
|
columns: new[] { "IdNotif", "Date", "Message", "Statut", "Urgence" },
|
|
|
|
|
values: new object[,]
|
|
|
|
|
{
|
|
|
|
|
{ 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "You have a new activity to check", true, "A" },
|
|
|
|
|
{ 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "You have a new athlete to check", false, "3" },
|
|
|
|
|
{ 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "You have a new heart rate to check", true, "2" },
|
|
|
|
|
{ 4, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "You have a new data source to check", false, "1" },
|
|
|
|
|
{ 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "You have a new notification to check", true, "3" }
|
|
|
|
|
{ 1, new DateTime(2023, 12, 25, 13, 0, 40, 0, DateTimeKind.Unspecified), "You have a new activity to check", true, "A" },
|
|
|
|
|
{ 2, new DateTime(2023, 12, 26, 13, 10, 40, 0, DateTimeKind.Unspecified), "You have a new athlete to check", false, "3" },
|
|
|
|
|
{ 3, new DateTime(2023, 12, 26, 16, 10, 4, 0, DateTimeKind.Unspecified), "You have a new heart rate to check", true, "2" },
|
|
|
|
|
{ 4, new DateTime(2024, 1, 12, 9, 30, 50, 0, DateTimeKind.Unspecified), "You have a new data source to check", false, "1" },
|
|
|
|
|
{ 5, new DateTime(2024, 2, 22, 12, 10, 0, 0, DateTimeKind.Unspecified), "You have a new notification to check", true, "3" }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.InsertData(
|
|
|
|
@ -210,11 +210,11 @@ namespace StubbedContextLib.Migrations
|
|
|
|
|
columns: new[] { "IdStatistic", "AverageCaloriesBurned", "AverageHeartRate", "Date", "MaximumHeartRate", "Weight" },
|
|
|
|
|
values: new object[,]
|
|
|
|
|
{
|
|
|
|
|
{ 1, 500.0, 120.0, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 180.0, 75f },
|
|
|
|
|
{ 2, 600.0, 130.0, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 190.0, 60f },
|
|
|
|
|
{ 3, 550.0, 125.0, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 185.0, 68f },
|
|
|
|
|
{ 4, 650.0, 135.0, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 195.0, 58f },
|
|
|
|
|
{ 5, 450.0, 110.0, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 170.0, 90f }
|
|
|
|
|
{ 1, 500.0, 120.0, new DateOnly(2021, 12, 12), 180.0, 75f },
|
|
|
|
|
{ 2, 600.0, 130.0, new DateOnly(2021, 1, 11), 190.0, 60f },
|
|
|
|
|
{ 3, 550.0, 125.0, new DateOnly(2022, 12, 30), 185.0, 68f },
|
|
|
|
|
{ 4, 650.0, 135.0, new DateOnly(2023, 2, 20), 195.0, 58f },
|
|
|
|
|
{ 5, 450.0, 110.0, new DateOnly(2024, 1, 10), 170.0, 90f }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.InsertData(
|
|
|
|
@ -222,11 +222,11 @@ namespace StubbedContextLib.Migrations
|
|
|
|
|
columns: new[] { "IdTraining", "Date", "Description", "FeedBack", "Latitude", "Longitude" },
|
|
|
|
|
values: new object[,]
|
|
|
|
|
{
|
|
|
|
|
{ 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "Running", "Good", 48.8566f, 2.3522f },
|
|
|
|
|
{ 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "Cycling", null, 48.8566f, 2.3522f },
|
|
|
|
|
{ 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, "Good", 48.8566f, 2.3522f },
|
|
|
|
|
{ 4, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "Running", "Good", 48.8566f, 2.3522f },
|
|
|
|
|
{ 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "Cycling", null, 48.8566f, 2.3522f }
|
|
|
|
|
{ 1, new DateOnly(2024, 1, 19), "Running", "Good", 48.8566f, 2.3522f },
|
|
|
|
|
{ 2, new DateOnly(2024, 2, 20), "Cycling", null, 48.8566f, 2.3522f },
|
|
|
|
|
{ 3, new DateOnly(2024, 2, 21), null, "Good", 48.8566f, 2.3522f },
|
|
|
|
|
{ 4, new DateOnly(2024, 2, 22), "Running", "Good", 48.8566f, 2.3522f },
|
|
|
|
|
{ 5, new DateOnly(2024, 2, 23), "Cycling", null, 48.8566f, 2.3522f }
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|