HRDataContextModelSnapshot.cs 133 KB

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