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.

20221110114417_AddedManyToManyBetweenAdAndApplicant.Designer.cs 32KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885
  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("20221110114417_AddedManyToManyBetweenAdAndApplicant")]
  14. partial class AddedManyToManyBetweenAdAndApplicant
  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.Technology", b =>
  294. {
  295. b.Property<int>("TechnologyId")
  296. .ValueGeneratedOnAdd()
  297. .HasColumnType("int");
  298. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("TechnologyId"), 1L, 1);
  299. b.Property<string>("Name")
  300. .IsRequired()
  301. .HasMaxLength(128)
  302. .HasColumnType("nvarchar(128)");
  303. b.HasKey("TechnologyId");
  304. b.ToTable("Technologies");
  305. });
  306. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.TechnologyApplicant", b =>
  307. {
  308. b.Property<int>("Id")
  309. .ValueGeneratedOnAdd()
  310. .HasColumnType("int");
  311. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  312. b.Property<int>("ApplicantId")
  313. .HasColumnType("int");
  314. b.Property<int>("TechnologyId")
  315. .HasColumnType("int");
  316. b.HasKey("Id");
  317. b.HasIndex("ApplicantId");
  318. b.HasIndex("TechnologyId");
  319. b.ToTable("ApplicantTechnologies");
  320. });
  321. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.User", b =>
  322. {
  323. b.Property<int>("Id")
  324. .ValueGeneratedOnAdd()
  325. .HasColumnType("int");
  326. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  327. b.Property<int>("AccessFailedCount")
  328. .HasColumnType("int");
  329. b.Property<string>("ConcurrencyStamp")
  330. .IsConcurrencyToken()
  331. .HasColumnType("nvarchar(max)");
  332. b.Property<string>("Email")
  333. .HasMaxLength(256)
  334. .HasColumnType("nvarchar(256)");
  335. b.Property<bool>("EmailConfirmed")
  336. .HasColumnType("bit");
  337. b.Property<string>("FirstName")
  338. .IsRequired()
  339. .HasColumnType("nvarchar(max)");
  340. b.Property<string>("LastName")
  341. .IsRequired()
  342. .HasColumnType("nvarchar(max)");
  343. b.Property<bool>("LockoutEnabled")
  344. .HasColumnType("bit");
  345. b.Property<DateTimeOffset?>("LockoutEnd")
  346. .HasColumnType("datetimeoffset");
  347. b.Property<string>("NormalizedEmail")
  348. .HasMaxLength(256)
  349. .HasColumnType("nvarchar(256)");
  350. b.Property<string>("NormalizedUserName")
  351. .HasMaxLength(256)
  352. .HasColumnType("nvarchar(256)");
  353. b.Property<string>("PasswordHash")
  354. .HasColumnType("nvarchar(max)");
  355. b.Property<string>("PasswordResetToken")
  356. .HasColumnType("nvarchar(max)");
  357. b.Property<string>("PhoneNumber")
  358. .HasColumnType("nvarchar(max)");
  359. b.Property<bool>("PhoneNumberConfirmed")
  360. .HasColumnType("bit");
  361. b.Property<string>("SecurityStamp")
  362. .HasColumnType("nvarchar(max)");
  363. b.Property<bool>("TwoFactorEnabled")
  364. .HasColumnType("bit");
  365. b.Property<string>("UserName")
  366. .HasMaxLength(256)
  367. .HasColumnType("nvarchar(256)");
  368. b.HasKey("Id");
  369. b.HasIndex("NormalizedEmail")
  370. .HasDatabaseName("EmailIndex");
  371. b.HasIndex("NormalizedUserName")
  372. .IsUnique()
  373. .HasDatabaseName("UserNameIndex")
  374. .HasFilter("[NormalizedUserName] IS NOT NULL");
  375. b.ToTable("AspNetUsers", (string)null);
  376. });
  377. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.WebhookDefinition", b =>
  378. {
  379. b.Property<long>("Id")
  380. .ValueGeneratedOnAdd()
  381. .HasColumnType("bigint");
  382. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  383. b.Property<DateTime>("CreatedAtUtc")
  384. .HasColumnType("datetime2");
  385. b.Property<DateTime?>("DeletedAtUtc")
  386. .HasColumnType("datetime2");
  387. b.Property<string>("Description")
  388. .IsRequired()
  389. .HasColumnType("nvarchar(max)");
  390. b.Property<string>("DisplayName")
  391. .IsRequired()
  392. .HasMaxLength(100)
  393. .HasColumnType("nvarchar(100)");
  394. b.Property<string>("Name")
  395. .IsRequired()
  396. .HasMaxLength(100)
  397. .HasColumnType("nvarchar(100)");
  398. b.Property<DateTime?>("UpdatedAtUtc")
  399. .HasColumnType("datetime2");
  400. b.HasKey("Id");
  401. b.ToTable("WebhookDefinitions");
  402. });
  403. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.WebhookSubscription", b =>
  404. {
  405. b.Property<long>("Id")
  406. .ValueGeneratedOnAdd()
  407. .HasColumnType("bigint");
  408. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"), 1L, 1);
  409. b.Property<DateTime>("CreatedAtUtc")
  410. .HasColumnType("datetime2");
  411. b.Property<DateTime?>("DeletedAtUtc")
  412. .HasColumnType("datetime2");
  413. b.Property<bool>("IsActive")
  414. .HasColumnType("bit");
  415. b.Property<DateTime?>("UpdatedAtUtc")
  416. .HasColumnType("datetime2");
  417. b.Property<long>("WebhookDefinitionId")
  418. .HasColumnType("bigint");
  419. b.Property<string>("WebhookURL")
  420. .IsRequired()
  421. .HasColumnType("nvarchar(max)");
  422. b.HasKey("Id");
  423. b.HasIndex("WebhookDefinitionId");
  424. b.ToTable("WebhookSubscriptions");
  425. });
  426. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>
  427. {
  428. b.Property<int>("Id")
  429. .ValueGeneratedOnAdd()
  430. .HasColumnType("int");
  431. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  432. b.Property<string>("ClaimType")
  433. .HasColumnType("nvarchar(max)");
  434. b.Property<string>("ClaimValue")
  435. .HasColumnType("nvarchar(max)");
  436. b.Property<int>("RoleId")
  437. .HasColumnType("int");
  438. b.HasKey("Id");
  439. b.HasIndex("RoleId");
  440. b.ToTable("AspNetRoleClaims", (string)null);
  441. });
  442. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>
  443. {
  444. b.Property<int>("Id")
  445. .ValueGeneratedOnAdd()
  446. .HasColumnType("int");
  447. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
  448. b.Property<string>("ClaimType")
  449. .HasColumnType("nvarchar(max)");
  450. b.Property<string>("ClaimValue")
  451. .HasColumnType("nvarchar(max)");
  452. b.Property<int>("UserId")
  453. .HasColumnType("int");
  454. b.HasKey("Id");
  455. b.HasIndex("UserId");
  456. b.ToTable("AspNetUserClaims", (string)null);
  457. });
  458. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>
  459. {
  460. b.Property<string>("LoginProvider")
  461. .HasColumnType("nvarchar(450)");
  462. b.Property<string>("ProviderKey")
  463. .HasColumnType("nvarchar(450)");
  464. b.Property<string>("ProviderDisplayName")
  465. .HasColumnType("nvarchar(max)");
  466. b.Property<int>("UserId")
  467. .HasColumnType("int");
  468. b.HasKey("LoginProvider", "ProviderKey");
  469. b.HasIndex("UserId");
  470. b.ToTable("AspNetUserLogins", (string)null);
  471. });
  472. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<int>", b =>
  473. {
  474. b.Property<int>("UserId")
  475. .HasColumnType("int");
  476. b.Property<int>("RoleId")
  477. .HasColumnType("int");
  478. b.HasKey("UserId", "RoleId");
  479. b.HasIndex("RoleId");
  480. b.ToTable("AspNetUserRoles", (string)null);
  481. });
  482. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>
  483. {
  484. b.Property<int>("UserId")
  485. .HasColumnType("int");
  486. b.Property<string>("LoginProvider")
  487. .HasColumnType("nvarchar(450)");
  488. b.Property<string>("Name")
  489. .HasColumnType("nvarchar(450)");
  490. b.Property<string>("Value")
  491. .HasColumnType("nvarchar(max)");
  492. b.HasKey("UserId", "LoginProvider", "Name");
  493. b.ToTable("AspNetUserTokens", (string)null);
  494. });
  495. modelBuilder.Entity("AdApplicant", b =>
  496. {
  497. b.HasOne("Diligent.WebAPI.Data.Entities.Ad", null)
  498. .WithMany()
  499. .HasForeignKey("AdsId")
  500. .OnDelete(DeleteBehavior.Cascade)
  501. .IsRequired();
  502. b.HasOne("Diligent.WebAPI.Data.Entities.Applicant", null)
  503. .WithMany()
  504. .HasForeignKey("ApplicantsApplicantId")
  505. .OnDelete(DeleteBehavior.Cascade)
  506. .IsRequired();
  507. });
  508. modelBuilder.Entity("AdTechnology", b =>
  509. {
  510. b.HasOne("Diligent.WebAPI.Data.Entities.Ad", null)
  511. .WithMany()
  512. .HasForeignKey("AdsId")
  513. .OnDelete(DeleteBehavior.Cascade)
  514. .IsRequired();
  515. b.HasOne("Diligent.WebAPI.Data.Entities.Technology", null)
  516. .WithMany()
  517. .HasForeignKey("TechnologiesTechnologyId")
  518. .OnDelete(DeleteBehavior.Cascade)
  519. .IsRequired();
  520. });
  521. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Comment", b =>
  522. {
  523. b.HasOne("Diligent.WebAPI.Data.Entities.Applicant", "Applicant")
  524. .WithMany("Comments")
  525. .HasForeignKey("ApplicantId")
  526. .OnDelete(DeleteBehavior.Cascade)
  527. .IsRequired();
  528. b.HasOne("Diligent.WebAPI.Data.Entities.User", "User")
  529. .WithMany("Comments")
  530. .HasForeignKey("UserId")
  531. .OnDelete(DeleteBehavior.Cascade)
  532. .IsRequired();
  533. b.Navigation("Applicant");
  534. b.Navigation("User");
  535. });
  536. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.InsurancePolicy", b =>
  537. {
  538. b.HasOne("Diligent.WebAPI.Data.Entities.Insurer", "Insurer")
  539. .WithMany()
  540. .HasForeignKey("InsurerId")
  541. .OnDelete(DeleteBehavior.Cascade)
  542. .IsRequired();
  543. b.Navigation("Insurer");
  544. });
  545. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Insurer", b =>
  546. {
  547. b.HasOne("Diligent.WebAPI.Data.Entities.InsuranceCompany", "InsuranceCompany")
  548. .WithMany()
  549. .HasForeignKey("InsuranceCompanyId")
  550. .OnDelete(DeleteBehavior.Cascade)
  551. .IsRequired();
  552. b.Navigation("InsuranceCompany");
  553. });
  554. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.RefreshToken", b =>
  555. {
  556. b.HasOne("Diligent.WebAPI.Data.Entities.User", "User")
  557. .WithMany()
  558. .HasForeignKey("UserId")
  559. .OnDelete(DeleteBehavior.Cascade)
  560. .IsRequired();
  561. b.Navigation("User");
  562. });
  563. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.TechnologyApplicant", b =>
  564. {
  565. b.HasOne("Diligent.WebAPI.Data.Entities.Applicant", "Applicant")
  566. .WithMany("TechnologyApplicants")
  567. .HasForeignKey("ApplicantId")
  568. .OnDelete(DeleteBehavior.Cascade)
  569. .IsRequired();
  570. b.HasOne("Diligent.WebAPI.Data.Entities.Technology", "Technology")
  571. .WithMany("TechnologyApplicants")
  572. .HasForeignKey("TechnologyId")
  573. .OnDelete(DeleteBehavior.Cascade)
  574. .IsRequired();
  575. b.Navigation("Applicant");
  576. b.Navigation("Technology");
  577. });
  578. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.WebhookSubscription", b =>
  579. {
  580. b.HasOne("Diligent.WebAPI.Data.Entities.WebhookDefinition", "WebhookDefinition")
  581. .WithMany()
  582. .HasForeignKey("WebhookDefinitionId")
  583. .OnDelete(DeleteBehavior.Cascade)
  584. .IsRequired();
  585. b.Navigation("WebhookDefinition");
  586. });
  587. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>
  588. {
  589. b.HasOne("Diligent.WebAPI.Data.Entities.AppRole", null)
  590. .WithMany()
  591. .HasForeignKey("RoleId")
  592. .OnDelete(DeleteBehavior.Cascade)
  593. .IsRequired();
  594. });
  595. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>
  596. {
  597. b.HasOne("Diligent.WebAPI.Data.Entities.User", null)
  598. .WithMany()
  599. .HasForeignKey("UserId")
  600. .OnDelete(DeleteBehavior.Cascade)
  601. .IsRequired();
  602. });
  603. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>
  604. {
  605. b.HasOne("Diligent.WebAPI.Data.Entities.User", null)
  606. .WithMany()
  607. .HasForeignKey("UserId")
  608. .OnDelete(DeleteBehavior.Cascade)
  609. .IsRequired();
  610. });
  611. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<int>", b =>
  612. {
  613. b.HasOne("Diligent.WebAPI.Data.Entities.AppRole", null)
  614. .WithMany()
  615. .HasForeignKey("RoleId")
  616. .OnDelete(DeleteBehavior.Cascade)
  617. .IsRequired();
  618. b.HasOne("Diligent.WebAPI.Data.Entities.User", null)
  619. .WithMany()
  620. .HasForeignKey("UserId")
  621. .OnDelete(DeleteBehavior.Cascade)
  622. .IsRequired();
  623. });
  624. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>
  625. {
  626. b.HasOne("Diligent.WebAPI.Data.Entities.User", null)
  627. .WithMany()
  628. .HasForeignKey("UserId")
  629. .OnDelete(DeleteBehavior.Cascade)
  630. .IsRequired();
  631. });
  632. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Applicant", b =>
  633. {
  634. b.Navigation("Comments");
  635. b.Navigation("TechnologyApplicants");
  636. });
  637. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.Technology", b =>
  638. {
  639. b.Navigation("TechnologyApplicants");
  640. });
  641. modelBuilder.Entity("Diligent.WebAPI.Data.Entities.User", b =>
  642. {
  643. b.Navigation("Comments");
  644. });
  645. #pragma warning restore 612, 618
  646. }
  647. }
  648. }