20240507163614_altrUserRelation.Designer.cs 105 KB

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