20240304072047_addTeamMeeting.Designer.cs 61 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680
  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("20240304072047_addTeamMeeting")]
  14. partial class addTeamMeeting
  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.AuthLog", 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<string>("Channel")
  42. .HasColumnType("nvarchar(max)");
  43. b.Property<DateTime>("CreateDate")
  44. .HasColumnType("datetime2");
  45. b.Property<string>("CreateUser")
  46. .IsRequired()
  47. .HasColumnType("nvarchar(max)");
  48. b.Property<string>("ErrorCode")
  49. .IsRequired()
  50. .HasColumnType("nvarchar(max)");
  51. b.Property<string>("ErrorDescription")
  52. .IsRequired()
  53. .HasColumnType("nvarchar(max)");
  54. b.Property<string>("InnerException")
  55. .HasColumnType("nvarchar(max)");
  56. b.Property<string>("Input")
  57. .HasColumnType("nvarchar(max)");
  58. b.Property<string>("Method")
  59. .IsRequired()
  60. .HasColumnType("nvarchar(max)");
  61. b.Property<string>("QueryString")
  62. .HasColumnType("nvarchar(max)");
  63. b.Property<string>("ServerIP")
  64. .HasColumnType("nvarchar(max)");
  65. b.Property<string>("ServiceResponseTimeInSeconds")
  66. .IsRequired()
  67. .HasColumnType("nvarchar(max)");
  68. b.Property<string>("UserIP")
  69. .HasColumnType("nvarchar(max)");
  70. b.Property<string>("userAgent")
  71. .HasColumnType("nvarchar(max)");
  72. b.HasKey("Id");
  73. b.ToTable("AuthLogs");
  74. });
  75. modelBuilder.Entity("MTWorkHR.Core.Entities.Base.AttachmentType", b =>
  76. {
  77. b.Property<long>("Id")
  78. .ValueGeneratedOnAdd()
  79. .HasColumnType("bigint")
  80. .HasColumnOrder(0);
  81. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  82. b.Property<bool>("IsRequired")
  83. .HasColumnType("bit");
  84. b.Property<string>("NameAr")
  85. .IsRequired()
  86. .HasMaxLength(250)
  87. .HasColumnType("nvarchar(250)");
  88. b.Property<string>("NameEn")
  89. .IsRequired()
  90. .HasMaxLength(250)
  91. .HasColumnType("nvarchar(250)");
  92. b.HasKey("Id");
  93. b.ToTable("AttachmentTypes");
  94. b.HasData(
  95. new
  96. {
  97. Id = 1L,
  98. IsRequired = false,
  99. NameAr = "السيرة الذاتية",
  100. NameEn = "CV"
  101. },
  102. new
  103. {
  104. Id = 2L,
  105. IsRequired = false,
  106. NameAr = "الهوية",
  107. NameEn = "Identification"
  108. });
  109. });
  110. modelBuilder.Entity("MTWorkHR.Core.Entities.Company", b =>
  111. {
  112. b.Property<long>("Id")
  113. .ValueGeneratedOnAdd()
  114. .HasColumnType("bigint")
  115. .HasColumnOrder(0);
  116. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  117. b.Property<string>("CRNumber")
  118. .IsRequired()
  119. .HasColumnType("nvarchar(max)");
  120. b.Property<string>("CompanyName")
  121. .IsRequired()
  122. .HasColumnType("nvarchar(max)");
  123. b.Property<DateTime>("CreateDate")
  124. .HasColumnType("datetime2")
  125. .HasColumnOrder(3);
  126. b.Property<string>("CreateUser")
  127. .HasMaxLength(450)
  128. .HasColumnType("nvarchar(450)")
  129. .HasColumnOrder(1);
  130. b.Property<bool>("IsDeleted")
  131. .HasColumnType("bit");
  132. b.Property<int>("TaxNumber")
  133. .HasColumnType("int");
  134. b.Property<DateTime?>("UpdateDate")
  135. .HasColumnType("datetime2")
  136. .HasColumnOrder(4);
  137. b.Property<string>("UpdateUser")
  138. .HasMaxLength(450)
  139. .HasColumnType("nvarchar(450)")
  140. .HasColumnOrder(2);
  141. b.Property<long>("UserId")
  142. .HasColumnType("bigint");
  143. b.HasKey("Id");
  144. b.ToTable("Companies");
  145. });
  146. modelBuilder.Entity("MTWorkHR.Core.Entities.FileLog", b =>
  147. {
  148. b.Property<long>("Id")
  149. .ValueGeneratedOnAdd()
  150. .HasColumnType("bigint")
  151. .HasColumnOrder(0);
  152. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  153. b.Property<string>("Channel")
  154. .HasColumnType("nvarchar(max)");
  155. b.Property<DateTime>("CreateDate")
  156. .HasColumnType("datetime2");
  157. b.Property<string>("CreateUser")
  158. .IsRequired()
  159. .HasColumnType("nvarchar(max)");
  160. b.Property<string>("ErrorCode")
  161. .IsRequired()
  162. .HasColumnType("nvarchar(max)");
  163. b.Property<string>("ErrorDescription")
  164. .IsRequired()
  165. .HasColumnType("nvarchar(max)");
  166. b.Property<string>("InnerException")
  167. .HasColumnType("nvarchar(max)");
  168. b.Property<string>("Input")
  169. .HasColumnType("nvarchar(max)");
  170. b.Property<string>("Method")
  171. .IsRequired()
  172. .HasColumnType("nvarchar(max)");
  173. b.Property<string>("QueryString")
  174. .HasColumnType("nvarchar(max)");
  175. b.Property<string>("ServerIP")
  176. .HasColumnType("nvarchar(max)");
  177. b.Property<string>("ServiceResponseTimeInSeconds")
  178. .IsRequired()
  179. .HasColumnType("nvarchar(max)");
  180. b.Property<string>("UserIP")
  181. .HasColumnType("nvarchar(max)");
  182. b.Property<string>("userAgent")
  183. .HasColumnType("nvarchar(max)");
  184. b.HasKey("Id");
  185. b.ToTable("FileLogs");
  186. });
  187. modelBuilder.Entity("MTWorkHR.Core.Entities.Meeting", b =>
  188. {
  189. b.Property<long>("Id")
  190. .ValueGeneratedOnAdd()
  191. .HasColumnType("bigint")
  192. .HasColumnOrder(0);
  193. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  194. b.Property<DateTime>("CreateDate")
  195. .HasColumnType("datetime2")
  196. .HasColumnOrder(3);
  197. b.Property<string>("CreateUser")
  198. .HasMaxLength(450)
  199. .HasColumnType("nvarchar(450)")
  200. .HasColumnOrder(1);
  201. b.Property<string>("DeleteUserId")
  202. .HasMaxLength(450)
  203. .HasColumnType("nvarchar(450)")
  204. .HasColumnOrder(8);
  205. b.Property<string>("Description")
  206. .HasMaxLength(500)
  207. .HasColumnType("nvarchar(500)");
  208. b.Property<bool>("IsDeleted")
  209. .HasColumnType("bit")
  210. .HasColumnOrder(7);
  211. b.Property<DateTime>("MeetingDateTime")
  212. .HasColumnType("datetime2");
  213. b.Property<string>("MeetingLink")
  214. .HasMaxLength(250)
  215. .HasColumnType("nvarchar(250)");
  216. b.Property<string>("Title")
  217. .IsRequired()
  218. .HasMaxLength(250)
  219. .HasColumnType("nvarchar(250)");
  220. b.Property<DateTime?>("UpdateDate")
  221. .HasColumnType("datetime2")
  222. .HasColumnOrder(4);
  223. b.Property<string>("UpdateUser")
  224. .HasMaxLength(450)
  225. .HasColumnType("nvarchar(450)")
  226. .HasColumnOrder(2);
  227. b.HasKey("Id");
  228. b.ToTable("Meetings");
  229. });
  230. modelBuilder.Entity("MTWorkHR.Core.Entities.MeetingUser", b =>
  231. {
  232. b.Property<long>("Id")
  233. .ValueGeneratedOnAdd()
  234. .HasColumnType("bigint")
  235. .HasColumnOrder(0);
  236. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  237. b.Property<string>("AssignedUserId")
  238. .IsRequired()
  239. .HasColumnType("nvarchar(max)");
  240. b.Property<DateTime>("CreateDate")
  241. .HasColumnType("datetime2")
  242. .HasColumnOrder(3);
  243. b.Property<string>("CreateUser")
  244. .HasMaxLength(450)
  245. .HasColumnType("nvarchar(450)")
  246. .HasColumnOrder(1);
  247. b.Property<long>("MeetingId")
  248. .HasColumnType("bigint");
  249. b.Property<DateTime?>("UpdateDate")
  250. .HasColumnType("datetime2")
  251. .HasColumnOrder(4);
  252. b.Property<string>("UpdateUser")
  253. .HasMaxLength(450)
  254. .HasColumnType("nvarchar(450)")
  255. .HasColumnOrder(2);
  256. b.HasKey("Id");
  257. b.HasIndex("MeetingId");
  258. b.ToTable("MeetingUser");
  259. });
  260. modelBuilder.Entity("MTWorkHR.Core.Entities.Permission", b =>
  261. {
  262. b.Property<long>("Id")
  263. .ValueGeneratedOnAdd()
  264. .HasColumnType("bigint")
  265. .HasColumnOrder(0);
  266. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  267. b.Property<string>("CategoryName")
  268. .IsRequired()
  269. .HasMaxLength(150)
  270. .HasColumnType("nvarchar(150)");
  271. b.Property<string>("Desc")
  272. .IsRequired()
  273. .HasMaxLength(250)
  274. .HasColumnType("nvarchar(250)");
  275. b.Property<string>("Name")
  276. .IsRequired()
  277. .HasMaxLength(250)
  278. .HasColumnType("nvarchar(250)");
  279. b.Property<bool>("Show")
  280. .HasColumnType("bit");
  281. b.HasKey("Id");
  282. b.ToTable("Permissions");
  283. });
  284. modelBuilder.Entity("MTWorkHR.Core.Entities.Project", b =>
  285. {
  286. b.Property<long>("Id")
  287. .ValueGeneratedOnAdd()
  288. .HasColumnType("bigint")
  289. .HasColumnOrder(0);
  290. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  291. b.Property<DateTime>("CreateDate")
  292. .HasColumnType("datetime2")
  293. .HasColumnOrder(3);
  294. b.Property<string>("CreateUser")
  295. .HasMaxLength(450)
  296. .HasColumnType("nvarchar(450)")
  297. .HasColumnOrder(1);
  298. b.Property<string>("DeleteUserId")
  299. .HasMaxLength(450)
  300. .HasColumnType("nvarchar(450)")
  301. .HasColumnOrder(8);
  302. b.Property<bool>("IsDeleted")
  303. .HasColumnType("bit")
  304. .HasColumnOrder(7);
  305. b.Property<string>("NameAr")
  306. .IsRequired()
  307. .HasMaxLength(250)
  308. .HasColumnType("nvarchar(250)");
  309. b.Property<string>("NameEn")
  310. .IsRequired()
  311. .HasMaxLength(250)
  312. .HasColumnType("nvarchar(250)");
  313. b.Property<DateTime?>("UpdateDate")
  314. .HasColumnType("datetime2")
  315. .HasColumnOrder(4);
  316. b.Property<string>("UpdateUser")
  317. .HasMaxLength(450)
  318. .HasColumnType("nvarchar(450)")
  319. .HasColumnOrder(2);
  320. b.HasKey("Id");
  321. b.ToTable("Projects");
  322. });
  323. modelBuilder.Entity("MTWorkHR.Core.Entities.RoleLog", b =>
  324. {
  325. b.Property<long>("Id")
  326. .ValueGeneratedOnAdd()
  327. .HasColumnType("bigint")
  328. .HasColumnOrder(0);
  329. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  330. b.Property<string>("Channel")
  331. .HasColumnType("nvarchar(max)");
  332. b.Property<DateTime>("CreateDate")
  333. .HasColumnType("datetime2");
  334. b.Property<string>("CreateUser")
  335. .IsRequired()
  336. .HasColumnType("nvarchar(max)");
  337. b.Property<string>("ErrorCode")
  338. .IsRequired()
  339. .HasColumnType("nvarchar(max)");
  340. b.Property<string>("ErrorDescription")
  341. .IsRequired()
  342. .HasColumnType("nvarchar(max)");
  343. b.Property<string>("InnerException")
  344. .HasColumnType("nvarchar(max)");
  345. b.Property<string>("Input")
  346. .HasColumnType("nvarchar(max)");
  347. b.Property<string>("Method")
  348. .IsRequired()
  349. .HasColumnType("nvarchar(max)");
  350. b.Property<string>("QueryString")
  351. .HasColumnType("nvarchar(max)");
  352. b.Property<string>("ServerIP")
  353. .HasColumnType("nvarchar(max)");
  354. b.Property<string>("ServiceResponseTimeInSeconds")
  355. .IsRequired()
  356. .HasColumnType("nvarchar(max)");
  357. b.Property<string>("UserIP")
  358. .HasColumnType("nvarchar(max)");
  359. b.Property<string>("userAgent")
  360. .HasColumnType("nvarchar(max)");
  361. b.HasKey("Id");
  362. b.ToTable("RoleLogs");
  363. });
  364. modelBuilder.Entity("MTWorkHR.Core.Entities.SettingLog", b =>
  365. {
  366. b.Property<long>("Id")
  367. .ValueGeneratedOnAdd()
  368. .HasColumnType("bigint")
  369. .HasColumnOrder(0);
  370. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  371. b.Property<string>("Channel")
  372. .HasColumnType("nvarchar(max)");
  373. b.Property<DateTime>("CreateDate")
  374. .HasColumnType("datetime2");
  375. b.Property<string>("CreateUser")
  376. .IsRequired()
  377. .HasColumnType("nvarchar(max)");
  378. b.Property<string>("ErrorCode")
  379. .IsRequired()
  380. .HasColumnType("nvarchar(max)");
  381. b.Property<string>("ErrorDescription")
  382. .IsRequired()
  383. .HasColumnType("nvarchar(max)");
  384. b.Property<string>("InnerException")
  385. .HasColumnType("nvarchar(max)");
  386. b.Property<string>("Input")
  387. .HasColumnType("nvarchar(max)");
  388. b.Property<string>("Method")
  389. .IsRequired()
  390. .HasColumnType("nvarchar(max)");
  391. b.Property<string>("QueryString")
  392. .HasColumnType("nvarchar(max)");
  393. b.Property<string>("ServerIP")
  394. .HasColumnType("nvarchar(max)");
  395. b.Property<string>("ServiceResponseTimeInSeconds")
  396. .IsRequired()
  397. .HasColumnType("nvarchar(max)");
  398. b.Property<string>("UserIP")
  399. .HasColumnType("nvarchar(max)");
  400. b.Property<string>("userAgent")
  401. .HasColumnType("nvarchar(max)");
  402. b.HasKey("Id");
  403. b.ToTable("SettingLogs");
  404. });
  405. modelBuilder.Entity("MTWorkHR.Core.Entities.Team", b =>
  406. {
  407. b.Property<long>("Id")
  408. .ValueGeneratedOnAdd()
  409. .HasColumnType("bigint")
  410. .HasColumnOrder(0);
  411. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  412. b.Property<DateTime>("CreateDate")
  413. .HasColumnType("datetime2")
  414. .HasColumnOrder(3);
  415. b.Property<string>("CreateUser")
  416. .HasMaxLength(450)
  417. .HasColumnType("nvarchar(450)")
  418. .HasColumnOrder(1);
  419. b.Property<string>("DeleteUserId")
  420. .HasMaxLength(450)
  421. .HasColumnType("nvarchar(450)")
  422. .HasColumnOrder(8);
  423. b.Property<bool>("IsDeleted")
  424. .HasColumnType("bit")
  425. .HasColumnOrder(7);
  426. b.Property<string>("NameAr")
  427. .IsRequired()
  428. .HasMaxLength(250)
  429. .HasColumnType("nvarchar(250)");
  430. b.Property<string>("NameEn")
  431. .IsRequired()
  432. .HasMaxLength(250)
  433. .HasColumnType("nvarchar(250)");
  434. b.Property<DateTime?>("UpdateDate")
  435. .HasColumnType("datetime2")
  436. .HasColumnOrder(4);
  437. b.Property<string>("UpdateUser")
  438. .HasMaxLength(450)
  439. .HasColumnType("nvarchar(450)")
  440. .HasColumnOrder(2);
  441. b.HasKey("Id");
  442. b.ToTable("Teams");
  443. });
  444. modelBuilder.Entity("MTWorkHR.Core.Entities.TeamUser", b =>
  445. {
  446. b.Property<long>("Id")
  447. .ValueGeneratedOnAdd()
  448. .HasColumnType("bigint")
  449. .HasColumnOrder(0);
  450. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  451. b.Property<string>("AssignedUserId")
  452. .IsRequired()
  453. .HasColumnType("nvarchar(max)");
  454. b.Property<DateTime>("CreateDate")
  455. .HasColumnType("datetime2")
  456. .HasColumnOrder(3);
  457. b.Property<string>("CreateUser")
  458. .HasMaxLength(450)
  459. .HasColumnType("nvarchar(450)")
  460. .HasColumnOrder(1);
  461. b.Property<long>("TeamId")
  462. .HasColumnType("bigint");
  463. b.Property<DateTime?>("UpdateDate")
  464. .HasColumnType("datetime2")
  465. .HasColumnOrder(4);
  466. b.Property<string>("UpdateUser")
  467. .HasMaxLength(450)
  468. .HasColumnType("nvarchar(450)")
  469. .HasColumnOrder(2);
  470. b.HasKey("Id");
  471. b.HasIndex("TeamId");
  472. b.ToTable("TeamUser");
  473. });
  474. modelBuilder.Entity("MTWorkHR.Core.Entities.UserLog", b =>
  475. {
  476. b.Property<long>("Id")
  477. .ValueGeneratedOnAdd()
  478. .HasColumnType("bigint")
  479. .HasColumnOrder(0);
  480. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  481. b.Property<string>("Channel")
  482. .HasColumnType("nvarchar(max)");
  483. b.Property<DateTime>("CreateDate")
  484. .HasColumnType("datetime2");
  485. b.Property<string>("CreateUser")
  486. .IsRequired()
  487. .HasColumnType("nvarchar(max)");
  488. b.Property<string>("ErrorCode")
  489. .IsRequired()
  490. .HasColumnType("nvarchar(max)");
  491. b.Property<string>("ErrorDescription")
  492. .IsRequired()
  493. .HasColumnType("nvarchar(max)");
  494. b.Property<string>("InnerException")
  495. .HasColumnType("nvarchar(max)");
  496. b.Property<string>("Input")
  497. .HasColumnType("nvarchar(max)");
  498. b.Property<string>("Method")
  499. .IsRequired()
  500. .HasColumnType("nvarchar(max)");
  501. b.Property<string>("QueryString")
  502. .HasColumnType("nvarchar(max)");
  503. b.Property<string>("ServerIP")
  504. .HasColumnType("nvarchar(max)");
  505. b.Property<string>("ServiceResponseTimeInSeconds")
  506. .IsRequired()
  507. .HasColumnType("nvarchar(max)");
  508. b.Property<string>("UserIP")
  509. .HasColumnType("nvarchar(max)");
  510. b.Property<string>("userAgent")
  511. .HasColumnType("nvarchar(max)");
  512. b.HasKey("Id");
  513. b.ToTable("UserLogs");
  514. });
  515. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  516. {
  517. b.Property<long>("Id")
  518. .ValueGeneratedOnAdd()
  519. .HasColumnType("bigint")
  520. .HasColumnOrder(0);
  521. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  522. b.Property<long>("AssignedUserId")
  523. .HasColumnType("bigint");
  524. b.Property<DateTime>("CreateDate")
  525. .HasColumnType("datetime2")
  526. .HasColumnOrder(3);
  527. b.Property<string>("CreateUser")
  528. .HasMaxLength(450)
  529. .HasColumnType("nvarchar(450)")
  530. .HasColumnOrder(1);
  531. b.Property<string>("DeleteUserId")
  532. .HasMaxLength(450)
  533. .HasColumnType("nvarchar(450)")
  534. .HasColumnOrder(8);
  535. b.Property<string>("Description")
  536. .IsRequired()
  537. .HasColumnType("nvarchar(max)");
  538. b.Property<DateTime>("DueDate")
  539. .HasColumnType("datetime2");
  540. b.Property<bool>("IsDeleted")
  541. .HasColumnType("bit")
  542. .HasColumnOrder(7);
  543. b.Property<int>("Priority")
  544. .HasColumnType("int");
  545. b.Property<long>("ProjectId")
  546. .HasColumnType("bigint");
  547. b.Property<long>("StatusId")
  548. .HasColumnType("bigint");
  549. b.Property<string>("Title")
  550. .IsRequired()
  551. .HasColumnType("nvarchar(max)");
  552. b.Property<DateTime?>("UpdateDate")
  553. .HasColumnType("datetime2")
  554. .HasColumnOrder(4);
  555. b.Property<string>("UpdateUser")
  556. .HasMaxLength(450)
  557. .HasColumnType("nvarchar(450)")
  558. .HasColumnOrder(2);
  559. b.HasKey("Id");
  560. b.HasIndex("ProjectId");
  561. b.HasIndex("StatusId");
  562. b.ToTable("UserTasks");
  563. });
  564. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskAttachment", b =>
  565. {
  566. b.Property<long>("Id")
  567. .ValueGeneratedOnAdd()
  568. .HasColumnType("bigint")
  569. .HasColumnOrder(0);
  570. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  571. b.Property<long>("AttachmentTypeId")
  572. .HasColumnType("bigint");
  573. b.Property<DateTime>("CreateDate")
  574. .HasColumnType("datetime2")
  575. .HasColumnOrder(3);
  576. b.Property<string>("CreateUser")
  577. .HasMaxLength(450)
  578. .HasColumnType("nvarchar(450)")
  579. .HasColumnOrder(1);
  580. b.Property<string>("FileName")
  581. .HasMaxLength(250)
  582. .HasColumnType("nvarchar(250)");
  583. b.Property<string>("OriginalName")
  584. .IsRequired()
  585. .HasMaxLength(250)
  586. .HasColumnType("nvarchar(250)");
  587. b.Property<long>("TaskId")
  588. .HasColumnType("bigint");
  589. b.Property<DateTime?>("UpdateDate")
  590. .HasColumnType("datetime2")
  591. .HasColumnOrder(4);
  592. b.Property<string>("UpdateUser")
  593. .HasMaxLength(450)
  594. .HasColumnType("nvarchar(450)")
  595. .HasColumnOrder(2);
  596. b.HasKey("Id");
  597. b.HasIndex("AttachmentTypeId");
  598. b.HasIndex("TaskId");
  599. b.ToTable("UserTaskAttachments");
  600. });
  601. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskHistory", b =>
  602. {
  603. b.Property<long>("Id")
  604. .ValueGeneratedOnAdd()
  605. .HasColumnType("bigint")
  606. .HasColumnOrder(0);
  607. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  608. b.Property<long>("AssignedToUserId")
  609. .HasColumnType("bigint");
  610. b.Property<string>("Comment")
  611. .HasMaxLength(500)
  612. .HasColumnType("nvarchar(500)");
  613. b.Property<DateTime>("CreateDate")
  614. .HasColumnType("datetime2")
  615. .HasColumnOrder(3);
  616. b.Property<string>("CreateUser")
  617. .HasMaxLength(450)
  618. .HasColumnType("nvarchar(450)")
  619. .HasColumnOrder(1);
  620. b.Property<long>("CurrentStatusId")
  621. .HasColumnType("bigint");
  622. b.Property<bool>("IsDeleted")
  623. .HasColumnType("bit");
  624. b.Property<long>("TaskId")
  625. .HasColumnType("bigint");
  626. b.Property<DateTime?>("UpdateDate")
  627. .HasColumnType("datetime2")
  628. .HasColumnOrder(4);
  629. b.Property<string>("UpdateUser")
  630. .HasMaxLength(450)
  631. .HasColumnType("nvarchar(450)")
  632. .HasColumnOrder(2);
  633. b.Property<long?>("UserTaskId")
  634. .HasColumnType("bigint");
  635. b.HasKey("Id");
  636. b.HasIndex("CurrentStatusId");
  637. b.HasIndex("UserTaskId");
  638. b.ToTable("UserTaskHistories");
  639. });
  640. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskLog", b =>
  641. {
  642. b.Property<long>("Id")
  643. .ValueGeneratedOnAdd()
  644. .HasColumnType("bigint")
  645. .HasColumnOrder(0);
  646. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  647. b.Property<string>("Channel")
  648. .HasColumnType("nvarchar(max)");
  649. b.Property<DateTime>("CreateDate")
  650. .HasColumnType("datetime2");
  651. b.Property<string>("CreateUser")
  652. .IsRequired()
  653. .HasColumnType("nvarchar(max)");
  654. b.Property<string>("ErrorCode")
  655. .IsRequired()
  656. .HasColumnType("nvarchar(max)");
  657. b.Property<string>("ErrorDescription")
  658. .IsRequired()
  659. .HasColumnType("nvarchar(max)");
  660. b.Property<string>("InnerException")
  661. .HasColumnType("nvarchar(max)");
  662. b.Property<string>("Input")
  663. .HasColumnType("nvarchar(max)");
  664. b.Property<string>("Method")
  665. .IsRequired()
  666. .HasColumnType("nvarchar(max)");
  667. b.Property<string>("QueryString")
  668. .HasColumnType("nvarchar(max)");
  669. b.Property<string>("ServerIP")
  670. .HasColumnType("nvarchar(max)");
  671. b.Property<string>("ServiceResponseTimeInSeconds")
  672. .IsRequired()
  673. .HasColumnType("nvarchar(max)");
  674. b.Property<string>("UserIP")
  675. .HasColumnType("nvarchar(max)");
  676. b.Property<string>("userAgent")
  677. .HasColumnType("nvarchar(max)");
  678. b.HasKey("Id");
  679. b.ToTable("UserTaskLogs");
  680. });
  681. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskStatus", b =>
  682. {
  683. b.Property<long>("Id")
  684. .ValueGeneratedOnAdd()
  685. .HasColumnType("bigint")
  686. .HasColumnOrder(0);
  687. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  688. b.Property<string>("NameAr")
  689. .IsRequired()
  690. .HasMaxLength(250)
  691. .HasColumnType("nvarchar(250)");
  692. b.Property<string>("NameEn")
  693. .IsRequired()
  694. .HasMaxLength(250)
  695. .HasColumnType("nvarchar(250)");
  696. b.HasKey("Id");
  697. b.ToTable("UserTaskStatuses");
  698. });
  699. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationRole", b =>
  700. {
  701. b.Property<string>("Id")
  702. .HasColumnType("nvarchar(450)");
  703. b.Property<string>("ConcurrencyStamp")
  704. .IsConcurrencyToken()
  705. .HasColumnType("nvarchar(max)");
  706. b.Property<DateTime>("CreateDate")
  707. .HasColumnType("datetime2");
  708. b.Property<string>("CreateUser")
  709. .HasColumnType("nvarchar(max)");
  710. b.Property<string>("DeleteUserId")
  711. .HasColumnType("nvarchar(max)");
  712. b.Property<bool?>("IsAdmin")
  713. .HasColumnType("bit");
  714. b.Property<bool>("IsDeleted")
  715. .HasColumnType("bit");
  716. b.Property<string>("Name")
  717. .HasMaxLength(256)
  718. .HasColumnType("nvarchar(256)");
  719. b.Property<string>("NormalizedName")
  720. .HasMaxLength(256)
  721. .HasColumnType("nvarchar(256)");
  722. b.Property<DateTime?>("UpdateDate")
  723. .HasColumnType("datetime2");
  724. b.Property<string>("UpdateUser")
  725. .HasColumnType("nvarchar(max)");
  726. b.HasKey("Id");
  727. b.HasIndex("NormalizedName")
  728. .IsUnique()
  729. .HasDatabaseName("RoleNameIndex")
  730. .HasFilter("[NormalizedName] IS NOT NULL");
  731. b.ToTable("AspNetRoles", (string)null);
  732. b.HasData(
  733. new
  734. {
  735. Id = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A",
  736. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  737. IsAdmin = true,
  738. IsDeleted = false,
  739. Name = "Admin",
  740. NormalizedName = "ADMIN"
  741. },
  742. new
  743. {
  744. Id = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E",
  745. CreateDate = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  746. IsAdmin = false,
  747. IsDeleted = false,
  748. Name = "Employee",
  749. NormalizedName = "EMPLOYEE"
  750. });
  751. });
  752. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  753. {
  754. b.Property<string>("Id")
  755. .HasColumnType("nvarchar(450)");
  756. b.Property<int>("AccessFailedCount")
  757. .HasColumnType("int");
  758. b.Property<string>("ConcurrencyStamp")
  759. .IsConcurrencyToken()
  760. .HasColumnType("nvarchar(max)");
  761. b.Property<string>("CreateUser")
  762. .HasColumnType("nvarchar(max)");
  763. b.Property<string>("DeleteUserId")
  764. .HasColumnType("nvarchar(max)");
  765. b.Property<string>("Email")
  766. .HasMaxLength(256)
  767. .HasColumnType("nvarchar(256)");
  768. b.Property<bool>("EmailConfirmed")
  769. .HasColumnType("bit");
  770. b.Property<string>("FavoriteName")
  771. .HasColumnType("nvarchar(max)");
  772. b.Property<string>("FirstName")
  773. .IsRequired()
  774. .HasColumnType("nvarchar(max)");
  775. b.Property<decimal?>("IncomeTaxValue")
  776. .HasColumnType("decimal(18,2)");
  777. b.Property<bool>("IsDeleted")
  778. .HasColumnType("bit");
  779. b.Property<bool>("IsStopped")
  780. .HasColumnType("bit");
  781. b.Property<string>("JobTitle")
  782. .HasColumnType("nvarchar(max)");
  783. b.Property<string>("LastName")
  784. .IsRequired()
  785. .HasColumnType("nvarchar(max)");
  786. b.Property<bool>("LockoutEnabled")
  787. .HasColumnType("bit");
  788. b.Property<DateTimeOffset?>("LockoutEnd")
  789. .HasColumnType("datetimeoffset");
  790. b.Property<string>("ManagerId")
  791. .HasColumnType("nvarchar(450)");
  792. b.Property<string>("NormalizedEmail")
  793. .HasMaxLength(256)
  794. .HasColumnType("nvarchar(256)");
  795. b.Property<string>("NormalizedUserName")
  796. .HasMaxLength(256)
  797. .HasColumnType("nvarchar(256)");
  798. b.Property<string>("PassportNumber")
  799. .IsRequired()
  800. .HasColumnType("nvarchar(max)");
  801. b.Property<string>("PasswordHash")
  802. .HasColumnType("nvarchar(max)");
  803. b.Property<string>("PhoneNumber")
  804. .HasColumnType("nvarchar(max)");
  805. b.Property<bool>("PhoneNumberConfirmed")
  806. .HasColumnType("bit");
  807. b.Property<int?>("QualificationId")
  808. .HasColumnType("int");
  809. b.Property<string>("SecurityStamp")
  810. .HasColumnType("nvarchar(max)");
  811. b.Property<decimal?>("TaxNumber")
  812. .HasColumnType("decimal(18,2)");
  813. b.Property<bool>("TwoFactorEnabled")
  814. .HasColumnType("bit");
  815. b.Property<string>("University")
  816. .HasColumnType("nvarchar(max)");
  817. b.Property<string>("UpdateUser")
  818. .HasColumnType("nvarchar(max)");
  819. b.Property<string>("UserName")
  820. .HasMaxLength(256)
  821. .HasColumnType("nvarchar(256)");
  822. b.Property<int>("UserType")
  823. .HasColumnType("int");
  824. b.HasKey("Id");
  825. b.HasIndex("ManagerId");
  826. b.HasIndex("NormalizedEmail")
  827. .HasDatabaseName("EmailIndex");
  828. b.HasIndex("NormalizedUserName")
  829. .IsUnique()
  830. .HasDatabaseName("UserNameIndex")
  831. .HasFilter("[NormalizedUserName] IS NOT NULL");
  832. b.ToTable("AspNetUsers", (string)null);
  833. b.HasData(
  834. new
  835. {
  836. Id = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  837. AccessFailedCount = 0,
  838. ConcurrencyStamp = "7cc87689-9eab-4280-b8e3-1834080783a5",
  839. Email = "a@b.com",
  840. EmailConfirmed = true,
  841. FirstName = "Zinab",
  842. IncomeTaxValue = 1m,
  843. IsDeleted = false,
  844. IsStopped = false,
  845. LastName = "Elgendy",
  846. LockoutEnabled = false,
  847. NormalizedEmail = "A@B.COM",
  848. NormalizedUserName = "ADMIN",
  849. PassportNumber = "1234567",
  850. PasswordHash = "AQAAAAIAAYagAAAAEPg+ASbciPFxtyxQq8Wx5ilBUQ0RbAoITXXkOQm1PzC5BzySX0sn/wUmOjBKPDGV9w==",
  851. PhoneNumber = "1234567890",
  852. PhoneNumberConfirmed = true,
  853. QualificationId = 1,
  854. SecurityStamp = "49bb16c3-4704-4c60-908d-dc8506950acc",
  855. TaxNumber = 111m,
  856. TwoFactorEnabled = false,
  857. UserName = "Admin",
  858. UserType = 1
  859. },
  860. new
  861. {
  862. Id = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  863. AccessFailedCount = 0,
  864. ConcurrencyStamp = "4af7b4cf-802a-455b-b598-997e167745b3",
  865. Email = "ali@b.com",
  866. EmailConfirmed = true,
  867. FirstName = "Ali",
  868. IncomeTaxValue = 100m,
  869. IsDeleted = false,
  870. IsStopped = false,
  871. LastName = "Farok",
  872. LockoutEnabled = false,
  873. NormalizedEmail = "ALI@B.COM",
  874. NormalizedUserName = "ALI",
  875. PassportNumber = "7654321001010",
  876. PasswordHash = "AQAAAAIAAYagAAAAEI3QJkcZjCH4Y8Db4rEgL8Mmll5oCvYcWiXZjQSN9bGW4SMcjHe3ZPMnkN/l9DmJeQ==",
  877. PhoneNumber = "1234567890",
  878. PhoneNumberConfirmed = true,
  879. QualificationId = 1,
  880. SecurityStamp = "62549056-1b9d-46d4-84f8-adea3e4d8b68",
  881. TaxNumber = 222m,
  882. TwoFactorEnabled = false,
  883. UserName = "ali",
  884. UserType = 1
  885. });
  886. });
  887. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
  888. {
  889. b.Property<long>("Id")
  890. .ValueGeneratedOnAdd()
  891. .HasColumnType("bigint")
  892. .HasColumnOrder(0);
  893. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  894. b.Property<long>("PermissionId")
  895. .HasColumnType("bigint");
  896. b.Property<string>("PermissionName")
  897. .IsRequired()
  898. .HasColumnType("nvarchar(max)");
  899. b.Property<string>("RoleId")
  900. .IsRequired()
  901. .HasColumnType("nvarchar(450)");
  902. b.HasKey("Id");
  903. b.HasIndex("PermissionId");
  904. b.HasIndex("RoleId");
  905. b.ToTable("RolePermissions");
  906. });
  907. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAddress", b =>
  908. {
  909. b.Property<long>("Id")
  910. .ValueGeneratedOnAdd()
  911. .HasColumnType("bigint")
  912. .HasColumnOrder(0);
  913. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  914. b.Property<string>("AddressDesc")
  915. .IsRequired()
  916. .HasColumnType("nvarchar(max)");
  917. b.Property<string>("City")
  918. .IsRequired()
  919. .HasColumnType("nvarchar(max)");
  920. b.Property<int>("CountryId")
  921. .HasColumnType("int");
  922. b.Property<DateTime>("CreateDate")
  923. .HasColumnType("datetime2")
  924. .HasColumnOrder(3);
  925. b.Property<string>("CreateUser")
  926. .HasMaxLength(450)
  927. .HasColumnType("nvarchar(450)")
  928. .HasColumnOrder(1);
  929. b.Property<string>("PostalCode")
  930. .IsRequired()
  931. .HasColumnType("nvarchar(max)");
  932. b.Property<DateTime?>("UpdateDate")
  933. .HasColumnType("datetime2")
  934. .HasColumnOrder(4);
  935. b.Property<string>("UpdateUser")
  936. .HasMaxLength(450)
  937. .HasColumnType("nvarchar(450)")
  938. .HasColumnOrder(2);
  939. b.Property<string>("UserId")
  940. .IsRequired()
  941. .HasColumnType("nvarchar(450)");
  942. b.HasKey("Id");
  943. b.HasIndex("UserId")
  944. .IsUnique();
  945. b.ToTable("UserAddress");
  946. });
  947. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAttachment", b =>
  948. {
  949. b.Property<long>("Id")
  950. .ValueGeneratedOnAdd()
  951. .HasColumnType("bigint")
  952. .HasColumnOrder(0);
  953. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  954. b.Property<long>("AttachmentTypeId")
  955. .HasColumnType("bigint");
  956. b.Property<DateTime>("CreateDate")
  957. .HasColumnType("datetime2")
  958. .HasColumnOrder(3);
  959. b.Property<string>("CreateUser")
  960. .HasMaxLength(450)
  961. .HasColumnType("nvarchar(450)")
  962. .HasColumnOrder(1);
  963. b.Property<string>("FileName")
  964. .IsRequired()
  965. .HasMaxLength(250)
  966. .HasColumnType("nvarchar(250)");
  967. b.Property<string>("OriginalName")
  968. .IsRequired()
  969. .HasMaxLength(250)
  970. .HasColumnType("nvarchar(250)");
  971. b.Property<DateTime?>("UpdateDate")
  972. .HasColumnType("datetime2")
  973. .HasColumnOrder(4);
  974. b.Property<string>("UpdateUser")
  975. .HasMaxLength(450)
  976. .HasColumnType("nvarchar(450)")
  977. .HasColumnOrder(2);
  978. b.Property<string>("UserId")
  979. .IsRequired()
  980. .HasColumnType("nvarchar(450)");
  981. b.HasKey("Id");
  982. b.HasIndex("AttachmentTypeId");
  983. b.HasIndex("UserId");
  984. b.ToTable("UserAttachments");
  985. });
  986. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  987. {
  988. b.Property<int>("Id")
  989. .ValueGeneratedOnAdd()
  990. .HasColumnType("int");
  991. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  992. b.Property<string>("ClaimType")
  993. .HasColumnType("nvarchar(max)");
  994. b.Property<string>("ClaimValue")
  995. .HasColumnType("nvarchar(max)");
  996. b.Property<string>("RoleId")
  997. .IsRequired()
  998. .HasColumnType("nvarchar(450)");
  999. b.HasKey("Id");
  1000. b.HasIndex("RoleId");
  1001. b.ToTable("AspNetRoleClaims", (string)null);
  1002. });
  1003. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  1004. {
  1005. b.Property<int>("Id")
  1006. .ValueGeneratedOnAdd()
  1007. .HasColumnType("int");
  1008. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  1009. b.Property<string>("ClaimType")
  1010. .HasColumnType("nvarchar(max)");
  1011. b.Property<string>("ClaimValue")
  1012. .HasColumnType("nvarchar(max)");
  1013. b.Property<string>("UserId")
  1014. .IsRequired()
  1015. .HasColumnType("nvarchar(450)");
  1016. b.HasKey("Id");
  1017. b.HasIndex("UserId");
  1018. b.ToTable("AspNetUserClaims", (string)null);
  1019. });
  1020. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  1021. {
  1022. b.Property<string>("LoginProvider")
  1023. .HasColumnType("nvarchar(450)");
  1024. b.Property<string>("ProviderKey")
  1025. .HasColumnType("nvarchar(450)");
  1026. b.Property<string>("ProviderDisplayName")
  1027. .HasColumnType("nvarchar(max)");
  1028. b.Property<string>("UserId")
  1029. .IsRequired()
  1030. .HasColumnType("nvarchar(450)");
  1031. b.HasKey("LoginProvider", "ProviderKey");
  1032. b.HasIndex("UserId");
  1033. b.ToTable("AspNetUserLogins", (string)null);
  1034. });
  1035. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  1036. {
  1037. b.Property<string>("UserId")
  1038. .HasColumnType("nvarchar(450)");
  1039. b.Property<string>("RoleId")
  1040. .HasColumnType("nvarchar(450)");
  1041. b.HasKey("UserId", "RoleId");
  1042. b.HasIndex("RoleId");
  1043. b.ToTable("AspNetUserRoles", (string)null);
  1044. b.HasData(
  1045. new
  1046. {
  1047. UserId = "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  1048. RoleId = "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A"
  1049. },
  1050. new
  1051. {
  1052. UserId = "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
  1053. RoleId = "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E"
  1054. });
  1055. });
  1056. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  1057. {
  1058. b.Property<string>("UserId")
  1059. .HasColumnType("nvarchar(450)");
  1060. b.Property<string>("LoginProvider")
  1061. .HasColumnType("nvarchar(450)");
  1062. b.Property<string>("Name")
  1063. .HasColumnType("nvarchar(450)");
  1064. b.Property<string>("Value")
  1065. .HasColumnType("nvarchar(max)");
  1066. b.HasKey("UserId", "LoginProvider", "Name");
  1067. b.ToTable("AspNetUserTokens", (string)null);
  1068. });
  1069. modelBuilder.Entity("ApplicationRoleApplicationUser", b =>
  1070. {
  1071. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  1072. .WithMany()
  1073. .HasForeignKey("UserRolesId")
  1074. .OnDelete(DeleteBehavior.Cascade)
  1075. .IsRequired();
  1076. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  1077. .WithMany()
  1078. .HasForeignKey("UsersId")
  1079. .OnDelete(DeleteBehavior.Cascade)
  1080. .IsRequired();
  1081. });
  1082. modelBuilder.Entity("MTWorkHR.Core.Entities.MeetingUser", b =>
  1083. {
  1084. b.HasOne("MTWorkHR.Core.Entities.Meeting", "Meeting")
  1085. .WithMany("MeetingUsers")
  1086. .HasForeignKey("MeetingId")
  1087. .OnDelete(DeleteBehavior.Cascade)
  1088. .IsRequired();
  1089. b.Navigation("Meeting");
  1090. });
  1091. modelBuilder.Entity("MTWorkHR.Core.Entities.TeamUser", b =>
  1092. {
  1093. b.HasOne("MTWorkHR.Core.Entities.Team", "Team")
  1094. .WithMany("TeamUsers")
  1095. .HasForeignKey("TeamId")
  1096. .OnDelete(DeleteBehavior.Cascade)
  1097. .IsRequired();
  1098. b.Navigation("Team");
  1099. });
  1100. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  1101. {
  1102. b.HasOne("MTWorkHR.Core.Entities.Project", "Project")
  1103. .WithMany()
  1104. .HasForeignKey("ProjectId")
  1105. .OnDelete(DeleteBehavior.Cascade)
  1106. .IsRequired();
  1107. b.HasOne("MTWorkHR.Core.Entities.UserTaskStatus", "TaskStatus")
  1108. .WithMany()
  1109. .HasForeignKey("StatusId")
  1110. .OnDelete(DeleteBehavior.Cascade)
  1111. .IsRequired();
  1112. b.Navigation("Project");
  1113. b.Navigation("TaskStatus");
  1114. });
  1115. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskAttachment", b =>
  1116. {
  1117. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  1118. .WithMany()
  1119. .HasForeignKey("AttachmentTypeId")
  1120. .OnDelete(DeleteBehavior.Cascade)
  1121. .IsRequired();
  1122. b.HasOne("MTWorkHR.Core.Entities.UserTask", "UserTask")
  1123. .WithMany("TaskAttachments")
  1124. .HasForeignKey("TaskId")
  1125. .OnDelete(DeleteBehavior.Cascade)
  1126. .IsRequired();
  1127. b.Navigation("AttachmentType");
  1128. b.Navigation("UserTask");
  1129. });
  1130. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTaskHistory", b =>
  1131. {
  1132. b.HasOne("MTWorkHR.Core.Entities.UserTaskStatus", "TaskStatus")
  1133. .WithMany()
  1134. .HasForeignKey("CurrentStatusId")
  1135. .OnDelete(DeleteBehavior.Cascade)
  1136. .IsRequired();
  1137. b.HasOne("MTWorkHR.Core.Entities.UserTask", null)
  1138. .WithMany("UserTaskHistories")
  1139. .HasForeignKey("UserTaskId");
  1140. b.Navigation("TaskStatus");
  1141. });
  1142. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  1143. {
  1144. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "Manager")
  1145. .WithMany()
  1146. .HasForeignKey("ManagerId");
  1147. b.Navigation("Manager");
  1148. });
  1149. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.RolePermission", b =>
  1150. {
  1151. b.HasOne("MTWorkHR.Core.Entities.Permission", "Permission")
  1152. .WithMany()
  1153. .HasForeignKey("PermissionId")
  1154. .OnDelete(DeleteBehavior.Cascade)
  1155. .IsRequired();
  1156. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", "Role")
  1157. .WithMany("RolePermissions")
  1158. .HasForeignKey("RoleId")
  1159. .OnDelete(DeleteBehavior.Cascade)
  1160. .IsRequired();
  1161. b.Navigation("Permission");
  1162. b.Navigation("Role");
  1163. });
  1164. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAddress", b =>
  1165. {
  1166. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "User")
  1167. .WithOne("UserAddress")
  1168. .HasForeignKey("MTWorkHR.Infrastructure.Entities.UserAddress", "UserId")
  1169. .OnDelete(DeleteBehavior.Cascade)
  1170. .IsRequired();
  1171. b.Navigation("User");
  1172. });
  1173. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.UserAttachment", b =>
  1174. {
  1175. b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
  1176. .WithMany()
  1177. .HasForeignKey("AttachmentTypeId")
  1178. .OnDelete(DeleteBehavior.Cascade)
  1179. .IsRequired();
  1180. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", "User")
  1181. .WithMany("UserAttachments")
  1182. .HasForeignKey("UserId")
  1183. .OnDelete(DeleteBehavior.Cascade)
  1184. .IsRequired();
  1185. b.Navigation("AttachmentType");
  1186. b.Navigation("User");
  1187. });
  1188. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  1189. {
  1190. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  1191. .WithMany()
  1192. .HasForeignKey("RoleId")
  1193. .OnDelete(DeleteBehavior.Cascade)
  1194. .IsRequired();
  1195. });
  1196. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  1197. {
  1198. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  1199. .WithMany()
  1200. .HasForeignKey("UserId")
  1201. .OnDelete(DeleteBehavior.Cascade)
  1202. .IsRequired();
  1203. });
  1204. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  1205. {
  1206. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  1207. .WithMany()
  1208. .HasForeignKey("UserId")
  1209. .OnDelete(DeleteBehavior.Cascade)
  1210. .IsRequired();
  1211. });
  1212. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  1213. {
  1214. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationRole", null)
  1215. .WithMany()
  1216. .HasForeignKey("RoleId")
  1217. .OnDelete(DeleteBehavior.Cascade)
  1218. .IsRequired();
  1219. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  1220. .WithMany()
  1221. .HasForeignKey("UserId")
  1222. .OnDelete(DeleteBehavior.Cascade)
  1223. .IsRequired();
  1224. });
  1225. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  1226. {
  1227. b.HasOne("MTWorkHR.Infrastructure.Entities.ApplicationUser", null)
  1228. .WithMany()
  1229. .HasForeignKey("UserId")
  1230. .OnDelete(DeleteBehavior.Cascade)
  1231. .IsRequired();
  1232. });
  1233. modelBuilder.Entity("MTWorkHR.Core.Entities.Meeting", b =>
  1234. {
  1235. b.Navigation("MeetingUsers");
  1236. });
  1237. modelBuilder.Entity("MTWorkHR.Core.Entities.Team", b =>
  1238. {
  1239. b.Navigation("TeamUsers");
  1240. });
  1241. modelBuilder.Entity("MTWorkHR.Core.Entities.UserTask", b =>
  1242. {
  1243. b.Navigation("TaskAttachments");
  1244. b.Navigation("UserTaskHistories");
  1245. });
  1246. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationRole", b =>
  1247. {
  1248. b.Navigation("RolePermissions");
  1249. });
  1250. modelBuilder.Entity("MTWorkHR.Infrastructure.Entities.ApplicationUser", b =>
  1251. {
  1252. b.Navigation("UserAddress")
  1253. .IsRequired();
  1254. b.Navigation("UserAttachments");
  1255. });
  1256. #pragma warning restore 612, 618
  1257. }
  1258. }
  1259. }