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.
Dotnet-WebAPI/StubContext/Migrations/20240306225043_m8.Designer.cs

266 lines
10 KiB

// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using StubContext;
#nullable disable
namespace StubContext.Migrations
{
[DbContext(typeof(StubAppContext))]
[Migration("20240306225043_m8")]
partial class m8
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "8.0.0");
modelBuilder.Entity("AppContext.Entities.MemberEntity", b =>
{
b.Property<int>("TeamId")
.HasColumnType("INTEGER");
b.Property<int>("UserId")
.HasColumnType("INTEGER");
b.Property<string>("Role")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("TeamId", "UserId");
b.HasIndex("UserId");
b.ToTable("Members");
});
modelBuilder.Entity("AppContext.Entities.TacticEntity", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime>("CreationDate")
.HasColumnType("TEXT");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property<int>("OwnerId")
.HasColumnType("INTEGER");
b.Property<int>("Type")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("OwnerId");
b.ToTable("Tactics");
});
modelBuilder.Entity("AppContext.Entities.TacticStepEntity", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("JsonContent")
.IsRequired()
.HasColumnType("TEXT");
b.Property<int?>("ParentId")
.HasColumnType("INTEGER");
b.Property<int>("TacticId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("ParentId");
b.HasIndex("TacticId");
b.ToTable("TacticSteps");
});
modelBuilder.Entity("AppContext.Entities.TeamEntity", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("MainColor")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("Picture")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("SecondColor")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("Teams");
});
modelBuilder.Entity("AppContext.Entities.UserEntity", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Email")
.IsRequired()
.HasColumnType("TEXT");
b.Property<bool>("IsAdmin")
.HasColumnType("INTEGER");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("Password")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("ProfilePicture")
.IsRequired()
.HasColumnType("TEXT");
b.Property<byte[]>("Salt")
.IsRequired()
.HasColumnType("BLOB");
b.HasKey("Id");
b.ToTable("Users");
b.HasData(
new
{
Id = 1,
Email = "maxime@mail.com",
IsAdmin = true,
Name = "maxime",
Password = "cs6sYeniFuGPCc9vpIqfT55QoM81UQmQfCXj5Zs7ntQ=",
ProfilePicture = "https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_960_720.png",
Salt = new byte[] { 219, 58, 14, 214, 249, 185, 223, 243, 156, 162, 179, 40, 110, 116, 140, 235, 236, 189, 8, 126, 125, 98, 211, 121, 18, 143, 101, 72, 246, 167, 190, 180 }
},
new
{
Id = 2,
Email = "mael@mail.com",
IsAdmin = true,
Name = "mael",
Password = "7KlgzhGDNvmU0U6XrLxn2yByXS3cH/zGhMdp7YfEB0I=",
ProfilePicture = "https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_960_720.png",
Salt = new byte[] { 66, 149, 79, 107, 102, 133, 242, 64, 186, 228, 147, 19, 180, 220, 44, 136, 109, 113, 7, 105, 119, 124, 2, 143, 144, 210, 152, 190, 218, 198, 212, 20 }
},
new
{
Id = 3,
Email = "yanis@mail.com",
IsAdmin = true,
Name = "yanis",
Password = "c4WNJmzdK+W2yobGFAHCoi4U9LIocZAprxD+CZYYH/U=",
ProfilePicture = "https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_960_720.png",
Salt = new byte[] { 47, 0, 22, 126, 22, 151, 17, 116, 14, 185, 249, 205, 99, 227, 162, 199, 72, 196, 162, 149, 10, 80, 231, 77, 30, 156, 105, 208, 60, 50, 195, 10 }
},
new
{
Id = 4,
Email = "simon@mail.com",
IsAdmin = true,
Name = "simon",
Password = "x/mFMIqJPOIOUQLPtWykgx5h+cr+CQCuPqRKaEat170=",
ProfilePicture = "https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_960_720.png",
Salt = new byte[] { 125, 255, 139, 144, 133, 136, 63, 202, 189, 150, 61, 176, 48, 173, 95, 132, 57, 67, 19, 8, 183, 136, 252, 180, 167, 4, 159, 181, 191, 232, 116, 10 }
},
new
{
Id = 5,
Email = "vivien@mail.com",
IsAdmin = true,
Name = "vivien",
Password = "WO9P7aYnSHFe6YZkhiaJhPNHsP4Kj/PdtHmFlGJ7Tog=",
ProfilePicture = "https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_960_720.png",
Salt = new byte[] { 182, 6, 140, 209, 134, 112, 40, 156, 196, 122, 95, 6, 97, 90, 172, 94, 224, 61, 31, 137, 148, 37, 128, 243, 66, 82, 115, 218, 53, 14, 144, 13 }
});
});
modelBuilder.Entity("AppContext.Entities.MemberEntity", b =>
{
b.HasOne("AppContext.Entities.TeamEntity", "Team")
.WithMany("Members")
.HasForeignKey("TeamId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("AppContext.Entities.UserEntity", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Team");
b.Navigation("User");
});
modelBuilder.Entity("AppContext.Entities.TacticEntity", b =>
{
b.HasOne("AppContext.Entities.UserEntity", "Owner")
.WithMany("Tactics")
.HasForeignKey("OwnerId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Owner");
});
modelBuilder.Entity("AppContext.Entities.TacticStepEntity", b =>
{
b.HasOne("AppContext.Entities.TacticStepEntity", "Parent")
.WithMany()
.HasForeignKey("ParentId");
b.HasOne("AppContext.Entities.TacticEntity", "Tactic")
.WithMany()
.HasForeignKey("TacticId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Parent");
b.Navigation("Tactic");
});
modelBuilder.Entity("AppContext.Entities.TeamEntity", b =>
{
b.Navigation("Members");
});
modelBuilder.Entity("AppContext.Entities.UserEntity", b =>
{
b.Navigation("Tactics");
});
#pragma warning restore 612, 618
}
}
}