20240228105352_initial.Designer.cs 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372
  1. // <auto-generated />
  2. using System;
  3. using MTWorkHR.Infrastructure.DBContext;
  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 MTWorkHR.Infrastructure.Migrations
  11. {
  12. [DbContext(typeof(HRDataContext))]
  13. [Migration("20240228105352_initial")]
  14. partial class initial
  15. {
  16. /// <inheritdoc />
  17. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  18. {
  19. #pragma warning disable 612, 618
  20. modelBuilder
  21. .HasAnnotation("ProductVersion", "8.0.1")
  22. .HasAnnotation("Relational:MaxIdentifierLength", 128);
  23. SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
  24. modelBuilder.Entity("ApplicationRoleApplicationUser", b =>
  25. {
  26. b.Property<string>("UserRolesId")
  27. .HasColumnType("nvarchar(450)");
  28. b.Property<string>("UsersId")
  29. .HasColumnType("nvarchar(450)");
  30. b.HasKey("UserRolesId", "UsersId");
  31. b.HasIndex("UsersId");
  32. b.ToTable("ApplicationRoleApplicationUser");
  33. });
  34. modelBuilder.Entity("MTWorkHR.Core.Entities.AuthLog", b =>
  35. {
  36. b.Property<long>("Id")
  37. .ValueGeneratedOnAdd()
  38. .HasColumnType("bigint")
  39. .HasColumnOrder(0);
  40. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  41. b.Property<string>("Channel")
  42. .HasColumnType("nvarchar(max)");
  43. b.Property<DateTime>("CreateDate")
  44. .HasColumnType("datetime2");
  45. b.Property<string>("CreateUser")
  46. .IsRequired()
  47. .HasColumnType("nvarchar(max)");
  48. b.Property<string>("ErrorCode")
  49. .IsRequired()
  50. .HasColumnType("nvarchar(max)");
  51. b.Property<string>("ErrorDescription")
  52. .IsRequired()
  53. .HasColumnType("nvarchar(max)");
  54. b.Property<string>("InnerException")
  55. .HasColumnType("nvarchar(max)");
  56. b.Property<string>("Input")
  57. .HasColumnType("nvarchar(max)");
  58. b.Property<string>("Method")
  59. .IsRequired()
  60. .HasColumnType("nvarchar(max)");
  61. b.Property<string>("QueryString")
  62. .HasColumnType("nvarchar(max)");
  63. b.Property<string>("ServerIP")
  64. .HasColumnType("nvarchar(max)");
  65. b.Property<string>("ServiceResponseTimeInSeconds")
  66. .IsRequired()
  67. .HasColumnType("nvarchar(max)");
  68. b.Property<string>("UserIP")
  69. .HasColumnType("nvarchar(max)");
  70. b.Property<string>("userAgent")
  71. .HasColumnType("nvarchar(max)");
  72. b.HasKey("Id");
  73. b.ToTable("AuthLogs");
  74. });
  75. modelBuilder.Entity("MTWorkHR.Core.Entities.Base.AttachmentType", b =>
  76. {
  77. b.Property<long>("Id")
  78. .ValueGeneratedOnAdd()
  79. .HasColumnType("bigint")
  80. .HasColumnOrder(0);
  81. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  82. b.Property<bool>("IsRequired")
  83. .HasColumnType("bit");
  84. b.Property<string>("NameAr")
  85. .IsRequired()
  86. .HasMaxLength(250)
  87. .HasColumnType("nvarchar(250)");
  88. b.Property<string>("NameEn")
  89. .IsRequired()
  90. .HasMaxLength(250)
  91. .HasColumnType("nvarchar(250)");
  92. b.HasKey("Id");
  93. b.ToTable("AttachmentTypes");
  94. b.HasData(
  95. new
  96. {
  97. Id = 1L,
  98. IsRequired = false,
  99. NameAr = "السيرة الذاتية",
  100. NameEn = "CV"
  101. },
  102. new
  103. {
  104. Id = 2L,
  105. IsRequired = false,
  106. NameAr = "الهوية",
  107. NameEn = "Identification"
  108. });
  109. });
  110. modelBuilder.Entity("MTWorkHR.Core.Entities.Company", b =>
  111. {
  112. b.Property<long>("Id")
  113. .ValueGeneratedOnAdd()
  114. .HasColumnType("bigint")
  115. .HasColumnOrder(0);
  116. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  117. b.Property<string>("CRNumber")
  118. .IsRequired()
  119. .HasColumnType("nvarchar(max)");
  120. b.Property<string>("CompanyName")
  121. .IsRequired()
  122. .HasColumnType("nvarchar(max)");
  123. b.Property<DateTime>("CreateDate")
  124. .HasColumnType("datetime2")
  125. .HasColumnOrder(3);
  126. b.Property<string>("CreateUser")
  127. .HasMaxLength(450)
  128. .HasColumnType("nvarchar(450)")
  129. .HasColumnOrder(1);
  130. b.Property<bool>("IsDeleted")
  131. .HasColumnType("bit");
  132. b.Property<int>("TaxNumber")
  133. .HasColumnType("int");
  134. b.Property<DateTime?>("UpdateDate")
  135. .HasColumnType("datetime2")
  136. .HasColumnOrder(4);
  137. b.Property<string>("UpdateUser")
  138. .HasMaxLength(450)
  139. .HasColumnType("nvarchar(450)")
  140. .HasColumnOrder(2);
  141. b.Property<long>("UserId")
  142. .HasColumnType("bigint");
  143. b.HasKey("Id");
  144. b.ToTable("Companies");
  145. });
  146. modelBuilder.Entity("MTWorkHR.Core.Entities.FileLog", b =>
  147. {
  148. b.Property<long>("Id")
  149. .ValueGeneratedOnAdd()
  150. .HasColumnType("bigint")
  151. .HasColumnOrder(0);
  152. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  153. b.Property<string>("Channel")
  154. .HasColumnType("nvarchar(max)");
  155. b.Property<DateTime>("CreateDate")
  156. .HasColumnType("datetime2");
  157. b.Property<string>("CreateUser")
  158. .IsRequired()
  159. .HasColumnType("nvarchar(max)");
  160. b.Property<string>("ErrorCode")
  161. .IsRequired()
  162. .HasColumnType("nvarchar(max)");
  163. b.Property<string>("ErrorDescription")
  164. .IsRequired()
  165. .HasColumnType("nvarchar(max)");
  166. b.Property<string>("InnerException")
  167. .HasColumnType("nvarchar(max)");
  168. b.Property<string>("Input")
  169. .HasColumnType("nvarchar(max)");
  170. b.Property<string>("Method")
  171. .IsRequired()
  172. .HasColumnType("nvarchar(max)");
  173. b.Property<string>("QueryString")
  174. .HasColumnType("nvarchar(max)");
  175. b.Property<string>("ServerIP")
  176. .HasColumnType("nvarchar(max)");
  177. b.Property<string>("ServiceResponseTimeInSeconds")
  178. .IsRequired()
  179. .HasColumnType("nvarchar(max)");
  180. b.Property<string>("UserIP")
  181. .HasColumnType("nvarchar(max)");
  182. b.Property<string>("userAgent")
  183. .HasColumnType("nvarchar(max)");
  184. b.HasKey("Id");
  185. b.ToTable("FileLogs");
  186. });
  187. modelBuilder.Entity("MTWorkHR.Core.Entities.Permission", b =>
  188. {
  189. b.Property<long>("Id")
  190. .ValueGeneratedOnAdd()
  191. .HasColumnType("bigint")
  192. .HasColumnOrder(0);
  193. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  194. b.Property<string>("CategoryName")
  195. .IsRequired()
  196. .HasMaxLength(150)
  197. .HasColumnType("nvarchar(150)");
  198. b.Property<string>("Desc")
  199. .IsRequired()
  200. .HasMaxLength(250)
  201. .HasColumnType("nvarchar(250)");
  202. b.Property<string>("Name")
  203. .IsRequired()
  204. .HasMaxLength(250)
  205. .HasColumnType("nvarchar(250)");
  206. b.Property<bool>("Show")
  207. .HasColumnType("bit");
  208. b.HasKey("Id");
  209. b.ToTable("Permissions");
  210. });
  211. modelBuilder.Entity("MTWorkHR.Core.Entities.Project", b =>
  212. {
  213. b.Property<long>("Id")
  214. .ValueGeneratedOnAdd()
  215. .HasColumnType("bigint")
  216. .HasColumnOrder(0);
  217. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  218. b.Property<string>("NameAr")
  219. .IsRequired()
  220. .HasMaxLength(250)
  221. .HasColumnType("nvarchar(250)");
  222. b.Property<string>("NameEn")
  223. .IsRequired()
  224. .HasMaxLength(250)
  225. .HasColumnType("nvarchar(250)");
  226. b.HasKey("Id");
  227. b.ToTable("Projects");
  228. });
  229. modelBuilder.Entity("MTWorkHR.Core.Entities.RoleLog", b =>
  230. {
  231. b.Property<long>("Id")
  232. .ValueGeneratedOnAdd()
  233. .HasColumnType("bigint")
  234. .HasColumnOrder(0);
  235. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  236. b.Property<string>("Channel")
  237. .HasColumnType("nvarchar(max)");
  238. b.Property<DateTime>("CreateDate")
  239. .HasColumnType("datetime2");
  240. b.Property<string>("CreateUser")
  241. .IsRequired()
  242. .HasColumnType("nvarchar(max)");
  243. b.Property<string>("ErrorCode")
  244. .IsRequired()
  245. .HasColumnType("nvarchar(max)");
  246. b.Property<string>("ErrorDescription")
  247. .IsRequired()
  248. .HasColumnType("nvarchar(max)");
  249. b.Property<string>("InnerException")
  250. .HasColumnType("nvarchar(max)");
  251. b.Property<string>("Input")
  252. .HasColumnType("nvarchar(max)");
  253. b.Property<string>("Method")
  254. .IsRequired()
  255. .HasColumnType("nvarchar(max)");
  256. b.Property<string>("QueryString")
  257. .HasColumnType("nvarchar(max)");
  258. b.Property<string>("ServerIP")
  259. .HasColumnType("nvarchar(max)");
  260. b.Property<string>("ServiceResponseTimeInSeconds")
  261. .IsRequired()
  262. .HasColumnType("nvarchar(max)");
  263. b.Property<string>("UserIP")
  264. .HasColumnType("nvarchar(max)");
  265. b.Property<string>("userAgent")
  266. .HasColumnType("nvarchar(max)");
  267. b.HasKey("Id");
  268. b.ToTable("RoleLogs");
  269. });
  270. modelBuilder.Entity("MTWorkHR.Core.Entities.SettingLog", b =>
  271. {
  272. b.Property<long>("Id")
  273. .ValueGeneratedOnAdd()
  274. .HasColumnType("bigint")
  275. .HasColumnOrder(0);
  276. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  277. b.Property<string>("Channel")
  278. .HasColumnType("nvarchar(max)");
  279. b.Property<DateTime>("CreateDate")
  280. .HasColumnType("datetime2");
  281. b.Property<string>("CreateUser")
  282. .IsRequired()
  283. .HasColumnType("nvarchar(max)");
  284. b.Property<string>("ErrorCode")
  285. .IsRequired()
  286. .HasColumnType("nvarchar(max)");
  287. b.Property<string>("ErrorDescription")
  288. .IsRequired()
  289. .HasColumnType("nvarchar(max)");
  290. b.Property<string>("InnerException")
  291. .HasColumnType("nvarchar(max)");
  292. b.Property<string>("Input")
  293. .HasColumnType("nvarchar(max)");
  294. b.Property<string>("Method")
  295. .IsRequired()
  296. .HasColumnType("nvarchar(max)");
  297. b.Property<string>("QueryString")
  298. .HasColumnType("nvarchar(max)");
  299. b.Property<string>("ServerIP")
  300. .HasColumnType("nvarchar(max)");
  301. b.Property<string>("ServiceResponseTimeInSeconds")
  302. .IsRequired()
  303. .HasColumnType("nvarchar(max)");
  304. b.Property<string>("UserIP")
  305. .HasColumnType("nvarchar(max)");
  306. b.Property<string>("userAgent")
  307. .HasColumnType("nvarchar(max)");
  308. b.HasKey("Id");
  309. b.ToTable("SettingLogs");
  310. });
  311. modelBuilder.Entity("MTWorkHR.Core.Entities.UserLog", b =>
  312. {
  313. b.Property<long>("Id")
  314. .ValueGeneratedOnAdd()
  315. .HasColumnType("bigint")
  316. .HasColumnOrder(0);
  317. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  318. b.Property<string>("Channel")
  319. .HasColumnType("nvarchar(max)");
  320. b.Property<DateTime>("CreateDate")
  321. .HasColumnType("datetime2");
  322. b.Property<string>("CreateUser")
  323. .IsRequired()
  324. .HasColumnType("nvarchar(max)");
  325. b.Property<string>("ErrorCode")
  326. .IsRequired()
  327. .HasColumnType("nvarchar(max)");
  328. b.Property<string>("ErrorDescription")
  329. .IsRequired()
  330. .HasColumnType("nvarchar(max)");
  331. b.Property<string>("InnerException")
  332. .HasColumnType("nvarchar(max)");
  333. b.Property<string>("Input")
  334. .HasColumnType("nvarchar(max)");
  335. b.Property<string>("Method")
  336. .IsRequired()
  337. .HasColumnType("nvarchar(max)");
  338. b.Property<string>("QueryString")
  339. .HasColumnType("nvarchar(max)");
  340. b.Property<string>("ServerIP")
  341. .HasColumnType("nvarchar(max)");
  342. b.Property<string>("ServiceResponseTimeInSeconds")
  343. .IsRequired()
  344. .HasColumnType("nvarchar(max)");
  345. b.Property<string>("UserIP")
  346. .HasColumnType("nvarchar(max)");
  347. b.Property<string>("userAgent")
  348. .HasColumnType("nvarchar(max)");
  349. b.HasKey("Id");
  350. b.ToTable("UserLogs");
  351. });
  352. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  353. {
  354. b.Property<long>("Id")
  355. .ValueGeneratedOnAdd()
  356. .HasColumnType("bigint")
  357. .HasColumnOrder(0);
  358. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  359. b.Property<long>("AssignedUserId")
  360. .HasColumnType("bigint");
  361. b.Property<DateTime>("CreateDate")
  362. .HasColumnType("datetime2")
  363. .HasColumnOrder(3);
  364. b.Property<string>("CreateUser")
  365. .HasMaxLength(450)
  366. .HasColumnType("nvarchar(450)")
  367. .HasColumnOrder(1);
  368. b.Property<string>("DeleteUserId")
  369. .HasMaxLength(450)
  370. .HasColumnType("nvarchar(450)")
  371. .HasColumnOrder(8);
  372. b.Property<string>("Description")
  373. .IsRequired()
  374. .HasColumnType("nvarchar(max)");
  375. b.Property<DateTime>("DueDate")
  376. .HasColumnType("datetime2");
  377. b.Property<bool>("IsDeleted")
  378. .HasColumnType("bit")
  379. .HasColumnOrder(7);
  380. b.Property<int>("Priority")
  381. .HasColumnType("int");
  382. b.Property<long>("ProjectId")
  383. .HasColumnType("bigint");
  384. b.Property<long>("StatusId")
  385. .HasColumnType("bigint");
  386. b.Property<string>("Title")
  387. .IsRequired()
  388. .HasColumnType("nvarchar(max)");
  389. b.Property<DateTime?>("UpdateDate")
  390. .HasColumnType("datetime2")
  391. .HasColumnOrder(4);
  392. b.Property<string>("UpdateUser")
  393. .HasMaxLength(450)
  394. .HasColumnType("nvarchar(450)")
  395. .HasColumnOrder(2);
  396. b.HasKey("Id");
  397. b.HasIndex("ProjectId");
  398. b.HasIndex("StatusId");
  399. b.ToTable("UserTasks");
  400. });
  401. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskAttachment", b =>
  402. {
  403. b.Property<long>("Id")
  404. .ValueGeneratedOnAdd()
  405. .HasColumnType("bigint")
  406. .HasColumnOrder(0);
  407. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  408. b.Property<long>("AttachmentTypeId")
  409. .HasColumnType("bigint");
  410. b.Property<DateTime>("CreateDate")
  411. .HasColumnType("datetime2")
  412. .HasColumnOrder(3);
  413. b.Property<string>("CreateUser")
  414. .HasMaxLength(450)
  415. .HasColumnType("nvarchar(450)")
  416. .HasColumnOrder(1);
  417. b.Property<string>("FileName")
  418. .IsRequired()
  419. .HasMaxLength(250)
  420. .HasColumnType("nvarchar(250)");
  421. b.Property<string>("OriginalName")
  422. .IsRequired()
  423. .HasMaxLength(250)
  424. .HasColumnType("nvarchar(250)");
  425. b.Property<long>("TaskId")
  426. .HasColumnType("bigint");
  427. b.Property<DateTime?>("UpdateDate")
  428. .HasColumnType("datetime2")
  429. .HasColumnOrder(4);
  430. b.Property<string>("UpdateUser")
  431. .HasMaxLength(450)
  432. .HasColumnType("nvarchar(450)")
  433. .HasColumnOrder(2);
  434. b.HasKey("Id");
  435. b.HasIndex("AttachmentTypeId");
  436. b.HasIndex("TaskId");
  437. b.ToTable("UserTaskAttachments");
  438. });
  439. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskHistory", b =>
  440. {
  441. b.Property<long>("Id")
  442. .ValueGeneratedOnAdd()
  443. .HasColumnType("bigint")
  444. .HasColumnOrder(0);
  445. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  446. b.Property<long>("AssignedToUserId")
  447. .HasColumnType("bigint");
  448. b.Property<string>("Comment")
  449. .IsRequired()
  450. .HasMaxLength(500)
  451. .HasColumnType("nvarchar(500)");
  452. b.Property<DateTime>("CreateDate")
  453. .HasColumnType("datetime2")
  454. .HasColumnOrder(3);
  455. b.Property<string>("CreateUser")
  456. .HasMaxLength(450)
  457. .HasColumnType("nvarchar(450)")
  458. .HasColumnOrder(1);
  459. b.Property<long>("CurrentStatusId")
  460. .HasColumnType("bigint");
  461. b.Property<bool>("IsDeleted")
  462. .HasColumnType("bit");
  463. b.Property<DateTime?>("UpdateDate")
  464. .HasColumnType("datetime2")
  465. .HasColumnOrder(4);
  466. b.Property<string>("UpdateUser")
  467. .HasMaxLength(450)
  468. .HasColumnType("nvarchar(450)")
  469. .HasColumnOrder(2);
  470. b.Property<long?>("UserTaskId")
  471. .HasColumnType("bigint");
  472. b.HasKey("Id");
  473. b.HasIndex("CurrentStatusId");
  474. b.HasIndex("UserTaskId");
  475. b.ToTable("UserTaskHistories");
  476. });
  477. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskStatus", b =>
  478. {
  479. b.Property<long>("Id")
  480. .ValueGeneratedOnAdd()
  481. .HasColumnType("bigint")
  482. .HasColumnOrder(0);
  483. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  484. b.Property<string>("NameAr")
  485. .IsRequired()
  486. .HasMaxLength(250)
  487. .HasColumnType("nvarchar(250)");
  488. b.Property<string>("NameEn")
  489. .IsRequired()
  490. .HasMaxLength(250)
  491. .HasColumnType("nvarchar(250)");
  492. b.HasKey("Id");
  493. b.ToTable("UserTaskStatuses");
  494. });
  495. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationRole", b =>
  496. {
  497. b.Property<string>("Id")
  498. .HasColumnType("nvarchar(450)");
  499. b.Property<string>("ConcurrencyStamp")
  500. .IsConcurrencyToken()
  501. .HasColumnType("nvarchar(max)");
  502. b.Property<DateTime>("CreateDate")
  503. .HasColumnType("datetime2");
  504. b.Property<string>("CreateUser")
  505. .HasColumnType("nvarchar(max)");
  506. b.Property<string>("DeleteUserId")
  507. .HasColumnType("nvarchar(max)");
  508. b.Property<bool?>("IsAdmin")
  509. .HasColumnType("bit");
  510. b.Property<bool>("IsDeleted")
  511. .HasColumnType("bit");
  512. b.Property<string>("Name")
  513. .HasMaxLength(256)
  514. .HasColumnType("nvarchar(256)");
  515. b.Property<string>("NormalizedName")
  516. .HasMaxLength(256)
  517. .HasColumnType("nvarchar(256)");
  518. b.Property<DateTime?>("UpdateDate")
  519. .HasColumnType("datetime2");
  520. b.Property<string>("UpdateUser")
  521. .HasColumnType("nvarchar(max)");
  522. b.HasKey("Id");
  523. b.HasIndex("NormalizedName")
  524. .IsUnique()
  525. .HasDatabaseName("RoleNameIndex")
  526. .HasFilter("[NormalizedName] IS NOT NULL");
  527. b.ToTable("AspNetRoles", (string)null);
  528. b.HasData(
  529. new
  530. {
  531. Id = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A",
  532. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  533. IsAdmin = true,
  534. IsDeleted = false,
  535. Name = "Admin",
  536. NormalizedName = "ADMIN"
  537. },
  538. new
  539. {
  540. Id = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E",
  541. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  542. IsAdmin = false,
  543. IsDeleted = false,
  544. Name = "Employee",
  545. NormalizedName = "EMPLOYEE"
  546. });
  547. });
  548. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  549. {
  550. b.Property<string>("Id")
  551. .HasColumnType("nvarchar(450)");
  552. b.Property<int>("AccessFailedCount")
  553. .HasColumnType("int");
  554. b.Property<string>("ConcurrencyStamp")
  555. .IsConcurrencyToken()
  556. .HasColumnType("nvarchar(max)");
  557. b.Property<string>("CreateUser")
  558. .HasColumnType("nvarchar(max)");
  559. b.Property<string>("DeleteUserId")
  560. .HasColumnType("nvarchar(max)");
  561. b.Property<string>("Email")
  562. .HasMaxLength(256)
  563. .HasColumnType("nvarchar(256)");
  564. b.Property<bool>("EmailConfirmed")
  565. .HasColumnType("bit");
  566. b.Property<string>("FavoriteName")
  567. .HasColumnType("nvarchar(max)");
  568. b.Property<string>("FirstName")
  569. .IsRequired()
  570. .HasColumnType("nvarchar(max)");
  571. b.Property<decimal?>("IncomeTaxValue")
  572. .HasColumnType("decimal(18,2)");
  573. b.Property<bool>("IsDeleted")
  574. .HasColumnType("bit");
  575. b.Property<bool>("IsStopped")
  576. .HasColumnType("bit");
  577. b.Property<string>("JobTitle")
  578. .HasColumnType("nvarchar(max)");
  579. b.Property<string>("LastName")
  580. .IsRequired()
  581. .HasColumnType("nvarchar(max)");
  582. b.Property<bool>("LockoutEnabled")
  583. .HasColumnType("bit");
  584. b.Property<DateTimeOffset?>("LockoutEnd")
  585. .HasColumnType("datetimeoffset");
  586. b.Property<string>("ManagerId")
  587. .HasColumnType("nvarchar(450)");
  588. b.Property<string>("NormalizedEmail")
  589. .HasMaxLength(256)
  590. .HasColumnType("nvarchar(256)");
  591. b.Property<string>("NormalizedUserName")
  592. .HasMaxLength(256)
  593. .HasColumnType("nvarchar(256)");
  594. b.Property<string>("PassportNumber")
  595. .IsRequired()
  596. .HasColumnType("nvarchar(max)");
  597. b.Property<string>("PasswordHash")
  598. .HasColumnType("nvarchar(max)");
  599. b.Property<string>("PhoneNumber")
  600. .HasColumnType("nvarchar(max)");
  601. b.Property<bool>("PhoneNumberConfirmed")
  602. .HasColumnType("bit");
  603. b.Property<int?>("QualificationId")
  604. .HasColumnType("int");
  605. b.Property<string>("SecurityStamp")
  606. .HasColumnType("nvarchar(max)");
  607. b.Property<decimal?>("TaxNumber")
  608. .HasColumnType("decimal(18,2)");
  609. b.Property<bool>("TwoFactorEnabled")
  610. .HasColumnType("bit");
  611. b.Property<string>("University")
  612. .HasColumnType("nvarchar(max)");
  613. b.Property<string>("UpdateUser")
  614. .HasColumnType("nvarchar(max)");
  615. b.Property<string>("UserName")
  616. .HasMaxLength(256)
  617. .HasColumnType("nvarchar(256)");
  618. b.Property<int>("UserType")
  619. .HasColumnType("int");
  620. b.HasKey("Id");
  621. b.HasIndex("ManagerId");
  622. b.HasIndex("NormalizedEmail")
  623. .HasDatabaseName("EmailIndex");
  624. b.HasIndex("NormalizedUserName")
  625. .IsUnique()
  626. .HasDatabaseName("UserNameIndex")
  627. .HasFilter("[NormalizedUserName] IS NOT NULL");
  628. b.ToTable("AspNetUsers", (string)null);
  629. b.HasData(
  630. new
  631. {
  632. Id = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  633. AccessFailedCount = 0,
  634. ConcurrencyStamp = "7cc87689-9eab-4280-b8e3-1834080783a5",
  635. Email = "a@b.com",
  636. EmailConfirmed = true,
  637. FirstName = "Zinab",
  638. IncomeTaxValue = 1m,
  639. IsDeleted = false,
  640. IsStopped = false,
  641. LastName = "Elgendy",
  642. LockoutEnabled = false,
  643. NormalizedEmail = "A@B.COM",
  644. NormalizedUserName = "ADMIN",
  645. PassportNumber = "1234567",
  646. PasswordHash = "AQAAAAIAAYagAAAAEPg+ASbciPFxtyxQq8Wx5ilBUQ0RbAoITXXkOQm1PzC5BzySX0sn/wUmOjBKPDGV9w==",
  647. PhoneNumber = "1234567890",
  648. PhoneNumberConfirmed = true,
  649. QualificationId = 1,
  650. SecurityStamp = "49bb16c3-4704-4c60-908d-dc8506950acc",
  651. TaxNumber = 111m,
  652. TwoFactorEnabled = false,
  653. UserName = "Admin",
  654. UserType = 1
  655. },
  656. new
  657. {
  658. Id = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  659. AccessFailedCount = 0,
  660. ConcurrencyStamp = "4af7b4cf-802a-455b-b598-997e167745b3",
  661. Email = "ali@b.com",
  662. EmailConfirmed = true,
  663. FirstName = "Ali",
  664. IncomeTaxValue = 100m,
  665. IsDeleted = false,
  666. IsStopped = false,
  667. LastName = "Farok",
  668. LockoutEnabled = false,
  669. NormalizedEmail = "ALI@B.COM",
  670. NormalizedUserName = "ALI",
  671. PassportNumber = "7654321001010",
  672. PasswordHash = "AQAAAAIAAYagAAAAEI3QJkcZjCH4Y8Db4rEgL8Mmll5oCvYcWiXZjQSN9bGW4SMcjHe3ZPMnkN/l9DmJeQ==",
  673. PhoneNumber = "1234567890",
  674. PhoneNumberConfirmed = true,
  675. QualificationId = 1,
  676. SecurityStamp = "62549056-1b9d-46d4-84f8-adea3e4d8b68",
  677. TaxNumber = 222m,
  678. TwoFactorEnabled = false,
  679. UserName = "ali",
  680. UserType = 1
  681. });
  682. });
  683. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
  684. {
  685. b.Property<long>("Id")
  686. .ValueGeneratedOnAdd()
  687. .HasColumnType("bigint")
  688. .HasColumnOrder(0);
  689. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  690. b.Property<long>("PermissionId")
  691. .HasColumnType("bigint");
  692. b.Property<string>("PermissionName")
  693. .IsRequired()
  694. .HasColumnType("nvarchar(max)");
  695. b.Property<string>("RoleId")
  696. .IsRequired()
  697. .HasColumnType("nvarchar(450)");
  698. b.HasKey("Id");
  699. b.HasIndex("PermissionId");
  700. b.HasIndex("RoleId");
  701. b.ToTable("RolePermissions");
  702. });
  703. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAddress", b =>
  704. {
  705. b.Property<long>("Id")
  706. .ValueGeneratedOnAdd()
  707. .HasColumnType("bigint")
  708. .HasColumnOrder(0);
  709. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  710. b.Property<string>("AddressDesc")
  711. .IsRequired()
  712. .HasColumnType("nvarchar(max)");
  713. b.Property<string>("City")
  714. .IsRequired()
  715. .HasColumnType("nvarchar(max)");
  716. b.Property<int>("CountryId")
  717. .HasColumnType("int");
  718. b.Property<DateTime>("CreateDate")
  719. .HasColumnType("datetime2")
  720. .HasColumnOrder(3);
  721. b.Property<string>("CreateUser")
  722. .HasMaxLength(450)
  723. .HasColumnType("nvarchar(450)")
  724. .HasColumnOrder(1);
  725. b.Property<string>("PostalCode")
  726. .IsRequired()
  727. .HasColumnType("nvarchar(max)");
  728. b.Property<DateTime?>("UpdateDate")
  729. .HasColumnType("datetime2")
  730. .HasColumnOrder(4);
  731. b.Property<string>("UpdateUser")
  732. .HasMaxLength(450)
  733. .HasColumnType("nvarchar(450)")
  734. .HasColumnOrder(2);
  735. b.Property<string>("UserId")
  736. .IsRequired()
  737. .HasColumnType("nvarchar(450)");
  738. b.HasKey("Id");
  739. b.HasIndex("UserId")
  740. .IsUnique();
  741. b.ToTable("UserAddress");
  742. });
  743. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAttachment", b =>
  744. {
  745. b.Property<long>("Id")
  746. .ValueGeneratedOnAdd()
  747. .HasColumnType("bigint")
  748. .HasColumnOrder(0);
  749. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  750. b.Property<long>("AttachmentTypeId")
  751. .HasColumnType("bigint");
  752. b.Property<DateTime>("CreateDate")
  753. .HasColumnType("datetime2")
  754. .HasColumnOrder(3);
  755. b.Property<string>("CreateUser")
  756. .HasMaxLength(450)
  757. .HasColumnType("nvarchar(450)")
  758. .HasColumnOrder(1);
  759. b.Property<string>("FileName")
  760. .IsRequired()
  761. .HasMaxLength(250)
  762. .HasColumnType("nvarchar(250)");
  763. b.Property<string>("OriginalName")
  764. .IsRequired()
  765. .HasMaxLength(250)
  766. .HasColumnType("nvarchar(250)");
  767. b.Property<DateTime?>("UpdateDate")
  768. .HasColumnType("datetime2")
  769. .HasColumnOrder(4);
  770. b.Property<string>("UpdateUser")
  771. .HasMaxLength(450)
  772. .HasColumnType("nvarchar(450)")
  773. .HasColumnOrder(2);
  774. b.Property<string>("UserId")
  775. .IsRequired()
  776. .HasColumnType("nvarchar(450)");
  777. b.HasKey("Id");
  778. b.HasIndex("AttachmentTypeId");
  779. b.HasIndex("UserId");
  780. b.ToTable("UserAttachments");
  781. });
  782. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  783. {
  784. b.Property<int>("Id")
  785. .ValueGeneratedOnAdd()
  786. .HasColumnType("int");
  787. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  788. b.Property<string>("ClaimType")
  789. .HasColumnType("nvarchar(max)");
  790. b.Property<string>("ClaimValue")
  791. .HasColumnType("nvarchar(max)");
  792. b.Property<string>("RoleId")
  793. .IsRequired()
  794. .HasColumnType("nvarchar(450)");
  795. b.HasKey("Id");
  796. b.HasIndex("RoleId");
  797. b.ToTable("AspNetRoleClaims", (string)null);
  798. });
  799. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  800. {
  801. b.Property<int>("Id")
  802. .ValueGeneratedOnAdd()
  803. .HasColumnType("int");
  804. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  805. b.Property<string>("ClaimType")
  806. .HasColumnType("nvarchar(max)");
  807. b.Property<string>("ClaimValue")
  808. .HasColumnType("nvarchar(max)");
  809. b.Property<string>("UserId")
  810. .IsRequired()
  811. .HasColumnType("nvarchar(450)");
  812. b.HasKey("Id");
  813. b.HasIndex("UserId");
  814. b.ToTable("AspNetUserClaims", (string)null);
  815. });
  816. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  817. {
  818. b.Property<string>("LoginProvider")
  819. .HasColumnType("nvarchar(450)");
  820. b.Property<string>("ProviderKey")
  821. .HasColumnType("nvarchar(450)");
  822. b.Property<string>("ProviderDisplayName")
  823. .HasColumnType("nvarchar(max)");
  824. b.Property<string>("UserId")
  825. .IsRequired()
  826. .HasColumnType("nvarchar(450)");
  827. b.HasKey("LoginProvider", "ProviderKey");
  828. b.HasIndex("UserId");
  829. b.ToTable("AspNetUserLogins", (string)null);
  830. });
  831. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  832. {
  833. b.Property<string>("UserId")
  834. .HasColumnType("nvarchar(450)");
  835. b.Property<string>("RoleId")
  836. .HasColumnType("nvarchar(450)");
  837. b.HasKey("UserId", "RoleId");
  838. b.HasIndex("RoleId");
  839. b.ToTable("AspNetUserRoles", (string)null);
  840. b.HasData(
  841. new
  842. {
  843. UserId = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  844. RoleId = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A"
  845. },
  846. new
  847. {
  848. UserId = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  849. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  850. });
  851. });
  852. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  853. {
  854. b.Property<string>("UserId")
  855. .HasColumnType("nvarchar(450)");
  856. b.Property<string>("LoginProvider")
  857. .HasColumnType("nvarchar(450)");
  858. b.Property<string>("Name")
  859. .HasColumnType("nvarchar(450)");
  860. b.Property<string>("Value")
  861. .HasColumnType("nvarchar(max)");
  862. b.HasKey("UserId", "LoginProvider", "Name");
  863. b.ToTable("AspNetUserTokens", (string)null);
  864. });
  865. modelBuilder.Entity("ApplicationRoleApplicationUser", b =>
  866. {
  867. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  868. .WithMany()
  869. .HasForeignKey("UserRolesId")
  870. .OnDelete(DeleteBehavior.Cascade)
  871. .IsRequired();
  872. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  873. .WithMany()
  874. .HasForeignKey("UsersId")
  875. .OnDelete(DeleteBehavior.Cascade)
  876. .IsRequired();
  877. });
  878. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  879. {
  880. b.HasOne("MTWorkHR.Core.Entities.Project", "Project")
  881. .WithMany()
  882. .HasForeignKey("ProjectId")
  883. .OnDelete(DeleteBehavior.Cascade)
  884. .IsRequired();
  885. b.HasOne("MTWorkHR.Core.Entities.UserTaskStatus", "TaskStatus")
  886. .WithMany()
  887. .HasForeignKey("StatusId")
  888. .OnDelete(DeleteBehavior.Cascade)
  889. .IsRequired();
  890. b.Navigation("Project");
  891. b.Navigation("TaskStatus");
  892. });
  893. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskAttachment", b =>
  894. {
  895. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  896. .WithMany()
  897. .HasForeignKey("AttachmentTypeId")
  898. .OnDelete(DeleteBehavior.Cascade)
  899. .IsRequired();
  900. b.HasOne("MTWorkHR.Core.Entities.UserTask", "UserTask")
  901. .WithMany("TaskAttachments")
  902. .HasForeignKey("TaskId")
  903. .OnDelete(DeleteBehavior.Cascade)
  904. .IsRequired();
  905. b.Navigation("AttachmentType");
  906. b.Navigation("UserTask");
  907. });
  908. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskHistory", b =>
  909. {
  910. b.HasOne("MTWorkHR.Core.Entities.UserTaskStatus", "TaskStatus")
  911. .WithMany()
  912. .HasForeignKey("CurrentStatusId")
  913. .OnDelete(DeleteBehavior.Cascade)
  914. .IsRequired();
  915. b.HasOne("MTWorkHR.Core.Entities.UserTask", null)
  916. .WithMany("UserTaskHistories")
  917. .HasForeignKey("UserTaskId");
  918. b.Navigation("TaskStatus");
  919. });
  920. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  921. {
  922. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "Manager")
  923. .WithMany()
  924. .HasForeignKey("ManagerId");
  925. b.Navigation("Manager");
  926. });
  927. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
  928. {
  929. b.HasOne("MTWorkHR.Core.Entities.Permission", "Permission")
  930. .WithMany()
  931. .HasForeignKey("PermissionId")
  932. .OnDelete(DeleteBehavior.Cascade)
  933. .IsRequired();
  934. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", "Role")
  935. .WithMany("RolePermissions")
  936. .HasForeignKey("RoleId")
  937. .OnDelete(DeleteBehavior.Cascade)
  938. .IsRequired();
  939. b.Navigation("Permission");
  940. b.Navigation("Role");
  941. });
  942. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAddress", b =>
  943. {
  944. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "User")
  945. .WithOne("UserAddress")
  946. .HasForeignKey("MTWorkHR.Infrastructure.Entities.UserAddress", "UserId")
  947. .OnDelete(DeleteBehavior.Cascade)
  948. .IsRequired();
  949. b.Navigation("User");
  950. });
  951. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAttachment", b =>
  952. {
  953. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  954. .WithMany()
  955. .HasForeignKey("AttachmentTypeId")
  956. .OnDelete(DeleteBehavior.Cascade)
  957. .IsRequired();
  958. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "User")
  959. .WithMany("UserAttachments")
  960. .HasForeignKey("UserId")
  961. .OnDelete(DeleteBehavior.Cascade)
  962. .IsRequired();
  963. b.Navigation("AttachmentType");
  964. b.Navigation("User");
  965. });
  966. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  967. {
  968. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  969. .WithMany()
  970. .HasForeignKey("RoleId")
  971. .OnDelete(DeleteBehavior.Cascade)
  972. .IsRequired();
  973. });
  974. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  975. {
  976. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  977. .WithMany()
  978. .HasForeignKey("UserId")
  979. .OnDelete(DeleteBehavior.Cascade)
  980. .IsRequired();
  981. });
  982. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  983. {
  984. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  985. .WithMany()
  986. .HasForeignKey("UserId")
  987. .OnDelete(DeleteBehavior.Cascade)
  988. .IsRequired();
  989. });
  990. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  991. {
  992. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  993. .WithMany()
  994. .HasForeignKey("RoleId")
  995. .OnDelete(DeleteBehavior.Cascade)
  996. .IsRequired();
  997. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  998. .WithMany()
  999. .HasForeignKey("UserId")
  1000. .OnDelete(DeleteBehavior.Cascade)
  1001. .IsRequired();
  1002. });
  1003. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  1004. {
  1005. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  1006. .WithMany()
  1007. .HasForeignKey("UserId")
  1008. .OnDelete(DeleteBehavior.Cascade)
  1009. .IsRequired();
  1010. });
  1011. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  1012. {
  1013. b.Navigation("TaskAttachments");
  1014. b.Navigation("UserTaskHistories");
  1015. });
  1016. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationRole", b =>
  1017. {
  1018. b.Navigation("RolePermissions");
  1019. });
  1020. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  1021. {
  1022. b.Navigation("UserAddress")
  1023. .IsRequired();
  1024. b.Navigation("UserAttachments");
  1025. });
  1026. #pragma warning restore 612, 618
  1027. }
  1028. }
  1029. }