20240626094811_attachContent.Designer.cs 123 KB

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