Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

DatabaseContextModelSnapshot.cs 32KB

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