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.

DatabaseContextModelSnapshot.cs 36KB

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