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ů.

DatabaseContextModelSnapshot.cs 38KB

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