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.
OptifitWebService/Infrastructure/Migrations/20240328220800_migV1.Design...

221 lines
7.1 KiB

// <auto-generated />
using System;
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(AlumniDbContext))]
[Migration("20240328220800_migV1")]
partial class migV1
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "8.0.1");
modelBuilder.Entity("AlumniEntityEventEntity", b =>
{
b.Property<string>("EventsId")
.HasColumnType("TEXT");
b.Property<string>("ParticipantsId")
.HasColumnType("TEXT");
b.HasKey("EventsId", "ParticipantsId");
b.HasIndex("ParticipantsId");
b.ToTable("AlumniEntityEventEntity");
});
modelBuilder.Entity("Infrastructure.Entities.AlumniEntity", b =>
{
b.Property<string>("Id")
.HasColumnType("TEXT");
b.Property<string>("Email")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property<string>("EntryYear")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("FirstName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property<string>("Github")
.HasColumnType("TEXT");
b.Property<string>("LastName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property<string>("Linkedin")
.HasColumnType("TEXT");
b.Property<string>("Password")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("Role")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("WebSite")
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("Alumni");
});
modelBuilder.Entity("Infrastructure.Entities.EventEntity", b =>
{
b.Property<string>("Id")
.HasColumnType("TEXT");
b.Property<DateTime>("Date")
.HasColumnType("TEXT");
b.Property<string>("Description")
.IsRequired()
.HasMaxLength(512)
.HasColumnType("TEXT");
b.Property<string>("Title")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("TEXT");
b.Property<int>("nbPlaces")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.ToTable("Events");
});
modelBuilder.Entity("Infrastructure.Entities.ExperienceEntity", b =>
{
b.Property<string>("Id")
.HasColumnType("TEXT");
b.Property<string>("AlumniId")
.HasColumnType("TEXT");
b.Property<string>("CompanyName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property<DateTime?>("EndDate")
.HasColumnType("TEXT");
b.Property<bool>("IsCurrent")
.HasColumnType("INTEGER");
b.Property<DateTime>("StartDate")
.HasColumnType("TEXT");
b.Property<string>("Title")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("AlumniId");
b.ToTable("Experiences");
});
modelBuilder.Entity("Infrastructure.Entities.FormationEntity", b =>
{
b.Property<string>("Id")
.HasColumnType("TEXT");
b.Property<string>("AlumniId")
.HasColumnType("TEXT");
b.Property<DateTime?>("EndDate")
.HasColumnType("TEXT");
b.Property<bool>("IsCurrent")
.HasColumnType("INTEGER");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property<string>("SchoolName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property<DateTime>("StartDate")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("AlumniId");
b.ToTable("Formations");
});
modelBuilder.Entity("AlumniEntityEventEntity", b =>
{
b.HasOne("Infrastructure.Entities.EventEntity", null)
.WithMany()
.HasForeignKey("EventsId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Infrastructure.Entities.AlumniEntity", null)
.WithMany()
.HasForeignKey("ParticipantsId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Infrastructure.Entities.ExperienceEntity", b =>
{
b.HasOne("Infrastructure.Entities.AlumniEntity", "Alumni")
.WithMany("Experiences")
.HasForeignKey("AlumniId");
b.Navigation("Alumni");
});
modelBuilder.Entity("Infrastructure.Entities.FormationEntity", b =>
{
b.HasOne("Infrastructure.Entities.AlumniEntity", "Alumni")
.WithMany("Formations")
.HasForeignKey("AlumniId");
b.Navigation("Alumni");
});
modelBuilder.Entity("Infrastructure.Entities.AlumniEntity", b =>
{
b.Navigation("Experiences");
b.Navigation("Formations");
});
#pragma warning restore 612, 618
}
}
}