20240519110611_altrUserBD.Designer.cs 106 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898
  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("20240519110611_altrUserBD")]
  14. partial class altrUserBD
  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<DateTime>("DateOfBirth")
  1736. .HasColumnType("datetime2");
  1737. b.Property<string>("DeleteUserId")
  1738. .HasColumnType("nvarchar(max)");
  1739. b.Property<string>("Email")
  1740. .HasMaxLength(256)
  1741. .HasColumnType("nvarchar(256)");
  1742. b.Property<bool>("EmailConfirmed")
  1743. .HasColumnType("bit");
  1744. b.Property<string>("FavoriteName")
  1745. .HasColumnType("nvarchar(max)");
  1746. b.Property<string>("FirstName")
  1747. .IsRequired()
  1748. .HasColumnType("nvarchar(max)");
  1749. b.Property<string>("IdNumber")
  1750. .IsRequired()
  1751. .HasColumnType("nvarchar(max)");
  1752. b.Property<decimal?>("IncomeTaxValue")
  1753. .HasColumnType("decimal(18,2)");
  1754. b.Property<long?>("IndustryId")
  1755. .HasColumnType("bigint");
  1756. b.Property<bool>("IsDeleted")
  1757. .HasColumnType("bit");
  1758. b.Property<bool>("IsStopped")
  1759. .HasColumnType("bit");
  1760. b.Property<long?>("JobTitleId")
  1761. .HasColumnType("bigint");
  1762. b.Property<string>("LastName")
  1763. .IsRequired()
  1764. .HasColumnType("nvarchar(max)");
  1765. b.Property<string>("LinkedInLink")
  1766. .HasColumnType("nvarchar(max)");
  1767. b.Property<bool>("LockoutEnabled")
  1768. .HasColumnType("bit");
  1769. b.Property<DateTimeOffset?>("LockoutEnd")
  1770. .HasColumnType("datetimeoffset");
  1771. b.Property<string>("ManagerId")
  1772. .HasColumnType("nvarchar(450)");
  1773. b.Property<string>("NormalizedEmail")
  1774. .HasMaxLength(256)
  1775. .HasColumnType("nvarchar(256)");
  1776. b.Property<string>("NormalizedUserName")
  1777. .HasMaxLength(256)
  1778. .HasColumnType("nvarchar(256)");
  1779. b.Property<string>("PassportNumber")
  1780. .IsRequired()
  1781. .HasColumnType("nvarchar(max)");
  1782. b.Property<string>("PasswordHash")
  1783. .HasColumnType("nvarchar(max)");
  1784. b.Property<string>("PhoneNumber")
  1785. .HasColumnType("nvarchar(max)");
  1786. b.Property<bool>("PhoneNumberConfirmed")
  1787. .HasColumnType("bit");
  1788. b.Property<long?>("QualificationId")
  1789. .HasColumnType("bigint");
  1790. b.Property<string>("SecurityStamp")
  1791. .HasColumnType("nvarchar(max)");
  1792. b.Property<decimal?>("TaxNumber")
  1793. .HasColumnType("decimal(18,2)");
  1794. b.Property<bool>("TwoFactorEnabled")
  1795. .HasColumnType("bit");
  1796. b.Property<long?>("UniversityId")
  1797. .HasColumnType("bigint");
  1798. b.Property<string>("UpdateUser")
  1799. .HasColumnType("nvarchar(max)");
  1800. b.Property<string>("UserName")
  1801. .HasMaxLength(256)
  1802. .HasColumnType("nvarchar(256)");
  1803. b.Property<int>("UserType")
  1804. .HasColumnType("int");
  1805. b.HasKey("Id");
  1806. b.HasIndex("CountryId");
  1807. b.HasIndex("IndustryId");
  1808. b.HasIndex("JobTitleId");
  1809. b.HasIndex("ManagerId");
  1810. b.HasIndex("NormalizedEmail")
  1811. .HasDatabaseName("EmailIndex");
  1812. b.HasIndex("NormalizedUserName")
  1813. .IsUnique()
  1814. .HasDatabaseName("UserNameIndex")
  1815. .HasFilter("[NormalizedUserName] IS NOT NULL");
  1816. b.HasIndex("QualificationId");
  1817. b.HasIndex("UniversityId");
  1818. b.ToTable("AspNetUsers", (string)null);
  1819. b.HasData(
  1820. new
  1821. {
  1822. Id = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  1823. AccessFailedCount = 0,
  1824. ConcurrencyStamp = "7cc87689-9eab-4280-b8e3-1834080783a5",
  1825. DateOfBirth = new DateTime(2000, 2, 10, 0, 0, 0, 0, DateTimeKind.Unspecified),
  1826. Email = "a@b.com",
  1827. EmailConfirmed = true,
  1828. FirstName = "Zinab",
  1829. IdNumber = "123",
  1830. IncomeTaxValue = 1m,
  1831. IsDeleted = false,
  1832. IsStopped = false,
  1833. LastName = "Elgendy",
  1834. LockoutEnabled = false,
  1835. NormalizedEmail = "A@B.COM",
  1836. NormalizedUserName = "ADMIN",
  1837. PassportNumber = "1234567",
  1838. PasswordHash = "AQAAAAIAAYagAAAAEPg+ASbciPFxtyxQq8Wx5ilBUQ0RbAoITXXkOQm1PzC5BzySX0sn/wUmOjBKPDGV9w==",
  1839. PhoneNumber = "1234567890",
  1840. PhoneNumberConfirmed = true,
  1841. SecurityStamp = "49bb16c3-4704-4c60-908d-dc8506950acc",
  1842. TaxNumber = 111m,
  1843. TwoFactorEnabled = false,
  1844. UserName = "Admin",
  1845. UserType = 1
  1846. },
  1847. new
  1848. {
  1849. Id = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  1850. AccessFailedCount = 0,
  1851. ConcurrencyStamp = "4af7b4cf-802a-455b-b598-997e167745b3",
  1852. DateOfBirth = new DateTime(2001, 5, 13, 0, 0, 0, 0, DateTimeKind.Unspecified),
  1853. Email = "ali@b.com",
  1854. EmailConfirmed = true,
  1855. FirstName = "Ali",
  1856. IdNumber = "343434",
  1857. IncomeTaxValue = 100m,
  1858. IsDeleted = false,
  1859. IsStopped = false,
  1860. LastName = "Farok",
  1861. LockoutEnabled = false,
  1862. NormalizedEmail = "ALI@B.COM",
  1863. NormalizedUserName = "ALI",
  1864. PassportNumber = "7654321001010",
  1865. PasswordHash = "AQAAAAIAAYagAAAAEI3QJkcZjCH4Y8Db4rEgL8Mmll5oCvYcWiXZjQSN9bGW4SMcjHe3ZPMnkN/l9DmJeQ==",
  1866. PhoneNumber = "1234567888",
  1867. PhoneNumberConfirmed = true,
  1868. SecurityStamp = "62549056-1b9d-46d4-84f8-adea3e4d8b68",
  1869. TaxNumber = 222m,
  1870. TwoFactorEnabled = false,
  1871. UserName = "ali",
  1872. UserType = 1
  1873. });
  1874. });
  1875. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
  1876. {
  1877. b.Property<long>("Id")
  1878. .ValueGeneratedOnAdd()
  1879. .HasColumnType("bigint")
  1880. .HasColumnOrder(0);
  1881. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1882. b.Property<long>("PermissionId")
  1883. .HasColumnType("bigint");
  1884. b.Property<string>("PermissionName")
  1885. .IsRequired()
  1886. .HasColumnType("nvarchar(max)");
  1887. b.Property<string>("RoleId")
  1888. .IsRequired()
  1889. .HasColumnType("nvarchar(450)");
  1890. b.HasKey("Id");
  1891. b.HasIndex("PermissionId");
  1892. b.HasIndex("RoleId");
  1893. b.ToTable("RolePermissions");
  1894. });
  1895. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAddress", b =>
  1896. {
  1897. b.Property<long>("Id")
  1898. .ValueGeneratedOnAdd()
  1899. .HasColumnType("bigint")
  1900. .HasColumnOrder(0);
  1901. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1902. b.Property<string>("AddressDesc")
  1903. .IsRequired()
  1904. .HasColumnType("nvarchar(max)");
  1905. b.Property<string>("City")
  1906. .IsRequired()
  1907. .HasColumnType("nvarchar(max)");
  1908. b.Property<int>("CountryId")
  1909. .HasColumnType("int");
  1910. b.Property<DateTime>("CreateDate")
  1911. .HasColumnType("datetime2")
  1912. .HasColumnOrder(3);
  1913. b.Property<string>("CreateUser")
  1914. .HasMaxLength(450)
  1915. .HasColumnType("nvarchar(450)")
  1916. .HasColumnOrder(1);
  1917. b.Property<string>("PostalCode")
  1918. .IsRequired()
  1919. .HasColumnType("nvarchar(max)");
  1920. b.Property<DateTime?>("UpdateDate")
  1921. .HasColumnType("datetime2")
  1922. .HasColumnOrder(4);
  1923. b.Property<string>("UpdateUser")
  1924. .HasMaxLength(450)
  1925. .HasColumnType("nvarchar(450)")
  1926. .HasColumnOrder(2);
  1927. b.Property<string>("UserId")
  1928. .IsRequired()
  1929. .HasColumnType("nvarchar(450)");
  1930. b.HasKey("Id");
  1931. b.HasIndex("UserId")
  1932. .IsUnique();
  1933. b.ToTable("UserAddress");
  1934. });
  1935. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAttachment", b =>
  1936. {
  1937. b.Property<long>("Id")
  1938. .ValueGeneratedOnAdd()
  1939. .HasColumnType("bigint")
  1940. .HasColumnOrder(0);
  1941. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  1942. b.Property<long>("AttachmentTypeId")
  1943. .HasColumnType("bigint");
  1944. b.Property<DateTime>("CreateDate")
  1945. .HasColumnType("datetime2")
  1946. .HasColumnOrder(3);
  1947. b.Property<string>("CreateUser")
  1948. .HasMaxLength(450)
  1949. .HasColumnType("nvarchar(450)")
  1950. .HasColumnOrder(1);
  1951. b.Property<string>("FileName")
  1952. .IsRequired()
  1953. .HasMaxLength(250)
  1954. .HasColumnType("nvarchar(250)");
  1955. b.Property<string>("OriginalName")
  1956. .IsRequired()
  1957. .HasMaxLength(250)
  1958. .HasColumnType("nvarchar(250)");
  1959. b.Property<DateTime?>("UpdateDate")
  1960. .HasColumnType("datetime2")
  1961. .HasColumnOrder(4);
  1962. b.Property<string>("UpdateUser")
  1963. .HasMaxLength(450)
  1964. .HasColumnType("nvarchar(450)")
  1965. .HasColumnOrder(2);
  1966. b.Property<string>("UserId")
  1967. .IsRequired()
  1968. .HasColumnType("nvarchar(450)");
  1969. b.HasKey("Id");
  1970. b.HasIndex("AttachmentTypeId");
  1971. b.HasIndex("UserId");
  1972. b.ToTable("UserAttachments");
  1973. });
  1974. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  1975. {
  1976. b.Property<int>("Id")
  1977. .ValueGeneratedOnAdd()
  1978. .HasColumnType("int");
  1979. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  1980. b.Property<string>("ClaimType")
  1981. .HasColumnType("nvarchar(max)");
  1982. b.Property<string>("ClaimValue")
  1983. .HasColumnType("nvarchar(max)");
  1984. b.Property<string>("RoleId")
  1985. .IsRequired()
  1986. .HasColumnType("nvarchar(450)");
  1987. b.HasKey("Id");
  1988. b.HasIndex("RoleId");
  1989. b.ToTable("AspNetRoleClaims", (string)null);
  1990. });
  1991. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  1992. {
  1993. b.Property<int>("Id")
  1994. .ValueGeneratedOnAdd()
  1995. .HasColumnType("int");
  1996. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  1997. b.Property<string>("ClaimType")
  1998. .HasColumnType("nvarchar(max)");
  1999. b.Property<string>("ClaimValue")
  2000. .HasColumnType("nvarchar(max)");
  2001. b.Property<string>("UserId")
  2002. .IsRequired()
  2003. .HasColumnType("nvarchar(450)");
  2004. b.HasKey("Id");
  2005. b.HasIndex("UserId");
  2006. b.ToTable("AspNetUserClaims", (string)null);
  2007. });
  2008. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  2009. {
  2010. b.Property<string>("LoginProvider")
  2011. .HasColumnType("nvarchar(450)");
  2012. b.Property<string>("ProviderKey")
  2013. .HasColumnType("nvarchar(450)");
  2014. b.Property<string>("ProviderDisplayName")
  2015. .HasColumnType("nvarchar(max)");
  2016. b.Property<string>("UserId")
  2017. .IsRequired()
  2018. .HasColumnType("nvarchar(450)");
  2019. b.HasKey("LoginProvider", "ProviderKey");
  2020. b.HasIndex("UserId");
  2021. b.ToTable("AspNetUserLogins", (string)null);
  2022. });
  2023. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  2024. {
  2025. b.Property<string>("UserId")
  2026. .HasColumnType("nvarchar(450)");
  2027. b.Property<string>("RoleId")
  2028. .HasColumnType("nvarchar(450)");
  2029. b.HasKey("UserId", "RoleId");
  2030. b.HasIndex("RoleId");
  2031. b.ToTable("AspNetUserRoles", (string)null);
  2032. b.HasData(
  2033. new
  2034. {
  2035. UserId = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  2036. RoleId = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A"
  2037. },
  2038. new
  2039. {
  2040. UserId = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  2041. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  2042. });
  2043. });
  2044. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  2045. {
  2046. b.Property<string>("UserId")
  2047. .HasColumnType("nvarchar(450)");
  2048. b.Property<string>("LoginProvider")
  2049. .HasColumnType("nvarchar(450)");
  2050. b.Property<string>("Name")
  2051. .HasColumnType("nvarchar(450)");
  2052. b.Property<string>("Value")
  2053. .HasColumnType("nvarchar(max)");
  2054. b.HasKey("UserId", "LoginProvider", "Name");
  2055. b.ToTable("AspNetUserTokens", (string)null);
  2056. });
  2057. modelBuilder.Entity("ApplicationRoleApplicationUser", b =>
  2058. {
  2059. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  2060. .WithMany()
  2061. .HasForeignKey("UserRolesId")
  2062. .OnDelete(DeleteBehavior.Cascade)
  2063. .IsRequired();
  2064. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  2065. .WithMany()
  2066. .HasForeignKey("UsersId")
  2067. .OnDelete(DeleteBehavior.Cascade)
  2068. .IsRequired();
  2069. });
  2070. modelBuilder.Entity("MTWorkHR.Core.Entities.MeetingUser", b =>
  2071. {
  2072. b.HasOne("MTWorkHR.Core.Entities.Meeting", "Meeting")
  2073. .WithMany("MeetingUsers")
  2074. .HasForeignKey("MeetingId")
  2075. .OnDelete(DeleteBehavior.Cascade)
  2076. .IsRequired();
  2077. b.Navigation("Meeting");
  2078. });
  2079. modelBuilder.Entity("MTWorkHR.Core.Entities.OrderAllocation", b =>
  2080. {
  2081. b.HasOne("MTWorkHR.Core.Entities.LeaveType", "LeaveType")
  2082. .WithMany()
  2083. .HasForeignKey("LeaveTypeId");
  2084. b.HasOne("MTWorkHR.Core.Entities.OrderType", "OrderType")
  2085. .WithMany()
  2086. .HasForeignKey("OrderTypeId")
  2087. .OnDelete(DeleteBehavior.Cascade)
  2088. .IsRequired();
  2089. b.Navigation("LeaveType");
  2090. b.Navigation("OrderType");
  2091. });
  2092. modelBuilder.Entity("MTWorkHR.Core.Entities.TeamUser", b =>
  2093. {
  2094. b.HasOne("MTWorkHR.Core.Entities.Team", "Team")
  2095. .WithMany("TeamUsers")
  2096. .HasForeignKey("TeamId")
  2097. .OnDelete(DeleteBehavior.Cascade)
  2098. .IsRequired();
  2099. b.Navigation("Team");
  2100. });
  2101. modelBuilder.Entity("MTWorkHR.Core.Entities.User.OrderRequest", b =>
  2102. {
  2103. b.HasOne("MTWorkHR.Core.Entities.LeaveType", "LeaveType")
  2104. .WithMany()
  2105. .HasForeignKey("LeaveTypeId");
  2106. b.HasOne("MTWorkHR.Core.Entities.OrderType", "OrderType")
  2107. .WithMany()
  2108. .HasForeignKey("OrderTypeId")
  2109. .OnDelete(DeleteBehavior.Cascade)
  2110. .IsRequired();
  2111. b.Navigation("LeaveType");
  2112. b.Navigation("OrderType");
  2113. });
  2114. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  2115. {
  2116. b.HasOne("MTWorkHR.Core.Entities.Project", "Project")
  2117. .WithMany()
  2118. .HasForeignKey("ProjectId")
  2119. .OnDelete(DeleteBehavior.Cascade)
  2120. .IsRequired();
  2121. b.HasOne("MTWorkHR.Core.Entities.UserTaskStatus", "TaskStatus")
  2122. .WithMany()
  2123. .HasForeignKey("StatusId")
  2124. .OnDelete(DeleteBehavior.Cascade)
  2125. .IsRequired();
  2126. b.Navigation("Project");
  2127. b.Navigation("TaskStatus");
  2128. });
  2129. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskAttachment", b =>
  2130. {
  2131. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  2132. .WithMany()
  2133. .HasForeignKey("AttachmentTypeId");
  2134. b.HasOne("MTWorkHR.Core.Entities.UserTask", "UserTask")
  2135. .WithMany("TaskAttachments")
  2136. .HasForeignKey("TaskId")
  2137. .OnDelete(DeleteBehavior.Cascade)
  2138. .IsRequired();
  2139. b.Navigation("AttachmentType");
  2140. b.Navigation("UserTask");
  2141. });
  2142. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskHistory", b =>
  2143. {
  2144. b.HasOne("MTWorkHR.Core.Entities.UserTaskStatus", "TaskStatus")
  2145. .WithMany()
  2146. .HasForeignKey("CurrentStatusId")
  2147. .OnDelete(DeleteBehavior.Cascade)
  2148. .IsRequired();
  2149. b.HasOne("MTWorkHR.Core.Entities.UserTask", null)
  2150. .WithMany("UserTaskHistories")
  2151. .HasForeignKey("UserTaskId");
  2152. b.Navigation("TaskStatus");
  2153. });
  2154. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  2155. {
  2156. b.HasOne("MTWorkHR.Core.Entities.CountryLookup", "Country")
  2157. .WithMany()
  2158. .HasForeignKey("CountryId");
  2159. b.HasOne("MTWorkHR.Core.Entities.Industry", "Industry")
  2160. .WithMany()
  2161. .HasForeignKey("IndustryId");
  2162. b.HasOne("MTWorkHR.Core.Entities.JobTitle", "JobTitle")
  2163. .WithMany()
  2164. .HasForeignKey("JobTitleId");
  2165. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "Manager")
  2166. .WithMany()
  2167. .HasForeignKey("ManagerId");
  2168. b.HasOne("MTWorkHR.Core.Entities.Qualification", "Qualification")
  2169. .WithMany()
  2170. .HasForeignKey("QualificationId");
  2171. b.HasOne("MTWorkHR.Core.Entities.University", "University")
  2172. .WithMany()
  2173. .HasForeignKey("UniversityId");
  2174. b.Navigation("Country");
  2175. b.Navigation("Industry");
  2176. b.Navigation("JobTitle");
  2177. b.Navigation("Manager");
  2178. b.Navigation("Qualification");
  2179. b.Navigation("University");
  2180. });
  2181. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
  2182. {
  2183. b.HasOne("MTWorkHR.Core.Entities.Permission", "Permission")
  2184. .WithMany()
  2185. .HasForeignKey("PermissionId")
  2186. .OnDelete(DeleteBehavior.Cascade)
  2187. .IsRequired();
  2188. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", "Role")
  2189. .WithMany("RolePermissions")
  2190. .HasForeignKey("RoleId")
  2191. .OnDelete(DeleteBehavior.Cascade)
  2192. .IsRequired();
  2193. b.Navigation("Permission");
  2194. b.Navigation("Role");
  2195. });
  2196. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAddress", b =>
  2197. {
  2198. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "User")
  2199. .WithOne("UserAddress")
  2200. .HasForeignKey("MTWorkHR.Infrastructure.Entities.UserAddress", "UserId")
  2201. .OnDelete(DeleteBehavior.Cascade)
  2202. .IsRequired();
  2203. b.Navigation("User");
  2204. });
  2205. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAttachment", b =>
  2206. {
  2207. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  2208. .WithMany()
  2209. .HasForeignKey("AttachmentTypeId")
  2210. .OnDelete(DeleteBehavior.Cascade)
  2211. .IsRequired();
  2212. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "User")
  2213. .WithMany("UserAttachments")
  2214. .HasForeignKey("UserId")
  2215. .OnDelete(DeleteBehavior.Cascade)
  2216. .IsRequired();
  2217. b.Navigation("AttachmentType");
  2218. b.Navigation("User");
  2219. });
  2220. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  2221. {
  2222. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  2223. .WithMany()
  2224. .HasForeignKey("RoleId")
  2225. .OnDelete(DeleteBehavior.Cascade)
  2226. .IsRequired();
  2227. });
  2228. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  2229. {
  2230. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  2231. .WithMany()
  2232. .HasForeignKey("UserId")
  2233. .OnDelete(DeleteBehavior.Cascade)
  2234. .IsRequired();
  2235. });
  2236. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  2237. {
  2238. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  2239. .WithMany()
  2240. .HasForeignKey("UserId")
  2241. .OnDelete(DeleteBehavior.Cascade)
  2242. .IsRequired();
  2243. });
  2244. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  2245. {
  2246. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  2247. .WithMany()
  2248. .HasForeignKey("RoleId")
  2249. .OnDelete(DeleteBehavior.Cascade)
  2250. .IsRequired();
  2251. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  2252. .WithMany()
  2253. .HasForeignKey("UserId")
  2254. .OnDelete(DeleteBehavior.Cascade)
  2255. .IsRequired();
  2256. });
  2257. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  2258. {
  2259. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  2260. .WithMany()
  2261. .HasForeignKey("UserId")
  2262. .OnDelete(DeleteBehavior.Cascade)
  2263. .IsRequired();
  2264. });
  2265. modelBuilder.Entity("MTWorkHR.Core.Entities.Meeting", b =>
  2266. {
  2267. b.Navigation("MeetingUsers");
  2268. });
  2269. modelBuilder.Entity("MTWorkHR.Core.Entities.Team", b =>
  2270. {
  2271. b.Navigation("TeamUsers");
  2272. });
  2273. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  2274. {
  2275. b.Navigation("TaskAttachments");
  2276. b.Navigation("UserTaskHistories");
  2277. });
  2278. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationRole", b =>
  2279. {
  2280. b.Navigation("RolePermissions");
  2281. });
  2282. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  2283. {
  2284. b.Navigation("UserAddress")
  2285. .IsRequired();
  2286. b.Navigation("UserAttachments");
  2287. });
  2288. #pragma warning restore 612, 618
  2289. }
  2290. }
  2291. }