/src/perf/dbserver/Migrations/20200805214300_SeparateThroughputTable.Designer.cs

https://github.com/microsoft/msquic · C# · 254 lines · 189 code · 62 blank · 3 comment · 0 complexity · 8219927c4b1b92e179c9a622c68072cb MD5 · raw file

  1. // Copyright (c) Microsoft Corporation.
  2. // Licensed under the MIT License.
  3. // <auto-generated />
  4. using System;
  5. using Microsoft.EntityFrameworkCore;
  6. using Microsoft.EntityFrameworkCore.Infrastructure;
  7. using Microsoft.EntityFrameworkCore.Metadata;
  8. using Microsoft.EntityFrameworkCore.Migrations;
  9. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  10. using QuicDataServer.Data;
  11. namespace QuicPerformanceDataServer.Migrations
  12. {
  13. [DbContext(typeof(PerformanceContext))]
  14. [Migration("20200805214300_SeparateThroughputTable")]
  15. partial class SeparateThroughputTable
  16. {
  17. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  18. {
  19. #pragma warning disable 612, 618
  20. modelBuilder
  21. .HasAnnotation("ProductVersion", "3.1.5")
  22. .HasAnnotation("Relational:MaxIdentifierLength", 128)
  23. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  24. modelBuilder.Entity("QuicDataServer.Models.Db.DbMachine", b =>
  25. {
  26. b.Property<int>("DbMachineId")
  27. .ValueGeneratedOnAdd()
  28. .HasColumnType("int")
  29. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  30. b.Property<string>("CPUInfo")
  31. .HasColumnType("nvarchar(max)");
  32. b.Property<string>("Description")
  33. .HasColumnType("nvarchar(max)");
  34. b.Property<string>("ExtraInfo")
  35. .HasColumnType("nvarchar(max)");
  36. b.Property<string>("MachineName")
  37. .IsRequired()
  38. .HasColumnType("nvarchar(max)");
  39. b.Property<string>("MemoryInfo")
  40. .HasColumnType("nvarchar(max)");
  41. b.Property<string>("NicInfo")
  42. .HasColumnType("nvarchar(max)");
  43. b.Property<string>("OperatingSystem")
  44. .HasColumnType("nvarchar(max)");
  45. b.HasKey("DbMachineId");
  46. b.ToTable("Machines");
  47. });
  48. modelBuilder.Entity("QuicDataServer.Models.Db.DbPlatform", b =>
  49. {
  50. b.Property<int>("DbPlatformId")
  51. .ValueGeneratedOnAdd()
  52. .HasColumnType("int")
  53. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  54. b.Property<string>("PlatformName")
  55. .IsRequired()
  56. .HasColumnType("nvarchar(max)");
  57. b.HasKey("DbPlatformId");
  58. b.ToTable("Platforms");
  59. });
  60. modelBuilder.Entity("QuicDataServer.Models.Db.DbTest", b =>
  61. {
  62. b.Property<int>("DbTestId")
  63. .ValueGeneratedOnAdd()
  64. .HasColumnType("int")
  65. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  66. b.Property<int>("DbPlatformId")
  67. .HasColumnType("int");
  68. b.Property<string>("TestName")
  69. .IsRequired()
  70. .HasColumnType("nvarchar(max)");
  71. b.HasKey("DbTestId");
  72. b.HasIndex("DbPlatformId");
  73. b.ToTable("Tests");
  74. });
  75. modelBuilder.Entity("QuicDataServer.Models.Db.DbTestRecord", b =>
  76. {
  77. b.Property<int>("DbTestRecordId")
  78. .ValueGeneratedOnAdd()
  79. .HasColumnType("int")
  80. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  81. b.Property<string>("CommitHash")
  82. .IsRequired()
  83. .HasColumnType("nvarchar(max)");
  84. b.Property<int>("DbMachineId")
  85. .HasColumnType("int");
  86. b.Property<int>("DbTestId")
  87. .HasColumnType("int");
  88. b.Property<DateTime>("TestDate")
  89. .HasColumnType("datetime2");
  90. b.HasKey("DbTestRecordId");
  91. b.HasIndex("DbMachineId");
  92. b.HasIndex("DbTestId");
  93. b.ToTable("TestRecords");
  94. });
  95. modelBuilder.Entity("QuicDataServer.Models.Db.DbThroughputTestRecord", b =>
  96. {
  97. b.Property<int>("DbThroughputTestRecordId")
  98. .ValueGeneratedOnAdd()
  99. .HasColumnType("int")
  100. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  101. b.Property<string>("CommitHash")
  102. .IsRequired()
  103. .HasColumnType("nvarchar(max)");
  104. b.Property<int>("DbMachineId")
  105. .HasColumnType("int");
  106. b.Property<int>("DbPlatformId")
  107. .HasColumnType("int");
  108. b.Property<bool>("Encryption")
  109. .HasColumnType("bit");
  110. b.Property<bool>("Loopback")
  111. .HasColumnType("bit");
  112. b.Property<int>("NumberOfStreams")
  113. .HasColumnType("int");
  114. b.Property<bool>("SendBuffering")
  115. .HasColumnType("bit");
  116. b.Property<bool>("ServerToClient")
  117. .HasColumnType("bit");
  118. b.Property<DateTime>("TestDate")
  119. .HasColumnType("datetime2");
  120. b.HasKey("DbThroughputTestRecordId");
  121. b.HasIndex("DbMachineId");
  122. b.HasIndex("DbPlatformId");
  123. b.ToTable("ThroughputTestRecords");
  124. });
  125. modelBuilder.Entity("QuicDataServer.Models.Db.DbTest", b =>
  126. {
  127. b.HasOne("QuicDataServer.Models.Db.DbPlatform", null)
  128. .WithMany("Tests")
  129. .HasForeignKey("DbPlatformId")
  130. .OnDelete(DeleteBehavior.Cascade)
  131. .IsRequired();
  132. });
  133. modelBuilder.Entity("QuicDataServer.Models.Db.DbTestRecord", b =>
  134. {
  135. b.HasOne("QuicDataServer.Models.Db.DbMachine", null)
  136. .WithMany("TestRecords")
  137. .HasForeignKey("DbMachineId")
  138. .OnDelete(DeleteBehavior.Cascade)
  139. .IsRequired();
  140. b.HasOne("QuicDataServer.Models.Db.DbTest", null)
  141. .WithMany("TestRecords")
  142. .HasForeignKey("DbTestId")
  143. .OnDelete(DeleteBehavior.Cascade)
  144. .IsRequired();
  145. b.OwnsMany("QuicDataServer.Models.Db.TestResult", "TestResults", b1 =>
  146. {
  147. b1.Property<int>("DbTestRecordId")
  148. .HasColumnType("int");
  149. b1.Property<int>("Id")
  150. .ValueGeneratedOnAdd()
  151. .HasColumnType("int")
  152. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  153. b1.Property<double>("Result")
  154. .HasColumnType("float");
  155. b1.HasKey("DbTestRecordId", "Id");
  156. b1.ToTable("TestResult");
  157. b1.WithOwner()
  158. .HasForeignKey("DbTestRecordId");
  159. });
  160. });
  161. modelBuilder.Entity("QuicDataServer.Models.Db.DbThroughputTestRecord", b =>
  162. {
  163. b.HasOne("QuicDataServer.Models.Db.DbMachine", null)
  164. .WithMany("ThroughputTestRecords")
  165. .HasForeignKey("DbMachineId")
  166. .OnDelete(DeleteBehavior.Cascade)
  167. .IsRequired();
  168. b.HasOne("QuicDataServer.Models.Db.DbPlatform", null)
  169. .WithMany("ThroughputTests")
  170. .HasForeignKey("DbPlatformId")
  171. .OnDelete(DeleteBehavior.Cascade)
  172. .IsRequired();
  173. b.OwnsMany("QuicDataServer.Models.Db.ThroughputTestResult", "TestResults", b1 =>
  174. {
  175. b1.Property<int>("DbThroughputTestRecordId")
  176. .HasColumnType("int");
  177. b1.Property<int>("Id")
  178. .ValueGeneratedOnAdd()
  179. .HasColumnType("int")
  180. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  181. b1.Property<double>("Result")
  182. .HasColumnType("float");
  183. b1.HasKey("DbThroughputTestRecordId", "Id");
  184. b1.ToTable("ThroughputTestResult");
  185. b1.WithOwner()
  186. .HasForeignKey("DbThroughputTestRecordId");
  187. });
  188. });
  189. #pragma warning restore 612, 618
  190. }
  191. }
  192. }