20240730154025_addTaskUserTbl.Designer.cs 127 KB

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