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.

20221101095219_AddedApplicantTechnology.Designer.cs 26KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717
  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.Migrations;
  8. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  9. #nullable disable
  10. namespace Diligent.WebAPI.Data.Migrations
  11. {
  12. [DbContext(typeof(DatabaseContext))]
  13. [Migration("20221101095219_AddedApplicantTechnology")]
  14. partial class AddedApplicantTechnology
  15. {
  16. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  17. {
  18. #pragma warning disable 612, 618
  19. modelBuilder
  20. .HasAnnotation("ProductVersion", "6.0.10")
  21. .HasAnnotation("Relational:MaxIdentifierLength", 128);
  22. SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
  23. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Applicant", b =>
  24. {
  25. b.Property<int>("ApplicantId")
  26. .ValueGeneratedOnAdd()
  27. .HasColumnType("int");
  28. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ApplicantId"), 1L, 1);
  29. b.Property<string>("ApplicationChannel")
  30. .HasColumnType("nvarchar(max)");
  31. b.Property<string>("BitBucketLink")
  32. .HasColumnType("nvarchar(max)");
  33. b.Property<string>("CV")
  34. .IsRequired()
  35. .HasColumnType("nvarchar(max)");
  36. b.Property<DateTime>("DateOfApplication")
  37. .HasColumnType("datetime2");
  38. b.Property<string>("Email")
  39. .IsRequired()
  40. .HasMaxLength(128)
  41. .HasColumnType("nvarchar(128)");
  42. b.Property<int>("Experience")
  43. .HasColumnType("int");
  44. b.Property<string>("FirstName")
  45. .IsRequired()
  46. .HasMaxLength(128)
  47. .HasColumnType("nvarchar(128)");
  48. b.Property<string>("GithubLink")
  49. .HasColumnType("nvarchar(max)");
  50. b.Property<string>("LastName")
  51. .IsRequired()
  52. .HasMaxLength(128)
  53. .HasColumnType("nvarchar(128)");
  54. b.Property<string>("LinkedlnLink")
  55. .HasColumnType("nvarchar(max)");
  56. b.Property<string>("PhoneNumber")
  57. .IsRequired()
  58. .HasMaxLength(30)
  59. .HasColumnType("nvarchar(30)");
  60. b.Property<string>("Position")
  61. .IsRequired()
  62. .HasMaxLength(128)
  63. .HasColumnType("nvarchar(128)");
  64. b.HasKey("ApplicantId");
  65. b.ToTable("Applicants");
  66. });
  67. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.ApplicantTechnology", b =>
  68. {
  69. b.Property<int>("Id")
  70. .ValueGeneratedOnAdd()
  71. .HasColumnType("int");
  72. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  73. b.Property<int>("ApplicantId")
  74. .HasColumnType("int");
  75. b.Property<int>("TechnologyId")
  76. .HasColumnType("int");
  77. b.HasKey("Id");
  78. b.HasIndex("ApplicantId");
  79. b.HasIndex("TechnologyId");
  80. b.ToTable("ApplicantTechnologies");
  81. });
  82. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.AppRole", b =>
  83. {
  84. b.Property<int>("Id")
  85. .ValueGeneratedOnAdd()
  86. .HasColumnType("int");
  87. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  88. b.Property<string>("ConcurrencyStamp")
  89. .IsConcurrencyToken()
  90. .HasColumnType("nvarchar(max)");
  91. b.Property<string>("Name")
  92. .HasMaxLength(256)
  93. .HasColumnType("nvarchar(256)");
  94. b.Property<string>("NormalizedName")
  95. .HasMaxLength(256)
  96. .HasColumnType("nvarchar(256)");
  97. b.HasKey("Id");
  98. b.HasIndex("NormalizedName")
  99. .IsUnique()
  100. .HasDatabaseName("RoleNameIndex")
  101. .HasFilter("[NormalizedName] IS NOT NULL");
  102. b.ToTable("AspNetRoles", (string)null);
  103. });
  104. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.InsuranceCompany", b =>
  105. {
  106. b.Property<long>("Id")
  107. .ValueGeneratedOnAdd()
  108. .HasColumnType("bigint");
  109. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  110. b.Property<string>("City")
  111. .IsRequired()
  112. .HasColumnType("nvarchar(max)");
  113. b.Property<string>("Country")
  114. .IsRequired()
  115. .HasColumnType("nvarchar(max)");
  116. b.Property<DateTime>("CreatedAtUtc")
  117. .HasColumnType("datetime2");
  118. b.Property<DateTime?>("DeletedAtUtc")
  119. .HasColumnType("datetime2");
  120. b.Property<string>("Fax")
  121. .IsRequired()
  122. .HasColumnType("nvarchar(max)");
  123. b.Property<string>("LegalAddress")
  124. .IsRequired()
  125. .HasColumnType("nvarchar(max)");
  126. b.Property<string>("LegalEmail")
  127. .IsRequired()
  128. .HasColumnType("nvarchar(max)");
  129. b.Property<string>("Name")
  130. .IsRequired()
  131. .HasColumnType("nvarchar(max)");
  132. b.Property<string>("PhoneNumber")
  133. .IsRequired()
  134. .HasColumnType("nvarchar(max)");
  135. b.Property<string>("PostalCode")
  136. .IsRequired()
  137. .HasColumnType("nvarchar(max)");
  138. b.Property<DateTime?>("UpdatedAtUtc")
  139. .HasColumnType("datetime2");
  140. b.HasKey("Id");
  141. b.ToTable("InsuranceCompanies");
  142. });
  143. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.InsurancePolicy", b =>
  144. {
  145. b.Property<long>("Id")
  146. .ValueGeneratedOnAdd()
  147. .HasColumnType("bigint");
  148. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  149. b.Property<DateTime>("CreatedAtUtc")
  150. .HasColumnType("datetime2");
  151. b.Property<DateTime?>("DeletedAtUtc")
  152. .HasColumnType("datetime2");
  153. b.Property<DateTime>("EndDate")
  154. .HasColumnType("datetime2");
  155. b.Property<long>("InsurerId")
  156. .HasColumnType("bigint");
  157. b.Property<decimal>("Premium")
  158. .HasColumnType("decimal(18,2)");
  159. b.Property<DateTime>("StartDate")
  160. .HasColumnType("datetime2");
  161. b.Property<string>("Type")
  162. .IsRequired()
  163. .HasColumnType("nvarchar(max)");
  164. b.Property<DateTime?>("UpdatedAtUtc")
  165. .HasColumnType("datetime2");
  166. b.HasKey("Id");
  167. b.HasIndex("InsurerId");
  168. b.ToTable("InsurancePolicies");
  169. });
  170. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Insurer", b =>
  171. {
  172. b.Property<long>("Id")
  173. .ValueGeneratedOnAdd()
  174. .HasColumnType("bigint");
  175. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  176. b.Property<string>("Address")
  177. .IsRequired()
  178. .HasColumnType("nvarchar(max)");
  179. b.Property<string>("City")
  180. .IsRequired()
  181. .HasColumnType("nvarchar(max)");
  182. b.Property<string>("Country")
  183. .IsRequired()
  184. .HasColumnType("nvarchar(max)");
  185. b.Property<DateTime>("CreatedAtUtc")
  186. .HasColumnType("datetime2");
  187. b.Property<DateTime>("DateOfBirth")
  188. .HasColumnType("datetime2");
  189. b.Property<DateTime?>("DeletedAtUtc")
  190. .HasColumnType("datetime2");
  191. b.Property<string>("Email")
  192. .IsRequired()
  193. .HasColumnType("nvarchar(max)");
  194. b.Property<string>("FirstName")
  195. .IsRequired()
  196. .HasColumnType("nvarchar(max)");
  197. b.Property<long>("InsuranceCompanyId")
  198. .HasColumnType("bigint");
  199. b.Property<string>("LastName")
  200. .IsRequired()
  201. .HasColumnType("nvarchar(max)");
  202. b.Property<string>("PhoneNumber")
  203. .IsRequired()
  204. .HasColumnType("nvarchar(max)");
  205. b.Property<string>("PostalCode")
  206. .IsRequired()
  207. .HasColumnType("nvarchar(max)");
  208. b.Property<DateTime?>("UpdatedAtUtc")
  209. .HasColumnType("datetime2");
  210. b.HasKey("Id");
  211. b.HasIndex("InsuranceCompanyId");
  212. b.ToTable("Insurers");
  213. });
  214. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.RefreshToken", b =>
  215. {
  216. b.Property<int>("Id")
  217. .ValueGeneratedOnAdd()
  218. .HasColumnType("int");
  219. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  220. b.Property<DateTime>("CreationDate")
  221. .HasColumnType("datetime2");
  222. b.Property<DateTime>("ExpiryDate")
  223. .HasColumnType("datetime2");
  224. b.Property<bool>("Invalidated")
  225. .HasColumnType("bit");
  226. b.Property<string>("JwtId")
  227. .IsRequired()
  228. .HasColumnType("nvarchar(max)");
  229. b.Property<string>("Token")
  230. .IsRequired()
  231. .HasColumnType("nvarchar(max)");
  232. b.Property<bool>("Used")
  233. .HasColumnType("bit");
  234. b.Property<int>("UserId")
  235. .HasColumnType("int");
  236. b.HasKey("Id");
  237. b.HasIndex("UserId");
  238. b.ToTable("RefreshTokens");
  239. });
  240. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Technology", b =>
  241. {
  242. b.Property<int>("TechnologyId")
  243. .ValueGeneratedOnAdd()
  244. .HasColumnType("int");
  245. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("TechnologyId"), 1L, 1);
  246. b.Property<string>("Name")
  247. .IsRequired()
  248. .HasMaxLength(128)
  249. .HasColumnType("nvarchar(128)");
  250. b.HasKey("TechnologyId");
  251. b.ToTable("Technologies");
  252. });
  253. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.User", b =>
  254. {
  255. b.Property<int>("Id")
  256. .ValueGeneratedOnAdd()
  257. .HasColumnType("int");
  258. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  259. b.Property<int>("AccessFailedCount")
  260. .HasColumnType("int");
  261. b.Property<string>("ConcurrencyStamp")
  262. .IsConcurrencyToken()
  263. .HasColumnType("nvarchar(max)");
  264. b.Property<string>("Email")
  265. .HasMaxLength(256)
  266. .HasColumnType("nvarchar(256)");
  267. b.Property<bool>("EmailConfirmed")
  268. .HasColumnType("bit");
  269. b.Property<string>("FirstName")
  270. .IsRequired()
  271. .HasColumnType("nvarchar(max)");
  272. b.Property<string>("LastName")
  273. .IsRequired()
  274. .HasColumnType("nvarchar(max)");
  275. b.Property<bool>("LockoutEnabled")
  276. .HasColumnType("bit");
  277. b.Property<DateTimeOffset?>("LockoutEnd")
  278. .HasColumnType("datetimeoffset");
  279. b.Property<string>("NormalizedEmail")
  280. .HasMaxLength(256)
  281. .HasColumnType("nvarchar(256)");
  282. b.Property<string>("NormalizedUserName")
  283. .HasMaxLength(256)
  284. .HasColumnType("nvarchar(256)");
  285. b.Property<string>("PasswordHash")
  286. .HasColumnType("nvarchar(max)");
  287. b.Property<string>("PhoneNumber")
  288. .HasColumnType("nvarchar(max)");
  289. b.Property<bool>("PhoneNumberConfirmed")
  290. .HasColumnType("bit");
  291. b.Property<string>("SecurityStamp")
  292. .HasColumnType("nvarchar(max)");
  293. b.Property<bool>("TwoFactorEnabled")
  294. .HasColumnType("bit");
  295. b.Property<string>("UserName")
  296. .HasMaxLength(256)
  297. .HasColumnType("nvarchar(256)");
  298. b.HasKey("Id");
  299. b.HasIndex("NormalizedEmail")
  300. .HasDatabaseName("EmailIndex");
  301. b.HasIndex("NormalizedUserName")
  302. .IsUnique()
  303. .HasDatabaseName("UserNameIndex")
  304. .HasFilter("[NormalizedUserName] IS NOT NULL");
  305. b.ToTable("AspNetUsers", (string)null);
  306. });
  307. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.WebhookDefinition", b =>
  308. {
  309. b.Property<long>("Id")
  310. .ValueGeneratedOnAdd()
  311. .HasColumnType("bigint");
  312. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  313. b.Property<DateTime>("CreatedAtUtc")
  314. .HasColumnType("datetime2");
  315. b.Property<DateTime?>("DeletedAtUtc")
  316. .HasColumnType("datetime2");
  317. b.Property<string>("Description")
  318. .IsRequired()
  319. .HasColumnType("nvarchar(max)");
  320. b.Property<string>("DisplayName")
  321. .IsRequired()
  322. .HasMaxLength(100)
  323. .HasColumnType("nvarchar(100)");
  324. b.Property<string>("Name")
  325. .IsRequired()
  326. .HasMaxLength(100)
  327. .HasColumnType("nvarchar(100)");
  328. b.Property<DateTime?>("UpdatedAtUtc")
  329. .HasColumnType("datetime2");
  330. b.HasKey("Id");
  331. b.ToTable("WebhookDefinitions");
  332. });
  333. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.WebhookSubscription", b =>
  334. {
  335. b.Property<long>("Id")
  336. .ValueGeneratedOnAdd()
  337. .HasColumnType("bigint");
  338. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  339. b.Property<DateTime>("CreatedAtUtc")
  340. .HasColumnType("datetime2");
  341. b.Property<DateTime?>("DeletedAtUtc")
  342. .HasColumnType("datetime2");
  343. b.Property<bool>("IsActive")
  344. .HasColumnType("bit");
  345. b.Property<DateTime?>("UpdatedAtUtc")
  346. .HasColumnType("datetime2");
  347. b.Property<long>("WebhookDefinitionId")
  348. .HasColumnType("bigint");
  349. b.Property<string>("WebhookURL")
  350. .IsRequired()
  351. .HasColumnType("nvarchar(max)");
  352. b.HasKey("Id");
  353. b.HasIndex("WebhookDefinitionId");
  354. b.ToTable("WebhookSubscriptions");
  355. });
  356. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>
  357. {
  358. b.Property<int>("Id")
  359. .ValueGeneratedOnAdd()
  360. .HasColumnType("int");
  361. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  362. b.Property<string>("ClaimType")
  363. .HasColumnType("nvarchar(max)");
  364. b.Property<string>("ClaimValue")
  365. .HasColumnType("nvarchar(max)");
  366. b.Property<int>("RoleId")
  367. .HasColumnType("int");
  368. b.HasKey("Id");
  369. b.HasIndex("RoleId");
  370. b.ToTable("AspNetRoleClaims", (string)null);
  371. });
  372. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>
  373. {
  374. b.Property<int>("Id")
  375. .ValueGeneratedOnAdd()
  376. .HasColumnType("int");
  377. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  378. b.Property<string>("ClaimType")
  379. .HasColumnType("nvarchar(max)");
  380. b.Property<string>("ClaimValue")
  381. .HasColumnType("nvarchar(max)");
  382. b.Property<int>("UserId")
  383. .HasColumnType("int");
  384. b.HasKey("Id");
  385. b.HasIndex("UserId");
  386. b.ToTable("AspNetUserClaims", (string)null);
  387. });
  388. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>
  389. {
  390. b.Property<string>("LoginProvider")
  391. .HasColumnType("nvarchar(450)");
  392. b.Property<string>("ProviderKey")
  393. .HasColumnType("nvarchar(450)");
  394. b.Property<string>("ProviderDisplayName")
  395. .HasColumnType("nvarchar(max)");
  396. b.Property<int>("UserId")
  397. .HasColumnType("int");
  398. b.HasKey("LoginProvider", "ProviderKey");
  399. b.HasIndex("UserId");
  400. b.ToTable("AspNetUserLogins", (string)null);
  401. });
  402. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<int>", b =>
  403. {
  404. b.Property<int>("UserId")
  405. .HasColumnType("int");
  406. b.Property<int>("RoleId")
  407. .HasColumnType("int");
  408. b.HasKey("UserId", "RoleId");
  409. b.HasIndex("RoleId");
  410. b.ToTable("AspNetUserRoles", (string)null);
  411. });
  412. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>
  413. {
  414. b.Property<int>("UserId")
  415. .HasColumnType("int");
  416. b.Property<string>("LoginProvider")
  417. .HasColumnType("nvarchar(450)");
  418. b.Property<string>("Name")
  419. .HasColumnType("nvarchar(450)");
  420. b.Property<string>("Value")
  421. .HasColumnType("nvarchar(max)");
  422. b.HasKey("UserId", "LoginProvider", "Name");
  423. b.ToTable("AspNetUserTokens", (string)null);
  424. });
  425. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.ApplicantTechnology", b =>
  426. {
  427. b.HasOne("Diligent.WebAPI.Data.Entities.Applicant", "Applicant")
  428. .WithMany()
  429. .HasForeignKey("ApplicantId")
  430. .OnDelete(DeleteBehavior.Cascade)
  431. .IsRequired();
  432. b.HasOne("Diligent.WebAPI.Data.Entities.Technology", "Tecnology")
  433. .WithMany()
  434. .HasForeignKey("TechnologyId")
  435. .OnDelete(DeleteBehavior.Cascade)
  436. .IsRequired();
  437. b.Navigation("Applicant");
  438. b.Navigation("Tecnology");
  439. });
  440. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.InsurancePolicy", b =>
  441. {
  442. b.HasOne("Diligent.WebAPI.Data.Entities.Insurer", "Insurer")
  443. .WithMany()
  444. .HasForeignKey("InsurerId")
  445. .OnDelete(DeleteBehavior.Cascade)
  446. .IsRequired();
  447. b.Navigation("Insurer");
  448. });
  449. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Insurer", b =>
  450. {
  451. b.HasOne("Diligent.WebAPI.Data.Entities.InsuranceCompany", "InsuranceCompany")
  452. .WithMany()
  453. .HasForeignKey("InsuranceCompanyId")
  454. .OnDelete(DeleteBehavior.Cascade)
  455. .IsRequired();
  456. b.Navigation("InsuranceCompany");
  457. });
  458. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.RefreshToken", b =>
  459. {
  460. b.HasOne("Diligent.WebAPI.Data.Entities.User", "User")
  461. .WithMany()
  462. .HasForeignKey("UserId")
  463. .OnDelete(DeleteBehavior.Cascade)
  464. .IsRequired();
  465. b.Navigation("User");
  466. });
  467. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.WebhookSubscription", b =>
  468. {
  469. b.HasOne("Diligent.WebAPI.Data.Entities.WebhookDefinition", "WebhookDefinition")
  470. .WithMany()
  471. .HasForeignKey("WebhookDefinitionId")
  472. .OnDelete(DeleteBehavior.Cascade)
  473. .IsRequired();
  474. b.Navigation("WebhookDefinition");
  475. });
  476. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>
  477. {
  478. b.HasOne("Diligent.WebAPI.Data.Entities.AppRole", null)
  479. .WithMany()
  480. .HasForeignKey("RoleId")
  481. .OnDelete(DeleteBehavior.Cascade)
  482. .IsRequired();
  483. });
  484. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>
  485. {
  486. b.HasOne("Diligent.WebAPI.Data.Entities.User", null)
  487. .WithMany()
  488. .HasForeignKey("UserId")
  489. .OnDelete(DeleteBehavior.Cascade)
  490. .IsRequired();
  491. });
  492. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>
  493. {
  494. b.HasOne("Diligent.WebAPI.Data.Entities.User", null)
  495. .WithMany()
  496. .HasForeignKey("UserId")
  497. .OnDelete(DeleteBehavior.Cascade)
  498. .IsRequired();
  499. });
  500. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<int>", b =>
  501. {
  502. b.HasOne("Diligent.WebAPI.Data.Entities.AppRole", null)
  503. .WithMany()
  504. .HasForeignKey("RoleId")
  505. .OnDelete(DeleteBehavior.Cascade)
  506. .IsRequired();
  507. b.HasOne("Diligent.WebAPI.Data.Entities.User", null)
  508. .WithMany()
  509. .HasForeignKey("UserId")
  510. .OnDelete(DeleteBehavior.Cascade)
  511. .IsRequired();
  512. });
  513. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>
  514. {
  515. b.HasOne("Diligent.WebAPI.Data.Entities.User", null)
  516. .WithMany()
  517. .HasForeignKey("UserId")
  518. .OnDelete(DeleteBehavior.Cascade)
  519. .IsRequired();
  520. });
  521. #pragma warning restore 612, 618
  522. }
  523. }
  524. }