Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

20221107163821_AddedSelectionProcess.Designer.cs 31KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872
  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("20221107163821_AddedSelectionProcess")]
  14. partial class AddedSelectionProcess
  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.InsuranceCompany", b =>
  142. {
  143. b.Property<long>("Id")
  144. .ValueGeneratedOnAdd()
  145. .HasColumnType("bigint");
  146. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  147. b.Property<string>("City")
  148. .IsRequired()
  149. .HasColumnType("nvarchar(max)");
  150. b.Property<string>("Country")
  151. .IsRequired()
  152. .HasColumnType("nvarchar(max)");
  153. b.Property<DateTime>("CreatedAtUtc")
  154. .HasColumnType("datetime2");
  155. b.Property<DateTime?>("DeletedAtUtc")
  156. .HasColumnType("datetime2");
  157. b.Property<string>("Fax")
  158. .IsRequired()
  159. .HasColumnType("nvarchar(max)");
  160. b.Property<string>("LegalAddress")
  161. .IsRequired()
  162. .HasColumnType("nvarchar(max)");
  163. b.Property<string>("LegalEmail")
  164. .IsRequired()
  165. .HasColumnType("nvarchar(max)");
  166. b.Property<string>("Name")
  167. .IsRequired()
  168. .HasColumnType("nvarchar(max)");
  169. b.Property<string>("PhoneNumber")
  170. .IsRequired()
  171. .HasColumnType("nvarchar(max)");
  172. b.Property<string>("PostalCode")
  173. .IsRequired()
  174. .HasColumnType("nvarchar(max)");
  175. b.Property<DateTime?>("UpdatedAtUtc")
  176. .HasColumnType("datetime2");
  177. b.HasKey("Id");
  178. b.ToTable("InsuranceCompanies");
  179. });
  180. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.InsurancePolicy", b =>
  181. {
  182. b.Property<long>("Id")
  183. .ValueGeneratedOnAdd()
  184. .HasColumnType("bigint");
  185. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  186. b.Property<DateTime>("CreatedAtUtc")
  187. .HasColumnType("datetime2");
  188. b.Property<DateTime?>("DeletedAtUtc")
  189. .HasColumnType("datetime2");
  190. b.Property<DateTime>("EndDate")
  191. .HasColumnType("datetime2");
  192. b.Property<long>("InsurerId")
  193. .HasColumnType("bigint");
  194. b.Property<decimal>("Premium")
  195. .HasColumnType("decimal(18,2)");
  196. b.Property<DateTime>("StartDate")
  197. .HasColumnType("datetime2");
  198. b.Property<string>("Type")
  199. .IsRequired()
  200. .HasColumnType("nvarchar(max)");
  201. b.Property<DateTime?>("UpdatedAtUtc")
  202. .HasColumnType("datetime2");
  203. b.HasKey("Id");
  204. b.HasIndex("InsurerId");
  205. b.ToTable("InsurancePolicies");
  206. });
  207. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Insurer", b =>
  208. {
  209. b.Property<long>("Id")
  210. .ValueGeneratedOnAdd()
  211. .HasColumnType("bigint");
  212. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  213. b.Property<string>("Address")
  214. .IsRequired()
  215. .HasColumnType("nvarchar(max)");
  216. b.Property<string>("City")
  217. .IsRequired()
  218. .HasColumnType("nvarchar(max)");
  219. b.Property<string>("Country")
  220. .IsRequired()
  221. .HasColumnType("nvarchar(max)");
  222. b.Property<DateTime>("CreatedAtUtc")
  223. .HasColumnType("datetime2");
  224. b.Property<DateTime>("DateOfBirth")
  225. .HasColumnType("datetime2");
  226. b.Property<DateTime?>("DeletedAtUtc")
  227. .HasColumnType("datetime2");
  228. b.Property<string>("Email")
  229. .IsRequired()
  230. .HasColumnType("nvarchar(max)");
  231. b.Property<string>("FirstName")
  232. .IsRequired()
  233. .HasColumnType("nvarchar(max)");
  234. b.Property<long>("InsuranceCompanyId")
  235. .HasColumnType("bigint");
  236. b.Property<string>("LastName")
  237. .IsRequired()
  238. .HasColumnType("nvarchar(max)");
  239. b.Property<string>("PhoneNumber")
  240. .IsRequired()
  241. .HasColumnType("nvarchar(max)");
  242. b.Property<string>("PostalCode")
  243. .IsRequired()
  244. .HasColumnType("nvarchar(max)");
  245. b.Property<DateTime?>("UpdatedAtUtc")
  246. .HasColumnType("datetime2");
  247. b.HasKey("Id");
  248. b.HasIndex("InsuranceCompanyId");
  249. b.ToTable("Insurers");
  250. });
  251. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.RefreshToken", b =>
  252. {
  253. b.Property<int>("Id")
  254. .ValueGeneratedOnAdd()
  255. .HasColumnType("int");
  256. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  257. b.Property<DateTime>("CreationDate")
  258. .HasColumnType("datetime2");
  259. b.Property<DateTime>("ExpiryDate")
  260. .HasColumnType("datetime2");
  261. b.Property<bool>("Invalidated")
  262. .HasColumnType("bit");
  263. b.Property<string>("JwtId")
  264. .IsRequired()
  265. .HasColumnType("nvarchar(max)");
  266. b.Property<string>("Token")
  267. .IsRequired()
  268. .HasColumnType("nvarchar(max)");
  269. b.Property<bool>("Used")
  270. .HasColumnType("bit");
  271. b.Property<int>("UserId")
  272. .HasColumnType("int");
  273. b.HasKey("Id");
  274. b.HasIndex("UserId");
  275. b.ToTable("RefreshTokens");
  276. });
  277. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.SelectionLevel", b =>
  278. {
  279. b.Property<int>("Id")
  280. .ValueGeneratedOnAdd()
  281. .HasColumnType("int");
  282. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  283. b.Property<string>("Name")
  284. .IsRequired()
  285. .HasColumnType("nvarchar(max)");
  286. b.HasKey("Id");
  287. b.ToTable("SelectionLevels");
  288. });
  289. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.SelectionProcess", b =>
  290. {
  291. b.Property<int>("Id")
  292. .ValueGeneratedOnAdd()
  293. .HasColumnType("int");
  294. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  295. b.Property<int>("ApplicantId")
  296. .HasColumnType("int");
  297. b.Property<DateTime?>("Date")
  298. .HasColumnType("datetime2");
  299. b.Property<string>("Link")
  300. .HasColumnType("nvarchar(max)");
  301. b.Property<string>("Name")
  302. .IsRequired()
  303. .HasColumnType("nvarchar(max)");
  304. b.Property<int?>("SchedulerId")
  305. .HasColumnType("int");
  306. b.Property<int>("SelectionLevelId")
  307. .HasColumnType("int");
  308. b.Property<string>("Status")
  309. .IsRequired()
  310. .HasColumnType("nvarchar(max)");
  311. b.HasKey("Id");
  312. b.HasIndex("SchedulerId");
  313. b.HasIndex("SelectionLevelId");
  314. b.ToTable("SelectionProcesses");
  315. });
  316. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Technology", b =>
  317. {
  318. b.Property<int>("TechnologyId")
  319. .ValueGeneratedOnAdd()
  320. .HasColumnType("int");
  321. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("TechnologyId"), 1L, 1);
  322. b.Property<string>("Name")
  323. .IsRequired()
  324. .HasMaxLength(128)
  325. .HasColumnType("nvarchar(128)");
  326. b.HasKey("TechnologyId");
  327. b.ToTable("Technologies");
  328. });
  329. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.User", b =>
  330. {
  331. b.Property<int>("Id")
  332. .ValueGeneratedOnAdd()
  333. .HasColumnType("int");
  334. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  335. b.Property<int>("AccessFailedCount")
  336. .HasColumnType("int");
  337. b.Property<string>("ConcurrencyStamp")
  338. .IsConcurrencyToken()
  339. .HasColumnType("nvarchar(max)");
  340. b.Property<string>("Email")
  341. .HasMaxLength(256)
  342. .HasColumnType("nvarchar(256)");
  343. b.Property<bool>("EmailConfirmed")
  344. .HasColumnType("bit");
  345. b.Property<string>("FirstName")
  346. .IsRequired()
  347. .HasColumnType("nvarchar(max)");
  348. b.Property<string>("LastName")
  349. .IsRequired()
  350. .HasColumnType("nvarchar(max)");
  351. b.Property<bool>("LockoutEnabled")
  352. .HasColumnType("bit");
  353. b.Property<DateTimeOffset?>("LockoutEnd")
  354. .HasColumnType("datetimeoffset");
  355. b.Property<string>("NormalizedEmail")
  356. .HasMaxLength(256)
  357. .HasColumnType("nvarchar(256)");
  358. b.Property<string>("NormalizedUserName")
  359. .HasMaxLength(256)
  360. .HasColumnType("nvarchar(256)");
  361. b.Property<string>("PasswordHash")
  362. .HasColumnType("nvarchar(max)");
  363. b.Property<string>("PasswordResetToken")
  364. .HasColumnType("nvarchar(max)");
  365. b.Property<string>("PhoneNumber")
  366. .HasColumnType("nvarchar(max)");
  367. b.Property<bool>("PhoneNumberConfirmed")
  368. .HasColumnType("bit");
  369. b.Property<string>("SecurityStamp")
  370. .HasColumnType("nvarchar(max)");
  371. b.Property<bool>("TwoFactorEnabled")
  372. .HasColumnType("bit");
  373. b.Property<string>("UserName")
  374. .HasMaxLength(256)
  375. .HasColumnType("nvarchar(256)");
  376. b.HasKey("Id");
  377. b.HasIndex("NormalizedEmail")
  378. .HasDatabaseName("EmailIndex");
  379. b.HasIndex("NormalizedUserName")
  380. .IsUnique()
  381. .HasDatabaseName("UserNameIndex")
  382. .HasFilter("[NormalizedUserName] IS NOT NULL");
  383. b.ToTable("AspNetUsers", (string)null);
  384. });
  385. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.WebhookDefinition", b =>
  386. {
  387. b.Property<long>("Id")
  388. .ValueGeneratedOnAdd()
  389. .HasColumnType("bigint");
  390. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  391. b.Property<DateTime>("CreatedAtUtc")
  392. .HasColumnType("datetime2");
  393. b.Property<DateTime?>("DeletedAtUtc")
  394. .HasColumnType("datetime2");
  395. b.Property<string>("Description")
  396. .IsRequired()
  397. .HasColumnType("nvarchar(max)");
  398. b.Property<string>("DisplayName")
  399. .IsRequired()
  400. .HasMaxLength(100)
  401. .HasColumnType("nvarchar(100)");
  402. b.Property<string>("Name")
  403. .IsRequired()
  404. .HasMaxLength(100)
  405. .HasColumnType("nvarchar(100)");
  406. b.Property<DateTime?>("UpdatedAtUtc")
  407. .HasColumnType("datetime2");
  408. b.HasKey("Id");
  409. b.ToTable("WebhookDefinitions");
  410. });
  411. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.WebhookSubscription", b =>
  412. {
  413. b.Property<long>("Id")
  414. .ValueGeneratedOnAdd()
  415. .HasColumnType("bigint");
  416. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  417. b.Property<DateTime>("CreatedAtUtc")
  418. .HasColumnType("datetime2");
  419. b.Property<DateTime?>("DeletedAtUtc")
  420. .HasColumnType("datetime2");
  421. b.Property<bool>("IsActive")
  422. .HasColumnType("bit");
  423. b.Property<DateTime?>("UpdatedAtUtc")
  424. .HasColumnType("datetime2");
  425. b.Property<long>("WebhookDefinitionId")
  426. .HasColumnType("bigint");
  427. b.Property<string>("WebhookURL")
  428. .IsRequired()
  429. .HasColumnType("nvarchar(max)");
  430. b.HasKey("Id");
  431. b.HasIndex("WebhookDefinitionId");
  432. b.ToTable("WebhookSubscriptions");
  433. });
  434. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>
  435. {
  436. b.Property<int>("Id")
  437. .ValueGeneratedOnAdd()
  438. .HasColumnType("int");
  439. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  440. b.Property<string>("ClaimType")
  441. .HasColumnType("nvarchar(max)");
  442. b.Property<string>("ClaimValue")
  443. .HasColumnType("nvarchar(max)");
  444. b.Property<int>("RoleId")
  445. .HasColumnType("int");
  446. b.HasKey("Id");
  447. b.HasIndex("RoleId");
  448. b.ToTable("AspNetRoleClaims", (string)null);
  449. });
  450. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>
  451. {
  452. b.Property<int>("Id")
  453. .ValueGeneratedOnAdd()
  454. .HasColumnType("int");
  455. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  456. b.Property<string>("ClaimType")
  457. .HasColumnType("nvarchar(max)");
  458. b.Property<string>("ClaimValue")
  459. .HasColumnType("nvarchar(max)");
  460. b.Property<int>("UserId")
  461. .HasColumnType("int");
  462. b.HasKey("Id");
  463. b.HasIndex("UserId");
  464. b.ToTable("AspNetUserClaims", (string)null);
  465. });
  466. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>
  467. {
  468. b.Property<string>("LoginProvider")
  469. .HasColumnType("nvarchar(450)");
  470. b.Property<string>("ProviderKey")
  471. .HasColumnType("nvarchar(450)");
  472. b.Property<string>("ProviderDisplayName")
  473. .HasColumnType("nvarchar(max)");
  474. b.Property<int>("UserId")
  475. .HasColumnType("int");
  476. b.HasKey("LoginProvider", "ProviderKey");
  477. b.HasIndex("UserId");
  478. b.ToTable("AspNetUserLogins", (string)null);
  479. });
  480. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<int>", b =>
  481. {
  482. b.Property<int>("UserId")
  483. .HasColumnType("int");
  484. b.Property<int>("RoleId")
  485. .HasColumnType("int");
  486. b.HasKey("UserId", "RoleId");
  487. b.HasIndex("RoleId");
  488. b.ToTable("AspNetUserRoles", (string)null);
  489. });
  490. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>
  491. {
  492. b.Property<int>("UserId")
  493. .HasColumnType("int");
  494. b.Property<string>("LoginProvider")
  495. .HasColumnType("nvarchar(450)");
  496. b.Property<string>("Name")
  497. .HasColumnType("nvarchar(450)");
  498. b.Property<string>("Value")
  499. .HasColumnType("nvarchar(max)");
  500. b.HasKey("UserId", "LoginProvider", "Name");
  501. b.ToTable("AspNetUserTokens", (string)null);
  502. });
  503. modelBuilder.Entity("AdTechnology", b =>
  504. {
  505. b.HasOne("Diligent.WebAPI.Data.Entities.Ad", null)
  506. .WithMany()
  507. .HasForeignKey("AdsId")
  508. .OnDelete(DeleteBehavior.Cascade)
  509. .IsRequired();
  510. b.HasOne("Diligent.WebAPI.Data.Entities.Technology", null)
  511. .WithMany()
  512. .HasForeignKey("TechnologiesTechnologyId")
  513. .OnDelete(DeleteBehavior.Cascade)
  514. .IsRequired();
  515. });
  516. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.ApplicantTechnology", b =>
  517. {
  518. b.HasOne("Diligent.WebAPI.Data.Entities.Applicant", "Applicant")
  519. .WithMany("ApplicantTechnologies")
  520. .HasForeignKey("ApplicantId")
  521. .OnDelete(DeleteBehavior.Cascade)
  522. .IsRequired();
  523. b.HasOne("Diligent.WebAPI.Data.Entities.Technology", "Tecnology")
  524. .WithMany("ApplicantTechnologies")
  525. .HasForeignKey("TechnologyId")
  526. .OnDelete(DeleteBehavior.Cascade)
  527. .IsRequired();
  528. b.Navigation("Applicant");
  529. b.Navigation("Tecnology");
  530. });
  531. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.InsurancePolicy", b =>
  532. {
  533. b.HasOne("Diligent.WebAPI.Data.Entities.Insurer", "Insurer")
  534. .WithMany()
  535. .HasForeignKey("InsurerId")
  536. .OnDelete(DeleteBehavior.Cascade)
  537. .IsRequired();
  538. b.Navigation("Insurer");
  539. });
  540. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Insurer", b =>
  541. {
  542. b.HasOne("Diligent.WebAPI.Data.Entities.InsuranceCompany", "InsuranceCompany")
  543. .WithMany()
  544. .HasForeignKey("InsuranceCompanyId")
  545. .OnDelete(DeleteBehavior.Cascade)
  546. .IsRequired();
  547. b.Navigation("InsuranceCompany");
  548. });
  549. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.RefreshToken", b =>
  550. {
  551. b.HasOne("Diligent.WebAPI.Data.Entities.User", "User")
  552. .WithMany()
  553. .HasForeignKey("UserId")
  554. .OnDelete(DeleteBehavior.Cascade)
  555. .IsRequired();
  556. b.Navigation("User");
  557. });
  558. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.SelectionProcess", b =>
  559. {
  560. b.HasOne("Diligent.WebAPI.Data.Entities.User", "Scheduler")
  561. .WithMany()
  562. .HasForeignKey("SchedulerId");
  563. b.HasOne("Diligent.WebAPI.Data.Entities.SelectionLevel", "SelectionLevel")
  564. .WithMany()
  565. .HasForeignKey("SelectionLevelId")
  566. .OnDelete(DeleteBehavior.Cascade)
  567. .IsRequired();
  568. b.Navigation("Scheduler");
  569. b.Navigation("SelectionLevel");
  570. });
  571. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.WebhookSubscription", b =>
  572. {
  573. b.HasOne("Diligent.WebAPI.Data.Entities.WebhookDefinition", "WebhookDefinition")
  574. .WithMany()
  575. .HasForeignKey("WebhookDefinitionId")
  576. .OnDelete(DeleteBehavior.Cascade)
  577. .IsRequired();
  578. b.Navigation("WebhookDefinition");
  579. });
  580. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>
  581. {
  582. b.HasOne("Diligent.WebAPI.Data.Entities.AppRole", null)
  583. .WithMany()
  584. .HasForeignKey("RoleId")
  585. .OnDelete(DeleteBehavior.Cascade)
  586. .IsRequired();
  587. });
  588. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>
  589. {
  590. b.HasOne("Diligent.WebAPI.Data.Entities.User", null)
  591. .WithMany()
  592. .HasForeignKey("UserId")
  593. .OnDelete(DeleteBehavior.Cascade)
  594. .IsRequired();
  595. });
  596. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>
  597. {
  598. b.HasOne("Diligent.WebAPI.Data.Entities.User", null)
  599. .WithMany()
  600. .HasForeignKey("UserId")
  601. .OnDelete(DeleteBehavior.Cascade)
  602. .IsRequired();
  603. });
  604. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<int>", b =>
  605. {
  606. b.HasOne("Diligent.WebAPI.Data.Entities.AppRole", null)
  607. .WithMany()
  608. .HasForeignKey("RoleId")
  609. .OnDelete(DeleteBehavior.Cascade)
  610. .IsRequired();
  611. b.HasOne("Diligent.WebAPI.Data.Entities.User", null)
  612. .WithMany()
  613. .HasForeignKey("UserId")
  614. .OnDelete(DeleteBehavior.Cascade)
  615. .IsRequired();
  616. });
  617. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>
  618. {
  619. b.HasOne("Diligent.WebAPI.Data.Entities.User", null)
  620. .WithMany()
  621. .HasForeignKey("UserId")
  622. .OnDelete(DeleteBehavior.Cascade)
  623. .IsRequired();
  624. });
  625. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Applicant", b =>
  626. {
  627. b.Navigation("ApplicantTechnologies");
  628. });
  629. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Technology", b =>
  630. {
  631. b.Navigation("ApplicantTechnologies");
  632. });
  633. #pragma warning restore 612, 618
  634. }
  635. }
  636. }