HRDataContextModelSnapshot.cs 106 KB

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