20240916101932_chatTbls.Designer.cs 133 KB

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