Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

20221116181306_DefaultDisabledUser.Designer.cs 36KB

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