20240611104022_altrTeamUser.Designer.cs 122 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329
  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("20240611104022_altrTeamUser")]
  14. partial class altrTeamUser
  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.Attendance", 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<DateTime>("AttendanceDate")
  42. .HasColumnType("datetime2");
  43. b.Property<DateTime?>("CheckInTime")
  44. .HasColumnType("datetime2");
  45. b.Property<DateTime?>("CheckOutTime")
  46. .HasColumnType("datetime2");
  47. b.Property<long>("CompanyId")
  48. .HasColumnType("bigint");
  49. b.Property<DateTime>("CreateDate")
  50. .HasColumnType("datetime2")
  51. .HasColumnOrder(3);
  52. b.Property<string>("CreateUser")
  53. .HasMaxLength(450)
  54. .HasColumnType("nvarchar(450)")
  55. .HasColumnOrder(1);
  56. b.Property<string>("DeleteUserId")
  57. .HasMaxLength(450)
  58. .HasColumnType("nvarchar(450)")
  59. .HasColumnOrder(8);
  60. b.Property<bool>("IsDeleted")
  61. .HasColumnType("bit")
  62. .HasColumnOrder(7);
  63. b.Property<string>("LeaveReason")
  64. .HasMaxLength(250)
  65. .HasColumnType("nvarchar(250)");
  66. b.Property<int>("LeaveType")
  67. .HasColumnType("int");
  68. b.Property<DateTime?>("UpdateDate")
  69. .HasColumnType("datetime2")
  70. .HasColumnOrder(4);
  71. b.Property<string>("UpdateUser")
  72. .HasMaxLength(450)
  73. .HasColumnType("nvarchar(450)")
  74. .HasColumnOrder(2);
  75. b.Property<string>("UserId")
  76. .IsRequired()
  77. .HasColumnType("nvarchar(max)");
  78. b.Property<string>("UserName")
  79. .HasColumnType("nvarchar(max)");
  80. b.HasKey("Id");
  81. b.HasIndex("CompanyId");
  82. b.ToTable("Attendances");
  83. });
  84. modelBuilder.Entity("MTWorkHR.Core.Entities.AttendanceLog", b =>
  85. {
  86. b.Property<long>("Id")
  87. .ValueGeneratedOnAdd()
  88. .HasColumnType("bigint")
  89. .HasColumnOrder(0);
  90. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  91. b.Property<string>("Channel")
  92. .HasColumnType("nvarchar(max)");
  93. b.Property<DateTime>("CreateDate")
  94. .HasColumnType("datetime2");
  95. b.Property<string>("CreateUser")
  96. .IsRequired()
  97. .HasColumnType("nvarchar(max)");
  98. b.Property<string>("ErrorCode")
  99. .IsRequired()
  100. .HasColumnType("nvarchar(max)");
  101. b.Property<string>("ErrorDescription")
  102. .IsRequired()
  103. .HasColumnType("nvarchar(max)");
  104. b.Property<string>("InnerException")
  105. .HasColumnType("nvarchar(max)");
  106. b.Property<string>("Input")
  107. .HasColumnType("nvarchar(max)");
  108. b.Property<string>("Method")
  109. .IsRequired()
  110. .HasColumnType("nvarchar(max)");
  111. b.Property<string>("QueryString")
  112. .HasColumnType("nvarchar(max)");
  113. b.Property<string>("ServerIP")
  114. .HasColumnType("nvarchar(max)");
  115. b.Property<string>("ServiceResponseTimeInSeconds")
  116. .IsRequired()
  117. .HasColumnType("nvarchar(max)");
  118. b.Property<string>("UserIP")
  119. .HasColumnType("nvarchar(max)");
  120. b.Property<string>("userAgent")
  121. .HasColumnType("nvarchar(max)");
  122. b.HasKey("Id");
  123. b.ToTable("AttendanceLogs");
  124. });
  125. modelBuilder.Entity("MTWorkHR.Core.Entities.AuthLog", b =>
  126. {
  127. b.Property<long>("Id")
  128. .ValueGeneratedOnAdd()
  129. .HasColumnType("bigint")
  130. .HasColumnOrder(0);
  131. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  132. b.Property<string>("Channel")
  133. .HasColumnType("nvarchar(max)");
  134. b.Property<DateTime>("CreateDate")
  135. .HasColumnType("datetime2");
  136. b.Property<string>("CreateUser")
  137. .IsRequired()
  138. .HasColumnType("nvarchar(max)");
  139. b.Property<string>("ErrorCode")
  140. .IsRequired()
  141. .HasColumnType("nvarchar(max)");
  142. b.Property<string>("ErrorDescription")
  143. .IsRequired()
  144. .HasColumnType("nvarchar(max)");
  145. b.Property<string>("InnerException")
  146. .HasColumnType("nvarchar(max)");
  147. b.Property<string>("Input")
  148. .HasColumnType("nvarchar(max)");
  149. b.Property<string>("Method")
  150. .IsRequired()
  151. .HasColumnType("nvarchar(max)");
  152. b.Property<string>("QueryString")
  153. .HasColumnType("nvarchar(max)");
  154. b.Property<string>("ServerIP")
  155. .HasColumnType("nvarchar(max)");
  156. b.Property<string>("ServiceResponseTimeInSeconds")
  157. .IsRequired()
  158. .HasColumnType("nvarchar(max)");
  159. b.Property<string>("UserIP")
  160. .HasColumnType("nvarchar(max)");
  161. b.Property<string>("userAgent")
  162. .HasColumnType("nvarchar(max)");
  163. b.HasKey("Id");
  164. b.ToTable("AuthLogs");
  165. });
  166. modelBuilder.Entity("MTWorkHR.Core.Entities.Base.AttachmentType", b =>
  167. {
  168. b.Property<long>("Id")
  169. .ValueGeneratedOnAdd()
  170. .HasColumnType("bigint")
  171. .HasColumnOrder(0);
  172. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  173. b.Property<bool>("IsRequired")
  174. .HasColumnType("bit");
  175. b.Property<string>("NameAr")
  176. .IsRequired()
  177. .HasMaxLength(250)
  178. .HasColumnType("nvarchar(250)");
  179. b.Property<string>("NameEn")
  180. .IsRequired()
  181. .HasMaxLength(250)
  182. .HasColumnType("nvarchar(250)");
  183. b.HasKey("Id");
  184. b.ToTable("AttachmentTypes");
  185. b.HasData(
  186. new
  187. {
  188. Id = 1L,
  189. IsRequired = false,
  190. NameAr = "السيرة الذاتية",
  191. NameEn = "CV"
  192. },
  193. new
  194. {
  195. Id = 2L,
  196. IsRequired = false,
  197. NameAr = "جواز السفر",
  198. NameEn = "Passport"
  199. },
  200. new
  201. {
  202. Id = 3L,
  203. IsRequired = false,
  204. NameAr = "شهادة التعليم",
  205. NameEn = "Education Certification"
  206. },
  207. new
  208. {
  209. Id = 4L,
  210. IsRequired = false,
  211. NameAr = "شهادة الخبرة",
  212. NameEn = "Experience Certification"
  213. },
  214. new
  215. {
  216. Id = 5L,
  217. IsRequired = false,
  218. NameAr = "شهادة الاحتراف",
  219. NameEn = "Professional Certification"
  220. },
  221. new
  222. {
  223. Id = 6L,
  224. IsRequired = false,
  225. NameAr = "التسجيل التجارى",
  226. NameEn = "Commercial Regestration"
  227. },
  228. new
  229. {
  230. Id = 7L,
  231. IsRequired = false,
  232. NameAr = "البطاقة الضريبية",
  233. NameEn = "Tax Declaration"
  234. },
  235. new
  236. {
  237. Id = 8L,
  238. IsRequired = false,
  239. NameAr = "الهوية",
  240. NameEn = "Identification"
  241. });
  242. });
  243. modelBuilder.Entity("MTWorkHR.Core.Entities.City", b =>
  244. {
  245. b.Property<long>("Id")
  246. .ValueGeneratedOnAdd()
  247. .HasColumnType("bigint")
  248. .HasColumnOrder(0);
  249. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  250. b.Property<string>("Code")
  251. .IsRequired()
  252. .HasColumnType("nvarchar(max)");
  253. b.Property<long>("CountryId")
  254. .HasColumnType("bigint");
  255. b.Property<string>("NameAr")
  256. .IsRequired()
  257. .HasMaxLength(250)
  258. .HasColumnType("nvarchar(250)");
  259. b.Property<string>("NameEn")
  260. .IsRequired()
  261. .HasMaxLength(250)
  262. .HasColumnType("nvarchar(250)");
  263. b.Property<string>("NameFr")
  264. .IsRequired()
  265. .HasColumnType("nvarchar(max)");
  266. b.HasKey("Id");
  267. b.HasIndex("CountryId");
  268. b.ToTable("Cities");
  269. });
  270. modelBuilder.Entity("MTWorkHR.Core.Entities.Company", 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>("CRNumber")
  278. .IsRequired()
  279. .HasColumnType("nvarchar(max)");
  280. b.Property<string>("CompanyName")
  281. .IsRequired()
  282. .HasColumnType("nvarchar(max)");
  283. b.Property<DateTime>("CreateDate")
  284. .HasColumnType("datetime2")
  285. .HasColumnOrder(3);
  286. b.Property<string>("CreateUser")
  287. .HasMaxLength(450)
  288. .HasColumnType("nvarchar(450)")
  289. .HasColumnOrder(1);
  290. b.Property<string>("DeleteUserId")
  291. .HasMaxLength(450)
  292. .HasColumnType("nvarchar(450)")
  293. .HasColumnOrder(8);
  294. b.Property<bool>("IsDeleted")
  295. .HasColumnType("bit")
  296. .HasColumnOrder(7);
  297. b.Property<int>("TaxNumber")
  298. .HasColumnType("int");
  299. b.Property<DateTime?>("UpdateDate")
  300. .HasColumnType("datetime2")
  301. .HasColumnOrder(4);
  302. b.Property<string>("UpdateUser")
  303. .HasMaxLength(450)
  304. .HasColumnType("nvarchar(450)")
  305. .HasColumnOrder(2);
  306. b.Property<string>("UserId")
  307. .IsRequired()
  308. .HasColumnType("nvarchar(max)");
  309. b.HasKey("Id");
  310. b.ToTable("Companies");
  311. });
  312. modelBuilder.Entity("MTWorkHR.Core.Entities.CountryLookup", b =>
  313. {
  314. b.Property<long>("Id")
  315. .ValueGeneratedOnAdd()
  316. .HasColumnType("bigint")
  317. .HasColumnOrder(0);
  318. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  319. b.Property<string>("Code")
  320. .IsRequired()
  321. .HasColumnType("nvarchar(max)");
  322. b.Property<string>("NameAr")
  323. .IsRequired()
  324. .HasMaxLength(250)
  325. .HasColumnType("nvarchar(250)");
  326. b.Property<string>("NameEn")
  327. .IsRequired()
  328. .HasMaxLength(250)
  329. .HasColumnType("nvarchar(250)");
  330. b.Property<string>("NameFr")
  331. .IsRequired()
  332. .HasColumnType("nvarchar(max)");
  333. b.HasKey("Id");
  334. b.ToTable("CountryLookups");
  335. });
  336. modelBuilder.Entity("MTWorkHR.Core.Entities.FileLog", b =>
  337. {
  338. b.Property<long>("Id")
  339. .ValueGeneratedOnAdd()
  340. .HasColumnType("bigint")
  341. .HasColumnOrder(0);
  342. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  343. b.Property<string>("Channel")
  344. .HasColumnType("nvarchar(max)");
  345. b.Property<DateTime>("CreateDate")
  346. .HasColumnType("datetime2");
  347. b.Property<string>("CreateUser")
  348. .IsRequired()
  349. .HasColumnType("nvarchar(max)");
  350. b.Property<string>("ErrorCode")
  351. .IsRequired()
  352. .HasColumnType("nvarchar(max)");
  353. b.Property<string>("ErrorDescription")
  354. .IsRequired()
  355. .HasColumnType("nvarchar(max)");
  356. b.Property<string>("InnerException")
  357. .HasColumnType("nvarchar(max)");
  358. b.Property<string>("Input")
  359. .HasColumnType("nvarchar(max)");
  360. b.Property<string>("Method")
  361. .IsRequired()
  362. .HasColumnType("nvarchar(max)");
  363. b.Property<string>("QueryString")
  364. .HasColumnType("nvarchar(max)");
  365. b.Property<string>("ServerIP")
  366. .HasColumnType("nvarchar(max)");
  367. b.Property<string>("ServiceResponseTimeInSeconds")
  368. .IsRequired()
  369. .HasColumnType("nvarchar(max)");
  370. b.Property<string>("UserIP")
  371. .HasColumnType("nvarchar(max)");
  372. b.Property<string>("userAgent")
  373. .HasColumnType("nvarchar(max)");
  374. b.HasKey("Id");
  375. b.ToTable("FileLogs");
  376. });
  377. modelBuilder.Entity("MTWorkHR.Core.Entities.Industry", b =>
  378. {
  379. b.Property<long>("Id")
  380. .ValueGeneratedOnAdd()
  381. .HasColumnType("bigint")
  382. .HasColumnOrder(0);
  383. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  384. b.Property<string>("NameAr")
  385. .IsRequired()
  386. .HasMaxLength(250)
  387. .HasColumnType("nvarchar(250)");
  388. b.Property<string>("NameEn")
  389. .IsRequired()
  390. .HasMaxLength(250)
  391. .HasColumnType("nvarchar(250)");
  392. b.HasKey("Id");
  393. b.ToTable("Industries");
  394. b.HasData(
  395. new
  396. {
  397. Id = 1L,
  398. NameAr = "صناعة الطيران والفضاء",
  399. NameEn = "Aerospace industry"
  400. },
  401. new
  402. {
  403. Id = 2L,
  404. NameAr = "صناعة الزراعة",
  405. NameEn = "Agricultural industry"
  406. },
  407. new
  408. {
  409. Id = 3L,
  410. NameAr = "صناعة السيارات",
  411. NameEn = "Automotive industry"
  412. },
  413. new
  414. {
  415. Id = 4L,
  416. NameAr = "صناعة المعادن الأساسية",
  417. NameEn = "Basic metal"
  418. },
  419. new
  420. {
  421. Id = 5L,
  422. NameAr = "صناعة الكيماويات",
  423. NameEn = "Chemical industry"
  424. },
  425. new
  426. {
  427. Id = 6L,
  428. NameAr = "صناعة الحواسيب",
  429. NameEn = "Computer industry"
  430. },
  431. new
  432. {
  433. Id = 7L,
  434. NameAr = "صناعة البناء",
  435. NameEn = "Construction industry"
  436. },
  437. new
  438. {
  439. Id = 8L,
  440. NameAr = "صناعة الإبداعية",
  441. NameEn = "Creative industry"
  442. },
  443. new
  444. {
  445. Id = 9L,
  446. NameAr = "صناعة الثقافة",
  447. NameEn = "Cultural industry"
  448. },
  449. new
  450. {
  451. Id = 10L,
  452. NameAr = "صناعة الدفاع",
  453. NameEn = "Defense industry"
  454. },
  455. new
  456. {
  457. Id = 11L,
  458. NameAr = "صناعة التعليم",
  459. NameEn = "Education industry"
  460. },
  461. new
  462. {
  463. Id = 12L,
  464. NameAr = "صناعة الطاقة الكهربائية",
  465. NameEn = "Electric power"
  466. },
  467. new
  468. {
  469. Id = 13L,
  470. NameAr = "صناعة الإلكترونيات",
  471. NameEn = "Electronics industry"
  472. },
  473. new
  474. {
  475. Id = 14L,
  476. NameAr = "صناعة الطاقة",
  477. NameEn = "Energy industry"
  478. },
  479. new
  480. {
  481. Id = 15L,
  482. NameAr = "صناعة الهندسة",
  483. NameEn = "Engineering industry"
  484. },
  485. new
  486. {
  487. Id = 16L,
  488. NameAr = "صناعة الترفيه",
  489. NameEn = "Entertainment industry"
  490. },
  491. new
  492. {
  493. Id = 17L,
  494. NameAr = "صناعة الزراعة",
  495. NameEn = "Farming industry"
  496. },
  497. new
  498. {
  499. Id = 18L,
  500. NameAr = "صناعة الموضة",
  501. NameEn = "Fashion industry"
  502. },
  503. new
  504. {
  505. Id = 19L,
  506. NameAr = "صناعة السينما",
  507. NameEn = "Film industry"
  508. },
  509. new
  510. {
  511. Id = 20L,
  512. NameAr = "صناعة الخدمات المالية",
  513. NameEn = "Financial services"
  514. },
  515. new
  516. {
  517. Id = 21L,
  518. NameAr = "صناعة الصيد",
  519. NameEn = "Fishing industry"
  520. },
  521. new
  522. {
  523. Id = 22L,
  524. NameAr = "صناعة الأغذية",
  525. NameEn = "Food industry"
  526. },
  527. new
  528. {
  529. Id = 23L,
  530. NameAr = "صناعة الغابات",
  531. NameEn = "Forestry industry"
  532. },
  533. new
  534. {
  535. Id = 24L,
  536. NameAr = "صناعة القمار",
  537. NameEn = "Gambling industry"
  538. },
  539. new
  540. {
  541. Id = 25L,
  542. NameAr = "صناعة الغاز",
  543. NameEn = "Gas industry"
  544. },
  545. new
  546. {
  547. Id = 26L,
  548. NameAr = "صناعة البيئة",
  549. NameEn = "Green industry"
  550. },
  551. new
  552. {
  553. Id = 27L,
  554. NameAr = "صناعة الخدمات الصحية",
  555. NameEn = "Health services industry"
  556. },
  557. new
  558. {
  559. Id = 28L,
  560. NameAr = "صناعة الضيافة",
  561. NameEn = "Hospitality industry"
  562. },
  563. new
  564. {
  565. Id = 29L,
  566. NameAr = "صناعة الفنادق",
  567. NameEn = "Hotels industry"
  568. },
  569. new
  570. {
  571. Id = 30L,
  572. NameAr = "صناعة الروبوتات الصناعية",
  573. NameEn = "Industrial robot"
  574. },
  575. new
  576. {
  577. Id = 31L,
  578. NameAr = "صناعة المعلومات",
  579. NameEn = "Information industry"
  580. },
  581. new
  582. {
  583. Id = 32L,
  584. NameAr = "صناعة تكنولوجيا المعلومات",
  585. NameEn = "Information technology"
  586. },
  587. new
  588. {
  589. Id = 33L,
  590. NameAr = "صناعة البنية التحتية",
  591. NameEn = "Infrastructure industry"
  592. },
  593. new
  594. {
  595. Id = 34L,
  596. NameAr = "صناعة التأمين",
  597. NameEn = "Insurance industry"
  598. },
  599. new
  600. {
  601. Id = 35L,
  602. NameAr = "صناعة الترفيه",
  603. NameEn = "Leisure industry"
  604. },
  605. new
  606. {
  607. Id = 36L,
  608. NameAr = "صناعة التكنولوجيا المنخفضة",
  609. NameEn = "Low technology"
  610. },
  611. new
  612. {
  613. Id = 37L,
  614. NameAr = "صناعة التصنيع",
  615. NameEn = "Manufacturing industry"
  616. },
  617. new
  618. {
  619. Id = 38L,
  620. NameAr = "صناعة اللحوم",
  621. NameEn = "Meat industry"
  622. },
  623. new
  624. {
  625. Id = 39L,
  626. NameAr = "صناعة الإعلام",
  627. NameEn = "Media industry"
  628. },
  629. new
  630. {
  631. Id = 40L,
  632. NameAr = "صناعة التجارة",
  633. NameEn = "Merchandising industry"
  634. },
  635. new
  636. {
  637. Id = 41L,
  638. NameAr = "صناعة التعدين",
  639. NameEn = "Mining industry"
  640. },
  641. new
  642. {
  643. Id = 42L,
  644. NameAr = "صناعة الموسيقى",
  645. NameEn = "Music industry"
  646. },
  647. new
  648. {
  649. Id = 43L,
  650. NameAr = "صناعة وسائل الإعلام",
  651. NameEn = "News media"
  652. },
  653. new
  654. {
  655. Id = 44L,
  656. NameAr = "صناعة النفط والغاز",
  657. NameEn = "Oil and gas industry"
  658. },
  659. new
  660. {
  661. Id = 45L,
  662. NameAr = "صناعة الأدوية",
  663. NameEn = "Pharmaceutical industry"
  664. },
  665. new
  666. {
  667. Id = 46L,
  668. NameAr = "صناعة المهنية",
  669. NameEn = "Professional industry"
  670. },
  671. new
  672. {
  673. Id = 47L,
  674. NameAr = "صناعة النشر",
  675. NameEn = "Publishing industry"
  676. },
  677. new
  678. {
  679. Id = 48L,
  680. NameAr = "صناعة الورق واللب",
  681. NameEn = "Pulp and paper industry"
  682. },
  683. new
  684. {
  685. Id = 49L,
  686. NameAr = "صناعة السكك الحديدية",
  687. NameEn = "Railway industry"
  688. },
  689. new
  690. {
  691. Id = 50L,
  692. NameAr = "الانشاءات",
  693. NameEn = "Real estate"
  694. });
  695. });
  696. modelBuilder.Entity("MTWorkHR.Core.Entities.JobTitle", b =>
  697. {
  698. b.Property<long>("Id")
  699. .ValueGeneratedOnAdd()
  700. .HasColumnType("bigint")
  701. .HasColumnOrder(0);
  702. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  703. b.Property<string>("NameAr")
  704. .IsRequired()
  705. .HasMaxLength(250)
  706. .HasColumnType("nvarchar(250)");
  707. b.Property<string>("NameEn")
  708. .IsRequired()
  709. .HasMaxLength(250)
  710. .HasColumnType("nvarchar(250)");
  711. b.HasKey("Id");
  712. b.ToTable("JobTitles");
  713. b.HasData(
  714. new
  715. {
  716. Id = 1L,
  717. NameAr = "مساعد ادارى",
  718. NameEn = "Administrative Assistant"
  719. },
  720. new
  721. {
  722. Id = 2L,
  723. NameAr = "موظف استقبال",
  724. NameEn = "Receptionist"
  725. },
  726. new
  727. {
  728. Id = 3L,
  729. NameAr = "مدير مكتب",
  730. NameEn = "Office Manager"
  731. },
  732. new
  733. {
  734. Id = 4L,
  735. NameAr = "مدقق محتوى",
  736. NameEn = "Auditing Clerk"
  737. },
  738. new
  739. {
  740. Id = 5L,
  741. NameAr = "محاسب",
  742. NameEn = "Bookkeeper"
  743. },
  744. new
  745. {
  746. Id = 6L,
  747. NameAr = "مدير تنفيذى",
  748. NameEn = "Account Executive"
  749. },
  750. new
  751. {
  752. Id = 7L,
  753. NameAr = "مدير فرع",
  754. NameEn = "Branch Manager"
  755. },
  756. new
  757. {
  758. Id = 8L,
  759. NameAr = "مدير",
  760. NameEn = "Business Manager"
  761. },
  762. new
  763. {
  764. Id = 9L,
  765. NameAr = "مسؤول الجودة",
  766. NameEn = "Quality Control Coordinator"
  767. },
  768. new
  769. {
  770. Id = 10L,
  771. NameAr = "مدير ادارى",
  772. NameEn = "Administrative Manager"
  773. },
  774. new
  775. {
  776. Id = 11L,
  777. NameAr = "الرئيس التنفيذي",
  778. NameEn = "Chief Executive Officer"
  779. },
  780. new
  781. {
  782. Id = 12L,
  783. NameAr = "محلل",
  784. NameEn = "Business Analyst"
  785. },
  786. new
  787. {
  788. Id = 13L,
  789. NameAr = "مدير المخاطر",
  790. NameEn = "Risk Manager"
  791. },
  792. new
  793. {
  794. Id = 14L,
  795. NameAr = "موارد بشرية",
  796. NameEn = "Human Resources"
  797. },
  798. new
  799. {
  800. Id = 15L,
  801. NameAr = "مساعد مكتب",
  802. NameEn = "Office Assistant"
  803. },
  804. new
  805. {
  806. Id = 16L,
  807. NameAr = "السكرتارية",
  808. NameEn = "Secretary"
  809. },
  810. new
  811. {
  812. Id = 17L,
  813. NameAr = "موظف مكتب",
  814. NameEn = "Office Clerk"
  815. },
  816. new
  817. {
  818. Id = 18L,
  819. NameAr = "جامع الحسابات",
  820. NameEn = "Account Collector"
  821. },
  822. new
  823. {
  824. Id = 19L,
  825. NameAr = "أخصائي إداري",
  826. NameEn = "Administrative Specialist"
  827. },
  828. new
  829. {
  830. Id = 20L,
  831. NameAr = "مساعد تنفيذي",
  832. NameEn = "Executive Assistant"
  833. },
  834. new
  835. {
  836. Id = 21L,
  837. NameAr = "مسؤل البرنامج",
  838. NameEn = "Program Administrator"
  839. },
  840. new
  841. {
  842. Id = 22L,
  843. NameAr = "مدير البرنامج",
  844. NameEn = "Program Manager"
  845. },
  846. new
  847. {
  848. Id = 23L,
  849. NameAr = "محلل إداري",
  850. NameEn = "Administrative Analyst"
  851. },
  852. new
  853. {
  854. Id = 24L,
  855. NameAr = "مدخل بيانات",
  856. NameEn = "Data Entry"
  857. });
  858. });
  859. modelBuilder.Entity("MTWorkHR.Core.Entities.LeaveType", b =>
  860. {
  861. b.Property<long>("Id")
  862. .ValueGeneratedOnAdd()
  863. .HasColumnType("bigint")
  864. .HasColumnOrder(0);
  865. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  866. b.Property<int>("DefaultDays")
  867. .HasColumnType("int");
  868. b.Property<string>("NameAr")
  869. .IsRequired()
  870. .HasColumnType("nvarchar(max)");
  871. b.Property<string>("NameEn")
  872. .IsRequired()
  873. .HasColumnType("nvarchar(max)");
  874. b.HasKey("Id");
  875. b.ToTable("LeaveTypes");
  876. b.HasData(
  877. new
  878. {
  879. Id = 1L,
  880. DefaultDays = 21,
  881. NameAr = "أجازة سنوية",
  882. NameEn = "Annual Leave"
  883. },
  884. new
  885. {
  886. Id = 2L,
  887. DefaultDays = 15,
  888. NameAr = "أجازة مرضية",
  889. NameEn = "Sick Leave"
  890. },
  891. new
  892. {
  893. Id = 3L,
  894. DefaultDays = 20,
  895. NameAr = "أجازة زواج",
  896. NameEn = "Marriage Leave"
  897. },
  898. new
  899. {
  900. Id = 4L,
  901. DefaultDays = 10,
  902. NameAr = "أجازة وضع",
  903. NameEn = "Paternity leave"
  904. },
  905. new
  906. {
  907. Id = 5L,
  908. DefaultDays = 10,
  909. NameAr = "أجازة طارئة",
  910. NameEn = "Emergency leave"
  911. });
  912. });
  913. modelBuilder.Entity("MTWorkHR.Core.Entities.LoginOTP", b =>
  914. {
  915. b.Property<long>("Id")
  916. .ValueGeneratedOnAdd()
  917. .HasColumnType("bigint")
  918. .HasColumnOrder(0);
  919. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  920. b.Property<DateTime>("CreateDate")
  921. .HasColumnType("datetime2");
  922. b.Property<DateTime>("ExpireDate")
  923. .HasColumnType("datetime2");
  924. b.Property<string>("OTP")
  925. .IsRequired()
  926. .HasColumnType("nvarchar(max)");
  927. b.Property<string>("UserId")
  928. .IsRequired()
  929. .HasColumnType("nvarchar(max)");
  930. b.HasKey("Id");
  931. b.ToTable("LoginOTPs");
  932. });
  933. modelBuilder.Entity("MTWorkHR.Core.Entities.Meeting", b =>
  934. {
  935. b.Property<long>("Id")
  936. .ValueGeneratedOnAdd()
  937. .HasColumnType("bigint")
  938. .HasColumnOrder(0);
  939. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  940. b.Property<long>("CompanyId")
  941. .HasColumnType("bigint");
  942. b.Property<DateTime>("CreateDate")
  943. .HasColumnType("datetime2")
  944. .HasColumnOrder(3);
  945. b.Property<string>("CreateUser")
  946. .HasMaxLength(450)
  947. .HasColumnType("nvarchar(450)")
  948. .HasColumnOrder(1);
  949. b.Property<string>("DeleteUserId")
  950. .HasMaxLength(450)
  951. .HasColumnType("nvarchar(450)")
  952. .HasColumnOrder(8);
  953. b.Property<string>("Description")
  954. .HasMaxLength(500)
  955. .HasColumnType("nvarchar(500)");
  956. b.Property<DateTime>("EndDate")
  957. .HasColumnType("datetime2");
  958. b.Property<bool>("IsDeleted")
  959. .HasColumnType("bit")
  960. .HasColumnOrder(7);
  961. b.Property<string>("Location")
  962. .HasMaxLength(250)
  963. .HasColumnType("nvarchar(250)");
  964. b.Property<string>("MeetingLink")
  965. .HasMaxLength(250)
  966. .HasColumnType("nvarchar(250)");
  967. b.Property<DateTime>("StartDate")
  968. .HasColumnType("datetime2");
  969. b.Property<string>("Title")
  970. .IsRequired()
  971. .HasMaxLength(250)
  972. .HasColumnType("nvarchar(250)");
  973. b.Property<DateTime?>("UpdateDate")
  974. .HasColumnType("datetime2")
  975. .HasColumnOrder(4);
  976. b.Property<string>("UpdateUser")
  977. .HasMaxLength(450)
  978. .HasColumnType("nvarchar(450)")
  979. .HasColumnOrder(2);
  980. b.HasKey("Id");
  981. b.HasIndex("CompanyId");
  982. b.ToTable("Meetings");
  983. });
  984. modelBuilder.Entity("MTWorkHR.Core.Entities.MeetingLog", b =>
  985. {
  986. b.Property<long>("Id")
  987. .ValueGeneratedOnAdd()
  988. .HasColumnType("bigint")
  989. .HasColumnOrder(0);
  990. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  991. b.Property<string>("Channel")
  992. .HasColumnType("nvarchar(max)");
  993. b.Property<DateTime>("CreateDate")
  994. .HasColumnType("datetime2");
  995. b.Property<string>("CreateUser")
  996. .IsRequired()
  997. .HasColumnType("nvarchar(max)");
  998. b.Property<string>("ErrorCode")
  999. .IsRequired()
  1000. .HasColumnType("nvarchar(max)");
  1001. b.Property<string>("ErrorDescription")
  1002. .IsRequired()
  1003. .HasColumnType("nvarchar(max)");
  1004. b.Property<string>("InnerException")
  1005. .HasColumnType("nvarchar(max)");
  1006. b.Property<string>("Input")
  1007. .HasColumnType("nvarchar(max)");
  1008. b.Property<string>("Method")
  1009. .IsRequired()
  1010. .HasColumnType("nvarchar(max)");
  1011. b.Property<string>("QueryString")
  1012. .HasColumnType("nvarchar(max)");
  1013. b.Property<string>("ServerIP")
  1014. .HasColumnType("nvarchar(max)");
  1015. b.Property<string>("ServiceResponseTimeInSeconds")
  1016. .IsRequired()
  1017. .HasColumnType("nvarchar(max)");
  1018. b.Property<string>("UserIP")
  1019. .HasColumnType("nvarchar(max)");
  1020. b.Property<string>("userAgent")
  1021. .HasColumnType("nvarchar(max)");
  1022. b.HasKey("Id");
  1023. b.ToTable("MeetingLogs");
  1024. });
  1025. modelBuilder.Entity("MTWorkHR.Core.Entities.MeetingUser", b =>
  1026. {
  1027. b.Property<long>("Id")
  1028. .ValueGeneratedOnAdd()
  1029. .HasColumnType("bigint")
  1030. .HasColumnOrder(0);
  1031. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1032. b.Property<string>("AssignedUserId")
  1033. .IsRequired()
  1034. .HasColumnType("nvarchar(max)");
  1035. b.Property<DateTime>("CreateDate")
  1036. .HasColumnType("datetime2")
  1037. .HasColumnOrder(3);
  1038. b.Property<string>("CreateUser")
  1039. .HasMaxLength(450)
  1040. .HasColumnType("nvarchar(450)")
  1041. .HasColumnOrder(1);
  1042. b.Property<long>("MeetingId")
  1043. .HasColumnType("bigint");
  1044. b.Property<DateTime?>("UpdateDate")
  1045. .HasColumnType("datetime2")
  1046. .HasColumnOrder(4);
  1047. b.Property<string>("UpdateUser")
  1048. .HasMaxLength(450)
  1049. .HasColumnType("nvarchar(450)")
  1050. .HasColumnOrder(2);
  1051. b.HasKey("Id");
  1052. b.HasIndex("MeetingId");
  1053. b.ToTable("MeetingUser");
  1054. });
  1055. modelBuilder.Entity("MTWorkHR.Core.Entities.OrderAllocation", b =>
  1056. {
  1057. b.Property<long>("Id")
  1058. .ValueGeneratedOnAdd()
  1059. .HasColumnType("bigint")
  1060. .HasColumnOrder(0);
  1061. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1062. b.Property<long>("CompanyId")
  1063. .HasColumnType("bigint");
  1064. b.Property<DateTime>("CreateDate")
  1065. .HasColumnType("datetime2")
  1066. .HasColumnOrder(3);
  1067. b.Property<string>("CreateUser")
  1068. .HasMaxLength(450)
  1069. .HasColumnType("nvarchar(450)")
  1070. .HasColumnOrder(1);
  1071. b.Property<string>("EmployeeId")
  1072. .IsRequired()
  1073. .HasColumnType("nvarchar(max)");
  1074. b.Property<long?>("LeaveTypeId")
  1075. .HasColumnType("bigint");
  1076. b.Property<int>("NumberOfDays")
  1077. .HasColumnType("int");
  1078. b.Property<long>("OrderTypeId")
  1079. .HasColumnType("bigint");
  1080. b.Property<int>("Period")
  1081. .HasColumnType("int");
  1082. b.Property<DateTime?>("UpdateDate")
  1083. .HasColumnType("datetime2")
  1084. .HasColumnOrder(4);
  1085. b.Property<string>("UpdateUser")
  1086. .HasMaxLength(450)
  1087. .HasColumnType("nvarchar(450)")
  1088. .HasColumnOrder(2);
  1089. b.HasKey("Id");
  1090. b.HasIndex("CompanyId");
  1091. b.HasIndex("LeaveTypeId");
  1092. b.HasIndex("OrderTypeId");
  1093. b.ToTable("OrderAllocations");
  1094. });
  1095. modelBuilder.Entity("MTWorkHR.Core.Entities.OrderType", b =>
  1096. {
  1097. b.Property<long>("Id")
  1098. .ValueGeneratedOnAdd()
  1099. .HasColumnType("bigint")
  1100. .HasColumnOrder(0);
  1101. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1102. b.Property<int>("DefaultDays")
  1103. .HasColumnType("int");
  1104. b.Property<string>("NameAr")
  1105. .IsRequired()
  1106. .HasColumnType("nvarchar(max)");
  1107. b.Property<string>("NameEn")
  1108. .IsRequired()
  1109. .HasColumnType("nvarchar(max)");
  1110. b.HasKey("Id");
  1111. b.ToTable("OrderTypes");
  1112. b.HasData(
  1113. new
  1114. {
  1115. Id = 1L,
  1116. DefaultDays = 2,
  1117. NameAr = "إذن",
  1118. NameEn = "Leave"
  1119. },
  1120. new
  1121. {
  1122. Id = 2L,
  1123. DefaultDays = 15,
  1124. NameAr = "طبية",
  1125. NameEn = "Medical"
  1126. },
  1127. new
  1128. {
  1129. Id = 3L,
  1130. DefaultDays = 20,
  1131. NameAr = "وقت إضافي",
  1132. NameEn = "Overtime"
  1133. },
  1134. new
  1135. {
  1136. Id = 4L,
  1137. DefaultDays = 0,
  1138. NameAr = "رحلة عمل",
  1139. NameEn = "Business trip"
  1140. },
  1141. new
  1142. {
  1143. Id = 5L,
  1144. DefaultDays = 0,
  1145. NameAr = "دورة تدريبية",
  1146. NameEn = "Course"
  1147. });
  1148. });
  1149. modelBuilder.Entity("MTWorkHR.Core.Entities.Permission", b =>
  1150. {
  1151. b.Property<long>("Id")
  1152. .ValueGeneratedOnAdd()
  1153. .HasColumnType("bigint")
  1154. .HasColumnOrder(0);
  1155. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1156. b.Property<string>("CategoryName")
  1157. .IsRequired()
  1158. .HasMaxLength(150)
  1159. .HasColumnType("nvarchar(150)");
  1160. b.Property<string>("Desc")
  1161. .IsRequired()
  1162. .HasMaxLength(250)
  1163. .HasColumnType("nvarchar(250)");
  1164. b.Property<string>("Name")
  1165. .IsRequired()
  1166. .HasMaxLength(250)
  1167. .HasColumnType("nvarchar(250)");
  1168. b.Property<bool>("Show")
  1169. .HasColumnType("bit");
  1170. b.HasKey("Id");
  1171. b.ToTable("Permissions");
  1172. b.HasData(
  1173. new
  1174. {
  1175. Id = 1L,
  1176. CategoryName = "User",
  1177. Desc = "Project",
  1178. Name = "Project",
  1179. Show = true
  1180. },
  1181. new
  1182. {
  1183. Id = 2L,
  1184. CategoryName = "User",
  1185. Desc = "Project.Create",
  1186. Name = "Project.Create",
  1187. Show = false
  1188. },
  1189. new
  1190. {
  1191. Id = 3L,
  1192. CategoryName = "User",
  1193. Desc = "Project.Update",
  1194. Name = "Project.Update",
  1195. Show = false
  1196. },
  1197. new
  1198. {
  1199. Id = 4L,
  1200. CategoryName = "User",
  1201. Desc = "Project.Delete",
  1202. Name = "Project.Delete",
  1203. Show = false
  1204. },
  1205. new
  1206. {
  1207. Id = 5L,
  1208. CategoryName = "User",
  1209. Desc = "Meeting",
  1210. Name = "Meeting",
  1211. Show = true
  1212. },
  1213. new
  1214. {
  1215. Id = 6L,
  1216. CategoryName = "User",
  1217. Desc = "Meeting.Create",
  1218. Name = "Meeting.Create",
  1219. Show = false
  1220. },
  1221. new
  1222. {
  1223. Id = 7L,
  1224. CategoryName = "User",
  1225. Desc = "Meeting.Update",
  1226. Name = "Meeting.Update",
  1227. Show = false
  1228. },
  1229. new
  1230. {
  1231. Id = 8L,
  1232. CategoryName = "User",
  1233. Desc = "Meeting.Delete",
  1234. Name = "Meeting.Delete",
  1235. Show = false
  1236. },
  1237. new
  1238. {
  1239. Id = 9L,
  1240. CategoryName = "User",
  1241. Desc = "Team",
  1242. Name = "Team",
  1243. Show = true
  1244. },
  1245. new
  1246. {
  1247. Id = 10L,
  1248. CategoryName = "User",
  1249. Desc = "Team.Create",
  1250. Name = "Team.Create",
  1251. Show = false
  1252. },
  1253. new
  1254. {
  1255. Id = 11L,
  1256. CategoryName = "User",
  1257. Desc = "Team.Update",
  1258. Name = "Team.Update",
  1259. Show = false
  1260. },
  1261. new
  1262. {
  1263. Id = 12L,
  1264. CategoryName = "User",
  1265. Desc = "Team.Delete",
  1266. Name = "Team.Delete",
  1267. Show = false
  1268. },
  1269. new
  1270. {
  1271. Id = 13L,
  1272. CategoryName = "Sales",
  1273. Desc = "UserTask",
  1274. Name = "UserTask",
  1275. Show = true
  1276. },
  1277. new
  1278. {
  1279. Id = 14L,
  1280. CategoryName = "Sales",
  1281. Desc = "UserTask.Create",
  1282. Name = "UserTask.Create",
  1283. Show = false
  1284. },
  1285. new
  1286. {
  1287. Id = 15L,
  1288. CategoryName = "Sales",
  1289. Desc = "UserTask.Update",
  1290. Name = "UserTask.Update",
  1291. Show = false
  1292. },
  1293. new
  1294. {
  1295. Id = 16L,
  1296. CategoryName = "User",
  1297. Desc = "UserTask.Delete",
  1298. Name = "UserTask.Delete",
  1299. Show = false
  1300. },
  1301. new
  1302. {
  1303. Id = 17L,
  1304. CategoryName = "User",
  1305. Desc = "Company",
  1306. Name = "Company",
  1307. Show = true
  1308. },
  1309. new
  1310. {
  1311. Id = 18L,
  1312. CategoryName = "User",
  1313. Desc = "Company.Create",
  1314. Name = "Company.Create",
  1315. Show = false
  1316. },
  1317. new
  1318. {
  1319. Id = 19L,
  1320. CategoryName = "User",
  1321. Desc = "Company.Update",
  1322. Name = "Company.Update",
  1323. Show = false
  1324. },
  1325. new
  1326. {
  1327. Id = 20L,
  1328. CategoryName = "User",
  1329. Desc = "Company.Delete",
  1330. Name = "Company.Delete",
  1331. Show = false
  1332. },
  1333. new
  1334. {
  1335. Id = 21L,
  1336. CategoryName = "Adminstration",
  1337. Desc = "User",
  1338. Name = "User",
  1339. Show = true
  1340. },
  1341. new
  1342. {
  1343. Id = 22L,
  1344. CategoryName = "Adminstration",
  1345. Desc = "User.Create",
  1346. Name = "User.Create",
  1347. Show = false
  1348. },
  1349. new
  1350. {
  1351. Id = 23L,
  1352. CategoryName = "Adminstration",
  1353. Desc = "User.Update",
  1354. Name = "User.Update",
  1355. Show = false
  1356. },
  1357. new
  1358. {
  1359. Id = 24L,
  1360. CategoryName = "Adminstration",
  1361. Desc = "User.Delete",
  1362. Name = "User.Delete",
  1363. Show = false
  1364. },
  1365. new
  1366. {
  1367. Id = 25L,
  1368. CategoryName = "Adminstration",
  1369. Desc = "Role",
  1370. Name = "Role",
  1371. Show = true
  1372. },
  1373. new
  1374. {
  1375. Id = 26L,
  1376. CategoryName = "Adminstration",
  1377. Desc = "Role.Create",
  1378. Name = "Role.Create",
  1379. Show = false
  1380. },
  1381. new
  1382. {
  1383. Id = 27L,
  1384. CategoryName = "Adminstration",
  1385. Desc = "Role.Update",
  1386. Name = "Role.Update",
  1387. Show = false
  1388. },
  1389. new
  1390. {
  1391. Id = 28L,
  1392. CategoryName = "Adminstration",
  1393. Desc = "Role.Delete",
  1394. Name = "Role.Delete",
  1395. Show = false
  1396. });
  1397. });
  1398. modelBuilder.Entity("MTWorkHR.Core.Entities.Project", b =>
  1399. {
  1400. b.Property<long>("Id")
  1401. .ValueGeneratedOnAdd()
  1402. .HasColumnType("bigint")
  1403. .HasColumnOrder(0);
  1404. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1405. b.Property<long>("CompanyId")
  1406. .HasColumnType("bigint");
  1407. b.Property<DateTime>("CreateDate")
  1408. .HasColumnType("datetime2")
  1409. .HasColumnOrder(3);
  1410. b.Property<string>("CreateUser")
  1411. .HasMaxLength(450)
  1412. .HasColumnType("nvarchar(450)")
  1413. .HasColumnOrder(1);
  1414. b.Property<string>("DeleteUserId")
  1415. .HasMaxLength(450)
  1416. .HasColumnType("nvarchar(450)")
  1417. .HasColumnOrder(8);
  1418. b.Property<bool>("IsDeleted")
  1419. .HasColumnType("bit")
  1420. .HasColumnOrder(7);
  1421. b.Property<string>("NameAr")
  1422. .IsRequired()
  1423. .HasMaxLength(250)
  1424. .HasColumnType("nvarchar(250)");
  1425. b.Property<string>("NameEn")
  1426. .IsRequired()
  1427. .HasMaxLength(250)
  1428. .HasColumnType("nvarchar(250)");
  1429. b.Property<DateTime?>("UpdateDate")
  1430. .HasColumnType("datetime2")
  1431. .HasColumnOrder(4);
  1432. b.Property<string>("UpdateUser")
  1433. .HasMaxLength(450)
  1434. .HasColumnType("nvarchar(450)")
  1435. .HasColumnOrder(2);
  1436. b.HasKey("Id");
  1437. b.HasIndex("CompanyId");
  1438. b.ToTable("Projects");
  1439. });
  1440. modelBuilder.Entity("MTWorkHR.Core.Entities.Qualification", b =>
  1441. {
  1442. b.Property<long>("Id")
  1443. .ValueGeneratedOnAdd()
  1444. .HasColumnType("bigint")
  1445. .HasColumnOrder(0);
  1446. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1447. b.Property<string>("NameAr")
  1448. .IsRequired()
  1449. .HasMaxLength(250)
  1450. .HasColumnType("nvarchar(250)");
  1451. b.Property<string>("NameEn")
  1452. .IsRequired()
  1453. .HasMaxLength(250)
  1454. .HasColumnType("nvarchar(250)");
  1455. b.HasKey("Id");
  1456. b.ToTable("Qualifications");
  1457. b.HasData(
  1458. new
  1459. {
  1460. Id = 1L,
  1461. NameAr = "بكالوريوس",
  1462. NameEn = "BSC"
  1463. },
  1464. new
  1465. {
  1466. Id = 2L,
  1467. NameAr = "درجة الماجيستير",
  1468. NameEn = "Master"
  1469. },
  1470. new
  1471. {
  1472. Id = 3L,
  1473. NameAr = "درحة الدكتوراه",
  1474. NameEn = "Doctor"
  1475. });
  1476. });
  1477. modelBuilder.Entity("MTWorkHR.Core.Entities.RoleLog", b =>
  1478. {
  1479. b.Property<long>("Id")
  1480. .ValueGeneratedOnAdd()
  1481. .HasColumnType("bigint")
  1482. .HasColumnOrder(0);
  1483. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1484. b.Property<string>("Channel")
  1485. .HasColumnType("nvarchar(max)");
  1486. b.Property<DateTime>("CreateDate")
  1487. .HasColumnType("datetime2");
  1488. b.Property<string>("CreateUser")
  1489. .IsRequired()
  1490. .HasColumnType("nvarchar(max)");
  1491. b.Property<string>("ErrorCode")
  1492. .IsRequired()
  1493. .HasColumnType("nvarchar(max)");
  1494. b.Property<string>("ErrorDescription")
  1495. .IsRequired()
  1496. .HasColumnType("nvarchar(max)");
  1497. b.Property<string>("InnerException")
  1498. .HasColumnType("nvarchar(max)");
  1499. b.Property<string>("Input")
  1500. .HasColumnType("nvarchar(max)");
  1501. b.Property<string>("Method")
  1502. .IsRequired()
  1503. .HasColumnType("nvarchar(max)");
  1504. b.Property<string>("QueryString")
  1505. .HasColumnType("nvarchar(max)");
  1506. b.Property<string>("ServerIP")
  1507. .HasColumnType("nvarchar(max)");
  1508. b.Property<string>("ServiceResponseTimeInSeconds")
  1509. .IsRequired()
  1510. .HasColumnType("nvarchar(max)");
  1511. b.Property<string>("UserIP")
  1512. .HasColumnType("nvarchar(max)");
  1513. b.Property<string>("userAgent")
  1514. .HasColumnType("nvarchar(max)");
  1515. b.HasKey("Id");
  1516. b.ToTable("RoleLogs");
  1517. });
  1518. modelBuilder.Entity("MTWorkHR.Core.Entities.SettingLog", b =>
  1519. {
  1520. b.Property<long>("Id")
  1521. .ValueGeneratedOnAdd()
  1522. .HasColumnType("bigint")
  1523. .HasColumnOrder(0);
  1524. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1525. b.Property<string>("Channel")
  1526. .HasColumnType("nvarchar(max)");
  1527. b.Property<DateTime>("CreateDate")
  1528. .HasColumnType("datetime2");
  1529. b.Property<string>("CreateUser")
  1530. .IsRequired()
  1531. .HasColumnType("nvarchar(max)");
  1532. b.Property<string>("ErrorCode")
  1533. .IsRequired()
  1534. .HasColumnType("nvarchar(max)");
  1535. b.Property<string>("ErrorDescription")
  1536. .IsRequired()
  1537. .HasColumnType("nvarchar(max)");
  1538. b.Property<string>("InnerException")
  1539. .HasColumnType("nvarchar(max)");
  1540. b.Property<string>("Input")
  1541. .HasColumnType("nvarchar(max)");
  1542. b.Property<string>("Method")
  1543. .IsRequired()
  1544. .HasColumnType("nvarchar(max)");
  1545. b.Property<string>("QueryString")
  1546. .HasColumnType("nvarchar(max)");
  1547. b.Property<string>("ServerIP")
  1548. .HasColumnType("nvarchar(max)");
  1549. b.Property<string>("ServiceResponseTimeInSeconds")
  1550. .IsRequired()
  1551. .HasColumnType("nvarchar(max)");
  1552. b.Property<string>("UserIP")
  1553. .HasColumnType("nvarchar(max)");
  1554. b.Property<string>("userAgent")
  1555. .HasColumnType("nvarchar(max)");
  1556. b.HasKey("Id");
  1557. b.ToTable("SettingLogs");
  1558. });
  1559. modelBuilder.Entity("MTWorkHR.Core.Entities.Team", b =>
  1560. {
  1561. b.Property<long>("Id")
  1562. .ValueGeneratedOnAdd()
  1563. .HasColumnType("bigint")
  1564. .HasColumnOrder(0);
  1565. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1566. b.Property<long>("CompanyId")
  1567. .HasColumnType("bigint");
  1568. b.Property<DateTime>("CreateDate")
  1569. .HasColumnType("datetime2")
  1570. .HasColumnOrder(3);
  1571. b.Property<string>("CreateUser")
  1572. .HasMaxLength(450)
  1573. .HasColumnType("nvarchar(450)")
  1574. .HasColumnOrder(1);
  1575. b.Property<string>("DeleteUserId")
  1576. .HasMaxLength(450)
  1577. .HasColumnType("nvarchar(450)")
  1578. .HasColumnOrder(8);
  1579. b.Property<bool>("IsDeleted")
  1580. .HasColumnType("bit")
  1581. .HasColumnOrder(7);
  1582. b.Property<string>("NameAr")
  1583. .IsRequired()
  1584. .HasMaxLength(250)
  1585. .HasColumnType("nvarchar(250)");
  1586. b.Property<string>("NameEn")
  1587. .IsRequired()
  1588. .HasMaxLength(250)
  1589. .HasColumnType("nvarchar(250)");
  1590. b.Property<DateTime?>("UpdateDate")
  1591. .HasColumnType("datetime2")
  1592. .HasColumnOrder(4);
  1593. b.Property<string>("UpdateUser")
  1594. .HasMaxLength(450)
  1595. .HasColumnType("nvarchar(450)")
  1596. .HasColumnOrder(2);
  1597. b.HasKey("Id");
  1598. b.HasIndex("CompanyId");
  1599. b.ToTable("Teams");
  1600. });
  1601. modelBuilder.Entity("MTWorkHR.Core.Entities.TeamLog", b =>
  1602. {
  1603. b.Property<long>("Id")
  1604. .ValueGeneratedOnAdd()
  1605. .HasColumnType("bigint")
  1606. .HasColumnOrder(0);
  1607. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1608. b.Property<string>("Channel")
  1609. .HasColumnType("nvarchar(max)");
  1610. b.Property<DateTime>("CreateDate")
  1611. .HasColumnType("datetime2");
  1612. b.Property<string>("CreateUser")
  1613. .IsRequired()
  1614. .HasColumnType("nvarchar(max)");
  1615. b.Property<string>("ErrorCode")
  1616. .IsRequired()
  1617. .HasColumnType("nvarchar(max)");
  1618. b.Property<string>("ErrorDescription")
  1619. .IsRequired()
  1620. .HasColumnType("nvarchar(max)");
  1621. b.Property<string>("InnerException")
  1622. .HasColumnType("nvarchar(max)");
  1623. b.Property<string>("Input")
  1624. .HasColumnType("nvarchar(max)");
  1625. b.Property<string>("Method")
  1626. .IsRequired()
  1627. .HasColumnType("nvarchar(max)");
  1628. b.Property<string>("QueryString")
  1629. .HasColumnType("nvarchar(max)");
  1630. b.Property<string>("ServerIP")
  1631. .HasColumnType("nvarchar(max)");
  1632. b.Property<string>("ServiceResponseTimeInSeconds")
  1633. .IsRequired()
  1634. .HasColumnType("nvarchar(max)");
  1635. b.Property<string>("UserIP")
  1636. .HasColumnType("nvarchar(max)");
  1637. b.Property<string>("userAgent")
  1638. .HasColumnType("nvarchar(max)");
  1639. b.HasKey("Id");
  1640. b.ToTable("TeamLogs");
  1641. });
  1642. modelBuilder.Entity("MTWorkHR.Core.Entities.TeamUser", b =>
  1643. {
  1644. b.Property<long>("Id")
  1645. .ValueGeneratedOnAdd()
  1646. .HasColumnType("bigint")
  1647. .HasColumnOrder(0);
  1648. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1649. b.Property<string>("AssignedUserId")
  1650. .IsRequired()
  1651. .HasColumnType("nvarchar(max)");
  1652. b.Property<string>("AssignedUserName")
  1653. .IsRequired()
  1654. .HasColumnType("nvarchar(max)");
  1655. b.Property<DateTime>("CreateDate")
  1656. .HasColumnType("datetime2")
  1657. .HasColumnOrder(3);
  1658. b.Property<string>("CreateUser")
  1659. .HasMaxLength(450)
  1660. .HasColumnType("nvarchar(450)")
  1661. .HasColumnOrder(1);
  1662. b.Property<bool>("IsAdmin")
  1663. .HasColumnType("bit");
  1664. b.Property<long>("TeamId")
  1665. .HasColumnType("bigint");
  1666. b.Property<DateTime?>("UpdateDate")
  1667. .HasColumnType("datetime2")
  1668. .HasColumnOrder(4);
  1669. b.Property<string>("UpdateUser")
  1670. .HasMaxLength(450)
  1671. .HasColumnType("nvarchar(450)")
  1672. .HasColumnOrder(2);
  1673. b.HasKey("Id");
  1674. b.HasIndex("TeamId");
  1675. b.ToTable("TeamUser");
  1676. });
  1677. modelBuilder.Entity("MTWorkHR.Core.Entities.University", b =>
  1678. {
  1679. b.Property<long>("Id")
  1680. .ValueGeneratedOnAdd()
  1681. .HasColumnType("bigint")
  1682. .HasColumnOrder(0);
  1683. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1684. b.Property<string>("NameAr")
  1685. .IsRequired()
  1686. .HasMaxLength(250)
  1687. .HasColumnType("nvarchar(250)");
  1688. b.Property<string>("NameEn")
  1689. .IsRequired()
  1690. .HasMaxLength(250)
  1691. .HasColumnType("nvarchar(250)");
  1692. b.HasKey("Id");
  1693. b.ToTable("Universities");
  1694. b.HasData(
  1695. new
  1696. {
  1697. Id = 1L,
  1698. NameAr = "جامعة الملك فهد",
  1699. NameEn = "Fahd Univ"
  1700. },
  1701. new
  1702. {
  1703. Id = 2L,
  1704. NameAr = "جامعة الرياض",
  1705. NameEn = "Riydh Univ"
  1706. },
  1707. new
  1708. {
  1709. Id = 3L,
  1710. NameAr = "جامعة جدة",
  1711. NameEn = "Geda Univ"
  1712. });
  1713. });
  1714. modelBuilder.Entity("MTWorkHR.Core.Entities.User.OrderRequest", b =>
  1715. {
  1716. b.Property<long>("Id")
  1717. .ValueGeneratedOnAdd()
  1718. .HasColumnType("bigint")
  1719. .HasColumnOrder(0);
  1720. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1721. b.Property<int?>("CityId")
  1722. .HasColumnType("int");
  1723. b.Property<long>("CompanyId")
  1724. .HasColumnType("bigint");
  1725. b.Property<int?>("CountryId")
  1726. .HasColumnType("int");
  1727. b.Property<DateTime>("CreateDate")
  1728. .HasColumnType("datetime2")
  1729. .HasColumnOrder(3);
  1730. b.Property<string>("CreateUser")
  1731. .HasMaxLength(450)
  1732. .HasColumnType("nvarchar(450)")
  1733. .HasColumnOrder(1);
  1734. b.Property<string>("DeleteUserId")
  1735. .HasMaxLength(450)
  1736. .HasColumnType("nvarchar(450)")
  1737. .HasColumnOrder(8);
  1738. b.Property<DateTime?>("EndDate")
  1739. .HasColumnType("datetime2");
  1740. b.Property<bool>("IsDeleted")
  1741. .HasColumnType("bit")
  1742. .HasColumnOrder(7);
  1743. b.Property<long?>("LeaveTypeId")
  1744. .HasColumnType("bigint");
  1745. b.Property<int?>("OrderStatus")
  1746. .HasColumnType("int");
  1747. b.Property<long>("OrderTypeId")
  1748. .HasColumnType("bigint");
  1749. b.Property<string>("RequestComments")
  1750. .HasColumnType("nvarchar(max)");
  1751. b.Property<string>("RequestingEmployeeId")
  1752. .IsRequired()
  1753. .HasColumnType("nvarchar(max)");
  1754. b.Property<DateTime>("StartDate")
  1755. .HasColumnType("datetime2");
  1756. b.Property<DateTime?>("UpdateDate")
  1757. .HasColumnType("datetime2")
  1758. .HasColumnOrder(4);
  1759. b.Property<string>("UpdateUser")
  1760. .HasMaxLength(450)
  1761. .HasColumnType("nvarchar(450)")
  1762. .HasColumnOrder(2);
  1763. b.HasKey("Id");
  1764. b.HasIndex("CompanyId");
  1765. b.HasIndex("LeaveTypeId");
  1766. b.HasIndex("OrderTypeId");
  1767. b.ToTable("OrderRequests");
  1768. });
  1769. modelBuilder.Entity("MTWorkHR.Core.Entities.UserLog", b =>
  1770. {
  1771. b.Property<long>("Id")
  1772. .ValueGeneratedOnAdd()
  1773. .HasColumnType("bigint")
  1774. .HasColumnOrder(0);
  1775. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1776. b.Property<string>("Channel")
  1777. .HasColumnType("nvarchar(max)");
  1778. b.Property<DateTime>("CreateDate")
  1779. .HasColumnType("datetime2");
  1780. b.Property<string>("CreateUser")
  1781. .IsRequired()
  1782. .HasColumnType("nvarchar(max)");
  1783. b.Property<string>("ErrorCode")
  1784. .IsRequired()
  1785. .HasColumnType("nvarchar(max)");
  1786. b.Property<string>("ErrorDescription")
  1787. .IsRequired()
  1788. .HasColumnType("nvarchar(max)");
  1789. b.Property<string>("InnerException")
  1790. .HasColumnType("nvarchar(max)");
  1791. b.Property<string>("Input")
  1792. .HasColumnType("nvarchar(max)");
  1793. b.Property<string>("Method")
  1794. .IsRequired()
  1795. .HasColumnType("nvarchar(max)");
  1796. b.Property<string>("QueryString")
  1797. .HasColumnType("nvarchar(max)");
  1798. b.Property<string>("ServerIP")
  1799. .HasColumnType("nvarchar(max)");
  1800. b.Property<string>("ServiceResponseTimeInSeconds")
  1801. .IsRequired()
  1802. .HasColumnType("nvarchar(max)");
  1803. b.Property<string>("UserIP")
  1804. .HasColumnType("nvarchar(max)");
  1805. b.Property<string>("userAgent")
  1806. .HasColumnType("nvarchar(max)");
  1807. b.HasKey("Id");
  1808. b.ToTable("UserLogs");
  1809. });
  1810. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  1811. {
  1812. b.Property<long>("Id")
  1813. .ValueGeneratedOnAdd()
  1814. .HasColumnType("bigint")
  1815. .HasColumnOrder(0);
  1816. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1817. b.Property<long>("AssignedUserId")
  1818. .HasColumnType("bigint");
  1819. b.Property<long>("CompanyId")
  1820. .HasColumnType("bigint");
  1821. b.Property<DateTime>("CreateDate")
  1822. .HasColumnType("datetime2")
  1823. .HasColumnOrder(3);
  1824. b.Property<string>("CreateUser")
  1825. .HasMaxLength(450)
  1826. .HasColumnType("nvarchar(450)")
  1827. .HasColumnOrder(1);
  1828. b.Property<string>("DeleteUserId")
  1829. .HasMaxLength(450)
  1830. .HasColumnType("nvarchar(450)")
  1831. .HasColumnOrder(8);
  1832. b.Property<string>("Description")
  1833. .IsRequired()
  1834. .HasColumnType("nvarchar(max)");
  1835. b.Property<DateTime>("DueDate")
  1836. .HasColumnType("datetime2");
  1837. b.Property<bool>("IsDeleted")
  1838. .HasColumnType("bit")
  1839. .HasColumnOrder(7);
  1840. b.Property<int>("Priority")
  1841. .HasColumnType("int");
  1842. b.Property<long>("ProjectId")
  1843. .HasColumnType("bigint");
  1844. b.Property<long>("StatusId")
  1845. .HasColumnType("bigint");
  1846. b.Property<string>("Title")
  1847. .IsRequired()
  1848. .HasColumnType("nvarchar(max)");
  1849. b.Property<DateTime?>("UpdateDate")
  1850. .HasColumnType("datetime2")
  1851. .HasColumnOrder(4);
  1852. b.Property<string>("UpdateUser")
  1853. .HasMaxLength(450)
  1854. .HasColumnType("nvarchar(450)")
  1855. .HasColumnOrder(2);
  1856. b.HasKey("Id");
  1857. b.HasIndex("CompanyId");
  1858. b.HasIndex("ProjectId");
  1859. b.HasIndex("StatusId");
  1860. b.ToTable("UserTasks");
  1861. });
  1862. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskAttachment", b =>
  1863. {
  1864. b.Property<long>("Id")
  1865. .ValueGeneratedOnAdd()
  1866. .HasColumnType("bigint")
  1867. .HasColumnOrder(0);
  1868. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1869. b.Property<long?>("AttachmentTypeId")
  1870. .HasColumnType("bigint");
  1871. b.Property<DateTime>("CreateDate")
  1872. .HasColumnType("datetime2")
  1873. .HasColumnOrder(3);
  1874. b.Property<string>("CreateUser")
  1875. .HasMaxLength(450)
  1876. .HasColumnType("nvarchar(450)")
  1877. .HasColumnOrder(1);
  1878. b.Property<string>("FileName")
  1879. .HasMaxLength(250)
  1880. .HasColumnType("nvarchar(250)");
  1881. b.Property<string>("OriginalName")
  1882. .HasMaxLength(250)
  1883. .HasColumnType("nvarchar(250)");
  1884. b.Property<long>("TaskId")
  1885. .HasColumnType("bigint");
  1886. b.Property<DateTime?>("UpdateDate")
  1887. .HasColumnType("datetime2")
  1888. .HasColumnOrder(4);
  1889. b.Property<string>("UpdateUser")
  1890. .HasMaxLength(450)
  1891. .HasColumnType("nvarchar(450)")
  1892. .HasColumnOrder(2);
  1893. b.HasKey("Id");
  1894. b.HasIndex("AttachmentTypeId");
  1895. b.HasIndex("TaskId");
  1896. b.ToTable("UserTaskAttachments");
  1897. });
  1898. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskHistory", b =>
  1899. {
  1900. b.Property<long>("Id")
  1901. .ValueGeneratedOnAdd()
  1902. .HasColumnType("bigint")
  1903. .HasColumnOrder(0);
  1904. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1905. b.Property<long>("AssignedToUserId")
  1906. .HasColumnType("bigint");
  1907. b.Property<string>("Comment")
  1908. .HasMaxLength(500)
  1909. .HasColumnType("nvarchar(500)");
  1910. b.Property<DateTime>("CreateDate")
  1911. .HasColumnType("datetime2")
  1912. .HasColumnOrder(3);
  1913. b.Property<string>("CreateUser")
  1914. .HasMaxLength(450)
  1915. .HasColumnType("nvarchar(450)")
  1916. .HasColumnOrder(1);
  1917. b.Property<long>("CurrentStatusId")
  1918. .HasColumnType("bigint");
  1919. b.Property<bool>("IsDeleted")
  1920. .HasColumnType("bit");
  1921. b.Property<long>("TaskId")
  1922. .HasColumnType("bigint");
  1923. b.Property<DateTime?>("UpdateDate")
  1924. .HasColumnType("datetime2")
  1925. .HasColumnOrder(4);
  1926. b.Property<string>("UpdateUser")
  1927. .HasMaxLength(450)
  1928. .HasColumnType("nvarchar(450)")
  1929. .HasColumnOrder(2);
  1930. b.Property<long?>("UserTaskId")
  1931. .HasColumnType("bigint");
  1932. b.HasKey("Id");
  1933. b.HasIndex("CurrentStatusId");
  1934. b.HasIndex("UserTaskId");
  1935. b.ToTable("UserTaskHistories");
  1936. });
  1937. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskLog", b =>
  1938. {
  1939. b.Property<long>("Id")
  1940. .ValueGeneratedOnAdd()
  1941. .HasColumnType("bigint")
  1942. .HasColumnOrder(0);
  1943. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1944. b.Property<string>("Channel")
  1945. .HasColumnType("nvarchar(max)");
  1946. b.Property<DateTime>("CreateDate")
  1947. .HasColumnType("datetime2");
  1948. b.Property<string>("CreateUser")
  1949. .IsRequired()
  1950. .HasColumnType("nvarchar(max)");
  1951. b.Property<string>("ErrorCode")
  1952. .IsRequired()
  1953. .HasColumnType("nvarchar(max)");
  1954. b.Property<string>("ErrorDescription")
  1955. .IsRequired()
  1956. .HasColumnType("nvarchar(max)");
  1957. b.Property<string>("InnerException")
  1958. .HasColumnType("nvarchar(max)");
  1959. b.Property<string>("Input")
  1960. .HasColumnType("nvarchar(max)");
  1961. b.Property<string>("Method")
  1962. .IsRequired()
  1963. .HasColumnType("nvarchar(max)");
  1964. b.Property<string>("QueryString")
  1965. .HasColumnType("nvarchar(max)");
  1966. b.Property<string>("ServerIP")
  1967. .HasColumnType("nvarchar(max)");
  1968. b.Property<string>("ServiceResponseTimeInSeconds")
  1969. .IsRequired()
  1970. .HasColumnType("nvarchar(max)");
  1971. b.Property<string>("UserIP")
  1972. .HasColumnType("nvarchar(max)");
  1973. b.Property<string>("userAgent")
  1974. .HasColumnType("nvarchar(max)");
  1975. b.HasKey("Id");
  1976. b.ToTable("UserTaskLogs");
  1977. });
  1978. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskStatus", b =>
  1979. {
  1980. b.Property<long>("Id")
  1981. .ValueGeneratedOnAdd()
  1982. .HasColumnType("bigint")
  1983. .HasColumnOrder(0);
  1984. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1985. b.Property<string>("NameAr")
  1986. .IsRequired()
  1987. .HasMaxLength(250)
  1988. .HasColumnType("nvarchar(250)");
  1989. b.Property<string>("NameEn")
  1990. .IsRequired()
  1991. .HasMaxLength(250)
  1992. .HasColumnType("nvarchar(250)");
  1993. b.HasKey("Id");
  1994. b.ToTable("UserTaskStatuses");
  1995. b.HasData(
  1996. new
  1997. {
  1998. Id = 1L,
  1999. NameAr = "جديدة",
  2000. NameEn = "New"
  2001. },
  2002. new
  2003. {
  2004. Id = 2L,
  2005. NameAr = "قيد العمل",
  2006. NameEn = "Under progress"
  2007. },
  2008. new
  2009. {
  2010. Id = 3L,
  2011. NameAr = "أغلقت",
  2012. NameEn = "Closed"
  2013. },
  2014. new
  2015. {
  2016. Id = 4L,
  2017. NameAr = "تمت",
  2018. NameEn = "Completed"
  2019. },
  2020. new
  2021. {
  2022. Id = 5L,
  2023. NameAr = "مؤجلة",
  2024. NameEn = "Delayed"
  2025. });
  2026. });
  2027. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationRole", b =>
  2028. {
  2029. b.Property<string>("Id")
  2030. .HasColumnType("nvarchar(450)");
  2031. b.Property<string>("ConcurrencyStamp")
  2032. .IsConcurrencyToken()
  2033. .HasColumnType("nvarchar(max)");
  2034. b.Property<DateTime>("CreateDate")
  2035. .HasColumnType("datetime2");
  2036. b.Property<string>("CreateUser")
  2037. .HasColumnType("nvarchar(max)");
  2038. b.Property<string>("DeleteUserId")
  2039. .HasColumnType("nvarchar(max)");
  2040. b.Property<bool?>("IsAdmin")
  2041. .HasColumnType("bit");
  2042. b.Property<bool>("IsDeleted")
  2043. .HasColumnType("bit");
  2044. b.Property<string>("Name")
  2045. .HasMaxLength(256)
  2046. .HasColumnType("nvarchar(256)");
  2047. b.Property<string>("NormalizedName")
  2048. .HasMaxLength(256)
  2049. .HasColumnType("nvarchar(256)");
  2050. b.Property<DateTime?>("UpdateDate")
  2051. .HasColumnType("datetime2");
  2052. b.Property<string>("UpdateUser")
  2053. .HasColumnType("nvarchar(max)");
  2054. b.HasKey("Id");
  2055. b.HasIndex("NormalizedName")
  2056. .IsUnique()
  2057. .HasDatabaseName("RoleNameIndex")
  2058. .HasFilter("[NormalizedName] IS NOT NULL");
  2059. b.ToTable("AspNetRoles", (string)null);
  2060. b.HasData(
  2061. new
  2062. {
  2063. Id = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A",
  2064. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  2065. IsAdmin = true,
  2066. IsDeleted = false,
  2067. Name = "Admin",
  2068. NormalizedName = "ADMIN"
  2069. },
  2070. new
  2071. {
  2072. Id = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E",
  2073. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  2074. IsAdmin = false,
  2075. IsDeleted = false,
  2076. Name = "Employee",
  2077. NormalizedName = "EMPLOYEE"
  2078. },
  2079. new
  2080. {
  2081. Id = "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R",
  2082. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  2083. IsAdmin = false,
  2084. IsDeleted = false,
  2085. Name = "Contractor",
  2086. NormalizedName = "CONTRACTOR"
  2087. });
  2088. });
  2089. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  2090. {
  2091. b.Property<string>("Id")
  2092. .HasColumnType("nvarchar(450)");
  2093. b.Property<int>("AccessFailedCount")
  2094. .HasColumnType("int");
  2095. b.Property<long?>("CompanyId")
  2096. .HasColumnType("bigint");
  2097. b.Property<string>("ConcurrencyStamp")
  2098. .IsConcurrencyToken()
  2099. .HasColumnType("nvarchar(max)");
  2100. b.Property<long?>("CountryId")
  2101. .HasColumnType("bigint");
  2102. b.Property<string>("CreateUser")
  2103. .HasColumnType("nvarchar(max)");
  2104. b.Property<DateTime>("DateOfBirth")
  2105. .HasColumnType("datetime2");
  2106. b.Property<string>("DeleteUserId")
  2107. .HasColumnType("nvarchar(max)");
  2108. b.Property<string>("Email")
  2109. .HasMaxLength(256)
  2110. .HasColumnType("nvarchar(256)");
  2111. b.Property<bool>("EmailConfirmed")
  2112. .HasColumnType("bit");
  2113. b.Property<string>("FavoriteName")
  2114. .HasColumnType("nvarchar(max)");
  2115. b.Property<string>("FirstName")
  2116. .IsRequired()
  2117. .HasColumnType("nvarchar(max)");
  2118. b.Property<string>("IdNumber")
  2119. .IsRequired()
  2120. .HasColumnType("nvarchar(max)");
  2121. b.Property<decimal?>("IncomeTaxValue")
  2122. .HasColumnType("decimal(18,2)");
  2123. b.Property<long?>("IndustryId")
  2124. .HasColumnType("bigint");
  2125. b.Property<bool>("IsDeleted")
  2126. .HasColumnType("bit");
  2127. b.Property<bool>("IsStopped")
  2128. .HasColumnType("bit");
  2129. b.Property<long?>("JobTitleId")
  2130. .HasColumnType("bigint");
  2131. b.Property<string>("LastName")
  2132. .IsRequired()
  2133. .HasColumnType("nvarchar(max)");
  2134. b.Property<string>("LinkedInLink")
  2135. .HasColumnType("nvarchar(max)");
  2136. b.Property<bool>("LockoutEnabled")
  2137. .HasColumnType("bit");
  2138. b.Property<DateTimeOffset?>("LockoutEnd")
  2139. .HasColumnType("datetimeoffset");
  2140. b.Property<string>("ManagerId")
  2141. .HasColumnType("nvarchar(450)");
  2142. b.Property<string>("NormalizedEmail")
  2143. .HasMaxLength(256)
  2144. .HasColumnType("nvarchar(256)");
  2145. b.Property<string>("NormalizedUserName")
  2146. .HasMaxLength(256)
  2147. .HasColumnType("nvarchar(256)");
  2148. b.Property<string>("PassportNumber")
  2149. .IsRequired()
  2150. .HasColumnType("nvarchar(max)");
  2151. b.Property<string>("PasswordHash")
  2152. .HasColumnType("nvarchar(max)");
  2153. b.Property<string>("PhoneNumber")
  2154. .HasColumnType("nvarchar(max)");
  2155. b.Property<bool>("PhoneNumberConfirmed")
  2156. .HasColumnType("bit");
  2157. b.Property<long?>("QualificationId")
  2158. .HasColumnType("bigint");
  2159. b.Property<string>("SecurityStamp")
  2160. .HasColumnType("nvarchar(max)");
  2161. b.Property<decimal?>("TaxNumber")
  2162. .HasColumnType("decimal(18,2)");
  2163. b.Property<bool>("TwoFactorEnabled")
  2164. .HasColumnType("bit");
  2165. b.Property<long?>("UniversityId")
  2166. .HasColumnType("bigint");
  2167. b.Property<string>("UpdateUser")
  2168. .HasColumnType("nvarchar(max)");
  2169. b.Property<string>("UserName")
  2170. .HasMaxLength(256)
  2171. .HasColumnType("nvarchar(256)");
  2172. b.Property<int>("UserType")
  2173. .HasColumnType("int");
  2174. b.HasKey("Id");
  2175. b.HasIndex("CountryId");
  2176. b.HasIndex("IndustryId");
  2177. b.HasIndex("JobTitleId");
  2178. b.HasIndex("ManagerId");
  2179. b.HasIndex("NormalizedEmail")
  2180. .HasDatabaseName("EmailIndex");
  2181. b.HasIndex("NormalizedUserName")
  2182. .IsUnique()
  2183. .HasDatabaseName("UserNameIndex")
  2184. .HasFilter("[NormalizedUserName] IS NOT NULL");
  2185. b.HasIndex("QualificationId");
  2186. b.HasIndex("UniversityId");
  2187. b.ToTable("AspNetUsers", (string)null);
  2188. b.HasData(
  2189. new
  2190. {
  2191. Id = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  2192. AccessFailedCount = 0,
  2193. ConcurrencyStamp = "7cc87689-9eab-4280-b8e3-1834080783a5",
  2194. DateOfBirth = new DateTime(2000, 2, 10, 0, 0, 0, 0, DateTimeKind.Unspecified),
  2195. Email = "a@b.com",
  2196. EmailConfirmed = true,
  2197. FirstName = "Zinab",
  2198. IdNumber = "123",
  2199. IncomeTaxValue = 1m,
  2200. IsDeleted = false,
  2201. IsStopped = false,
  2202. LastName = "Elgendy",
  2203. LockoutEnabled = false,
  2204. NormalizedEmail = "A@B.COM",
  2205. NormalizedUserName = "ADMIN",
  2206. PassportNumber = "1234567",
  2207. PasswordHash = "AQAAAAIAAYagAAAAEPg+ASbciPFxtyxQq8Wx5ilBUQ0RbAoITXXkOQm1PzC5BzySX0sn/wUmOjBKPDGV9w==",
  2208. PhoneNumber = "1234567890",
  2209. PhoneNumberConfirmed = true,
  2210. SecurityStamp = "49bb16c3-4704-4c60-908d-dc8506950acc",
  2211. TaxNumber = 111m,
  2212. TwoFactorEnabled = false,
  2213. UserName = "Admin",
  2214. UserType = 1
  2215. },
  2216. new
  2217. {
  2218. Id = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  2219. AccessFailedCount = 0,
  2220. ConcurrencyStamp = "4af7b4cf-802a-455b-b598-997e167745b3",
  2221. DateOfBirth = new DateTime(2001, 5, 13, 0, 0, 0, 0, DateTimeKind.Unspecified),
  2222. Email = "ali@b.com",
  2223. EmailConfirmed = true,
  2224. FirstName = "Ali",
  2225. IdNumber = "343434",
  2226. IncomeTaxValue = 100m,
  2227. IsDeleted = false,
  2228. IsStopped = false,
  2229. LastName = "Farok",
  2230. LockoutEnabled = false,
  2231. NormalizedEmail = "ALI@B.COM",
  2232. NormalizedUserName = "ALI",
  2233. PassportNumber = "7654321001010",
  2234. PasswordHash = "AQAAAAIAAYagAAAAEI3QJkcZjCH4Y8Db4rEgL8Mmll5oCvYcWiXZjQSN9bGW4SMcjHe3ZPMnkN/l9DmJeQ==",
  2235. PhoneNumber = "1234567888",
  2236. PhoneNumberConfirmed = true,
  2237. SecurityStamp = "62549056-1b9d-46d4-84f8-adea3e4d8b68",
  2238. TaxNumber = 222m,
  2239. TwoFactorEnabled = false,
  2240. UserName = "ali",
  2241. UserType = 1
  2242. });
  2243. });
  2244. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
  2245. {
  2246. b.Property<long>("Id")
  2247. .ValueGeneratedOnAdd()
  2248. .HasColumnType("bigint")
  2249. .HasColumnOrder(0);
  2250. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  2251. b.Property<long>("PermissionId")
  2252. .HasColumnType("bigint");
  2253. b.Property<string>("PermissionName")
  2254. .IsRequired()
  2255. .HasColumnType("nvarchar(max)");
  2256. b.Property<string>("RoleId")
  2257. .IsRequired()
  2258. .HasColumnType("nvarchar(450)");
  2259. b.HasKey("Id");
  2260. b.HasIndex("PermissionId");
  2261. b.HasIndex("RoleId");
  2262. b.ToTable("RolePermissions");
  2263. });
  2264. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAddress", b =>
  2265. {
  2266. b.Property<long>("Id")
  2267. .ValueGeneratedOnAdd()
  2268. .HasColumnType("bigint")
  2269. .HasColumnOrder(0);
  2270. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  2271. b.Property<string>("AddressDesc")
  2272. .HasColumnType("nvarchar(max)");
  2273. b.Property<long?>("CityId")
  2274. .HasColumnType("bigint");
  2275. b.Property<long?>("CountryId")
  2276. .HasColumnType("bigint");
  2277. b.Property<DateTime>("CreateDate")
  2278. .HasColumnType("datetime2")
  2279. .HasColumnOrder(3);
  2280. b.Property<string>("CreateUser")
  2281. .HasMaxLength(450)
  2282. .HasColumnType("nvarchar(450)")
  2283. .HasColumnOrder(1);
  2284. b.Property<string>("PostalCode")
  2285. .HasColumnType("nvarchar(max)");
  2286. b.Property<DateTime?>("UpdateDate")
  2287. .HasColumnType("datetime2")
  2288. .HasColumnOrder(4);
  2289. b.Property<string>("UpdateUser")
  2290. .HasMaxLength(450)
  2291. .HasColumnType("nvarchar(450)")
  2292. .HasColumnOrder(2);
  2293. b.Property<string>("UserId")
  2294. .IsRequired()
  2295. .HasColumnType("nvarchar(450)");
  2296. b.HasKey("Id");
  2297. b.HasIndex("CityId");
  2298. b.HasIndex("CountryId");
  2299. b.HasIndex("UserId")
  2300. .IsUnique();
  2301. b.ToTable("UserAddress");
  2302. });
  2303. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAttachment", b =>
  2304. {
  2305. b.Property<long>("Id")
  2306. .ValueGeneratedOnAdd()
  2307. .HasColumnType("bigint")
  2308. .HasColumnOrder(0);
  2309. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  2310. b.Property<long>("AttachmentTypeId")
  2311. .HasColumnType("bigint");
  2312. b.Property<DateTime>("CreateDate")
  2313. .HasColumnType("datetime2")
  2314. .HasColumnOrder(3);
  2315. b.Property<string>("CreateUser")
  2316. .HasMaxLength(450)
  2317. .HasColumnType("nvarchar(450)")
  2318. .HasColumnOrder(1);
  2319. b.Property<string>("FileName")
  2320. .IsRequired()
  2321. .HasMaxLength(250)
  2322. .HasColumnType("nvarchar(250)");
  2323. b.Property<string>("OriginalName")
  2324. .IsRequired()
  2325. .HasMaxLength(250)
  2326. .HasColumnType("nvarchar(250)");
  2327. b.Property<DateTime?>("UpdateDate")
  2328. .HasColumnType("datetime2")
  2329. .HasColumnOrder(4);
  2330. b.Property<string>("UpdateUser")
  2331. .HasMaxLength(450)
  2332. .HasColumnType("nvarchar(450)")
  2333. .HasColumnOrder(2);
  2334. b.Property<string>("UserId")
  2335. .IsRequired()
  2336. .HasColumnType("nvarchar(450)");
  2337. b.HasKey("Id");
  2338. b.HasIndex("AttachmentTypeId");
  2339. b.HasIndex("UserId");
  2340. b.ToTable("UserAttachments");
  2341. });
  2342. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  2343. {
  2344. b.Property<int>("Id")
  2345. .ValueGeneratedOnAdd()
  2346. .HasColumnType("int");
  2347. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  2348. b.Property<string>("ClaimType")
  2349. .HasColumnType("nvarchar(max)");
  2350. b.Property<string>("ClaimValue")
  2351. .HasColumnType("nvarchar(max)");
  2352. b.Property<string>("RoleId")
  2353. .IsRequired()
  2354. .HasColumnType("nvarchar(450)");
  2355. b.HasKey("Id");
  2356. b.HasIndex("RoleId");
  2357. b.ToTable("AspNetRoleClaims", (string)null);
  2358. });
  2359. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  2360. {
  2361. b.Property<int>("Id")
  2362. .ValueGeneratedOnAdd()
  2363. .HasColumnType("int");
  2364. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  2365. b.Property<string>("ClaimType")
  2366. .HasColumnType("nvarchar(max)");
  2367. b.Property<string>("ClaimValue")
  2368. .HasColumnType("nvarchar(max)");
  2369. b.Property<string>("UserId")
  2370. .IsRequired()
  2371. .HasColumnType("nvarchar(450)");
  2372. b.HasKey("Id");
  2373. b.HasIndex("UserId");
  2374. b.ToTable("AspNetUserClaims", (string)null);
  2375. });
  2376. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  2377. {
  2378. b.Property<string>("LoginProvider")
  2379. .HasColumnType("nvarchar(450)");
  2380. b.Property<string>("ProviderKey")
  2381. .HasColumnType("nvarchar(450)");
  2382. b.Property<string>("ProviderDisplayName")
  2383. .HasColumnType("nvarchar(max)");
  2384. b.Property<string>("UserId")
  2385. .IsRequired()
  2386. .HasColumnType("nvarchar(450)");
  2387. b.HasKey("LoginProvider", "ProviderKey");
  2388. b.HasIndex("UserId");
  2389. b.ToTable("AspNetUserLogins", (string)null);
  2390. });
  2391. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  2392. {
  2393. b.Property<string>("UserId")
  2394. .HasColumnType("nvarchar(450)");
  2395. b.Property<string>("RoleId")
  2396. .HasColumnType("nvarchar(450)");
  2397. b.HasKey("UserId", "RoleId");
  2398. b.HasIndex("RoleId");
  2399. b.ToTable("AspNetUserRoles", (string)null);
  2400. b.HasData(
  2401. new
  2402. {
  2403. UserId = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  2404. RoleId = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A"
  2405. },
  2406. new
  2407. {
  2408. UserId = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  2409. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  2410. });
  2411. });
  2412. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  2413. {
  2414. b.Property<string>("UserId")
  2415. .HasColumnType("nvarchar(450)");
  2416. b.Property<string>("LoginProvider")
  2417. .HasColumnType("nvarchar(450)");
  2418. b.Property<string>("Name")
  2419. .HasColumnType("nvarchar(450)");
  2420. b.Property<string>("Value")
  2421. .HasColumnType("nvarchar(max)");
  2422. b.HasKey("UserId", "LoginProvider", "Name");
  2423. b.ToTable("AspNetUserTokens", (string)null);
  2424. });
  2425. modelBuilder.Entity("ApplicationRoleApplicationUser", b =>
  2426. {
  2427. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  2428. .WithMany()
  2429. .HasForeignKey("UserRolesId")
  2430. .OnDelete(DeleteBehavior.Cascade)
  2431. .IsRequired();
  2432. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  2433. .WithMany()
  2434. .HasForeignKey("UsersId")
  2435. .OnDelete(DeleteBehavior.Cascade)
  2436. .IsRequired();
  2437. });
  2438. modelBuilder.Entity("MTWorkHR.Core.Entities.City", b =>
  2439. {
  2440. b.HasOne("MTWorkHR.Core.Entities.CountryLookup", "Country")
  2441. .WithMany()
  2442. .HasForeignKey("CountryId")
  2443. .OnDelete(DeleteBehavior.Cascade)
  2444. .IsRequired();
  2445. b.Navigation("Country");
  2446. });
  2447. modelBuilder.Entity("MTWorkHR.Core.Entities.MeetingUser", b =>
  2448. {
  2449. b.HasOne("MTWorkHR.Core.Entities.Meeting", "Meeting")
  2450. .WithMany("MeetingUsers")
  2451. .HasForeignKey("MeetingId")
  2452. .OnDelete(DeleteBehavior.Cascade)
  2453. .IsRequired();
  2454. b.Navigation("Meeting");
  2455. });
  2456. modelBuilder.Entity("MTWorkHR.Core.Entities.OrderAllocation", b =>
  2457. {
  2458. b.HasOne("MTWorkHR.Core.Entities.LeaveType", "LeaveType")
  2459. .WithMany()
  2460. .HasForeignKey("LeaveTypeId");
  2461. b.HasOne("MTWorkHR.Core.Entities.OrderType", "OrderType")
  2462. .WithMany()
  2463. .HasForeignKey("OrderTypeId")
  2464. .OnDelete(DeleteBehavior.Cascade)
  2465. .IsRequired();
  2466. b.Navigation("LeaveType");
  2467. b.Navigation("OrderType");
  2468. });
  2469. modelBuilder.Entity("MTWorkHR.Core.Entities.TeamUser", b =>
  2470. {
  2471. b.HasOne("MTWorkHR.Core.Entities.Team", "Team")
  2472. .WithMany("TeamUsers")
  2473. .HasForeignKey("TeamId")
  2474. .OnDelete(DeleteBehavior.Cascade)
  2475. .IsRequired();
  2476. b.Navigation("Team");
  2477. });
  2478. modelBuilder.Entity("MTWorkHR.Core.Entities.User.OrderRequest", b =>
  2479. {
  2480. b.HasOne("MTWorkHR.Core.Entities.LeaveType", "LeaveType")
  2481. .WithMany()
  2482. .HasForeignKey("LeaveTypeId");
  2483. b.HasOne("MTWorkHR.Core.Entities.OrderType", "OrderType")
  2484. .WithMany()
  2485. .HasForeignKey("OrderTypeId")
  2486. .OnDelete(DeleteBehavior.Cascade)
  2487. .IsRequired();
  2488. b.Navigation("LeaveType");
  2489. b.Navigation("OrderType");
  2490. });
  2491. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  2492. {
  2493. b.HasOne("MTWorkHR.Core.Entities.Project", "Project")
  2494. .WithMany()
  2495. .HasForeignKey("ProjectId")
  2496. .OnDelete(DeleteBehavior.Cascade)
  2497. .IsRequired();
  2498. b.HasOne("MTWorkHR.Core.Entities.UserTaskStatus", "TaskStatus")
  2499. .WithMany()
  2500. .HasForeignKey("StatusId")
  2501. .OnDelete(DeleteBehavior.Cascade)
  2502. .IsRequired();
  2503. b.Navigation("Project");
  2504. b.Navigation("TaskStatus");
  2505. });
  2506. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskAttachment", b =>
  2507. {
  2508. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  2509. .WithMany()
  2510. .HasForeignKey("AttachmentTypeId");
  2511. b.HasOne("MTWorkHR.Core.Entities.UserTask", "UserTask")
  2512. .WithMany("TaskAttachments")
  2513. .HasForeignKey("TaskId")
  2514. .OnDelete(DeleteBehavior.Cascade)
  2515. .IsRequired();
  2516. b.Navigation("AttachmentType");
  2517. b.Navigation("UserTask");
  2518. });
  2519. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskHistory", b =>
  2520. {
  2521. b.HasOne("MTWorkHR.Core.Entities.UserTaskStatus", "TaskStatus")
  2522. .WithMany()
  2523. .HasForeignKey("CurrentStatusId")
  2524. .OnDelete(DeleteBehavior.Cascade)
  2525. .IsRequired();
  2526. b.HasOne("MTWorkHR.Core.Entities.UserTask", null)
  2527. .WithMany("UserTaskHistories")
  2528. .HasForeignKey("UserTaskId");
  2529. b.Navigation("TaskStatus");
  2530. });
  2531. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  2532. {
  2533. b.HasOne("MTWorkHR.Core.Entities.CountryLookup", "Country")
  2534. .WithMany()
  2535. .HasForeignKey("CountryId");
  2536. b.HasOne("MTWorkHR.Core.Entities.Industry", "Industry")
  2537. .WithMany()
  2538. .HasForeignKey("IndustryId");
  2539. b.HasOne("MTWorkHR.Core.Entities.JobTitle", "JobTitle")
  2540. .WithMany()
  2541. .HasForeignKey("JobTitleId");
  2542. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "Manager")
  2543. .WithMany()
  2544. .HasForeignKey("ManagerId");
  2545. b.HasOne("MTWorkHR.Core.Entities.Qualification", "Qualification")
  2546. .WithMany()
  2547. .HasForeignKey("QualificationId");
  2548. b.HasOne("MTWorkHR.Core.Entities.University", "University")
  2549. .WithMany()
  2550. .HasForeignKey("UniversityId");
  2551. b.Navigation("Country");
  2552. b.Navigation("Industry");
  2553. b.Navigation("JobTitle");
  2554. b.Navigation("Manager");
  2555. b.Navigation("Qualification");
  2556. b.Navigation("University");
  2557. });
  2558. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
  2559. {
  2560. b.HasOne("MTWorkHR.Core.Entities.Permission", "Permission")
  2561. .WithMany()
  2562. .HasForeignKey("PermissionId")
  2563. .OnDelete(DeleteBehavior.Cascade)
  2564. .IsRequired();
  2565. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", "Role")
  2566. .WithMany("RolePermissions")
  2567. .HasForeignKey("RoleId")
  2568. .OnDelete(DeleteBehavior.Cascade)
  2569. .IsRequired();
  2570. b.Navigation("Permission");
  2571. b.Navigation("Role");
  2572. });
  2573. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAddress", b =>
  2574. {
  2575. b.HasOne("MTWorkHR.Core.Entities.City", "City")
  2576. .WithMany()
  2577. .HasForeignKey("CityId");
  2578. b.HasOne("MTWorkHR.Core.Entities.CountryLookup", "Country")
  2579. .WithMany()
  2580. .HasForeignKey("CountryId");
  2581. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "User")
  2582. .WithOne("UserAddress")
  2583. .HasForeignKey("MTWorkHR.Infrastructure.Entities.UserAddress", "UserId")
  2584. .OnDelete(DeleteBehavior.Cascade)
  2585. .IsRequired();
  2586. b.Navigation("City");
  2587. b.Navigation("Country");
  2588. b.Navigation("User");
  2589. });
  2590. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAttachment", b =>
  2591. {
  2592. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  2593. .WithMany()
  2594. .HasForeignKey("AttachmentTypeId")
  2595. .OnDelete(DeleteBehavior.Cascade)
  2596. .IsRequired();
  2597. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "User")
  2598. .WithMany("UserAttachments")
  2599. .HasForeignKey("UserId")
  2600. .OnDelete(DeleteBehavior.Cascade)
  2601. .IsRequired();
  2602. b.Navigation("AttachmentType");
  2603. b.Navigation("User");
  2604. });
  2605. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  2606. {
  2607. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  2608. .WithMany()
  2609. .HasForeignKey("RoleId")
  2610. .OnDelete(DeleteBehavior.Cascade)
  2611. .IsRequired();
  2612. });
  2613. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  2614. {
  2615. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  2616. .WithMany()
  2617. .HasForeignKey("UserId")
  2618. .OnDelete(DeleteBehavior.Cascade)
  2619. .IsRequired();
  2620. });
  2621. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  2622. {
  2623. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  2624. .WithMany()
  2625. .HasForeignKey("UserId")
  2626. .OnDelete(DeleteBehavior.Cascade)
  2627. .IsRequired();
  2628. });
  2629. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  2630. {
  2631. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  2632. .WithMany()
  2633. .HasForeignKey("RoleId")
  2634. .OnDelete(DeleteBehavior.Cascade)
  2635. .IsRequired();
  2636. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  2637. .WithMany()
  2638. .HasForeignKey("UserId")
  2639. .OnDelete(DeleteBehavior.Cascade)
  2640. .IsRequired();
  2641. });
  2642. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  2643. {
  2644. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  2645. .WithMany()
  2646. .HasForeignKey("UserId")
  2647. .OnDelete(DeleteBehavior.Cascade)
  2648. .IsRequired();
  2649. });
  2650. modelBuilder.Entity("MTWorkHR.Core.Entities.Meeting", b =>
  2651. {
  2652. b.Navigation("MeetingUsers");
  2653. });
  2654. modelBuilder.Entity("MTWorkHR.Core.Entities.Team", b =>
  2655. {
  2656. b.Navigation("TeamUsers");
  2657. });
  2658. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  2659. {
  2660. b.Navigation("TaskAttachments");
  2661. b.Navigation("UserTaskHistories");
  2662. });
  2663. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationRole", b =>
  2664. {
  2665. b.Navigation("RolePermissions");
  2666. });
  2667. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  2668. {
  2669. b.Navigation("UserAddress")
  2670. .IsRequired();
  2671. b.Navigation("UserAttachments");
  2672. });
  2673. #pragma warning restore 612, 618
  2674. }
  2675. }
  2676. }