HRDataContextModelSnapshot.cs 123 KB

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