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.

20221107150428_AdAttributesNameChanged.Designer.cs 31KB

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