20240624143650_altrAttachpath.Designer.cs 122 KB

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