HRDataContextModelSnapshot.cs 122 KB

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