HRDataContextModelSnapshot.cs 121 KB

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