20240304100029_addTeamMeetinglogs.Designer.cs 66 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796
  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("20240304100029_addTeamMeetinglogs")]
  14. partial class addTeamMeetinglogs
  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.Meeting", 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<DateTime>("CreateDate")
  195. .HasColumnType("datetime2")
  196. .HasColumnOrder(3);
  197. b.Property<string>("CreateUser")
  198. .HasMaxLength(450)
  199. .HasColumnType("nvarchar(450)")
  200. .HasColumnOrder(1);
  201. b.Property<string>("DeleteUserId")
  202. .HasMaxLength(450)
  203. .HasColumnType("nvarchar(450)")
  204. .HasColumnOrder(8);
  205. b.Property<string>("Description")
  206. .HasMaxLength(500)
  207. .HasColumnType("nvarchar(500)");
  208. b.Property<bool>("IsDeleted")
  209. .HasColumnType("bit")
  210. .HasColumnOrder(7);
  211. b.Property<DateTime>("MeetingDateTime")
  212. .HasColumnType("datetime2");
  213. b.Property<string>("MeetingLink")
  214. .HasMaxLength(250)
  215. .HasColumnType("nvarchar(250)");
  216. b.Property<string>("Title")
  217. .IsRequired()
  218. .HasMaxLength(250)
  219. .HasColumnType("nvarchar(250)");
  220. b.Property<DateTime?>("UpdateDate")
  221. .HasColumnType("datetime2")
  222. .HasColumnOrder(4);
  223. b.Property<string>("UpdateUser")
  224. .HasMaxLength(450)
  225. .HasColumnType("nvarchar(450)")
  226. .HasColumnOrder(2);
  227. b.HasKey("Id");
  228. b.ToTable("Meetings");
  229. });
  230. modelBuilder.Entity("MTWorkHR.Core.Entities.MeetingLog", b =>
  231. {
  232. b.Property<long>("Id")
  233. .ValueGeneratedOnAdd()
  234. .HasColumnType("bigint")
  235. .HasColumnOrder(0);
  236. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  237. b.Property<string>("Channel")
  238. .HasColumnType("nvarchar(max)");
  239. b.Property<DateTime>("CreateDate")
  240. .HasColumnType("datetime2");
  241. b.Property<string>("CreateUser")
  242. .IsRequired()
  243. .HasColumnType("nvarchar(max)");
  244. b.Property<string>("ErrorCode")
  245. .IsRequired()
  246. .HasColumnType("nvarchar(max)");
  247. b.Property<string>("ErrorDescription")
  248. .IsRequired()
  249. .HasColumnType("nvarchar(max)");
  250. b.Property<string>("InnerException")
  251. .HasColumnType("nvarchar(max)");
  252. b.Property<string>("Input")
  253. .HasColumnType("nvarchar(max)");
  254. b.Property<string>("Method")
  255. .IsRequired()
  256. .HasColumnType("nvarchar(max)");
  257. b.Property<string>("QueryString")
  258. .HasColumnType("nvarchar(max)");
  259. b.Property<string>("ServerIP")
  260. .HasColumnType("nvarchar(max)");
  261. b.Property<string>("ServiceResponseTimeInSeconds")
  262. .IsRequired()
  263. .HasColumnType("nvarchar(max)");
  264. b.Property<string>("UserIP")
  265. .HasColumnType("nvarchar(max)");
  266. b.Property<string>("userAgent")
  267. .HasColumnType("nvarchar(max)");
  268. b.HasKey("Id");
  269. b.ToTable("MeetingLogs");
  270. });
  271. modelBuilder.Entity("MTWorkHR.Core.Entities.MeetingUser", b =>
  272. {
  273. b.Property<long>("Id")
  274. .ValueGeneratedOnAdd()
  275. .HasColumnType("bigint")
  276. .HasColumnOrder(0);
  277. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  278. b.Property<string>("AssignedUserId")
  279. .IsRequired()
  280. .HasColumnType("nvarchar(max)");
  281. b.Property<DateTime>("CreateDate")
  282. .HasColumnType("datetime2")
  283. .HasColumnOrder(3);
  284. b.Property<string>("CreateUser")
  285. .HasMaxLength(450)
  286. .HasColumnType("nvarchar(450)")
  287. .HasColumnOrder(1);
  288. b.Property<long>("MeetingId")
  289. .HasColumnType("bigint");
  290. b.Property<DateTime?>("UpdateDate")
  291. .HasColumnType("datetime2")
  292. .HasColumnOrder(4);
  293. b.Property<string>("UpdateUser")
  294. .HasMaxLength(450)
  295. .HasColumnType("nvarchar(450)")
  296. .HasColumnOrder(2);
  297. b.HasKey("Id");
  298. b.HasIndex("MeetingId");
  299. b.ToTable("MeetingUser");
  300. });
  301. modelBuilder.Entity("MTWorkHR.Core.Entities.Permission", b =>
  302. {
  303. b.Property<long>("Id")
  304. .ValueGeneratedOnAdd()
  305. .HasColumnType("bigint")
  306. .HasColumnOrder(0);
  307. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  308. b.Property<string>("CategoryName")
  309. .IsRequired()
  310. .HasMaxLength(150)
  311. .HasColumnType("nvarchar(150)");
  312. b.Property<string>("Desc")
  313. .IsRequired()
  314. .HasMaxLength(250)
  315. .HasColumnType("nvarchar(250)");
  316. b.Property<string>("Name")
  317. .IsRequired()
  318. .HasMaxLength(250)
  319. .HasColumnType("nvarchar(250)");
  320. b.Property<bool>("Show")
  321. .HasColumnType("bit");
  322. b.HasKey("Id");
  323. b.ToTable("Permissions");
  324. });
  325. modelBuilder.Entity("MTWorkHR.Core.Entities.Project", b =>
  326. {
  327. b.Property<long>("Id")
  328. .ValueGeneratedOnAdd()
  329. .HasColumnType("bigint")
  330. .HasColumnOrder(0);
  331. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  332. b.Property<DateTime>("CreateDate")
  333. .HasColumnType("datetime2")
  334. .HasColumnOrder(3);
  335. b.Property<string>("CreateUser")
  336. .HasMaxLength(450)
  337. .HasColumnType("nvarchar(450)")
  338. .HasColumnOrder(1);
  339. b.Property<string>("DeleteUserId")
  340. .HasMaxLength(450)
  341. .HasColumnType("nvarchar(450)")
  342. .HasColumnOrder(8);
  343. b.Property<bool>("IsDeleted")
  344. .HasColumnType("bit")
  345. .HasColumnOrder(7);
  346. b.Property<string>("NameAr")
  347. .IsRequired()
  348. .HasMaxLength(250)
  349. .HasColumnType("nvarchar(250)");
  350. b.Property<string>("NameEn")
  351. .IsRequired()
  352. .HasMaxLength(250)
  353. .HasColumnType("nvarchar(250)");
  354. b.Property<DateTime?>("UpdateDate")
  355. .HasColumnType("datetime2")
  356. .HasColumnOrder(4);
  357. b.Property<string>("UpdateUser")
  358. .HasMaxLength(450)
  359. .HasColumnType("nvarchar(450)")
  360. .HasColumnOrder(2);
  361. b.HasKey("Id");
  362. b.ToTable("Projects");
  363. });
  364. modelBuilder.Entity("MTWorkHR.Core.Entities.RoleLog", b =>
  365. {
  366. b.Property<long>("Id")
  367. .ValueGeneratedOnAdd()
  368. .HasColumnType("bigint")
  369. .HasColumnOrder(0);
  370. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  371. b.Property<string>("Channel")
  372. .HasColumnType("nvarchar(max)");
  373. b.Property<DateTime>("CreateDate")
  374. .HasColumnType("datetime2");
  375. b.Property<string>("CreateUser")
  376. .IsRequired()
  377. .HasColumnType("nvarchar(max)");
  378. b.Property<string>("ErrorCode")
  379. .IsRequired()
  380. .HasColumnType("nvarchar(max)");
  381. b.Property<string>("ErrorDescription")
  382. .IsRequired()
  383. .HasColumnType("nvarchar(max)");
  384. b.Property<string>("InnerException")
  385. .HasColumnType("nvarchar(max)");
  386. b.Property<string>("Input")
  387. .HasColumnType("nvarchar(max)");
  388. b.Property<string>("Method")
  389. .IsRequired()
  390. .HasColumnType("nvarchar(max)");
  391. b.Property<string>("QueryString")
  392. .HasColumnType("nvarchar(max)");
  393. b.Property<string>("ServerIP")
  394. .HasColumnType("nvarchar(max)");
  395. b.Property<string>("ServiceResponseTimeInSeconds")
  396. .IsRequired()
  397. .HasColumnType("nvarchar(max)");
  398. b.Property<string>("UserIP")
  399. .HasColumnType("nvarchar(max)");
  400. b.Property<string>("userAgent")
  401. .HasColumnType("nvarchar(max)");
  402. b.HasKey("Id");
  403. b.ToTable("RoleLogs");
  404. });
  405. modelBuilder.Entity("MTWorkHR.Core.Entities.SettingLog", b =>
  406. {
  407. b.Property<long>("Id")
  408. .ValueGeneratedOnAdd()
  409. .HasColumnType("bigint")
  410. .HasColumnOrder(0);
  411. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  412. b.Property<string>("Channel")
  413. .HasColumnType("nvarchar(max)");
  414. b.Property<DateTime>("CreateDate")
  415. .HasColumnType("datetime2");
  416. b.Property<string>("CreateUser")
  417. .IsRequired()
  418. .HasColumnType("nvarchar(max)");
  419. b.Property<string>("ErrorCode")
  420. .IsRequired()
  421. .HasColumnType("nvarchar(max)");
  422. b.Property<string>("ErrorDescription")
  423. .IsRequired()
  424. .HasColumnType("nvarchar(max)");
  425. b.Property<string>("InnerException")
  426. .HasColumnType("nvarchar(max)");
  427. b.Property<string>("Input")
  428. .HasColumnType("nvarchar(max)");
  429. b.Property<string>("Method")
  430. .IsRequired()
  431. .HasColumnType("nvarchar(max)");
  432. b.Property<string>("QueryString")
  433. .HasColumnType("nvarchar(max)");
  434. b.Property<string>("ServerIP")
  435. .HasColumnType("nvarchar(max)");
  436. b.Property<string>("ServiceResponseTimeInSeconds")
  437. .IsRequired()
  438. .HasColumnType("nvarchar(max)");
  439. b.Property<string>("UserIP")
  440. .HasColumnType("nvarchar(max)");
  441. b.Property<string>("userAgent")
  442. .HasColumnType("nvarchar(max)");
  443. b.HasKey("Id");
  444. b.ToTable("SettingLogs");
  445. });
  446. modelBuilder.Entity("MTWorkHR.Core.Entities.Team", b =>
  447. {
  448. b.Property<long>("Id")
  449. .ValueGeneratedOnAdd()
  450. .HasColumnType("bigint")
  451. .HasColumnOrder(0);
  452. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  453. b.Property<DateTime>("CreateDate")
  454. .HasColumnType("datetime2")
  455. .HasColumnOrder(3);
  456. b.Property<string>("CreateUser")
  457. .HasMaxLength(450)
  458. .HasColumnType("nvarchar(450)")
  459. .HasColumnOrder(1);
  460. b.Property<string>("DeleteUserId")
  461. .HasMaxLength(450)
  462. .HasColumnType("nvarchar(450)")
  463. .HasColumnOrder(8);
  464. b.Property<bool>("IsDeleted")
  465. .HasColumnType("bit")
  466. .HasColumnOrder(7);
  467. b.Property<string>("NameAr")
  468. .IsRequired()
  469. .HasMaxLength(250)
  470. .HasColumnType("nvarchar(250)");
  471. b.Property<string>("NameEn")
  472. .IsRequired()
  473. .HasMaxLength(250)
  474. .HasColumnType("nvarchar(250)");
  475. b.Property<DateTime?>("UpdateDate")
  476. .HasColumnType("datetime2")
  477. .HasColumnOrder(4);
  478. b.Property<string>("UpdateUser")
  479. .HasMaxLength(450)
  480. .HasColumnType("nvarchar(450)")
  481. .HasColumnOrder(2);
  482. b.HasKey("Id");
  483. b.ToTable("Teams");
  484. });
  485. modelBuilder.Entity("MTWorkHR.Core.Entities.TeamLog", b =>
  486. {
  487. b.Property<long>("Id")
  488. .ValueGeneratedOnAdd()
  489. .HasColumnType("bigint")
  490. .HasColumnOrder(0);
  491. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  492. b.Property<string>("Channel")
  493. .HasColumnType("nvarchar(max)");
  494. b.Property<DateTime>("CreateDate")
  495. .HasColumnType("datetime2");
  496. b.Property<string>("CreateUser")
  497. .IsRequired()
  498. .HasColumnType("nvarchar(max)");
  499. b.Property<string>("ErrorCode")
  500. .IsRequired()
  501. .HasColumnType("nvarchar(max)");
  502. b.Property<string>("ErrorDescription")
  503. .IsRequired()
  504. .HasColumnType("nvarchar(max)");
  505. b.Property<string>("InnerException")
  506. .HasColumnType("nvarchar(max)");
  507. b.Property<string>("Input")
  508. .HasColumnType("nvarchar(max)");
  509. b.Property<string>("Method")
  510. .IsRequired()
  511. .HasColumnType("nvarchar(max)");
  512. b.Property<string>("QueryString")
  513. .HasColumnType("nvarchar(max)");
  514. b.Property<string>("ServerIP")
  515. .HasColumnType("nvarchar(max)");
  516. b.Property<string>("ServiceResponseTimeInSeconds")
  517. .IsRequired()
  518. .HasColumnType("nvarchar(max)");
  519. b.Property<string>("UserIP")
  520. .HasColumnType("nvarchar(max)");
  521. b.Property<string>("userAgent")
  522. .HasColumnType("nvarchar(max)");
  523. b.HasKey("Id");
  524. b.ToTable("TeamLogs");
  525. });
  526. modelBuilder.Entity("MTWorkHR.Core.Entities.TeamUser", b =>
  527. {
  528. b.Property<long>("Id")
  529. .ValueGeneratedOnAdd()
  530. .HasColumnType("bigint")
  531. .HasColumnOrder(0);
  532. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  533. b.Property<string>("AssignedUserId")
  534. .IsRequired()
  535. .HasColumnType("nvarchar(max)");
  536. b.Property<DateTime>("CreateDate")
  537. .HasColumnType("datetime2")
  538. .HasColumnOrder(3);
  539. b.Property<string>("CreateUser")
  540. .HasMaxLength(450)
  541. .HasColumnType("nvarchar(450)")
  542. .HasColumnOrder(1);
  543. b.Property<long>("TeamId")
  544. .HasColumnType("bigint");
  545. b.Property<DateTime?>("UpdateDate")
  546. .HasColumnType("datetime2")
  547. .HasColumnOrder(4);
  548. b.Property<string>("UpdateUser")
  549. .HasMaxLength(450)
  550. .HasColumnType("nvarchar(450)")
  551. .HasColumnOrder(2);
  552. b.HasKey("Id");
  553. b.HasIndex("TeamId");
  554. b.ToTable("TeamUser");
  555. });
  556. modelBuilder.Entity("MTWorkHR.Core.Entities.UserLog", b =>
  557. {
  558. b.Property<long>("Id")
  559. .ValueGeneratedOnAdd()
  560. .HasColumnType("bigint")
  561. .HasColumnOrder(0);
  562. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  563. b.Property<string>("Channel")
  564. .HasColumnType("nvarchar(max)");
  565. b.Property<DateTime>("CreateDate")
  566. .HasColumnType("datetime2");
  567. b.Property<string>("CreateUser")
  568. .IsRequired()
  569. .HasColumnType("nvarchar(max)");
  570. b.Property<string>("ErrorCode")
  571. .IsRequired()
  572. .HasColumnType("nvarchar(max)");
  573. b.Property<string>("ErrorDescription")
  574. .IsRequired()
  575. .HasColumnType("nvarchar(max)");
  576. b.Property<string>("InnerException")
  577. .HasColumnType("nvarchar(max)");
  578. b.Property<string>("Input")
  579. .HasColumnType("nvarchar(max)");
  580. b.Property<string>("Method")
  581. .IsRequired()
  582. .HasColumnType("nvarchar(max)");
  583. b.Property<string>("QueryString")
  584. .HasColumnType("nvarchar(max)");
  585. b.Property<string>("ServerIP")
  586. .HasColumnType("nvarchar(max)");
  587. b.Property<string>("ServiceResponseTimeInSeconds")
  588. .IsRequired()
  589. .HasColumnType("nvarchar(max)");
  590. b.Property<string>("UserIP")
  591. .HasColumnType("nvarchar(max)");
  592. b.Property<string>("userAgent")
  593. .HasColumnType("nvarchar(max)");
  594. b.HasKey("Id");
  595. b.ToTable("UserLogs");
  596. });
  597. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  598. {
  599. b.Property<long>("Id")
  600. .ValueGeneratedOnAdd()
  601. .HasColumnType("bigint")
  602. .HasColumnOrder(0);
  603. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  604. b.Property<long>("AssignedUserId")
  605. .HasColumnType("bigint");
  606. b.Property<DateTime>("CreateDate")
  607. .HasColumnType("datetime2")
  608. .HasColumnOrder(3);
  609. b.Property<string>("CreateUser")
  610. .HasMaxLength(450)
  611. .HasColumnType("nvarchar(450)")
  612. .HasColumnOrder(1);
  613. b.Property<string>("DeleteUserId")
  614. .HasMaxLength(450)
  615. .HasColumnType("nvarchar(450)")
  616. .HasColumnOrder(8);
  617. b.Property<string>("Description")
  618. .IsRequired()
  619. .HasColumnType("nvarchar(max)");
  620. b.Property<DateTime>("DueDate")
  621. .HasColumnType("datetime2");
  622. b.Property<bool>("IsDeleted")
  623. .HasColumnType("bit")
  624. .HasColumnOrder(7);
  625. b.Property<int>("Priority")
  626. .HasColumnType("int");
  627. b.Property<long>("ProjectId")
  628. .HasColumnType("bigint");
  629. b.Property<long>("StatusId")
  630. .HasColumnType("bigint");
  631. b.Property<string>("Title")
  632. .IsRequired()
  633. .HasColumnType("nvarchar(max)");
  634. b.Property<DateTime?>("UpdateDate")
  635. .HasColumnType("datetime2")
  636. .HasColumnOrder(4);
  637. b.Property<string>("UpdateUser")
  638. .HasMaxLength(450)
  639. .HasColumnType("nvarchar(450)")
  640. .HasColumnOrder(2);
  641. b.HasKey("Id");
  642. b.HasIndex("ProjectId");
  643. b.HasIndex("StatusId");
  644. b.ToTable("UserTasks");
  645. });
  646. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskAttachment", b =>
  647. {
  648. b.Property<long>("Id")
  649. .ValueGeneratedOnAdd()
  650. .HasColumnType("bigint")
  651. .HasColumnOrder(0);
  652. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  653. b.Property<long>("AttachmentTypeId")
  654. .HasColumnType("bigint");
  655. b.Property<DateTime>("CreateDate")
  656. .HasColumnType("datetime2")
  657. .HasColumnOrder(3);
  658. b.Property<string>("CreateUser")
  659. .HasMaxLength(450)
  660. .HasColumnType("nvarchar(450)")
  661. .HasColumnOrder(1);
  662. b.Property<string>("FileName")
  663. .HasMaxLength(250)
  664. .HasColumnType("nvarchar(250)");
  665. b.Property<string>("OriginalName")
  666. .IsRequired()
  667. .HasMaxLength(250)
  668. .HasColumnType("nvarchar(250)");
  669. b.Property<long>("TaskId")
  670. .HasColumnType("bigint");
  671. b.Property<DateTime?>("UpdateDate")
  672. .HasColumnType("datetime2")
  673. .HasColumnOrder(4);
  674. b.Property<string>("UpdateUser")
  675. .HasMaxLength(450)
  676. .HasColumnType("nvarchar(450)")
  677. .HasColumnOrder(2);
  678. b.HasKey("Id");
  679. b.HasIndex("AttachmentTypeId");
  680. b.HasIndex("TaskId");
  681. b.ToTable("UserTaskAttachments");
  682. });
  683. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskHistory", 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>("AssignedToUserId")
  691. .HasColumnType("bigint");
  692. b.Property<string>("Comment")
  693. .HasMaxLength(500)
  694. .HasColumnType("nvarchar(500)");
  695. b.Property<DateTime>("CreateDate")
  696. .HasColumnType("datetime2")
  697. .HasColumnOrder(3);
  698. b.Property<string>("CreateUser")
  699. .HasMaxLength(450)
  700. .HasColumnType("nvarchar(450)")
  701. .HasColumnOrder(1);
  702. b.Property<long>("CurrentStatusId")
  703. .HasColumnType("bigint");
  704. b.Property<bool>("IsDeleted")
  705. .HasColumnType("bit");
  706. b.Property<long>("TaskId")
  707. .HasColumnType("bigint");
  708. b.Property<DateTime?>("UpdateDate")
  709. .HasColumnType("datetime2")
  710. .HasColumnOrder(4);
  711. b.Property<string>("UpdateUser")
  712. .HasMaxLength(450)
  713. .HasColumnType("nvarchar(450)")
  714. .HasColumnOrder(2);
  715. b.Property<long?>("UserTaskId")
  716. .HasColumnType("bigint");
  717. b.HasKey("Id");
  718. b.HasIndex("CurrentStatusId");
  719. b.HasIndex("UserTaskId");
  720. b.ToTable("UserTaskHistories");
  721. });
  722. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskLog", b =>
  723. {
  724. b.Property<long>("Id")
  725. .ValueGeneratedOnAdd()
  726. .HasColumnType("bigint")
  727. .HasColumnOrder(0);
  728. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  729. b.Property<string>("Channel")
  730. .HasColumnType("nvarchar(max)");
  731. b.Property<DateTime>("CreateDate")
  732. .HasColumnType("datetime2");
  733. b.Property<string>("CreateUser")
  734. .IsRequired()
  735. .HasColumnType("nvarchar(max)");
  736. b.Property<string>("ErrorCode")
  737. .IsRequired()
  738. .HasColumnType("nvarchar(max)");
  739. b.Property<string>("ErrorDescription")
  740. .IsRequired()
  741. .HasColumnType("nvarchar(max)");
  742. b.Property<string>("InnerException")
  743. .HasColumnType("nvarchar(max)");
  744. b.Property<string>("Input")
  745. .HasColumnType("nvarchar(max)");
  746. b.Property<string>("Method")
  747. .IsRequired()
  748. .HasColumnType("nvarchar(max)");
  749. b.Property<string>("QueryString")
  750. .HasColumnType("nvarchar(max)");
  751. b.Property<string>("ServerIP")
  752. .HasColumnType("nvarchar(max)");
  753. b.Property<string>("ServiceResponseTimeInSeconds")
  754. .IsRequired()
  755. .HasColumnType("nvarchar(max)");
  756. b.Property<string>("UserIP")
  757. .HasColumnType("nvarchar(max)");
  758. b.Property<string>("userAgent")
  759. .HasColumnType("nvarchar(max)");
  760. b.HasKey("Id");
  761. b.ToTable("UserTaskLogs");
  762. });
  763. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskStatus", b =>
  764. {
  765. b.Property<long>("Id")
  766. .ValueGeneratedOnAdd()
  767. .HasColumnType("bigint")
  768. .HasColumnOrder(0);
  769. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  770. b.Property<string>("NameAr")
  771. .IsRequired()
  772. .HasMaxLength(250)
  773. .HasColumnType("nvarchar(250)");
  774. b.Property<string>("NameEn")
  775. .IsRequired()
  776. .HasMaxLength(250)
  777. .HasColumnType("nvarchar(250)");
  778. b.HasKey("Id");
  779. b.ToTable("UserTaskStatuses");
  780. });
  781. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationRole", b =>
  782. {
  783. b.Property<string>("Id")
  784. .HasColumnType("nvarchar(450)");
  785. b.Property<string>("ConcurrencyStamp")
  786. .IsConcurrencyToken()
  787. .HasColumnType("nvarchar(max)");
  788. b.Property<DateTime>("CreateDate")
  789. .HasColumnType("datetime2");
  790. b.Property<string>("CreateUser")
  791. .HasColumnType("nvarchar(max)");
  792. b.Property<string>("DeleteUserId")
  793. .HasColumnType("nvarchar(max)");
  794. b.Property<bool?>("IsAdmin")
  795. .HasColumnType("bit");
  796. b.Property<bool>("IsDeleted")
  797. .HasColumnType("bit");
  798. b.Property<string>("Name")
  799. .HasMaxLength(256)
  800. .HasColumnType("nvarchar(256)");
  801. b.Property<string>("NormalizedName")
  802. .HasMaxLength(256)
  803. .HasColumnType("nvarchar(256)");
  804. b.Property<DateTime?>("UpdateDate")
  805. .HasColumnType("datetime2");
  806. b.Property<string>("UpdateUser")
  807. .HasColumnType("nvarchar(max)");
  808. b.HasKey("Id");
  809. b.HasIndex("NormalizedName")
  810. .IsUnique()
  811. .HasDatabaseName("RoleNameIndex")
  812. .HasFilter("[NormalizedName] IS NOT NULL");
  813. b.ToTable("AspNetRoles", (string)null);
  814. b.HasData(
  815. new
  816. {
  817. Id = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A",
  818. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  819. IsAdmin = true,
  820. IsDeleted = false,
  821. Name = "Admin",
  822. NormalizedName = "ADMIN"
  823. },
  824. new
  825. {
  826. Id = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E",
  827. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  828. IsAdmin = false,
  829. IsDeleted = false,
  830. Name = "Employee",
  831. NormalizedName = "EMPLOYEE"
  832. });
  833. });
  834. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  835. {
  836. b.Property<string>("Id")
  837. .HasColumnType("nvarchar(450)");
  838. b.Property<int>("AccessFailedCount")
  839. .HasColumnType("int");
  840. b.Property<string>("ConcurrencyStamp")
  841. .IsConcurrencyToken()
  842. .HasColumnType("nvarchar(max)");
  843. b.Property<string>("CreateUser")
  844. .HasColumnType("nvarchar(max)");
  845. b.Property<string>("DeleteUserId")
  846. .HasColumnType("nvarchar(max)");
  847. b.Property<string>("Email")
  848. .HasMaxLength(256)
  849. .HasColumnType("nvarchar(256)");
  850. b.Property<bool>("EmailConfirmed")
  851. .HasColumnType("bit");
  852. b.Property<string>("FavoriteName")
  853. .HasColumnType("nvarchar(max)");
  854. b.Property<string>("FirstName")
  855. .IsRequired()
  856. .HasColumnType("nvarchar(max)");
  857. b.Property<decimal?>("IncomeTaxValue")
  858. .HasColumnType("decimal(18,2)");
  859. b.Property<bool>("IsDeleted")
  860. .HasColumnType("bit");
  861. b.Property<bool>("IsStopped")
  862. .HasColumnType("bit");
  863. b.Property<string>("JobTitle")
  864. .HasColumnType("nvarchar(max)");
  865. b.Property<string>("LastName")
  866. .IsRequired()
  867. .HasColumnType("nvarchar(max)");
  868. b.Property<bool>("LockoutEnabled")
  869. .HasColumnType("bit");
  870. b.Property<DateTimeOffset?>("LockoutEnd")
  871. .HasColumnType("datetimeoffset");
  872. b.Property<string>("ManagerId")
  873. .HasColumnType("nvarchar(450)");
  874. b.Property<string>("NormalizedEmail")
  875. .HasMaxLength(256)
  876. .HasColumnType("nvarchar(256)");
  877. b.Property<string>("NormalizedUserName")
  878. .HasMaxLength(256)
  879. .HasColumnType("nvarchar(256)");
  880. b.Property<string>("PassportNumber")
  881. .IsRequired()
  882. .HasColumnType("nvarchar(max)");
  883. b.Property<string>("PasswordHash")
  884. .HasColumnType("nvarchar(max)");
  885. b.Property<string>("PhoneNumber")
  886. .HasColumnType("nvarchar(max)");
  887. b.Property<bool>("PhoneNumberConfirmed")
  888. .HasColumnType("bit");
  889. b.Property<int?>("QualificationId")
  890. .HasColumnType("int");
  891. b.Property<string>("SecurityStamp")
  892. .HasColumnType("nvarchar(max)");
  893. b.Property<decimal?>("TaxNumber")
  894. .HasColumnType("decimal(18,2)");
  895. b.Property<bool>("TwoFactorEnabled")
  896. .HasColumnType("bit");
  897. b.Property<string>("University")
  898. .HasColumnType("nvarchar(max)");
  899. b.Property<string>("UpdateUser")
  900. .HasColumnType("nvarchar(max)");
  901. b.Property<string>("UserName")
  902. .HasMaxLength(256)
  903. .HasColumnType("nvarchar(256)");
  904. b.Property<int>("UserType")
  905. .HasColumnType("int");
  906. b.HasKey("Id");
  907. b.HasIndex("ManagerId");
  908. b.HasIndex("NormalizedEmail")
  909. .HasDatabaseName("EmailIndex");
  910. b.HasIndex("NormalizedUserName")
  911. .IsUnique()
  912. .HasDatabaseName("UserNameIndex")
  913. .HasFilter("[NormalizedUserName] IS NOT NULL");
  914. b.ToTable("AspNetUsers", (string)null);
  915. b.HasData(
  916. new
  917. {
  918. Id = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  919. AccessFailedCount = 0,
  920. ConcurrencyStamp = "7cc87689-9eab-4280-b8e3-1834080783a5",
  921. Email = "a@b.com",
  922. EmailConfirmed = true,
  923. FirstName = "Zinab",
  924. IncomeTaxValue = 1m,
  925. IsDeleted = false,
  926. IsStopped = false,
  927. LastName = "Elgendy",
  928. LockoutEnabled = false,
  929. NormalizedEmail = "A@B.COM",
  930. NormalizedUserName = "ADMIN",
  931. PassportNumber = "1234567",
  932. PasswordHash = "AQAAAAIAAYagAAAAEPg+ASbciPFxtyxQq8Wx5ilBUQ0RbAoITXXkOQm1PzC5BzySX0sn/wUmOjBKPDGV9w==",
  933. PhoneNumber = "1234567890",
  934. PhoneNumberConfirmed = true,
  935. QualificationId = 1,
  936. SecurityStamp = "49bb16c3-4704-4c60-908d-dc8506950acc",
  937. TaxNumber = 111m,
  938. TwoFactorEnabled = false,
  939. UserName = "Admin",
  940. UserType = 1
  941. },
  942. new
  943. {
  944. Id = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  945. AccessFailedCount = 0,
  946. ConcurrencyStamp = "4af7b4cf-802a-455b-b598-997e167745b3",
  947. Email = "ali@b.com",
  948. EmailConfirmed = true,
  949. FirstName = "Ali",
  950. IncomeTaxValue = 100m,
  951. IsDeleted = false,
  952. IsStopped = false,
  953. LastName = "Farok",
  954. LockoutEnabled = false,
  955. NormalizedEmail = "ALI@B.COM",
  956. NormalizedUserName = "ALI",
  957. PassportNumber = "7654321001010",
  958. PasswordHash = "AQAAAAIAAYagAAAAEI3QJkcZjCH4Y8Db4rEgL8Mmll5oCvYcWiXZjQSN9bGW4SMcjHe3ZPMnkN/l9DmJeQ==",
  959. PhoneNumber = "1234567890",
  960. PhoneNumberConfirmed = true,
  961. QualificationId = 1,
  962. SecurityStamp = "62549056-1b9d-46d4-84f8-adea3e4d8b68",
  963. TaxNumber = 222m,
  964. TwoFactorEnabled = false,
  965. UserName = "ali",
  966. UserType = 1
  967. });
  968. });
  969. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
  970. {
  971. b.Property<long>("Id")
  972. .ValueGeneratedOnAdd()
  973. .HasColumnType("bigint")
  974. .HasColumnOrder(0);
  975. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  976. b.Property<long>("PermissionId")
  977. .HasColumnType("bigint");
  978. b.Property<string>("PermissionName")
  979. .IsRequired()
  980. .HasColumnType("nvarchar(max)");
  981. b.Property<string>("RoleId")
  982. .IsRequired()
  983. .HasColumnType("nvarchar(450)");
  984. b.HasKey("Id");
  985. b.HasIndex("PermissionId");
  986. b.HasIndex("RoleId");
  987. b.ToTable("RolePermissions");
  988. });
  989. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAddress", b =>
  990. {
  991. b.Property<long>("Id")
  992. .ValueGeneratedOnAdd()
  993. .HasColumnType("bigint")
  994. .HasColumnOrder(0);
  995. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  996. b.Property<string>("AddressDesc")
  997. .IsRequired()
  998. .HasColumnType("nvarchar(max)");
  999. b.Property<string>("City")
  1000. .IsRequired()
  1001. .HasColumnType("nvarchar(max)");
  1002. b.Property<int>("CountryId")
  1003. .HasColumnType("int");
  1004. b.Property<DateTime>("CreateDate")
  1005. .HasColumnType("datetime2")
  1006. .HasColumnOrder(3);
  1007. b.Property<string>("CreateUser")
  1008. .HasMaxLength(450)
  1009. .HasColumnType("nvarchar(450)")
  1010. .HasColumnOrder(1);
  1011. b.Property<string>("PostalCode")
  1012. .IsRequired()
  1013. .HasColumnType("nvarchar(max)");
  1014. b.Property<DateTime?>("UpdateDate")
  1015. .HasColumnType("datetime2")
  1016. .HasColumnOrder(4);
  1017. b.Property<string>("UpdateUser")
  1018. .HasMaxLength(450)
  1019. .HasColumnType("nvarchar(450)")
  1020. .HasColumnOrder(2);
  1021. b.Property<string>("UserId")
  1022. .IsRequired()
  1023. .HasColumnType("nvarchar(450)");
  1024. b.HasKey("Id");
  1025. b.HasIndex("UserId")
  1026. .IsUnique();
  1027. b.ToTable("UserAddress");
  1028. });
  1029. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAttachment", b =>
  1030. {
  1031. b.Property<long>("Id")
  1032. .ValueGeneratedOnAdd()
  1033. .HasColumnType("bigint")
  1034. .HasColumnOrder(0);
  1035. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1036. b.Property<long>("AttachmentTypeId")
  1037. .HasColumnType("bigint");
  1038. b.Property<DateTime>("CreateDate")
  1039. .HasColumnType("datetime2")
  1040. .HasColumnOrder(3);
  1041. b.Property<string>("CreateUser")
  1042. .HasMaxLength(450)
  1043. .HasColumnType("nvarchar(450)")
  1044. .HasColumnOrder(1);
  1045. b.Property<string>("FileName")
  1046. .IsRequired()
  1047. .HasMaxLength(250)
  1048. .HasColumnType("nvarchar(250)");
  1049. b.Property<string>("OriginalName")
  1050. .IsRequired()
  1051. .HasMaxLength(250)
  1052. .HasColumnType("nvarchar(250)");
  1053. b.Property<DateTime?>("UpdateDate")
  1054. .HasColumnType("datetime2")
  1055. .HasColumnOrder(4);
  1056. b.Property<string>("UpdateUser")
  1057. .HasMaxLength(450)
  1058. .HasColumnType("nvarchar(450)")
  1059. .HasColumnOrder(2);
  1060. b.Property<string>("UserId")
  1061. .IsRequired()
  1062. .HasColumnType("nvarchar(450)");
  1063. b.HasKey("Id");
  1064. b.HasIndex("AttachmentTypeId");
  1065. b.HasIndex("UserId");
  1066. b.ToTable("UserAttachments");
  1067. });
  1068. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  1069. {
  1070. b.Property<int>("Id")
  1071. .ValueGeneratedOnAdd()
  1072. .HasColumnType("int");
  1073. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  1074. b.Property<string>("ClaimType")
  1075. .HasColumnType("nvarchar(max)");
  1076. b.Property<string>("ClaimValue")
  1077. .HasColumnType("nvarchar(max)");
  1078. b.Property<string>("RoleId")
  1079. .IsRequired()
  1080. .HasColumnType("nvarchar(450)");
  1081. b.HasKey("Id");
  1082. b.HasIndex("RoleId");
  1083. b.ToTable("AspNetRoleClaims", (string)null);
  1084. });
  1085. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  1086. {
  1087. b.Property<int>("Id")
  1088. .ValueGeneratedOnAdd()
  1089. .HasColumnType("int");
  1090. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  1091. b.Property<string>("ClaimType")
  1092. .HasColumnType("nvarchar(max)");
  1093. b.Property<string>("ClaimValue")
  1094. .HasColumnType("nvarchar(max)");
  1095. b.Property<string>("UserId")
  1096. .IsRequired()
  1097. .HasColumnType("nvarchar(450)");
  1098. b.HasKey("Id");
  1099. b.HasIndex("UserId");
  1100. b.ToTable("AspNetUserClaims", (string)null);
  1101. });
  1102. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  1103. {
  1104. b.Property<string>("LoginProvider")
  1105. .HasColumnType("nvarchar(450)");
  1106. b.Property<string>("ProviderKey")
  1107. .HasColumnType("nvarchar(450)");
  1108. b.Property<string>("ProviderDisplayName")
  1109. .HasColumnType("nvarchar(max)");
  1110. b.Property<string>("UserId")
  1111. .IsRequired()
  1112. .HasColumnType("nvarchar(450)");
  1113. b.HasKey("LoginProvider", "ProviderKey");
  1114. b.HasIndex("UserId");
  1115. b.ToTable("AspNetUserLogins", (string)null);
  1116. });
  1117. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  1118. {
  1119. b.Property<string>("UserId")
  1120. .HasColumnType("nvarchar(450)");
  1121. b.Property<string>("RoleId")
  1122. .HasColumnType("nvarchar(450)");
  1123. b.HasKey("UserId", "RoleId");
  1124. b.HasIndex("RoleId");
  1125. b.ToTable("AspNetUserRoles", (string)null);
  1126. b.HasData(
  1127. new
  1128. {
  1129. UserId = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  1130. RoleId = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A"
  1131. },
  1132. new
  1133. {
  1134. UserId = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  1135. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  1136. });
  1137. });
  1138. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  1139. {
  1140. b.Property<string>("UserId")
  1141. .HasColumnType("nvarchar(450)");
  1142. b.Property<string>("LoginProvider")
  1143. .HasColumnType("nvarchar(450)");
  1144. b.Property<string>("Name")
  1145. .HasColumnType("nvarchar(450)");
  1146. b.Property<string>("Value")
  1147. .HasColumnType("nvarchar(max)");
  1148. b.HasKey("UserId", "LoginProvider", "Name");
  1149. b.ToTable("AspNetUserTokens", (string)null);
  1150. });
  1151. modelBuilder.Entity("ApplicationRoleApplicationUser", b =>
  1152. {
  1153. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  1154. .WithMany()
  1155. .HasForeignKey("UserRolesId")
  1156. .OnDelete(DeleteBehavior.Cascade)
  1157. .IsRequired();
  1158. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  1159. .WithMany()
  1160. .HasForeignKey("UsersId")
  1161. .OnDelete(DeleteBehavior.Cascade)
  1162. .IsRequired();
  1163. });
  1164. modelBuilder.Entity("MTWorkHR.Core.Entities.MeetingUser", b =>
  1165. {
  1166. b.HasOne("MTWorkHR.Core.Entities.Meeting", "Meeting")
  1167. .WithMany("MeetingUsers")
  1168. .HasForeignKey("MeetingId")
  1169. .OnDelete(DeleteBehavior.Cascade)
  1170. .IsRequired();
  1171. b.Navigation("Meeting");
  1172. });
  1173. modelBuilder.Entity("MTWorkHR.Core.Entities.TeamUser", b =>
  1174. {
  1175. b.HasOne("MTWorkHR.Core.Entities.Team", "Team")
  1176. .WithMany("TeamUsers")
  1177. .HasForeignKey("TeamId")
  1178. .OnDelete(DeleteBehavior.Cascade)
  1179. .IsRequired();
  1180. b.Navigation("Team");
  1181. });
  1182. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  1183. {
  1184. b.HasOne("MTWorkHR.Core.Entities.Project", "Project")
  1185. .WithMany()
  1186. .HasForeignKey("ProjectId")
  1187. .OnDelete(DeleteBehavior.Cascade)
  1188. .IsRequired();
  1189. b.HasOne("MTWorkHR.Core.Entities.UserTaskStatus", "TaskStatus")
  1190. .WithMany()
  1191. .HasForeignKey("StatusId")
  1192. .OnDelete(DeleteBehavior.Cascade)
  1193. .IsRequired();
  1194. b.Navigation("Project");
  1195. b.Navigation("TaskStatus");
  1196. });
  1197. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskAttachment", b =>
  1198. {
  1199. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  1200. .WithMany()
  1201. .HasForeignKey("AttachmentTypeId")
  1202. .OnDelete(DeleteBehavior.Cascade)
  1203. .IsRequired();
  1204. b.HasOne("MTWorkHR.Core.Entities.UserTask", "UserTask")
  1205. .WithMany("TaskAttachments")
  1206. .HasForeignKey("TaskId")
  1207. .OnDelete(DeleteBehavior.Cascade)
  1208. .IsRequired();
  1209. b.Navigation("AttachmentType");
  1210. b.Navigation("UserTask");
  1211. });
  1212. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskHistory", b =>
  1213. {
  1214. b.HasOne("MTWorkHR.Core.Entities.UserTaskStatus", "TaskStatus")
  1215. .WithMany()
  1216. .HasForeignKey("CurrentStatusId")
  1217. .OnDelete(DeleteBehavior.Cascade)
  1218. .IsRequired();
  1219. b.HasOne("MTWorkHR.Core.Entities.UserTask", null)
  1220. .WithMany("UserTaskHistories")
  1221. .HasForeignKey("UserTaskId");
  1222. b.Navigation("TaskStatus");
  1223. });
  1224. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  1225. {
  1226. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "Manager")
  1227. .WithMany()
  1228. .HasForeignKey("ManagerId");
  1229. b.Navigation("Manager");
  1230. });
  1231. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
  1232. {
  1233. b.HasOne("MTWorkHR.Core.Entities.Permission", "Permission")
  1234. .WithMany()
  1235. .HasForeignKey("PermissionId")
  1236. .OnDelete(DeleteBehavior.Cascade)
  1237. .IsRequired();
  1238. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", "Role")
  1239. .WithMany("RolePermissions")
  1240. .HasForeignKey("RoleId")
  1241. .OnDelete(DeleteBehavior.Cascade)
  1242. .IsRequired();
  1243. b.Navigation("Permission");
  1244. b.Navigation("Role");
  1245. });
  1246. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAddress", b =>
  1247. {
  1248. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "User")
  1249. .WithOne("UserAddress")
  1250. .HasForeignKey("MTWorkHR.Infrastructure.Entities.UserAddress", "UserId")
  1251. .OnDelete(DeleteBehavior.Cascade)
  1252. .IsRequired();
  1253. b.Navigation("User");
  1254. });
  1255. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAttachment", b =>
  1256. {
  1257. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  1258. .WithMany()
  1259. .HasForeignKey("AttachmentTypeId")
  1260. .OnDelete(DeleteBehavior.Cascade)
  1261. .IsRequired();
  1262. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "User")
  1263. .WithMany("UserAttachments")
  1264. .HasForeignKey("UserId")
  1265. .OnDelete(DeleteBehavior.Cascade)
  1266. .IsRequired();
  1267. b.Navigation("AttachmentType");
  1268. b.Navigation("User");
  1269. });
  1270. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  1271. {
  1272. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  1273. .WithMany()
  1274. .HasForeignKey("RoleId")
  1275. .OnDelete(DeleteBehavior.Cascade)
  1276. .IsRequired();
  1277. });
  1278. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  1279. {
  1280. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  1281. .WithMany()
  1282. .HasForeignKey("UserId")
  1283. .OnDelete(DeleteBehavior.Cascade)
  1284. .IsRequired();
  1285. });
  1286. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  1287. {
  1288. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  1289. .WithMany()
  1290. .HasForeignKey("UserId")
  1291. .OnDelete(DeleteBehavior.Cascade)
  1292. .IsRequired();
  1293. });
  1294. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  1295. {
  1296. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  1297. .WithMany()
  1298. .HasForeignKey("RoleId")
  1299. .OnDelete(DeleteBehavior.Cascade)
  1300. .IsRequired();
  1301. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  1302. .WithMany()
  1303. .HasForeignKey("UserId")
  1304. .OnDelete(DeleteBehavior.Cascade)
  1305. .IsRequired();
  1306. });
  1307. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  1308. {
  1309. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  1310. .WithMany()
  1311. .HasForeignKey("UserId")
  1312. .OnDelete(DeleteBehavior.Cascade)
  1313. .IsRequired();
  1314. });
  1315. modelBuilder.Entity("MTWorkHR.Core.Entities.Meeting", b =>
  1316. {
  1317. b.Navigation("MeetingUsers");
  1318. });
  1319. modelBuilder.Entity("MTWorkHR.Core.Entities.Team", b =>
  1320. {
  1321. b.Navigation("TeamUsers");
  1322. });
  1323. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  1324. {
  1325. b.Navigation("TaskAttachments");
  1326. b.Navigation("UserTaskHistories");
  1327. });
  1328. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationRole", b =>
  1329. {
  1330. b.Navigation("RolePermissions");
  1331. });
  1332. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  1333. {
  1334. b.Navigation("UserAddress")
  1335. .IsRequired();
  1336. b.Navigation("UserAttachments");
  1337. });
  1338. #pragma warning restore 612, 618
  1339. }
  1340. }
  1341. }