説明なし

20211217155911_20211217_1659.Designer.cs 6.1KB

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

Powered by TurnKey Linux.