Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

DatabaseContextModelSnapshot.cs 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. // <auto-generated />
  2. using System;
  3. using Diligent.WebAPI.Data;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Metadata;
  7. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  8. #nullable disable
  9. namespace Diligent.WebAPI.Data.Migrations
  10. {
  11. [DbContext(typeof(DatabaseContext))]
  12. partial class DatabaseContextModelSnapshot : ModelSnapshot
  13. {
  14. protected override void BuildModel(ModelBuilder modelBuilder)
  15. {
  16. #pragma warning disable 612, 618
  17. modelBuilder
  18. .HasAnnotation("ProductVersion", "6.0.3")
  19. .HasAnnotation("Relational:MaxIdentifierLength", 128);
  20. SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
  21. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.InsuranceCompany", b =>
  22. {
  23. b.Property<long>("Id")
  24. .ValueGeneratedOnAdd()
  25. .HasColumnType("bigint");
  26. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  27. b.Property<string>("City")
  28. .IsRequired()
  29. .HasColumnType("nvarchar(max)");
  30. b.Property<string>("Country")
  31. .IsRequired()
  32. .HasColumnType("nvarchar(max)");
  33. b.Property<DateTime>("CreatedAtUtc")
  34. .HasColumnType("datetime2");
  35. b.Property<DateTime?>("DeletedAtUtc")
  36. .HasColumnType("datetime2");
  37. b.Property<string>("Fax")
  38. .IsRequired()
  39. .HasColumnType("nvarchar(max)");
  40. b.Property<string>("LegalAddress")
  41. .IsRequired()
  42. .HasColumnType("nvarchar(max)");
  43. b.Property<string>("LegalEmail")
  44. .IsRequired()
  45. .HasColumnType("nvarchar(max)");
  46. b.Property<string>("Name")
  47. .IsRequired()
  48. .HasColumnType("nvarchar(max)");
  49. b.Property<string>("PhoneNumber")
  50. .IsRequired()
  51. .HasColumnType("nvarchar(max)");
  52. b.Property<string>("PostalCode")
  53. .IsRequired()
  54. .HasColumnType("nvarchar(max)");
  55. b.Property<DateTime?>("UpdatedAtUtc")
  56. .HasColumnType("datetime2");
  57. b.HasKey("Id");
  58. b.ToTable("InsuranceCompanies");
  59. });
  60. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.InsurancePolicy", b =>
  61. {
  62. b.Property<long>("Id")
  63. .ValueGeneratedOnAdd()
  64. .HasColumnType("bigint");
  65. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  66. b.Property<DateTime>("CreatedAtUtc")
  67. .HasColumnType("datetime2");
  68. b.Property<DateTime?>("DeletedAtUtc")
  69. .HasColumnType("datetime2");
  70. b.Property<DateTime>("EndDate")
  71. .HasColumnType("datetime2");
  72. b.Property<long>("InsurerId")
  73. .HasColumnType("bigint");
  74. b.Property<decimal>("Premium")
  75. .HasColumnType("decimal(18,2)");
  76. b.Property<DateTime>("StartDate")
  77. .HasColumnType("datetime2");
  78. b.Property<string>("Type")
  79. .IsRequired()
  80. .HasColumnType("nvarchar(max)");
  81. b.Property<DateTime?>("UpdatedAtUtc")
  82. .HasColumnType("datetime2");
  83. b.HasKey("Id");
  84. b.HasIndex("InsurerId");
  85. b.ToTable("InsurancePolicies");
  86. });
  87. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Insurer", b =>
  88. {
  89. b.Property<long>("Id")
  90. .ValueGeneratedOnAdd()
  91. .HasColumnType("bigint");
  92. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  93. b.Property<string>("Address")
  94. .IsRequired()
  95. .HasColumnType("nvarchar(max)");
  96. b.Property<string>("City")
  97. .IsRequired()
  98. .HasColumnType("nvarchar(max)");
  99. b.Property<string>("Country")
  100. .IsRequired()
  101. .HasColumnType("nvarchar(max)");
  102. b.Property<DateTime>("CreatedAtUtc")
  103. .HasColumnType("datetime2");
  104. b.Property<DateTime>("DateOfBirth")
  105. .HasColumnType("datetime2");
  106. b.Property<DateTime?>("DeletedAtUtc")
  107. .HasColumnType("datetime2");
  108. b.Property<string>("Email")
  109. .IsRequired()
  110. .HasColumnType("nvarchar(max)");
  111. b.Property<string>("FirstName")
  112. .IsRequired()
  113. .HasColumnType("nvarchar(max)");
  114. b.Property<long>("InsuranceCompanyId")
  115. .HasColumnType("bigint");
  116. b.Property<string>("LastName")
  117. .IsRequired()
  118. .HasColumnType("nvarchar(max)");
  119. b.Property<string>("PhoneNumber")
  120. .IsRequired()
  121. .HasColumnType("nvarchar(max)");
  122. b.Property<string>("PostalCode")
  123. .IsRequired()
  124. .HasColumnType("nvarchar(max)");
  125. b.Property<DateTime?>("UpdatedAtUtc")
  126. .HasColumnType("datetime2");
  127. b.HasKey("Id");
  128. b.HasIndex("InsuranceCompanyId");
  129. b.ToTable("Insurers");
  130. });
  131. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.WebhookDefinition", b =>
  132. {
  133. b.Property<long>("Id")
  134. .ValueGeneratedOnAdd()
  135. .HasColumnType("bigint");
  136. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  137. b.Property<DateTime>("CreatedAtUtc")
  138. .HasColumnType("datetime2");
  139. b.Property<DateTime?>("DeletedAtUtc")
  140. .HasColumnType("datetime2");
  141. b.Property<string>("Description")
  142. .IsRequired()
  143. .HasColumnType("nvarchar(max)");
  144. b.Property<string>("DisplayName")
  145. .IsRequired()
  146. .HasMaxLength(100)
  147. .HasColumnType("nvarchar(100)");
  148. b.Property<string>("Name")
  149. .IsRequired()
  150. .HasMaxLength(100)
  151. .HasColumnType("nvarchar(100)");
  152. b.Property<DateTime?>("UpdatedAtUtc")
  153. .HasColumnType("datetime2");
  154. b.HasKey("Id");
  155. b.ToTable("WebhookDefinitions");
  156. });
  157. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.WebhookSubscription", b =>
  158. {
  159. b.Property<long>("Id")
  160. .ValueGeneratedOnAdd()
  161. .HasColumnType("bigint");
  162. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  163. b.Property<DateTime>("CreatedAtUtc")
  164. .HasColumnType("datetime2");
  165. b.Property<DateTime?>("DeletedAtUtc")
  166. .HasColumnType("datetime2");
  167. b.Property<bool>("IsActive")
  168. .HasColumnType("bit");
  169. b.Property<DateTime?>("UpdatedAtUtc")
  170. .HasColumnType("datetime2");
  171. b.Property<long>("WebhookDefinitionId")
  172. .HasColumnType("bigint");
  173. b.Property<string>("WebhookURL")
  174. .IsRequired()
  175. .HasColumnType("nvarchar(max)");
  176. b.HasKey("Id");
  177. b.HasIndex("WebhookDefinitionId");
  178. b.ToTable("WebhookSubscriptions");
  179. });
  180. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.InsurancePolicy", b =>
  181. {
  182. b.HasOne("Diligent.WebAPI.Data.Entities.Insurer", "Insurer")
  183. .WithMany()
  184. .HasForeignKey("InsurerId")
  185. .OnDelete(DeleteBehavior.Cascade)
  186. .IsRequired();
  187. b.Navigation("Insurer");
  188. });
  189. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Insurer", b =>
  190. {
  191. b.HasOne("Diligent.WebAPI.Data.Entities.InsuranceCompany", "InsuranceCompany")
  192. .WithMany()
  193. .HasForeignKey("InsuranceCompanyId")
  194. .OnDelete(DeleteBehavior.Cascade)
  195. .IsRequired();
  196. b.Navigation("InsuranceCompany");
  197. });
  198. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.WebhookSubscription", b =>
  199. {
  200. b.HasOne("Diligent.WebAPI.Data.Entities.WebhookDefinition", "WebhookDefinition")
  201. .WithMany()
  202. .HasForeignKey("WebhookDefinitionId")
  203. .OnDelete(DeleteBehavior.Cascade)
  204. .IsRequired();
  205. b.Navigation("WebhookDefinition");
  206. });
  207. #pragma warning restore 612, 618
  208. }
  209. }
  210. }