Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

20221107214939_SeedDataForSelectionLevel.Designer.cs 32KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894
  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("20221107214939_SeedDataForSelectionLevel")]
  14. partial class SeedDataForSelectionLevel
  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. b.HasData(
  289. new
  290. {
  291. Id = 1,
  292. Name = "HR intervju"
  293. },
  294. new
  295. {
  296. Id = 2,
  297. Name = "Screening test"
  298. },
  299. new
  300. {
  301. Id = 3,
  302. Name = "Tehnicki intervju"
  303. },
  304. new
  305. {
  306. Id = 4,
  307. Name = "Konacna odluka"
  308. });
  309. });
  310. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.SelectionProcess", b =>
  311. {
  312. b.Property<int>("Id")
  313. .ValueGeneratedOnAdd()
  314. .HasColumnType("int");
  315. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  316. b.Property<int>("ApplicantId")
  317. .HasColumnType("int");
  318. b.Property<DateTime?>("Date")
  319. .HasColumnType("datetime2");
  320. b.Property<string>("Link")
  321. .HasColumnType("nvarchar(max)");
  322. b.Property<string>("Name")
  323. .IsRequired()
  324. .HasColumnType("nvarchar(max)");
  325. b.Property<int?>("SchedulerId")
  326. .HasColumnType("int");
  327. b.Property<int>("SelectionLevelId")
  328. .HasColumnType("int");
  329. b.Property<string>("Status")
  330. .IsRequired()
  331. .HasColumnType("nvarchar(max)");
  332. b.HasKey("Id");
  333. b.HasIndex("SchedulerId");
  334. b.HasIndex("SelectionLevelId");
  335. b.ToTable("SelectionProcesses");
  336. });
  337. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Technology", b =>
  338. {
  339. b.Property<int>("TechnologyId")
  340. .ValueGeneratedOnAdd()
  341. .HasColumnType("int");
  342. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("TechnologyId"), 1L, 1);
  343. b.Property<string>("Name")
  344. .IsRequired()
  345. .HasMaxLength(128)
  346. .HasColumnType("nvarchar(128)");
  347. b.HasKey("TechnologyId");
  348. b.ToTable("Technologies");
  349. });
  350. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.User", b =>
  351. {
  352. b.Property<int>("Id")
  353. .ValueGeneratedOnAdd()
  354. .HasColumnType("int");
  355. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  356. b.Property<int>("AccessFailedCount")
  357. .HasColumnType("int");
  358. b.Property<string>("ConcurrencyStamp")
  359. .IsConcurrencyToken()
  360. .HasColumnType("nvarchar(max)");
  361. b.Property<string>("Email")
  362. .HasMaxLength(256)
  363. .HasColumnType("nvarchar(256)");
  364. b.Property<bool>("EmailConfirmed")
  365. .HasColumnType("bit");
  366. b.Property<string>("FirstName")
  367. .IsRequired()
  368. .HasColumnType("nvarchar(max)");
  369. b.Property<string>("LastName")
  370. .IsRequired()
  371. .HasColumnType("nvarchar(max)");
  372. b.Property<bool>("LockoutEnabled")
  373. .HasColumnType("bit");
  374. b.Property<DateTimeOffset?>("LockoutEnd")
  375. .HasColumnType("datetimeoffset");
  376. b.Property<string>("NormalizedEmail")
  377. .HasMaxLength(256)
  378. .HasColumnType("nvarchar(256)");
  379. b.Property<string>("NormalizedUserName")
  380. .HasMaxLength(256)
  381. .HasColumnType("nvarchar(256)");
  382. b.Property<string>("PasswordHash")
  383. .HasColumnType("nvarchar(max)");
  384. b.Property<string>("PasswordResetToken")
  385. .HasColumnType("nvarchar(max)");
  386. b.Property<string>("PhoneNumber")
  387. .HasColumnType("nvarchar(max)");
  388. b.Property<bool>("PhoneNumberConfirmed")
  389. .HasColumnType("bit");
  390. b.Property<string>("SecurityStamp")
  391. .HasColumnType("nvarchar(max)");
  392. b.Property<bool>("TwoFactorEnabled")
  393. .HasColumnType("bit");
  394. b.Property<string>("UserName")
  395. .HasMaxLength(256)
  396. .HasColumnType("nvarchar(256)");
  397. b.HasKey("Id");
  398. b.HasIndex("NormalizedEmail")
  399. .HasDatabaseName("EmailIndex");
  400. b.HasIndex("NormalizedUserName")
  401. .IsUnique()
  402. .HasDatabaseName("UserNameIndex")
  403. .HasFilter("[NormalizedUserName] IS NOT NULL");
  404. b.ToTable("AspNetUsers", (string)null);
  405. });
  406. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.WebhookDefinition", b =>
  407. {
  408. b.Property<long>("Id")
  409. .ValueGeneratedOnAdd()
  410. .HasColumnType("bigint");
  411. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  412. b.Property<DateTime>("CreatedAtUtc")
  413. .HasColumnType("datetime2");
  414. b.Property<DateTime?>("DeletedAtUtc")
  415. .HasColumnType("datetime2");
  416. b.Property<string>("Description")
  417. .IsRequired()
  418. .HasColumnType("nvarchar(max)");
  419. b.Property<string>("DisplayName")
  420. .IsRequired()
  421. .HasMaxLength(100)
  422. .HasColumnType("nvarchar(100)");
  423. b.Property<string>("Name")
  424. .IsRequired()
  425. .HasMaxLength(100)
  426. .HasColumnType("nvarchar(100)");
  427. b.Property<DateTime?>("UpdatedAtUtc")
  428. .HasColumnType("datetime2");
  429. b.HasKey("Id");
  430. b.ToTable("WebhookDefinitions");
  431. });
  432. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.WebhookSubscription", b =>
  433. {
  434. b.Property<long>("Id")
  435. .ValueGeneratedOnAdd()
  436. .HasColumnType("bigint");
  437. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  438. b.Property<DateTime>("CreatedAtUtc")
  439. .HasColumnType("datetime2");
  440. b.Property<DateTime?>("DeletedAtUtc")
  441. .HasColumnType("datetime2");
  442. b.Property<bool>("IsActive")
  443. .HasColumnType("bit");
  444. b.Property<DateTime?>("UpdatedAtUtc")
  445. .HasColumnType("datetime2");
  446. b.Property<long>("WebhookDefinitionId")
  447. .HasColumnType("bigint");
  448. b.Property<string>("WebhookURL")
  449. .IsRequired()
  450. .HasColumnType("nvarchar(max)");
  451. b.HasKey("Id");
  452. b.HasIndex("WebhookDefinitionId");
  453. b.ToTable("WebhookSubscriptions");
  454. });
  455. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>
  456. {
  457. b.Property<int>("Id")
  458. .ValueGeneratedOnAdd()
  459. .HasColumnType("int");
  460. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  461. b.Property<string>("ClaimType")
  462. .HasColumnType("nvarchar(max)");
  463. b.Property<string>("ClaimValue")
  464. .HasColumnType("nvarchar(max)");
  465. b.Property<int>("RoleId")
  466. .HasColumnType("int");
  467. b.HasKey("Id");
  468. b.HasIndex("RoleId");
  469. b.ToTable("AspNetRoleClaims", (string)null);
  470. });
  471. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>
  472. {
  473. b.Property<int>("Id")
  474. .ValueGeneratedOnAdd()
  475. .HasColumnType("int");
  476. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  477. b.Property<string>("ClaimType")
  478. .HasColumnType("nvarchar(max)");
  479. b.Property<string>("ClaimValue")
  480. .HasColumnType("nvarchar(max)");
  481. b.Property<int>("UserId")
  482. .HasColumnType("int");
  483. b.HasKey("Id");
  484. b.HasIndex("UserId");
  485. b.ToTable("AspNetUserClaims", (string)null);
  486. });
  487. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>
  488. {
  489. b.Property<string>("LoginProvider")
  490. .HasColumnType("nvarchar(450)");
  491. b.Property<string>("ProviderKey")
  492. .HasColumnType("nvarchar(450)");
  493. b.Property<string>("ProviderDisplayName")
  494. .HasColumnType("nvarchar(max)");
  495. b.Property<int>("UserId")
  496. .HasColumnType("int");
  497. b.HasKey("LoginProvider", "ProviderKey");
  498. b.HasIndex("UserId");
  499. b.ToTable("AspNetUserLogins", (string)null);
  500. });
  501. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<int>", b =>
  502. {
  503. b.Property<int>("UserId")
  504. .HasColumnType("int");
  505. b.Property<int>("RoleId")
  506. .HasColumnType("int");
  507. b.HasKey("UserId", "RoleId");
  508. b.HasIndex("RoleId");
  509. b.ToTable("AspNetUserRoles", (string)null);
  510. });
  511. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>
  512. {
  513. b.Property<int>("UserId")
  514. .HasColumnType("int");
  515. b.Property<string>("LoginProvider")
  516. .HasColumnType("nvarchar(450)");
  517. b.Property<string>("Name")
  518. .HasColumnType("nvarchar(450)");
  519. b.Property<string>("Value")
  520. .HasColumnType("nvarchar(max)");
  521. b.HasKey("UserId", "LoginProvider", "Name");
  522. b.ToTable("AspNetUserTokens", (string)null);
  523. });
  524. modelBuilder.Entity("AdTechnology", b =>
  525. {
  526. b.HasOne("Diligent.WebAPI.Data.Entities.Ad", null)
  527. .WithMany()
  528. .HasForeignKey("AdsId")
  529. .OnDelete(DeleteBehavior.Cascade)
  530. .IsRequired();
  531. b.HasOne("Diligent.WebAPI.Data.Entities.Technology", null)
  532. .WithMany()
  533. .HasForeignKey("TechnologiesTechnologyId")
  534. .OnDelete(DeleteBehavior.Cascade)
  535. .IsRequired();
  536. });
  537. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.ApplicantTechnology", b =>
  538. {
  539. b.HasOne("Diligent.WebAPI.Data.Entities.Applicant", "Applicant")
  540. .WithMany("ApplicantTechnologies")
  541. .HasForeignKey("ApplicantId")
  542. .OnDelete(DeleteBehavior.Cascade)
  543. .IsRequired();
  544. b.HasOne("Diligent.WebAPI.Data.Entities.Technology", "Tecnology")
  545. .WithMany("ApplicantTechnologies")
  546. .HasForeignKey("TechnologyId")
  547. .OnDelete(DeleteBehavior.Cascade)
  548. .IsRequired();
  549. b.Navigation("Applicant");
  550. b.Navigation("Tecnology");
  551. });
  552. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.InsurancePolicy", b =>
  553. {
  554. b.HasOne("Diligent.WebAPI.Data.Entities.Insurer", "Insurer")
  555. .WithMany()
  556. .HasForeignKey("InsurerId")
  557. .OnDelete(DeleteBehavior.Cascade)
  558. .IsRequired();
  559. b.Navigation("Insurer");
  560. });
  561. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Insurer", b =>
  562. {
  563. b.HasOne("Diligent.WebAPI.Data.Entities.InsuranceCompany", "InsuranceCompany")
  564. .WithMany()
  565. .HasForeignKey("InsuranceCompanyId")
  566. .OnDelete(DeleteBehavior.Cascade)
  567. .IsRequired();
  568. b.Navigation("InsuranceCompany");
  569. });
  570. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.RefreshToken", b =>
  571. {
  572. b.HasOne("Diligent.WebAPI.Data.Entities.User", "User")
  573. .WithMany()
  574. .HasForeignKey("UserId")
  575. .OnDelete(DeleteBehavior.Cascade)
  576. .IsRequired();
  577. b.Navigation("User");
  578. });
  579. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.SelectionProcess", b =>
  580. {
  581. b.HasOne("Diligent.WebAPI.Data.Entities.User", "Scheduler")
  582. .WithMany()
  583. .HasForeignKey("SchedulerId");
  584. b.HasOne("Diligent.WebAPI.Data.Entities.SelectionLevel", "SelectionLevel")
  585. .WithMany()
  586. .HasForeignKey("SelectionLevelId")
  587. .OnDelete(DeleteBehavior.Cascade)
  588. .IsRequired();
  589. b.Navigation("Scheduler");
  590. b.Navigation("SelectionLevel");
  591. });
  592. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.WebhookSubscription", b =>
  593. {
  594. b.HasOne("Diligent.WebAPI.Data.Entities.WebhookDefinition", "WebhookDefinition")
  595. .WithMany()
  596. .HasForeignKey("WebhookDefinitionId")
  597. .OnDelete(DeleteBehavior.Cascade)
  598. .IsRequired();
  599. b.Navigation("WebhookDefinition");
  600. });
  601. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>
  602. {
  603. b.HasOne("Diligent.WebAPI.Data.Entities.AppRole", null)
  604. .WithMany()
  605. .HasForeignKey("RoleId")
  606. .OnDelete(DeleteBehavior.Cascade)
  607. .IsRequired();
  608. });
  609. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>
  610. {
  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.IdentityUserLogin<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("Microsoft.AspNetCore.Identity.IdentityUserRole<int>", b =>
  626. {
  627. b.HasOne("Diligent.WebAPI.Data.Entities.AppRole", null)
  628. .WithMany()
  629. .HasForeignKey("RoleId")
  630. .OnDelete(DeleteBehavior.Cascade)
  631. .IsRequired();
  632. b.HasOne("Diligent.WebAPI.Data.Entities.User", null)
  633. .WithMany()
  634. .HasForeignKey("UserId")
  635. .OnDelete(DeleteBehavior.Cascade)
  636. .IsRequired();
  637. });
  638. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>
  639. {
  640. b.HasOne("Diligent.WebAPI.Data.Entities.User", null)
  641. .WithMany()
  642. .HasForeignKey("UserId")
  643. .OnDelete(DeleteBehavior.Cascade)
  644. .IsRequired();
  645. });
  646. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Applicant", b =>
  647. {
  648. b.Navigation("ApplicantTechnologies");
  649. });
  650. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Technology", b =>
  651. {
  652. b.Navigation("ApplicantTechnologies");
  653. });
  654. #pragma warning restore 612, 618
  655. }
  656. }
  657. }