You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20221104133455_AddedComment.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("20221104133455_AddedComment")]
  14. partial class AddedComment
  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<string>("Conditions")
  40. .IsRequired()
  41. .HasColumnType("nvarchar(max)");
  42. b.Property<DateTime>("CreatedAt")
  43. .HasColumnType("datetime2");
  44. b.Property<DateTime>("ExpiredAt")
  45. .HasColumnType("datetime2");
  46. b.Property<string>("MainLiabilities")
  47. .IsRequired()
  48. .HasColumnType("nvarchar(max)");
  49. b.Property<int>("MinimumExperience")
  50. .HasColumnType("int");
  51. b.Property<string>("Offer")
  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.ApplicantTechnology", b =>
  105. {
  106. b.Property<int>("Id")
  107. .ValueGeneratedOnAdd()
  108. .HasColumnType("int");
  109. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  110. b.Property<int>("ApplicantId")
  111. .HasColumnType("int");
  112. b.Property<int>("TechnologyId")
  113. .HasColumnType("int");
  114. b.HasKey("Id");
  115. b.HasIndex("ApplicantId");
  116. b.HasIndex("TechnologyId");
  117. b.ToTable("ApplicantTechnologies");
  118. });
  119. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.AppRole", b =>
  120. {
  121. b.Property<int>("Id")
  122. .ValueGeneratedOnAdd()
  123. .HasColumnType("int");
  124. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  125. b.Property<string>("ConcurrencyStamp")
  126. .IsConcurrencyToken()
  127. .HasColumnType("nvarchar(max)");
  128. b.Property<string>("Name")
  129. .HasMaxLength(256)
  130. .HasColumnType("nvarchar(256)");
  131. b.Property<string>("NormalizedName")
  132. .HasMaxLength(256)
  133. .HasColumnType("nvarchar(256)");
  134. b.HasKey("Id");
  135. b.HasIndex("NormalizedName")
  136. .IsUnique()
  137. .HasDatabaseName("RoleNameIndex")
  138. .HasFilter("[NormalizedName] IS NOT NULL");
  139. b.ToTable("AspNetRoles", (string)null);
  140. });
  141. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Comment", b =>
  142. {
  143. b.Property<int>("Id")
  144. .ValueGeneratedOnAdd()
  145. .HasColumnType("int");
  146. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  147. b.Property<int>("ApplicantId")
  148. .HasColumnType("int");
  149. b.Property<string>("Content")
  150. .IsRequired()
  151. .HasMaxLength(1024)
  152. .HasColumnType("nvarchar(1024)");
  153. b.Property<DateTime>("DateOfSending")
  154. .HasColumnType("datetime2");
  155. b.Property<int>("UserId")
  156. .HasColumnType("int");
  157. b.HasKey("Id");
  158. b.HasIndex("ApplicantId");
  159. b.HasIndex("UserId");
  160. b.ToTable("Comments");
  161. });
  162. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.InsuranceCompany", b =>
  163. {
  164. b.Property<long>("Id")
  165. .ValueGeneratedOnAdd()
  166. .HasColumnType("bigint");
  167. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  168. b.Property<string>("City")
  169. .IsRequired()
  170. .HasColumnType("nvarchar(max)");
  171. b.Property<string>("Country")
  172. .IsRequired()
  173. .HasColumnType("nvarchar(max)");
  174. b.Property<DateTime>("CreatedAtUtc")
  175. .HasColumnType("datetime2");
  176. b.Property<DateTime?>("DeletedAtUtc")
  177. .HasColumnType("datetime2");
  178. b.Property<string>("Fax")
  179. .IsRequired()
  180. .HasColumnType("nvarchar(max)");
  181. b.Property<string>("LegalAddress")
  182. .IsRequired()
  183. .HasColumnType("nvarchar(max)");
  184. b.Property<string>("LegalEmail")
  185. .IsRequired()
  186. .HasColumnType("nvarchar(max)");
  187. b.Property<string>("Name")
  188. .IsRequired()
  189. .HasColumnType("nvarchar(max)");
  190. b.Property<string>("PhoneNumber")
  191. .IsRequired()
  192. .HasColumnType("nvarchar(max)");
  193. b.Property<string>("PostalCode")
  194. .IsRequired()
  195. .HasColumnType("nvarchar(max)");
  196. b.Property<DateTime?>("UpdatedAtUtc")
  197. .HasColumnType("datetime2");
  198. b.HasKey("Id");
  199. b.ToTable("InsuranceCompanies");
  200. });
  201. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.InsurancePolicy", b =>
  202. {
  203. b.Property<long>("Id")
  204. .ValueGeneratedOnAdd()
  205. .HasColumnType("bigint");
  206. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  207. b.Property<DateTime>("CreatedAtUtc")
  208. .HasColumnType("datetime2");
  209. b.Property<DateTime?>("DeletedAtUtc")
  210. .HasColumnType("datetime2");
  211. b.Property<DateTime>("EndDate")
  212. .HasColumnType("datetime2");
  213. b.Property<long>("InsurerId")
  214. .HasColumnType("bigint");
  215. b.Property<decimal>("Premium")
  216. .HasColumnType("decimal(18,2)");
  217. b.Property<DateTime>("StartDate")
  218. .HasColumnType("datetime2");
  219. b.Property<string>("Type")
  220. .IsRequired()
  221. .HasColumnType("nvarchar(max)");
  222. b.Property<DateTime?>("UpdatedAtUtc")
  223. .HasColumnType("datetime2");
  224. b.HasKey("Id");
  225. b.HasIndex("InsurerId");
  226. b.ToTable("InsurancePolicies");
  227. });
  228. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Insurer", b =>
  229. {
  230. b.Property<long>("Id")
  231. .ValueGeneratedOnAdd()
  232. .HasColumnType("bigint");
  233. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  234. b.Property<string>("Address")
  235. .IsRequired()
  236. .HasColumnType("nvarchar(max)");
  237. b.Property<string>("City")
  238. .IsRequired()
  239. .HasColumnType("nvarchar(max)");
  240. b.Property<string>("Country")
  241. .IsRequired()
  242. .HasColumnType("nvarchar(max)");
  243. b.Property<DateTime>("CreatedAtUtc")
  244. .HasColumnType("datetime2");
  245. b.Property<DateTime>("DateOfBirth")
  246. .HasColumnType("datetime2");
  247. b.Property<DateTime?>("DeletedAtUtc")
  248. .HasColumnType("datetime2");
  249. b.Property<string>("Email")
  250. .IsRequired()
  251. .HasColumnType("nvarchar(max)");
  252. b.Property<string>("FirstName")
  253. .IsRequired()
  254. .HasColumnType("nvarchar(max)");
  255. b.Property<long>("InsuranceCompanyId")
  256. .HasColumnType("bigint");
  257. b.Property<string>("LastName")
  258. .IsRequired()
  259. .HasColumnType("nvarchar(max)");
  260. b.Property<string>("PhoneNumber")
  261. .IsRequired()
  262. .HasColumnType("nvarchar(max)");
  263. b.Property<string>("PostalCode")
  264. .IsRequired()
  265. .HasColumnType("nvarchar(max)");
  266. b.Property<DateTime?>("UpdatedAtUtc")
  267. .HasColumnType("datetime2");
  268. b.HasKey("Id");
  269. b.HasIndex("InsuranceCompanyId");
  270. b.ToTable("Insurers");
  271. });
  272. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.RefreshToken", b =>
  273. {
  274. b.Property<int>("Id")
  275. .ValueGeneratedOnAdd()
  276. .HasColumnType("int");
  277. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  278. b.Property<DateTime>("CreationDate")
  279. .HasColumnType("datetime2");
  280. b.Property<DateTime>("ExpiryDate")
  281. .HasColumnType("datetime2");
  282. b.Property<bool>("Invalidated")
  283. .HasColumnType("bit");
  284. b.Property<string>("JwtId")
  285. .IsRequired()
  286. .HasColumnType("nvarchar(max)");
  287. b.Property<string>("Token")
  288. .IsRequired()
  289. .HasColumnType("nvarchar(max)");
  290. b.Property<bool>("Used")
  291. .HasColumnType("bit");
  292. b.Property<int>("UserId")
  293. .HasColumnType("int");
  294. b.HasKey("Id");
  295. b.HasIndex("UserId");
  296. b.ToTable("RefreshTokens");
  297. });
  298. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Technology", b =>
  299. {
  300. b.Property<int>("TechnologyId")
  301. .ValueGeneratedOnAdd()
  302. .HasColumnType("int");
  303. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("TechnologyId"), 1L, 1);
  304. b.Property<string>("Name")
  305. .IsRequired()
  306. .HasMaxLength(128)
  307. .HasColumnType("nvarchar(128)");
  308. b.HasKey("TechnologyId");
  309. b.ToTable("Technologies");
  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.ApplicantTechnology", b =>
  499. {
  500. b.HasOne("Diligent.WebAPI.Data.Entities.Applicant", "Applicant")
  501. .WithMany("ApplicantTechnologies")
  502. .HasForeignKey("ApplicantId")
  503. .OnDelete(DeleteBehavior.Cascade)
  504. .IsRequired();
  505. b.HasOne("Diligent.WebAPI.Data.Entities.Technology", "Tecnology")
  506. .WithMany("ApplicantTechnologies")
  507. .HasForeignKey("TechnologyId")
  508. .OnDelete(DeleteBehavior.Cascade)
  509. .IsRequired();
  510. b.Navigation("Applicant");
  511. b.Navigation("Tecnology");
  512. });
  513. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Comment", b =>
  514. {
  515. b.HasOne("Diligent.WebAPI.Data.Entities.Applicant", "Applicant")
  516. .WithMany("Comments")
  517. .HasForeignKey("ApplicantId")
  518. .OnDelete(DeleteBehavior.Cascade)
  519. .IsRequired();
  520. b.HasOne("Diligent.WebAPI.Data.Entities.User", "User")
  521. .WithMany("Comments")
  522. .HasForeignKey("UserId")
  523. .OnDelete(DeleteBehavior.Cascade)
  524. .IsRequired();
  525. b.Navigation("Applicant");
  526. b.Navigation("User");
  527. });
  528. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.InsurancePolicy", b =>
  529. {
  530. b.HasOne("Diligent.WebAPI.Data.Entities.Insurer", "Insurer")
  531. .WithMany()
  532. .HasForeignKey("InsurerId")
  533. .OnDelete(DeleteBehavior.Cascade)
  534. .IsRequired();
  535. b.Navigation("Insurer");
  536. });
  537. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Insurer", b =>
  538. {
  539. b.HasOne("Diligent.WebAPI.Data.Entities.InsuranceCompany", "InsuranceCompany")
  540. .WithMany()
  541. .HasForeignKey("InsuranceCompanyId")
  542. .OnDelete(DeleteBehavior.Cascade)
  543. .IsRequired();
  544. b.Navigation("InsuranceCompany");
  545. });
  546. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.RefreshToken", b =>
  547. {
  548. b.HasOne("Diligent.WebAPI.Data.Entities.User", "User")
  549. .WithMany()
  550. .HasForeignKey("UserId")
  551. .OnDelete(DeleteBehavior.Cascade)
  552. .IsRequired();
  553. b.Navigation("User");
  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("ApplicantTechnologies");
  612. b.Navigation("Comments");
  613. });
  614. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Technology", b =>
  615. {
  616. b.Navigation("ApplicantTechnologies");
  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. }