HRDataContextModelSnapshot.cs 121 KB

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