20240414154330_altrUserRelations.Designer.cs 105 KB

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