20240529145339_addCompanyIdAll.Designer.cs 121 KB

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