Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

20230223124442_ChangedNoteInitialValueToEmptyString.Designer.cs 44KB

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