Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

20221228154125_CommentProcess.Designer.cs 38KB

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