20241008101202_addHubConnection.Designer.cs 134 KB

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