// using System; using MaBibli.Api.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace MaBibli.Api.Data.Migrations { [DbContext(typeof(MaBibliDbContext))] partial class MaBibliDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "10.0.11"); modelBuilder.Entity("MaBibli.Shared.Entites.Livre", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("AjoutePar") .HasColumnType("TEXT"); b.Property("Auteur") .HasColumnType("TEXT"); b.Property("CoverUrl") .HasColumnType("TEXT"); b.Property("DateAjout") .HasColumnType("TEXT"); b.Property("Editeur") .HasColumnType("TEXT"); b.Property("Format") .HasColumnType("INTEGER"); b.Property("Isbn") .HasColumnType("TEXT"); b.Property("Statut") .HasColumnType("INTEGER"); b.Property("Titre") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("Isbn"); b.ToTable("Livres"); }); modelBuilder.Entity("MaBibli.Shared.Entites.Pret", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DatePret") .HasColumnType("TEXT"); b.Property("DateRetour") .HasColumnType("TEXT"); b.Property("Emprunteur") .IsRequired() .HasColumnType("TEXT"); b.Property("LivreId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("LivreId"); b.ToTable("Prets"); }); modelBuilder.Entity("MaBibli.Shared.Entites.Pret", b => { b.HasOne("MaBibli.Shared.Entites.Livre", "Livre") .WithMany("Prets") .HasForeignKey("LivreId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Livre"); }); modelBuilder.Entity("MaBibli.Shared.Entites.Livre", b => { b.Navigation("Prets"); }); #pragma warning restore 612, 618 } } }