No Description

ApplicationDatabaseContextModelSnapshot.cs 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. // <auto-generated />
  2. using System;
  3. using Backend.Persistence.Config;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  7. namespace Backend.Data.Migrations
  8. {
  9. [DbContext(typeof(ApplicationDatabaseContext))]
  10. partial class ApplicationDatabaseContextModelSnapshot : ModelSnapshot
  11. {
  12. protected override void BuildModel(ModelBuilder modelBuilder)
  13. {
  14. #pragma warning disable 612, 618
  15. modelBuilder
  16. .HasAnnotation("Relational:MaxIdentifierLength", 64)
  17. .HasAnnotation("ProductVersion", "5.0.13");
  18. modelBuilder.Entity("Backend.Data.Commande", b =>
  19. {
  20. b.Property<Guid>("Id")
  21. .ValueGeneratedOnAdd()
  22. .HasColumnType("char(36)");
  23. b.Property<DateTime>("DateEnregistrement")
  24. .HasColumnType("datetime(6)");
  25. b.Property<string>("NumeroCommande")
  26. .IsRequired()
  27. .HasColumnType("longtext CHARACTER SET utf8mb4");
  28. b.Property<string>("Reference")
  29. .IsRequired()
  30. .HasColumnType("longtext CHARACTER SET utf8mb4");
  31. b.HasKey("Id");
  32. b.ToTable("Commandes");
  33. });
  34. modelBuilder.Entity("Backend.Data.LigneCommande", b =>
  35. {
  36. b.Property<Guid>("Id")
  37. .ValueGeneratedOnAdd()
  38. .HasColumnType("char(36)");
  39. b.Property<Guid>("CommandeId")
  40. .HasColumnType("char(36)");
  41. b.Property<decimal>("Prix")
  42. .HasColumnType("decimal(65,30)");
  43. b.Property<Guid>("ProduitId")
  44. .HasColumnType("char(36)");
  45. b.Property<int>("Quantite")
  46. .HasColumnType("int");
  47. b.HasKey("Id");
  48. b.HasIndex("CommandeId");
  49. b.HasIndex("ProduitId");
  50. b.ToTable("LigneCommandes");
  51. });
  52. modelBuilder.Entity("Backend.Data.Produit", b =>
  53. {
  54. b.Property<Guid>("Id")
  55. .ValueGeneratedOnAdd()
  56. .HasColumnType("char(36)");
  57. b.Property<DateTime>("DateEnregistrement")
  58. .HasColumnType("datetime(6)");
  59. b.Property<string>("Libelle")
  60. .HasColumnType("longtext CHARACTER SET utf8mb4");
  61. b.Property<string>("Reference")
  62. .HasColumnType("longtext CHARACTER SET utf8mb4");
  63. b.HasKey("Id");
  64. b.ToTable("Produits");
  65. });
  66. modelBuilder.Entity("Backend.Data.Propriete", b =>
  67. {
  68. b.Property<Guid>("Id")
  69. .ValueGeneratedOnAdd()
  70. .HasColumnType("char(36)");
  71. b.Property<Guid>("ProduitId")
  72. .HasColumnType("char(36)");
  73. b.Property<Guid>("TypeProprieteId")
  74. .HasColumnType("char(36)");
  75. b.Property<string>("Valeur")
  76. .IsRequired()
  77. .HasColumnType("longtext CHARACTER SET utf8mb4");
  78. b.HasKey("Id");
  79. b.HasIndex("ProduitId");
  80. b.HasIndex("TypeProprieteId");
  81. b.ToTable("Proprietes");
  82. });
  83. modelBuilder.Entity("Backend.Data.TypePropriete", b =>
  84. {
  85. b.Property<Guid>("Id")
  86. .ValueGeneratedOnAdd()
  87. .HasColumnType("char(36)");
  88. b.Property<bool>("EstArchive")
  89. .HasColumnType("tinyint(1)");
  90. b.Property<string>("Libelle")
  91. .IsRequired()
  92. .HasColumnType("longtext CHARACTER SET utf8mb4");
  93. b.HasKey("Id");
  94. b.ToTable("TypeProprietes");
  95. });
  96. modelBuilder.Entity("Backend.Data.LigneCommande", b =>
  97. {
  98. b.HasOne("Backend.Data.Commande", null)
  99. .WithMany("LigneCommandes")
  100. .HasForeignKey("CommandeId")
  101. .OnDelete(DeleteBehavior.Cascade)
  102. .IsRequired();
  103. b.HasOne("Backend.Data.Produit", null)
  104. .WithMany("LigneCommandes")
  105. .HasForeignKey("ProduitId")
  106. .OnDelete(DeleteBehavior.Cascade)
  107. .IsRequired();
  108. });
  109. modelBuilder.Entity("Backend.Data.Propriete", b =>
  110. {
  111. b.HasOne("Backend.Data.Produit", null)
  112. .WithMany("Proprietes")
  113. .HasForeignKey("ProduitId")
  114. .OnDelete(DeleteBehavior.Cascade)
  115. .IsRequired();
  116. b.HasOne("Backend.Data.TypePropriete", null)
  117. .WithMany("Proprietes")
  118. .HasForeignKey("TypeProprieteId")
  119. .OnDelete(DeleteBehavior.Cascade)
  120. .IsRequired();
  121. });
  122. modelBuilder.Entity("Backend.Data.Commande", b =>
  123. {
  124. b.Navigation("LigneCommandes");
  125. });
  126. modelBuilder.Entity("Backend.Data.Produit", b =>
  127. {
  128. b.Navigation("LigneCommandes");
  129. b.Navigation("Proprietes");
  130. });
  131. modelBuilder.Entity("Backend.Data.TypePropriete", b =>
  132. {
  133. b.Navigation("Proprietes");
  134. });
  135. #pragma warning restore 612, 618
  136. }
  137. }
  138. }

Powered by TurnKey Linux.