20240516101716_altrAttach.Designer.cs 106 KB

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