HRDataContextModelSnapshot.cs 105 KB

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