20240520154627_altrForget.Designer.cs 108 KB

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