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.

20221121092834_AddedEnumsForAdAndTechnologies.Designer.cs 36KB

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