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

20230112133613_ApplicantUpdate.Designer.cs 38KB

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