HRDataContextModelSnapshot.cs 105 KB

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