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.
984 lines
65 KiB
984 lines
65 KiB
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using StubbedContextLib;
|
|
|
|
#nullable disable
|
|
|
|
namespace StubbedContextLib.Migrations
|
|
{
|
|
[DbContext(typeof(TrainingStubbedContext))]
|
|
partial class TrainingStubbedContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "8.0.2");
|
|
|
|
modelBuilder.Entity("AthleteEntityNotificationEntity", b =>
|
|
{
|
|
b.Property<int>("NotificationsReceivedIdNotif")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("ReceiversIdAthlete")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("NotificationsReceivedIdNotif", "ReceiversIdAthlete");
|
|
|
|
b.HasIndex("ReceiversIdAthlete");
|
|
|
|
b.ToTable("AthleteEntityNotificationEntity");
|
|
});
|
|
|
|
modelBuilder.Entity("AthleteEntityTrainingEntity", b =>
|
|
{
|
|
b.Property<int>("AthletesIdAthlete")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("TrainingsAthleteIdTraining")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("AthletesIdAthlete", "TrainingsAthleteIdTraining");
|
|
|
|
b.HasIndex("TrainingsAthleteIdTraining");
|
|
|
|
b.ToTable("AthleteEntityTrainingEntity");
|
|
});
|
|
|
|
modelBuilder.Entity("Entities.ActivityEntity", b =>
|
|
{
|
|
b.Property<int>("IdActivity")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("AthleteId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<float>("Average")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<float>("AverageTemperature")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<int>("DataSourceId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateOnly>("Date")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("EffortFelt")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<TimeOnly>("EndTime")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("HasAutoPause")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Maximum")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Minimum")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<float>("StandardDeviation")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<TimeOnly>("StartTime")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<float>("Variability")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<float>("Variance")
|
|
.HasColumnType("REAL");
|
|
|
|
b.HasKey("IdActivity");
|
|
|
|
b.HasIndex("AthleteId");
|
|
|
|
b.HasIndex("DataSourceId");
|
|
|
|
b.ToTable("Activity");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
IdActivity = 1,
|
|
AthleteId = 1,
|
|
Average = 0.5f,
|
|
AverageTemperature = 20f,
|
|
DataSourceId = 1,
|
|
Date = new DateOnly(2023, 1, 10),
|
|
EffortFelt = 5,
|
|
EndTime = new TimeOnly(14, 0, 22),
|
|
HasAutoPause = false,
|
|
Maximum = 0,
|
|
Minimum = 0,
|
|
StandardDeviation = 0.5f,
|
|
StartTime = new TimeOnly(13, 0, 34),
|
|
Type = "Running",
|
|
Variability = 0.5f,
|
|
Variance = 0.5f
|
|
},
|
|
new
|
|
{
|
|
IdActivity = 2,
|
|
AthleteId = 2,
|
|
Average = 0.5f,
|
|
AverageTemperature = 20f,
|
|
DataSourceId = 2,
|
|
Date = new DateOnly(2023, 1, 25),
|
|
EffortFelt = 5,
|
|
EndTime = new TimeOnly(14, 0, 22),
|
|
HasAutoPause = false,
|
|
Maximum = 0,
|
|
Minimum = 0,
|
|
StandardDeviation = 0.5f,
|
|
StartTime = new TimeOnly(13, 4, 34),
|
|
Type = "Cycling",
|
|
Variability = 0.5f,
|
|
Variance = 0.5f
|
|
},
|
|
new
|
|
{
|
|
IdActivity = 3,
|
|
AthleteId = 1,
|
|
Average = 0.5f,
|
|
AverageTemperature = 20f,
|
|
DataSourceId = 1,
|
|
Date = new DateOnly(2023, 12, 10),
|
|
EffortFelt = 5,
|
|
EndTime = new TimeOnly(15, 2, 22),
|
|
HasAutoPause = false,
|
|
Maximum = 0,
|
|
Minimum = 0,
|
|
StandardDeviation = 0.5f,
|
|
StartTime = new TimeOnly(13, 30, 34),
|
|
Type = "Swimming",
|
|
Variability = 0.5f,
|
|
Variance = 0.5f
|
|
},
|
|
new
|
|
{
|
|
IdActivity = 4,
|
|
AthleteId = 5,
|
|
Average = 0.5f,
|
|
AverageTemperature = 20f,
|
|
DataSourceId = 3,
|
|
Date = new DateOnly(2024, 1, 2),
|
|
EffortFelt = 5,
|
|
EndTime = new TimeOnly(16, 1, 55),
|
|
HasAutoPause = false,
|
|
Maximum = 0,
|
|
Minimum = 0,
|
|
StandardDeviation = 0.5f,
|
|
StartTime = new TimeOnly(15, 0, 0),
|
|
Type = "Walking",
|
|
Variability = 0.5f,
|
|
Variance = 0.5f
|
|
},
|
|
new
|
|
{
|
|
IdActivity = 5,
|
|
AthleteId = 4,
|
|
Average = 0.5f,
|
|
AverageTemperature = 20f,
|
|
DataSourceId = 4,
|
|
Date = new DateOnly(2024, 1, 12),
|
|
EffortFelt = 5,
|
|
EndTime = new TimeOnly(9, 0, 22),
|
|
HasAutoPause = false,
|
|
Maximum = 0,
|
|
Minimum = 0,
|
|
StandardDeviation = 0.5f,
|
|
StartTime = new TimeOnly(7, 45, 34),
|
|
Type = "Hiking",
|
|
Variability = 0.5f,
|
|
Variance = 0.5f
|
|
},
|
|
new
|
|
{
|
|
IdActivity = 6,
|
|
AthleteId = 4,
|
|
Average = 0.5f,
|
|
AverageTemperature = 20f,
|
|
DataSourceId = 4,
|
|
Date = new DateOnly(2024, 1, 27),
|
|
EffortFelt = 5,
|
|
EndTime = new TimeOnly(14, 0, 22),
|
|
HasAutoPause = false,
|
|
Maximum = 0,
|
|
Minimum = 0,
|
|
StandardDeviation = 0.5f,
|
|
StartTime = new TimeOnly(13, 30, 1),
|
|
Type = "Climbing",
|
|
Variability = 0.5f,
|
|
Variance = 0.5f
|
|
},
|
|
new
|
|
{
|
|
IdActivity = 7,
|
|
AthleteId = 3,
|
|
Average = 0.5f,
|
|
AverageTemperature = 20f,
|
|
DataSourceId = 5,
|
|
Date = new DateOnly(2024, 2, 22),
|
|
EffortFelt = 5,
|
|
EndTime = new TimeOnly(23, 50, 58),
|
|
HasAutoPause = false,
|
|
Maximum = 0,
|
|
Minimum = 0,
|
|
StandardDeviation = 0.5f,
|
|
StartTime = new TimeOnly(22, 0, 34),
|
|
Type = "Yoga",
|
|
Variability = 0.5f,
|
|
Variance = 0.5f
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Entities.AthleteEntity", b =>
|
|
{
|
|
b.Property<int>("IdAthlete")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("DataSourceId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateOnly>("DateOfBirth")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Email")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.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>("Length")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<string>("Password")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<byte[]>("ProfilPicture")
|
|
.IsRequired()
|
|
.HasColumnType("BLOB");
|
|
|
|
b.Property<string>("Sexe")
|
|
.IsRequired()
|
|
.HasMaxLength(1)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Username")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<float>("Weight")
|
|
.HasColumnType("REAL");
|
|
|
|
b.HasKey("IdAthlete");
|
|
|
|
b.HasIndex("DataSourceId");
|
|
|
|
b.ToTable("Athlete");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
IdAthlete = 1,
|
|
DateOfBirth = new DateOnly(1990, 1, 1),
|
|
Email = "john.doe@example.com",
|
|
FirstName = "John",
|
|
IsCoach = true,
|
|
LastName = "Doe",
|
|
Length = 1.8,
|
|
Password = "password123",
|
|
ProfilPicture = new byte[] { 34, 85, 107, 108, 71, 82, 116, 119, 68, 65, 65, 66, 88, 82, 85, 74, 81, 86, 108, 65, 52, 73, 78, 65, 68, 65, 65, 65, 119, 69, 65, 67, 100, 65, 83, 111, 113, 65, 67, 111, 65, 65, 77, 65, 83, 74, 90, 103, 67, 100, 77, 111, 83, 67, 122, 54, 53, 53, 110, 100, 85, 52, 88, 88, 65, 80, 50, 121, 88, 73, 103, 101, 53, 110, 101, 77, 47, 81, 100, 54, 87, 67, 102, 79, 56, 101, 118, 111, 106, 50, 83, 48, 65, 47, 112, 55, 43, 102, 48, 65, 110, 56, 53, 99, 66, 120, 108, 76, 68, 103, 80, 67, 56, 106, 79, 47, 48, 110, 115, 108, 47, 49, 51, 47, 79, 56, 118, 118, 122, 106, 55, 65, 102, 56, 115, 47, 112, 51, 47, 72, 52, 70, 85, 54, 116, 100, 52, 77, 67, 119, 113, 50, 51, 122, 49, 72, 50, 117, 122, 111, 75, 73, 88, 97, 113, 74, 110, 105, 80, 73, 47, 98, 82, 77, 102, 56, 113, 122, 118, 48, 90, 112, 43, 72, 69, 49, 82, 67, 66, 119, 53, 87, 81, 49, 106, 47, 74, 111, 118, 100, 77, 49, 70, 83, 53, 50, 43, 81, 99, 97, 65, 65, 65, 47, 118, 47, 43, 78, 120, 85, 52, 68, 112, 80, 107, 51, 43, 120, 81, 80, 87, 55, 116, 99, 109, 85, 82, 83, 111, 57, 118, 67, 52, 113, 99, 43, 88, 77, 120, 78, 86, 66, 122, 69, 77, 53, 69, 56, 97, 99, 116, 68, 122, 57, 56, 103, 109, 119, 84, 88, 103, 68, 54, 50, 101, 57, 69, 109, 71, 47, 101, 114, 118, 100, 100, 50, 111, 118, 70, 70, 83, 117, 120, 89, 112, 112, 87, 108, 47, 119, 116, 97, 88, 51, 114, 107, 110, 48, 120, 114, 116, 56, 113, 79, 113, 108, 47, 53, 73, 50, 106, 102, 76, 79, 110, 67, 85, 48, 107, 65, 76, 76, 99, 87, 52, 70, 47, 119, 84, 106, 85, 49, 48, 113, 115, 120, 90, 88, 87, 57, 102, 120, 97, 117, 67, 54, 79, 80, 86, 82, 70, 50, 56, 115, 99, 57, 52, 86, 57, 111, 99, 109, 111, 83, 87, 121, 43, 115, 102, 54, 106, 87, 51, 118, 89, 107, 86, 79, 104, 43, 103, 69, 47, 82, 69, 48, 76, 54, 98, 50, 100, 51, 111, 70, 121, 72, 109, 107, 82, 74, 110, 102, 89, 119, 71, 56, 111, 51, 112, 54, 102, 118, 57, 112, 105, 118, 78, 70, 53, 97, 111, 112, 73, 66, 122, 70, 110, 106, 122, 119, 98, 47, 86, 113, 83, 113, 51, 47, 98, 43, 77, 87, 75, 70, 109, 106, 114, 56, 84, 49, 113, 101, 52, 47, 102, 73, 84, 111, 50, 118, 66, 87, 69, 113, 68, 121, 111, 103, 86, 51, 90, 86, 71, 110, 68, 86, 105, 50, 68, 98, 105, 69, 70, 86, 83, 85, 114, 50, 101, 88, 84, 78, 90, 81, 57, 86, 47, 68, 57, 81, 67, 47, 43, 118, 67, 82, 53, 84, 71, 121, 88, 57, 81, 79, 86, 66, 103, 116, 65, 89, 116, 109, 47, 90, 84, 73, 119, 122, 80, 69, 89, 66, 57, 78, 114, 86, 49, 78, 101, 79, 49, 47, 115, 65, 122, 55, 56, 117, 48, 116, 87, 53, 57, 114, 48, 73, 43, 83, 79, 53, 74, 103, 109, 51, 66, 57, 105, 49, 116, 111, 82, 117, 114, 122, 72, 118, 57, 69, 90, 74, 57, 121, 90, 76, 56, 110, 97, 102, 98, 47, 84, 49, 70, 97, 111, 80, 68, 107, 117, 74, 102, 77, 43, 105, 80, 115, 48, 106, 56, 120, 110, 83, 55, 84, 97, 85, 47, 103, 69, 75, 48, 119, 67, 120, 101, 68, 89, 82, 89, 116, 74, 120, 57, 106, 52, 104, 85, 81, 113, 55, 112, 65, 117, 47, 84, 50, 121, 87, 121, 48, 118, 106, 99, 85, 72, 107, 105, 57, 53, 50, 90, 78, 98, 88, 110, 88, 120, 66, 56, 109, 56, 112, 86, 53, 120, 57, 69, 49, 115, 102, 76, 106, 53, 77, 90, 69, 103, 112, 85, 50, 88, 86, 56, 82, 72, 114, 86, 118, 87, 110, 105, 67, 106, 115, 102, 54, 118, 103, 120, 109, 82, 55, 43, 75, 116, 119, 73, 98, 77, 106, 97, 104, 105, 116, 85, 71, 116, 72, 101, 116, 49, 87, 100, 76, 43, 56, 77, 109, 100, 76, 50, 57, 105, 81, 74, 67, 51, 55, 112, 68, 88, 105, 114, 105, 114, 49, 78, 105, 98, 120, 75, 75, 104, 70, 89, 82, 117, 74, 51, 120, 87, 57, 79, 48, 114, 57, 43, 86, 110, 104, 56, 100, 105, 113, 98, 66, 117, 88, 113, 68, 98, 89, 82, 47, 77, 83, 111, 72, 118, 115, 99, 79, 67, 109, 50, 116, 57, 53, 100, 78, 53, 87, 66, 100, 82, 85, 111, 68, 55, 89, 67, 71, 47, 90, 72, 87, 99, 55, 89, 112, 118, 47, 120, 47, 97, 108, 52, 102, 107, 66, 50, 108, 90, 108, 89, 104, 86, 87, 72, 120, 106, 97, 111, 101, 70, 57, 106, 69, 80, 73, 48, 103, 65, 78, 53, 88, 115, 118, 85, 73, 54, 104, 98, 122, 69, 122, 87, 77, 115, 78, 87, 47, 49, 111, 114, 107, 78, 79, 110, 108, 115, 107, 97, 108, 103, 109, 112, 73, 52, 66, 50, 114, 109, 52, 71, 99, 55, 76, 78, 117, 105, 43, 77, 117, 77, 66, 114, 112, 110, 66, 118, 76, 107, 98, 89, 88, 57, 101, 120, 101, 57, 103, 56, 116, 117, 55, 119, 76, 116, 55, 83, 99, 79, 106, 68, 99, 76, 57, 57, 111, 79, 121, 82, 56, 57, 77, 104, 57, 76, 56, 114, 100, 52, 43, 52, 51, 43, 74, 81, 121, 82, 54, 116, 115, 73, 102, 99, 80, 74, 111, 54, 84, 54, 70, 120, 72, 102, 49, 49, 100, 47, 77, 71, 97, 121, 74, 105, 43, 83, 87, 99, 116, 47, 117, 104, 118, 118, 117, 97, 48, 111, 79, 104, 43, 122, 88, 78, 73, 97, 85, 122, 103, 111, 66, 109, 117, 49, 88, 85, 76, 106, 107, 112, 117, 65, 48, 71, 104, 122, 99, 116, 102, 51, 48, 106, 98, 89, 49, 65, 79, 77, 52, 57, 113, 98, 77, 90, 82, 89, 83, 57, 65, 43, 48, 83, 49, 72, 114, 72, 80, 110, 119, 82, 118, 112, 81, 89, 47, 83, 106, 52, 120, 75, 80, 110, 48, 103, 100, 112, 118, 47, 43, 105, 84, 98, 75, 74, 98, 56, 122, 107, 80, 67, 52, 47, 57, 97, 102, 48, 74, 118, 101, 115, 97, 43, 71, 68, 71, 48, 47, 105, 119, 51, 84, 115, 119, 101, 110, 77, 104, 113, 108, 104, 55, 66, 77, 57, 77, 87, 53, 116, 120, 112, 101, 98, 108, 115, 66, 121, 120, 52, 87, 110, 74, 47, 111, 72, 118, 54, 99, 99, 48, 100, 109, 77, 55, 116, 115, 86, 51, 54, 108, 89, 107, 67, 84, 85, 88, 69, 102, 47, 48, 101, 75, 108, 110, 102, 105, 118, 110, 78, 48, 103, 49, 103, 43, 106, 47, 76, 107, 57, 101, 116, 47, 117, 111, 97, 54, 84, 70, 67, 87, 48, 72, 103, 119, 70, 79, 73, 86, 70, 117, 109, 69, 89, 100, 84, 54, 55, 53, 80, 102, 117, 84, 114, 89, 79, 53, 111, 56, 90, 114, 87, 69, 73, 72, 116, 118, 50, 67, 116, 108, 114, 118, 57, 74, 51, 84, 114, 115, 108, 68, 47, 105, 75, 69, 119, 116, 105, 112, 71, 72, 116, 110, 48, 86, 97, 107, 56, 66, 57, 119, 76, 76, 43, 107, 122, 43, 67, 73, 81, 47, 86, 71, 52, 75, 74, 112, 88, 106, 120, 56, 56, 67, 101, 67, 67, 52, 88, 97, 71, 105, 116, 69, 100, 106, 65, 65, 65, 34 },
|
|
Sexe = "M",
|
|
Username = "Doe",
|
|
Weight = 75f
|
|
},
|
|
new
|
|
{
|
|
IdAthlete = 2,
|
|
DataSourceId = 1,
|
|
DateOfBirth = new DateOnly(1995, 1, 1),
|
|
Email = "jane.smith@exemple.com",
|
|
FirstName = "Jane",
|
|
IsCoach = false,
|
|
LastName = "Smith",
|
|
Length = 1.6499999999999999,
|
|
Password = "secure456",
|
|
ProfilPicture = new byte[] { 34, 85, 107, 108, 71, 82, 116, 119, 68, 65, 65, 66, 88, 82, 85, 74, 81, 86, 108, 65, 52, 73, 78, 65, 68, 65, 65, 65, 119, 69, 65, 67, 100, 65, 83, 111, 113, 65, 67, 111, 65, 65, 77, 65, 83, 74, 90, 103, 67, 100, 77, 111, 83, 67, 122, 54, 53, 53, 110, 100, 85, 52, 88, 88, 65, 80, 50, 121, 88, 73, 103, 101, 53, 110, 101, 77, 47, 81, 100, 54, 87, 67, 102, 79, 56, 101, 118, 111, 106, 50, 83, 48, 65, 47, 112, 55, 43, 102, 48, 65, 110, 56, 53, 99, 66, 120, 108, 76, 68, 103, 80, 67, 56, 106, 79, 47, 48, 110, 115, 108, 47, 49, 51, 47, 79, 56, 118, 118, 122, 106, 55, 65, 102, 56, 115, 47, 112, 51, 47, 72, 52, 70, 85, 54, 116, 100, 52, 77, 67, 119, 113, 50, 51, 122, 49, 72, 50, 117, 122, 111, 75, 73, 88, 97, 113, 74, 110, 105, 80, 73, 47, 98, 82, 77, 102, 56, 113, 122, 118, 48, 90, 112, 43, 72, 69, 49, 82, 67, 66, 119, 53, 87, 81, 49, 106, 47, 74, 111, 118, 100, 77, 49, 70, 83, 53, 50, 43, 81, 99, 97, 65, 65, 65, 47, 118, 47, 43, 78, 120, 85, 52, 68, 112, 80, 107, 51, 43, 120, 81, 80, 87, 55, 116, 99, 109, 85, 82, 83, 111, 57, 118, 67, 52, 113, 99, 43, 88, 77, 120, 78, 86, 66, 122, 69, 77, 53, 69, 56, 97, 99, 116, 68, 122, 57, 56, 103, 109, 119, 84, 88, 103, 68, 54, 50, 101, 57, 69, 109, 71, 47, 101, 114, 118, 100, 100, 50, 111, 118, 70, 70, 83, 117, 120, 89, 112, 112, 87, 108, 47, 119, 116, 97, 88, 51, 114, 107, 110, 48, 120, 114, 116, 56, 113, 79, 113, 108, 47, 53, 73, 50, 106, 102, 76, 79, 110, 67, 85, 48, 107, 65, 76, 76, 99, 87, 52, 70, 47, 119, 84, 106, 85, 49, 48, 113, 115, 120, 90, 88, 87, 57, 102, 120, 97, 117, 67, 54, 79, 80, 86, 82, 70, 50, 56, 115, 99, 57, 52, 86, 57, 111, 99, 109, 111, 83, 87, 121, 43, 115, 102, 54, 106, 87, 51, 118, 89, 107, 86, 79, 104, 43, 103, 69, 47, 82, 69, 48, 76, 54, 98, 50, 100, 51, 111, 70, 121, 72, 109, 107, 82, 74, 110, 102, 89, 119, 71, 56, 111, 51, 112, 54, 102, 118, 57, 112, 105, 118, 78, 70, 53, 97, 111, 112, 73, 66, 122, 70, 110, 106, 122, 119, 98, 47, 86, 113, 83, 113, 51, 47, 98, 43, 77, 87, 75, 70, 109, 106, 114, 56, 84, 49, 113, 101, 52, 47, 102, 73, 84, 111, 50, 118, 66, 87, 69, 113, 68, 121, 111, 103, 86, 51, 90, 86, 71, 110, 68, 86, 105, 50, 68, 98, 105, 69, 70, 86, 83, 85, 114, 50, 101, 88, 84, 78, 90, 81, 57, 86, 47, 68, 57, 81, 67, 47, 43, 118, 67, 82, 53, 84, 71, 121, 88, 57, 81, 79, 86, 66, 103, 116, 65, 89, 116, 109, 47, 90, 84, 73, 119, 122, 80, 69, 89, 66, 57, 78, 114, 86, 49, 78, 101, 79, 49, 47, 115, 65, 122, 55, 56, 117, 48, 116, 87, 53, 57, 114, 48, 73, 43, 83, 79, 53, 74, 103, 109, 51, 66, 57, 105, 49, 116, 111, 82, 117, 114, 122, 72, 118, 57, 69, 90, 74, 57, 121, 90, 76, 56, 110, 97, 102, 98, 47, 84, 49, 70, 97, 111, 80, 68, 107, 117, 74, 102, 77, 43, 105, 80, 115, 48, 106, 56, 120, 110, 83, 55, 84, 97, 85, 47, 103, 69, 75, 48, 119, 67, 120, 101, 68, 89, 82, 89, 116, 74, 120, 57, 106, 52, 104, 85, 81, 113, 55, 112, 65, 117, 47, 84, 50, 121, 87, 121, 48, 118, 106, 99, 85, 72, 107, 105, 57, 53, 50, 90, 78, 98, 88, 110, 88, 120, 66, 56, 109, 56, 112, 86, 53, 120, 57, 69, 49, 115, 102, 76, 106, 53, 77, 90, 69, 103, 112, 85, 50, 88, 86, 56, 82, 72, 114, 86, 118, 87, 110, 105, 67, 106, 115, 102, 54, 118, 103, 120, 109, 82, 55, 43, 75, 116, 119, 73, 98, 77, 106, 97, 104, 105, 116, 85, 71, 116, 72, 101, 116, 49, 87, 100, 76, 43, 56, 77, 109, 100, 76, 50, 57, 105, 81, 74, 67, 51, 55, 112, 68, 88, 105, 114, 105, 114, 49, 78, 105, 98, 120, 75, 75, 104, 70, 89, 82, 117, 74, 51, 120, 87, 57, 79, 48, 114, 57, 43, 86, 110, 104, 56, 100, 105, 113, 98, 66, 117, 88, 113, 68, 98, 89, 82, 47, 77, 83, 111, 72, 118, 115, 99, 79, 67, 109, 50, 116, 57, 53, 100, 78, 53, 87, 66, 100, 82, 85, 111, 68, 55, 89, 67, 71, 47, 90, 72, 87, 99, 55, 89, 112, 118, 47, 120, 47, 97, 108, 52, 102, 107, 66, 50, 108, 90, 108, 89, 104, 86, 87, 72, 120, 106, 97, 111, 101, 70, 57, 106, 69, 80, 73, 48, 103, 65, 78, 53, 88, 115, 118, 85, 73, 54, 104, 98, 122, 69, 122, 87, 77, 115, 78, 87, 47, 49, 111, 114, 107, 78, 79, 110, 108, 115, 107, 97, 108, 103, 109, 112, 73, 52, 66, 50, 114, 109, 52, 71, 99, 55, 76, 78, 117, 105, 43, 77, 117, 77, 66, 114, 112, 110, 66, 118, 76, 107, 98, 89, 88, 57, 101, 120, 101, 57, 103, 56, 116, 117, 55, 119, 76, 116, 55, 83, 99, 79, 106, 68, 99, 76, 57, 57, 111, 79, 121, 82, 56, 57, 77, 104, 57, 76, 56, 114, 100, 52, 43, 52, 51, 43, 74, 81, 121, 82, 54, 116, 115, 73, 102, 99, 80, 74, 111, 54, 84, 54, 70, 120, 72, 102, 49, 49, 100, 47, 77, 71, 97, 121, 74, 105, 43, 83, 87, 99, 116, 47, 117, 104, 118, 118, 117, 97, 48, 111, 79, 104, 43, 122, 88, 78, 73, 97, 85, 122, 103, 111, 66, 109, 117, 49, 88, 85, 76, 106, 107, 112, 117, 65, 48, 71, 104, 122, 99, 116, 102, 51, 48, 106, 98, 89, 49, 65, 79, 77, 52, 57, 113, 98, 77, 90, 82, 89, 83, 57, 65, 43, 48, 83, 49, 72, 114, 72, 80, 110, 119, 82, 118, 112, 81, 89, 47, 83, 106, 52, 120, 75, 80, 110, 48, 103, 100, 112, 118, 47, 43, 105, 84, 98, 75, 74, 98, 56, 122, 107, 80, 67, 52, 47, 57, 97, 102, 48, 74, 118, 101, 115, 97, 43, 71, 68, 71, 48, 47, 105, 119, 51, 84, 115, 119, 101, 110, 77, 104, 113, 108, 104, 55, 66, 77, 57, 77, 87, 53, 116, 120, 112, 101, 98, 108, 115, 66, 121, 120, 52, 87, 110, 74, 47, 111, 72, 118, 54, 99, 99, 48, 100, 109, 77, 55, 116, 115, 86, 51, 54, 108, 89, 107, 67, 84, 85, 88, 69, 102, 47, 48, 101, 75, 108, 110, 102, 105, 118, 110, 78, 48, 103, 49, 103, 43, 106, 47, 76, 107, 57, 101, 116, 47, 117, 111, 97, 54, 84, 70, 67, 87, 48, 72, 103, 119, 70, 79, 73, 86, 70, 117, 109, 69, 89, 100, 84, 54, 55, 53, 80, 102, 117, 84, 114, 89, 79, 53, 111, 56, 90, 114, 87, 69, 73, 72, 116, 118, 50, 67, 116, 108, 114, 118, 57, 74, 51, 84, 114, 115, 108, 68, 47, 105, 75, 69, 119, 116, 105, 112, 71, 72, 116, 110, 48, 86, 97, 107, 56, 66, 57, 119, 76, 76, 43, 107, 122, 43, 67, 73, 81, 47, 86, 71, 52, 75, 74, 112, 88, 106, 120, 56, 56, 67, 101, 67, 67, 52, 88, 97, 71, 105, 116, 69, 100, 106, 65, 65, 65, 34 },
|
|
Sexe = "F",
|
|
Username = "Smith",
|
|
Weight = 60f
|
|
},
|
|
new
|
|
{
|
|
IdAthlete = 3,
|
|
DateOfBirth = new DateOnly(1992, 1, 1),
|
|
Email = "paul.martin@example.com",
|
|
FirstName = "Paul",
|
|
IsCoach = true,
|
|
LastName = "Martin",
|
|
Length = 1.75,
|
|
Password = "super789",
|
|
ProfilPicture = new byte[] { 34, 85, 107, 108, 71, 82, 116, 119, 68, 65, 65, 66, 88, 82, 85, 74, 81, 86, 108, 65, 52, 73, 78, 65, 68, 65, 65, 65, 119, 69, 65, 67, 100, 65, 83, 111, 113, 65, 67, 111, 65, 65, 77, 65, 83, 74, 90, 103, 67, 100, 77, 111, 83, 67, 122, 54, 53, 53, 110, 100, 85, 52, 88, 88, 65, 80, 50, 121, 88, 73, 103, 101, 53, 110, 101, 77, 47, 81, 100, 54, 87, 67, 102, 79, 56, 101, 118, 111, 106, 50, 83, 48, 65, 47, 112, 55, 43, 102, 48, 65, 110, 56, 53, 99, 66, 120, 108, 76, 68, 103, 80, 67, 56, 106, 79, 47, 48, 110, 115, 108, 47, 49, 51, 47, 79, 56, 118, 118, 122, 106, 55, 65, 102, 56, 115, 47, 112, 51, 47, 72, 52, 70, 85, 54, 116, 100, 52, 77, 67, 119, 113, 50, 51, 122, 49, 72, 50, 117, 122, 111, 75, 73, 88, 97, 113, 74, 110, 105, 80, 73, 47, 98, 82, 77, 102, 56, 113, 122, 118, 48, 90, 112, 43, 72, 69, 49, 82, 67, 66, 119, 53, 87, 81, 49, 106, 47, 74, 111, 118, 100, 77, 49, 70, 83, 53, 50, 43, 81, 99, 97, 65, 65, 65, 47, 118, 47, 43, 78, 120, 85, 52, 68, 112, 80, 107, 51, 43, 120, 81, 80, 87, 55, 116, 99, 109, 85, 82, 83, 111, 57, 118, 67, 52, 113, 99, 43, 88, 77, 120, 78, 86, 66, 122, 69, 77, 53, 69, 56, 97, 99, 116, 68, 122, 57, 56, 103, 109, 119, 84, 88, 103, 68, 54, 50, 101, 57, 69, 109, 71, 47, 101, 114, 118, 100, 100, 50, 111, 118, 70, 70, 83, 117, 120, 89, 112, 112, 87, 108, 47, 119, 116, 97, 88, 51, 114, 107, 110, 48, 120, 114, 116, 56, 113, 79, 113, 108, 47, 53, 73, 50, 106, 102, 76, 79, 110, 67, 85, 48, 107, 65, 76, 76, 99, 87, 52, 70, 47, 119, 84, 106, 85, 49, 48, 113, 115, 120, 90, 88, 87, 57, 102, 120, 97, 117, 67, 54, 79, 80, 86, 82, 70, 50, 56, 115, 99, 57, 52, 86, 57, 111, 99, 109, 111, 83, 87, 121, 43, 115, 102, 54, 106, 87, 51, 118, 89, 107, 86, 79, 104, 43, 103, 69, 47, 82, 69, 48, 76, 54, 98, 50, 100, 51, 111, 70, 121, 72, 109, 107, 82, 74, 110, 102, 89, 119, 71, 56, 111, 51, 112, 54, 102, 118, 57, 112, 105, 118, 78, 70, 53, 97, 111, 112, 73, 66, 122, 70, 110, 106, 122, 119, 98, 47, 86, 113, 83, 113, 51, 47, 98, 43, 77, 87, 75, 70, 109, 106, 114, 56, 84, 49, 113, 101, 52, 47, 102, 73, 84, 111, 50, 118, 66, 87, 69, 113, 68, 121, 111, 103, 86, 51, 90, 86, 71, 110, 68, 86, 105, 50, 68, 98, 105, 69, 70, 86, 83, 85, 114, 50, 101, 88, 84, 78, 90, 81, 57, 86, 47, 68, 57, 81, 67, 47, 43, 118, 67, 82, 53, 84, 71, 121, 88, 57, 81, 79, 86, 66, 103, 116, 65, 89, 116, 109, 47, 90, 84, 73, 119, 122, 80, 69, 89, 66, 57, 78, 114, 86, 49, 78, 101, 79, 49, 47, 115, 65, 122, 55, 56, 117, 48, 116, 87, 53, 57, 114, 48, 73, 43, 83, 79, 53, 74, 103, 109, 51, 66, 57, 105, 49, 116, 111, 82, 117, 114, 122, 72, 118, 57, 69, 90, 74, 57, 121, 90, 76, 56, 110, 97, 102, 98, 47, 84, 49, 70, 97, 111, 80, 68, 107, 117, 74, 102, 77, 43, 105, 80, 115, 48, 106, 56, 120, 110, 83, 55, 84, 97, 85, 47, 103, 69, 75, 48, 119, 67, 120, 101, 68, 89, 82, 89, 116, 74, 120, 57, 106, 52, 104, 85, 81, 113, 55, 112, 65, 117, 47, 84, 50, 121, 87, 121, 48, 118, 106, 99, 85, 72, 107, 105, 57, 53, 50, 90, 78, 98, 88, 110, 88, 120, 66, 56, 109, 56, 112, 86, 53, 120, 57, 69, 49, 115, 102, 76, 106, 53, 77, 90, 69, 103, 112, 85, 50, 88, 86, 56, 82, 72, 114, 86, 118, 87, 110, 105, 67, 106, 115, 102, 54, 118, 103, 120, 109, 82, 55, 43, 75, 116, 119, 73, 98, 77, 106, 97, 104, 105, 116, 85, 71, 116, 72, 101, 116, 49, 87, 100, 76, 43, 56, 77, 109, 100, 76, 50, 57, 105, 81, 74, 67, 51, 55, 112, 68, 88, 105, 114, 105, 114, 49, 78, 105, 98, 120, 75, 75, 104, 70, 89, 82, 117, 74, 51, 120, 87, 57, 79, 48, 114, 57, 43, 86, 110, 104, 56, 100, 105, 113, 98, 66, 117, 88, 113, 68, 98, 89, 82, 47, 77, 83, 111, 72, 118, 115, 99, 79, 67, 109, 50, 116, 57, 53, 100, 78, 53, 87, 66, 100, 82, 85, 111, 68, 55, 89, 67, 71, 47, 90, 72, 87, 99, 55, 89, 112, 118, 47, 120, 47, 97, 108, 52, 102, 107, 66, 50, 108, 90, 108, 89, 104, 86, 87, 72, 120, 106, 97, 111, 101, 70, 57, 106, 69, 80, 73, 48, 103, 65, 78, 53, 88, 115, 118, 85, 73, 54, 104, 98, 122, 69, 122, 87, 77, 115, 78, 87, 47, 49, 111, 114, 107, 78, 79, 110, 108, 115, 107, 97, 108, 103, 109, 112, 73, 52, 66, 50, 114, 109, 52, 71, 99, 55, 76, 78, 117, 105, 43, 77, 117, 77, 66, 114, 112, 110, 66, 118, 76, 107, 98, 89, 88, 57, 101, 120, 101, 57, 103, 56, 116, 117, 55, 119, 76, 116, 55, 83, 99, 79, 106, 68, 99, 76, 57, 57, 111, 79, 121, 82, 56, 57, 77, 104, 57, 76, 56, 114, 100, 52, 43, 52, 51, 43, 74, 81, 121, 82, 54, 116, 115, 73, 102, 99, 80, 74, 111, 54, 84, 54, 70, 120, 72, 102, 49, 49, 100, 47, 77, 71, 97, 121, 74, 105, 43, 83, 87, 99, 116, 47, 117, 104, 118, 118, 117, 97, 48, 111, 79, 104, 43, 122, 88, 78, 73, 97, 85, 122, 103, 111, 66, 109, 117, 49, 88, 85, 76, 106, 107, 112, 117, 65, 48, 71, 104, 122, 99, 116, 102, 51, 48, 106, 98, 89, 49, 65, 79, 77, 52, 57, 113, 98, 77, 90, 82, 89, 83, 57, 65, 43, 48, 83, 49, 72, 114, 72, 80, 110, 119, 82, 118, 112, 81, 89, 47, 83, 106, 52, 120, 75, 80, 110, 48, 103, 100, 112, 118, 47, 43, 105, 84, 98, 75, 74, 98, 56, 122, 107, 80, 67, 52, 47, 57, 97, 102, 48, 74, 118, 101, 115, 97, 43, 71, 68, 71, 48, 47, 105, 119, 51, 84, 115, 119, 101, 110, 77, 104, 113, 108, 104, 55, 66, 77, 57, 77, 87, 53, 116, 120, 112, 101, 98, 108, 115, 66, 121, 120, 52, 87, 110, 74, 47, 111, 72, 118, 54, 99, 99, 48, 100, 109, 77, 55, 116, 115, 86, 51, 54, 108, 89, 107, 67, 84, 85, 88, 69, 102, 47, 48, 101, 75, 108, 110, 102, 105, 118, 110, 78, 48, 103, 49, 103, 43, 106, 47, 76, 107, 57, 101, 116, 47, 117, 111, 97, 54, 84, 70, 67, 87, 48, 72, 103, 119, 70, 79, 73, 86, 70, 117, 109, 69, 89, 100, 84, 54, 55, 53, 80, 102, 117, 84, 114, 89, 79, 53, 111, 56, 90, 114, 87, 69, 73, 72, 116, 118, 50, 67, 116, 108, 114, 118, 57, 74, 51, 84, 114, 115, 108, 68, 47, 105, 75, 69, 119, 116, 105, 112, 71, 72, 116, 110, 48, 86, 97, 107, 56, 66, 57, 119, 76, 76, 43, 107, 122, 43, 67, 73, 81, 47, 86, 71, 52, 75, 74, 112, 88, 106, 120, 56, 56, 67, 101, 67, 67, 52, 88, 97, 71, 105, 116, 69, 100, 106, 65, 65, 65, 34 },
|
|
Sexe = "M",
|
|
Username = "Martin",
|
|
Weight = 68f
|
|
},
|
|
new
|
|
{
|
|
IdAthlete = 4,
|
|
DateOfBirth = new DateOnly(1993, 1, 1),
|
|
Email = "anna.brown@example.com",
|
|
FirstName = "Anna",
|
|
IsCoach = false,
|
|
LastName = "Brown",
|
|
Length = 1.7,
|
|
Password = "test000",
|
|
ProfilPicture = new byte[] { 34, 85, 107, 108, 71, 82, 116, 119, 68, 65, 65, 66, 88, 82, 85, 74, 81, 86, 108, 65, 52, 73, 78, 65, 68, 65, 65, 65, 119, 69, 65, 67, 100, 65, 83, 111, 113, 65, 67, 111, 65, 65, 77, 65, 83, 74, 90, 103, 67, 100, 77, 111, 83, 67, 122, 54, 53, 53, 110, 100, 85, 52, 88, 88, 65, 80, 50, 121, 88, 73, 103, 101, 53, 110, 101, 77, 47, 81, 100, 54, 87, 67, 102, 79, 56, 101, 118, 111, 106, 50, 83, 48, 65, 47, 112, 55, 43, 102, 48, 65, 110, 56, 53, 99, 66, 120, 108, 76, 68, 103, 80, 67, 56, 106, 79, 47, 48, 110, 115, 108, 47, 49, 51, 47, 79, 56, 118, 118, 122, 106, 55, 65, 102, 56, 115, 47, 112, 51, 47, 72, 52, 70, 85, 54, 116, 100, 52, 77, 67, 119, 113, 50, 51, 122, 49, 72, 50, 117, 122, 111, 75, 73, 88, 97, 113, 74, 110, 105, 80, 73, 47, 98, 82, 77, 102, 56, 113, 122, 118, 48, 90, 112, 43, 72, 69, 49, 82, 67, 66, 119, 53, 87, 81, 49, 106, 47, 74, 111, 118, 100, 77, 49, 70, 83, 53, 50, 43, 81, 99, 97, 65, 65, 65, 47, 118, 47, 43, 78, 120, 85, 52, 68, 112, 80, 107, 51, 43, 120, 81, 80, 87, 55, 116, 99, 109, 85, 82, 83, 111, 57, 118, 67, 52, 113, 99, 43, 88, 77, 120, 78, 86, 66, 122, 69, 77, 53, 69, 56, 97, 99, 116, 68, 122, 57, 56, 103, 109, 119, 84, 88, 103, 68, 54, 50, 101, 57, 69, 109, 71, 47, 101, 114, 118, 100, 100, 50, 111, 118, 70, 70, 83, 117, 120, 89, 112, 112, 87, 108, 47, 119, 116, 97, 88, 51, 114, 107, 110, 48, 120, 114, 116, 56, 113, 79, 113, 108, 47, 53, 73, 50, 106, 102, 76, 79, 110, 67, 85, 48, 107, 65, 76, 76, 99, 87, 52, 70, 47, 119, 84, 106, 85, 49, 48, 113, 115, 120, 90, 88, 87, 57, 102, 120, 97, 117, 67, 54, 79, 80, 86, 82, 70, 50, 56, 115, 99, 57, 52, 86, 57, 111, 99, 109, 111, 83, 87, 121, 43, 115, 102, 54, 106, 87, 51, 118, 89, 107, 86, 79, 104, 43, 103, 69, 47, 82, 69, 48, 76, 54, 98, 50, 100, 51, 111, 70, 121, 72, 109, 107, 82, 74, 110, 102, 89, 119, 71, 56, 111, 51, 112, 54, 102, 118, 57, 112, 105, 118, 78, 70, 53, 97, 111, 112, 73, 66, 122, 70, 110, 106, 122, 119, 98, 47, 86, 113, 83, 113, 51, 47, 98, 43, 77, 87, 75, 70, 109, 106, 114, 56, 84, 49, 113, 101, 52, 47, 102, 73, 84, 111, 50, 118, 66, 87, 69, 113, 68, 121, 111, 103, 86, 51, 90, 86, 71, 110, 68, 86, 105, 50, 68, 98, 105, 69, 70, 86, 83, 85, 114, 50, 101, 88, 84, 78, 90, 81, 57, 86, 47, 68, 57, 81, 67, 47, 43, 118, 67, 82, 53, 84, 71, 121, 88, 57, 81, 79, 86, 66, 103, 116, 65, 89, 116, 109, 47, 90, 84, 73, 119, 122, 80, 69, 89, 66, 57, 78, 114, 86, 49, 78, 101, 79, 49, 47, 115, 65, 122, 55, 56, 117, 48, 116, 87, 53, 57, 114, 48, 73, 43, 83, 79, 53, 74, 103, 109, 51, 66, 57, 105, 49, 116, 111, 82, 117, 114, 122, 72, 118, 57, 69, 90, 74, 57, 121, 90, 76, 56, 110, 97, 102, 98, 47, 84, 49, 70, 97, 111, 80, 68, 107, 117, 74, 102, 77, 43, 105, 80, 115, 48, 106, 56, 120, 110, 83, 55, 84, 97, 85, 47, 103, 69, 75, 48, 119, 67, 120, 101, 68, 89, 82, 89, 116, 74, 120, 57, 106, 52, 104, 85, 81, 113, 55, 112, 65, 117, 47, 84, 50, 121, 87, 121, 48, 118, 106, 99, 85, 72, 107, 105, 57, 53, 50, 90, 78, 98, 88, 110, 88, 120, 66, 56, 109, 56, 112, 86, 53, 120, 57, 69, 49, 115, 102, 76, 106, 53, 77, 90, 69, 103, 112, 85, 50, 88, 86, 56, 82, 72, 114, 86, 118, 87, 110, 105, 67, 106, 115, 102, 54, 118, 103, 120, 109, 82, 55, 43, 75, 116, 119, 73, 98, 77, 106, 97, 104, 105, 116, 85, 71, 116, 72, 101, 116, 49, 87, 100, 76, 43, 56, 77, 109, 100, 76, 50, 57, 105, 81, 74, 67, 51, 55, 112, 68, 88, 105, 114, 105, 114, 49, 78, 105, 98, 120, 75, 75, 104, 70, 89, 82, 117, 74, 51, 120, 87, 57, 79, 48, 114, 57, 43, 86, 110, 104, 56, 100, 105, 113, 98, 66, 117, 88, 113, 68, 98, 89, 82, 47, 77, 83, 111, 72, 118, 115, 99, 79, 67, 109, 50, 116, 57, 53, 100, 78, 53, 87, 66, 100, 82, 85, 111, 68, 55, 89, 67, 71, 47, 90, 72, 87, 99, 55, 89, 112, 118, 47, 120, 47, 97, 108, 52, 102, 107, 66, 50, 108, 90, 108, 89, 104, 86, 87, 72, 120, 106, 97, 111, 101, 70, 57, 106, 69, 80, 73, 48, 103, 65, 78, 53, 88, 115, 118, 85, 73, 54, 104, 98, 122, 69, 122, 87, 77, 115, 78, 87, 47, 49, 111, 114, 107, 78, 79, 110, 108, 115, 107, 97, 108, 103, 109, 112, 73, 52, 66, 50, 114, 109, 52, 71, 99, 55, 76, 78, 117, 105, 43, 77, 117, 77, 66, 114, 112, 110, 66, 118, 76, 107, 98, 89, 88, 57, 101, 120, 101, 57, 103, 56, 116, 117, 55, 119, 76, 116, 55, 83, 99, 79, 106, 68, 99, 76, 57, 57, 111, 79, 121, 82, 56, 57, 77, 104, 57, 76, 56, 114, 100, 52, 43, 52, 51, 43, 74, 81, 121, 82, 54, 116, 115, 73, 102, 99, 80, 74, 111, 54, 84, 54, 70, 120, 72, 102, 49, 49, 100, 47, 77, 71, 97, 121, 74, 105, 43, 83, 87, 99, 116, 47, 117, 104, 118, 118, 117, 97, 48, 111, 79, 104, 43, 122, 88, 78, 73, 97, 85, 122, 103, 111, 66, 109, 117, 49, 88, 85, 76, 106, 107, 112, 117, 65, 48, 71, 104, 122, 99, 116, 102, 51, 48, 106, 98, 89, 49, 65, 79, 77, 52, 57, 113, 98, 77, 90, 82, 89, 83, 57, 65, 43, 48, 83, 49, 72, 114, 72, 80, 110, 119, 82, 118, 112, 81, 89, 47, 83, 106, 52, 120, 75, 80, 110, 48, 103, 100, 112, 118, 47, 43, 105, 84, 98, 75, 74, 98, 56, 122, 107, 80, 67, 52, 47, 57, 97, 102, 48, 74, 118, 101, 115, 97, 43, 71, 68, 71, 48, 47, 105, 119, 51, 84, 115, 119, 101, 110, 77, 104, 113, 108, 104, 55, 66, 77, 57, 77, 87, 53, 116, 120, 112, 101, 98, 108, 115, 66, 121, 120, 52, 87, 110, 74, 47, 111, 72, 118, 54, 99, 99, 48, 100, 109, 77, 55, 116, 115, 86, 51, 54, 108, 89, 107, 67, 84, 85, 88, 69, 102, 47, 48, 101, 75, 108, 110, 102, 105, 118, 110, 78, 48, 103, 49, 103, 43, 106, 47, 76, 107, 57, 101, 116, 47, 117, 111, 97, 54, 84, 70, 67, 87, 48, 72, 103, 119, 70, 79, 73, 86, 70, 117, 109, 69, 89, 100, 84, 54, 55, 53, 80, 102, 117, 84, 114, 89, 79, 53, 111, 56, 90, 114, 87, 69, 73, 72, 116, 118, 50, 67, 116, 108, 114, 118, 57, 74, 51, 84, 114, 115, 108, 68, 47, 105, 75, 69, 119, 116, 105, 112, 71, 72, 116, 110, 48, 86, 97, 107, 56, 66, 57, 119, 76, 76, 43, 107, 122, 43, 67, 73, 81, 47, 86, 71, 52, 75, 74, 112, 88, 106, 120, 56, 56, 67, 101, 67, 67, 52, 88, 97, 71, 105, 116, 69, 100, 106, 65, 65, 65, 34 },
|
|
Sexe = "F",
|
|
Username = "Brown",
|
|
Weight = 58f
|
|
},
|
|
new
|
|
{
|
|
IdAthlete = 5,
|
|
DataSourceId = 3,
|
|
DateOfBirth = new DateOnly(1991, 1, 1),
|
|
Email = "bruce.lee@example.com",
|
|
FirstName = "Bruce",
|
|
IsCoach = false,
|
|
LastName = "Lee",
|
|
Length = 2.0,
|
|
Password = "hello321",
|
|
ProfilPicture = new byte[] { 34, 85, 107, 108, 71, 82, 116, 119, 68, 65, 65, 66, 88, 82, 85, 74, 81, 86, 108, 65, 52, 73, 78, 65, 68, 65, 65, 65, 119, 69, 65, 67, 100, 65, 83, 111, 113, 65, 67, 111, 65, 65, 77, 65, 83, 74, 90, 103, 67, 100, 77, 111, 83, 67, 122, 54, 53, 53, 110, 100, 85, 52, 88, 88, 65, 80, 50, 121, 88, 73, 103, 101, 53, 110, 101, 77, 47, 81, 100, 54, 87, 67, 102, 79, 56, 101, 118, 111, 106, 50, 83, 48, 65, 47, 112, 55, 43, 102, 48, 65, 110, 56, 53, 99, 66, 120, 108, 76, 68, 103, 80, 67, 56, 106, 79, 47, 48, 110, 115, 108, 47, 49, 51, 47, 79, 56, 118, 118, 122, 106, 55, 65, 102, 56, 115, 47, 112, 51, 47, 72, 52, 70, 85, 54, 116, 100, 52, 77, 67, 119, 113, 50, 51, 122, 49, 72, 50, 117, 122, 111, 75, 73, 88, 97, 113, 74, 110, 105, 80, 73, 47, 98, 82, 77, 102, 56, 113, 122, 118, 48, 90, 112, 43, 72, 69, 49, 82, 67, 66, 119, 53, 87, 81, 49, 106, 47, 74, 111, 118, 100, 77, 49, 70, 83, 53, 50, 43, 81, 99, 97, 65, 65, 65, 47, 118, 47, 43, 78, 120, 85, 52, 68, 112, 80, 107, 51, 43, 120, 81, 80, 87, 55, 116, 99, 109, 85, 82, 83, 111, 57, 118, 67, 52, 113, 99, 43, 88, 77, 120, 78, 86, 66, 122, 69, 77, 53, 69, 56, 97, 99, 116, 68, 122, 57, 56, 103, 109, 119, 84, 88, 103, 68, 54, 50, 101, 57, 69, 109, 71, 47, 101, 114, 118, 100, 100, 50, 111, 118, 70, 70, 83, 117, 120, 89, 112, 112, 87, 108, 47, 119, 116, 97, 88, 51, 114, 107, 110, 48, 120, 114, 116, 56, 113, 79, 113, 108, 47, 53, 73, 50, 106, 102, 76, 79, 110, 67, 85, 48, 107, 65, 76, 76, 99, 87, 52, 70, 47, 119, 84, 106, 85, 49, 48, 113, 115, 120, 90, 88, 87, 57, 102, 120, 97, 117, 67, 54, 79, 80, 86, 82, 70, 50, 56, 115, 99, 57, 52, 86, 57, 111, 99, 109, 111, 83, 87, 121, 43, 115, 102, 54, 106, 87, 51, 118, 89, 107, 86, 79, 104, 43, 103, 69, 47, 82, 69, 48, 76, 54, 98, 50, 100, 51, 111, 70, 121, 72, 109, 107, 82, 74, 110, 102, 89, 119, 71, 56, 111, 51, 112, 54, 102, 118, 57, 112, 105, 118, 78, 70, 53, 97, 111, 112, 73, 66, 122, 70, 110, 106, 122, 119, 98, 47, 86, 113, 83, 113, 51, 47, 98, 43, 77, 87, 75, 70, 109, 106, 114, 56, 84, 49, 113, 101, 52, 47, 102, 73, 84, 111, 50, 118, 66, 87, 69, 113, 68, 121, 111, 103, 86, 51, 90, 86, 71, 110, 68, 86, 105, 50, 68, 98, 105, 69, 70, 86, 83, 85, 114, 50, 101, 88, 84, 78, 90, 81, 57, 86, 47, 68, 57, 81, 67, 47, 43, 118, 67, 82, 53, 84, 71, 121, 88, 57, 81, 79, 86, 66, 103, 116, 65, 89, 116, 109, 47, 90, 84, 73, 119, 122, 80, 69, 89, 66, 57, 78, 114, 86, 49, 78, 101, 79, 49, 47, 115, 65, 122, 55, 56, 117, 48, 116, 87, 53, 57, 114, 48, 73, 43, 83, 79, 53, 74, 103, 109, 51, 66, 57, 105, 49, 116, 111, 82, 117, 114, 122, 72, 118, 57, 69, 90, 74, 57, 121, 90, 76, 56, 110, 97, 102, 98, 47, 84, 49, 70, 97, 111, 80, 68, 107, 117, 74, 102, 77, 43, 105, 80, 115, 48, 106, 56, 120, 110, 83, 55, 84, 97, 85, 47, 103, 69, 75, 48, 119, 67, 120, 101, 68, 89, 82, 89, 116, 74, 120, 57, 106, 52, 104, 85, 81, 113, 55, 112, 65, 117, 47, 84, 50, 121, 87, 121, 48, 118, 106, 99, 85, 72, 107, 105, 57, 53, 50, 90, 78, 98, 88, 110, 88, 120, 66, 56, 109, 56, 112, 86, 53, 120, 57, 69, 49, 115, 102, 76, 106, 53, 77, 90, 69, 103, 112, 85, 50, 88, 86, 56, 82, 72, 114, 86, 118, 87, 110, 105, 67, 106, 115, 102, 54, 118, 103, 120, 109, 82, 55, 43, 75, 116, 119, 73, 98, 77, 106, 97, 104, 105, 116, 85, 71, 116, 72, 101, 116, 49, 87, 100, 76, 43, 56, 77, 109, 100, 76, 50, 57, 105, 81, 74, 67, 51, 55, 112, 68, 88, 105, 114, 105, 114, 49, 78, 105, 98, 120, 75, 75, 104, 70, 89, 82, 117, 74, 51, 120, 87, 57, 79, 48, 114, 57, 43, 86, 110, 104, 56, 100, 105, 113, 98, 66, 117, 88, 113, 68, 98, 89, 82, 47, 77, 83, 111, 72, 118, 115, 99, 79, 67, 109, 50, 116, 57, 53, 100, 78, 53, 87, 66, 100, 82, 85, 111, 68, 55, 89, 67, 71, 47, 90, 72, 87, 99, 55, 89, 112, 118, 47, 120, 47, 97, 108, 52, 102, 107, 66, 50, 108, 90, 108, 89, 104, 86, 87, 72, 120, 106, 97, 111, 101, 70, 57, 106, 69, 80, 73, 48, 103, 65, 78, 53, 88, 115, 118, 85, 73, 54, 104, 98, 122, 69, 122, 87, 77, 115, 78, 87, 47, 49, 111, 114, 107, 78, 79, 110, 108, 115, 107, 97, 108, 103, 109, 112, 73, 52, 66, 50, 114, 109, 52, 71, 99, 55, 76, 78, 117, 105, 43, 77, 117, 77, 66, 114, 112, 110, 66, 118, 76, 107, 98, 89, 88, 57, 101, 120, 101, 57, 103, 56, 116, 117, 55, 119, 76, 116, 55, 83, 99, 79, 106, 68, 99, 76, 57, 57, 111, 79, 121, 82, 56, 57, 77, 104, 57, 76, 56, 114, 100, 52, 43, 52, 51, 43, 74, 81, 121, 82, 54, 116, 115, 73, 102, 99, 80, 74, 111, 54, 84, 54, 70, 120, 72, 102, 49, 49, 100, 47, 77, 71, 97, 121, 74, 105, 43, 83, 87, 99, 116, 47, 117, 104, 118, 118, 117, 97, 48, 111, 79, 104, 43, 122, 88, 78, 73, 97, 85, 122, 103, 111, 66, 109, 117, 49, 88, 85, 76, 106, 107, 112, 117, 65, 48, 71, 104, 122, 99, 116, 102, 51, 48, 106, 98, 89, 49, 65, 79, 77, 52, 57, 113, 98, 77, 90, 82, 89, 83, 57, 65, 43, 48, 83, 49, 72, 114, 72, 80, 110, 119, 82, 118, 112, 81, 89, 47, 83, 106, 52, 120, 75, 80, 110, 48, 103, 100, 112, 118, 47, 43, 105, 84, 98, 75, 74, 98, 56, 122, 107, 80, 67, 52, 47, 57, 97, 102, 48, 74, 118, 101, 115, 97, 43, 71, 68, 71, 48, 47, 105, 119, 51, 84, 115, 119, 101, 110, 77, 104, 113, 108, 104, 55, 66, 77, 57, 77, 87, 53, 116, 120, 112, 101, 98, 108, 115, 66, 121, 120, 52, 87, 110, 74, 47, 111, 72, 118, 54, 99, 99, 48, 100, 109, 77, 55, 116, 115, 86, 51, 54, 108, 89, 107, 67, 84, 85, 88, 69, 102, 47, 48, 101, 75, 108, 110, 102, 105, 118, 110, 78, 48, 103, 49, 103, 43, 106, 47, 76, 107, 57, 101, 116, 47, 117, 111, 97, 54, 84, 70, 67, 87, 48, 72, 103, 119, 70, 79, 73, 86, 70, 117, 109, 69, 89, 100, 84, 54, 55, 53, 80, 102, 117, 84, 114, 89, 79, 53, 111, 56, 90, 114, 87, 69, 73, 72, 116, 118, 50, 67, 116, 108, 114, 118, 57, 74, 51, 84, 114, 115, 108, 68, 47, 105, 75, 69, 119, 116, 105, 112, 71, 72, 116, 110, 48, 86, 97, 107, 56, 66, 57, 119, 76, 76, 43, 107, 122, 43, 67, 73, 81, 47, 86, 71, 52, 75, 74, 112, 88, 106, 120, 56, 56, 67, 101, 67, 67, 52, 88, 97, 71, 105, 116, 69, 100, 106, 65, 65, 65, 34 },
|
|
Sexe = "M",
|
|
Username = "Lee",
|
|
Weight = 90f
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Entities.DataSourceEntity", b =>
|
|
{
|
|
b.Property<int>("IdSource")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Model")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<float>("Precision")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("IdSource");
|
|
|
|
b.ToTable("DataSource");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
IdSource = 1,
|
|
Model = "Garmin",
|
|
Precision = 0.5f,
|
|
Type = "Smartwatch"
|
|
},
|
|
new
|
|
{
|
|
IdSource = 2,
|
|
Model = "Polar",
|
|
Precision = 0.5f,
|
|
Type = "Smartwatch"
|
|
},
|
|
new
|
|
{
|
|
IdSource = 3,
|
|
Model = "Suunto",
|
|
Precision = 0.5f,
|
|
Type = "Smartwatch"
|
|
},
|
|
new
|
|
{
|
|
IdSource = 4,
|
|
Model = "Fitbit",
|
|
Precision = 0.5f,
|
|
Type = "Smartwatch"
|
|
},
|
|
new
|
|
{
|
|
IdSource = 5,
|
|
Model = "Apple Watch",
|
|
Precision = 0.5f,
|
|
Type = "Smartwatch"
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Entities.FriendshipEntity", b =>
|
|
{
|
|
b.Property<int>("FollowingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("FollowerId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("StartDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("FollowingId", "FollowerId");
|
|
|
|
b.HasIndex("FollowerId");
|
|
|
|
b.ToTable("FriendshipEntity");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
FollowingId = 2,
|
|
FollowerId = 1,
|
|
StartDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)
|
|
},
|
|
new
|
|
{
|
|
FollowingId = 3,
|
|
FollowerId = 1,
|
|
StartDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)
|
|
},
|
|
new
|
|
{
|
|
FollowingId = 4,
|
|
FollowerId = 1,
|
|
StartDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)
|
|
},
|
|
new
|
|
{
|
|
FollowingId = 5,
|
|
FollowerId = 1,
|
|
StartDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)
|
|
},
|
|
new
|
|
{
|
|
FollowingId = 1,
|
|
FollowerId = 2,
|
|
StartDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)
|
|
},
|
|
new
|
|
{
|
|
FollowingId = 3,
|
|
FollowerId = 2,
|
|
StartDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Entities.HeartRateEntity", b =>
|
|
{
|
|
b.Property<int>("IdHeartRate")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("ActivityId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<double>("Altitude")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<int>("Bpm")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<float>("Latitude")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<float>("Longitude")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<float>("Temperature")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<TimeOnly>("Time")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("IdHeartRate");
|
|
|
|
b.HasIndex("ActivityId");
|
|
|
|
b.ToTable("HeartRate");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
IdHeartRate = 1,
|
|
ActivityId = 1,
|
|
Altitude = 0.0,
|
|
Bpm = 60,
|
|
Latitude = 66f,
|
|
Longitude = 35f,
|
|
Temperature = 20f,
|
|
Time = new TimeOnly(13, 0, 30)
|
|
},
|
|
new
|
|
{
|
|
IdHeartRate = 2,
|
|
ActivityId = 2,
|
|
Altitude = 10.0,
|
|
Bpm = 65,
|
|
Latitude = 67f,
|
|
Longitude = 35f,
|
|
Temperature = 20.5f,
|
|
Time = new TimeOnly(13, 0, 31)
|
|
},
|
|
new
|
|
{
|
|
IdHeartRate = 3,
|
|
ActivityId = 1,
|
|
Altitude = 11.0,
|
|
Bpm = 71,
|
|
Latitude = 66f,
|
|
Longitude = 36f,
|
|
Temperature = 20f,
|
|
Time = new TimeOnly(13, 0, 32)
|
|
},
|
|
new
|
|
{
|
|
IdHeartRate = 4,
|
|
ActivityId = 2,
|
|
Altitude = 12.0,
|
|
Bpm = 75,
|
|
Latitude = 67f,
|
|
Longitude = 36f,
|
|
Temperature = 20.5f,
|
|
Time = new TimeOnly(13, 0, 33)
|
|
},
|
|
new
|
|
{
|
|
IdHeartRate = 5,
|
|
ActivityId = 4,
|
|
Altitude = 13.0,
|
|
Bpm = 80,
|
|
Latitude = 66f,
|
|
Longitude = 37f,
|
|
Temperature = 20f,
|
|
Time = new TimeOnly(13, 0, 34)
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Entities.NotificationEntity", b =>
|
|
{
|
|
b.Property<int>("IdNotif")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("Date")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Message")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("SenderId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Statut")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Urgence")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("IdNotif");
|
|
|
|
b.HasIndex("SenderId");
|
|
|
|
b.ToTable("Notification");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
IdNotif = 1,
|
|
Date = new DateTime(2023, 12, 25, 13, 0, 40, 0, DateTimeKind.Unspecified),
|
|
Message = "You have a new activity to check",
|
|
SenderId = 1,
|
|
Statut = true,
|
|
Urgence = "A"
|
|
},
|
|
new
|
|
{
|
|
IdNotif = 2,
|
|
Date = new DateTime(2023, 12, 26, 13, 10, 40, 0, DateTimeKind.Unspecified),
|
|
Message = "You have a new athlete to check",
|
|
SenderId = 2,
|
|
Statut = false,
|
|
Urgence = "3"
|
|
},
|
|
new
|
|
{
|
|
IdNotif = 3,
|
|
Date = new DateTime(2023, 12, 26, 16, 10, 4, 0, DateTimeKind.Unspecified),
|
|
Message = "You have a new heart rate to check",
|
|
SenderId = 3,
|
|
Statut = true,
|
|
Urgence = "2"
|
|
},
|
|
new
|
|
{
|
|
IdNotif = 4,
|
|
Date = new DateTime(2024, 1, 12, 9, 30, 50, 0, DateTimeKind.Unspecified),
|
|
Message = "You have a new data source to check",
|
|
SenderId = 4,
|
|
Statut = false,
|
|
Urgence = "1"
|
|
},
|
|
new
|
|
{
|
|
IdNotif = 5,
|
|
Date = new DateTime(2024, 2, 22, 12, 10, 0, 0, DateTimeKind.Unspecified),
|
|
Message = "You have a new notification to check",
|
|
SenderId = 5,
|
|
Statut = true,
|
|
Urgence = "3"
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Entities.StatisticEntity", b =>
|
|
{
|
|
b.Property<int>("IdStatistic")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("AthleteId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<double>("AverageCaloriesBurned")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<double>("AverageHeartRate")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<DateOnly>("Date")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<double>("MaximumHeartRate")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<float>("Weight")
|
|
.HasColumnType("REAL");
|
|
|
|
b.HasKey("IdStatistic");
|
|
|
|
b.HasIndex("AthleteId");
|
|
|
|
b.ToTable("Statistic");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
IdStatistic = 1,
|
|
AthleteId = 1,
|
|
AverageCaloriesBurned = 500.0,
|
|
AverageHeartRate = 120.0,
|
|
Date = new DateOnly(2021, 12, 12),
|
|
MaximumHeartRate = 180.0,
|
|
Weight = 75f
|
|
},
|
|
new
|
|
{
|
|
IdStatistic = 2,
|
|
AthleteId = 2,
|
|
AverageCaloriesBurned = 600.0,
|
|
AverageHeartRate = 130.0,
|
|
Date = new DateOnly(2021, 1, 11),
|
|
MaximumHeartRate = 190.0,
|
|
Weight = 60f
|
|
},
|
|
new
|
|
{
|
|
IdStatistic = 3,
|
|
AthleteId = 1,
|
|
AverageCaloriesBurned = 550.0,
|
|
AverageHeartRate = 125.0,
|
|
Date = new DateOnly(2022, 12, 30),
|
|
MaximumHeartRate = 185.0,
|
|
Weight = 68f
|
|
},
|
|
new
|
|
{
|
|
IdStatistic = 4,
|
|
AthleteId = 3,
|
|
AverageCaloriesBurned = 650.0,
|
|
AverageHeartRate = 135.0,
|
|
Date = new DateOnly(2023, 2, 20),
|
|
MaximumHeartRate = 195.0,
|
|
Weight = 58f
|
|
},
|
|
new
|
|
{
|
|
IdStatistic = 5,
|
|
AthleteId = 4,
|
|
AverageCaloriesBurned = 450.0,
|
|
AverageHeartRate = 110.0,
|
|
Date = new DateOnly(2024, 1, 10),
|
|
MaximumHeartRate = 170.0,
|
|
Weight = 90f
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("Entities.TrainingEntity", b =>
|
|
{
|
|
b.Property<int>("IdTraining")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("CoachId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateOnly>("Date")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(300)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("FeedBack")
|
|
.HasMaxLength(300)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<float>("Latitude")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<float>("Longitude")
|
|
.HasColumnType("REAL");
|
|
|
|
b.HasKey("IdTraining");
|
|
|
|
b.HasIndex("CoachId");
|
|
|
|
b.ToTable("Training");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
IdTraining = 1,
|
|
CoachId = 1,
|
|
Date = new DateOnly(2024, 1, 19),
|
|
Description = "Running",
|
|
FeedBack = "Good",
|
|
Latitude = 48.8566f,
|
|
Longitude = 2.3522f
|
|
},
|
|
new
|
|
{
|
|
IdTraining = 2,
|
|
CoachId = 5,
|
|
Date = new DateOnly(2024, 2, 20),
|
|
Description = "Cycling",
|
|
Latitude = 48.8566f,
|
|
Longitude = 2.3522f
|
|
},
|
|
new
|
|
{
|
|
IdTraining = 3,
|
|
CoachId = 4,
|
|
Date = new DateOnly(2024, 2, 21),
|
|
FeedBack = "Good",
|
|
Latitude = 48.8566f,
|
|
Longitude = 2.3522f
|
|
},
|
|
new
|
|
{
|
|
IdTraining = 4,
|
|
CoachId = 3,
|
|
Date = new DateOnly(2024, 2, 22),
|
|
Description = "Running",
|
|
FeedBack = "Good",
|
|
Latitude = 48.8566f,
|
|
Longitude = 2.3522f
|
|
},
|
|
new
|
|
{
|
|
IdTraining = 5,
|
|
CoachId = 1,
|
|
Date = new DateOnly(2024, 2, 23),
|
|
Description = "Cycling",
|
|
Latitude = 48.8566f,
|
|
Longitude = 2.3522f
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("AthleteEntityNotificationEntity", b =>
|
|
{
|
|
b.HasOne("Entities.NotificationEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("NotificationsReceivedIdNotif")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Entities.AthleteEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("ReceiversIdAthlete")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("AthleteEntityTrainingEntity", b =>
|
|
{
|
|
b.HasOne("Entities.AthleteEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("AthletesIdAthlete")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Entities.TrainingEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("TrainingsAthleteIdTraining")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Entities.ActivityEntity", b =>
|
|
{
|
|
b.HasOne("Entities.AthleteEntity", "Athlete")
|
|
.WithMany("Activities")
|
|
.HasForeignKey("AthleteId");
|
|
|
|
b.HasOne("Entities.DataSourceEntity", "DataSource")
|
|
.WithMany("Activities")
|
|
.HasForeignKey("DataSourceId");
|
|
|
|
b.Navigation("Athlete");
|
|
|
|
b.Navigation("DataSource");
|
|
});
|
|
|
|
modelBuilder.Entity("Entities.AthleteEntity", b =>
|
|
{
|
|
b.HasOne("Entities.DataSourceEntity", "DataSource")
|
|
.WithMany("Athletes")
|
|
.HasForeignKey("DataSourceId");
|
|
|
|
b.Navigation("DataSource");
|
|
});
|
|
|
|
modelBuilder.Entity("Entities.FriendshipEntity", b =>
|
|
{
|
|
b.HasOne("Entities.AthleteEntity", "Follower")
|
|
.WithMany("Followers")
|
|
.HasForeignKey("FollowerId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Entities.AthleteEntity", "Following")
|
|
.WithMany("Followings")
|
|
.HasForeignKey("FollowingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Follower");
|
|
|
|
b.Navigation("Following");
|
|
});
|
|
|
|
modelBuilder.Entity("Entities.HeartRateEntity", b =>
|
|
{
|
|
b.HasOne("Entities.ActivityEntity", "Activity")
|
|
.WithMany("HeartRates")
|
|
.HasForeignKey("ActivityId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Activity");
|
|
});
|
|
|
|
modelBuilder.Entity("Entities.NotificationEntity", b =>
|
|
{
|
|
b.HasOne("Entities.AthleteEntity", "Sender")
|
|
.WithMany("NotificationsSent")
|
|
.HasForeignKey("SenderId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Sender");
|
|
});
|
|
|
|
modelBuilder.Entity("Entities.StatisticEntity", b =>
|
|
{
|
|
b.HasOne("Entities.AthleteEntity", "Athlete")
|
|
.WithMany("Statistics")
|
|
.HasForeignKey("AthleteId");
|
|
|
|
b.Navigation("Athlete");
|
|
});
|
|
|
|
modelBuilder.Entity("Entities.TrainingEntity", b =>
|
|
{
|
|
b.HasOne("Entities.AthleteEntity", "Coach")
|
|
.WithMany("TrainingsCoach")
|
|
.HasForeignKey("CoachId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Coach");
|
|
});
|
|
|
|
modelBuilder.Entity("Entities.ActivityEntity", b =>
|
|
{
|
|
b.Navigation("HeartRates");
|
|
});
|
|
|
|
modelBuilder.Entity("Entities.AthleteEntity", b =>
|
|
{
|
|
b.Navigation("Activities");
|
|
|
|
b.Navigation("Followers");
|
|
|
|
b.Navigation("Followings");
|
|
|
|
b.Navigation("NotificationsSent");
|
|
|
|
b.Navigation("Statistics");
|
|
|
|
b.Navigation("TrainingsCoach");
|
|
});
|
|
|
|
modelBuilder.Entity("Entities.DataSourceEntity", b =>
|
|
{
|
|
b.Navigation("Activities");
|
|
|
|
b.Navigation("Athletes");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|