Browse Source

更新读取基类

master
zxy 3 weeks ago
parent
commit
7a20f80515
  1. 188
      API/TaskManager.EntityFramework/JobDbContext.cs
  2. 2479
      API/TaskManager.EntityFramework/Migrations/20250528092555_init.Designer.cs
  3. 1114
      API/TaskManager.EntityFramework/Migrations/20250528092555_init.cs
  4. 2411
      API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.Designer.cs
  5. 502
      API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.cs
  6. 2389
      API/TaskManager.EntityFramework/Migrations/20250529013720_2025052902.Designer.cs
  7. 530
      API/TaskManager.EntityFramework/Migrations/20250529013720_2025052902.cs
  8. 3312
      API/TaskManager.EntityFramework/Migrations/20250529020443_2025052903.Designer.cs
  9. 303
      API/TaskManager.EntityFramework/Migrations/20250529020443_2025052903.cs
  10. 4650
      API/TaskManager.EntityFramework/Migrations/20250529065559_z20250529.Designer.cs
  11. 8729
      API/TaskManager.EntityFramework/Migrations/20250529065559_z20250529.cs
  12. 4487
      API/TaskManager.EntityFramework/Migrations/20250529092933_z202505290001.Designer.cs
  13. 3448
      API/TaskManager.EntityFramework/Migrations/20250529092933_z202505290001.cs
  14. 5091
      API/TaskManager.EntityFramework/Migrations/20250530075115_z202505300001.Designer.cs
  15. 222
      API/TaskManager.EntityFramework/Migrations/20250530075115_z202505300001.cs
  16. 5175
      API/TaskManager.EntityFramework/Migrations/20250603010854_z202506030001.Designer.cs
  17. 34
      API/TaskManager.EntityFramework/Migrations/20250603010854_z202506030001.cs
  18. 5223
      API/TaskManager.EntityFramework/Migrations/20250603014933_z202506030002.Designer.cs
  19. 43
      API/TaskManager.EntityFramework/Migrations/20250603014933_z202506030002.cs
  20. 5223
      API/TaskManager.EntityFramework/Migrations/20250604031956_2025060402.Designer.cs
  21. 22
      API/TaskManager.EntityFramework/Migrations/20250604031956_2025060402.cs
  22. 5242
      API/TaskManager.EntityFramework/Migrations/20250609023049_z202506090001.Designer.cs
  23. 385
      API/TaskManager.EntityFramework/Migrations/20250609023049_z202506090001.cs
  24. 5242
      API/TaskManager.EntityFramework/Migrations/20250609031426_z202506090002.Designer.cs
  25. 36
      API/TaskManager.EntityFramework/Migrations/20250609031426_z202506090002.cs
  26. 5260
      API/TaskManager.EntityFramework/Migrations/20250609033910_z202506090003.Designer.cs
  27. 22
      API/TaskManager.EntityFramework/Migrations/20250609033910_z202506090003.cs
  28. 5227
      API/TaskManager.EntityFramework/Migrations/20250609034358_z202506090004.Designer.cs
  29. 842
      API/TaskManager.EntityFramework/Migrations/20250609034358_z202506090004.cs
  30. 5227
      API/TaskManager.EntityFramework/Migrations/20250609035549_z202506090005.Designer.cs
  31. 566
      API/TaskManager.EntityFramework/Migrations/20250609035549_z202506090005.cs
  32. 5227
      API/TaskManager.EntityFramework/Migrations/20250609051230_z202506090006.Designer.cs
  33. 37
      API/TaskManager.EntityFramework/Migrations/20250609051230_z202506090006.cs
  34. 5227
      API/TaskManager.EntityFramework/Migrations/20250609053405_z202506090007.Designer.cs
  35. 22
      API/TaskManager.EntityFramework/Migrations/20250609053405_z202506090007.cs
  36. 5252
      API/TaskManager.EntityFramework/Migrations/20250609054243_z202506090008.Designer.cs
  37. 579
      API/TaskManager.EntityFramework/Migrations/20250609054243_z202506090008.cs
  38. 5251
      API/TaskManager.EntityFramework/Migrations/20250609064628_z202506090009.Designer.cs
  39. 126
      API/TaskManager.EntityFramework/Migrations/20250609064628_z202506090009.cs
  40. 5252
      API/TaskManager.EntityFramework/Migrations/20250609071043_z202506090010.Designer.cs
  41. 34
      API/TaskManager.EntityFramework/Migrations/20250609071043_z202506090010.cs
  42. 5253
      API/TaskManager.EntityFramework/Migrations/20250609071148_z202506090011.Designer.cs
  43. 36
      API/TaskManager.EntityFramework/Migrations/20250609071148_z202506090011.cs
  44. 5320
      API/TaskManager.EntityFramework/Migrations/20250610023901_z202506100001.Designer.cs
  45. 420
      API/TaskManager.EntityFramework/Migrations/20250610023901_z202506100001.cs
  46. 5323
      API/TaskManager.EntityFramework/Migrations/20250610061746_z2025061000024.Designer.cs
  47. 49
      API/TaskManager.EntityFramework/Migrations/20250610061746_z2025061000024.cs
  48. 5330
      API/TaskManager.EntityFramework/Migrations/20250610062047_z20250610000240002.Designer.cs
  49. 158
      API/TaskManager.EntityFramework/Migrations/20250610062047_z20250610000240002.cs
  50. 5342
      API/TaskManager.EntityFramework/Migrations/20250610064324_z20250610000240003.Designer.cs
  51. 69
      API/TaskManager.EntityFramework/Migrations/20250610064324_z20250610000240003.cs
  52. 5444
      API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.Designer.cs
  53. 741
      API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.cs
  54. 9997
      API/TaskManager.EntityFramework/Migrations/20250616060016_z202506160003.Designer.cs
  55. 1850
      API/TaskManager.EntityFramework/Migrations/20250616060016_z202506160003.cs
  56. 9985
      API/TaskManager.EntityFramework/Migrations/20250617065901_z202506170001.Designer.cs
  57. 921
      API/TaskManager.EntityFramework/Migrations/20250617065901_z202506170001.cs
  58. 9991
      API/TaskManager.EntityFramework/Migrations/20250617084345_z202506170002.Designer.cs
  59. 38
      API/TaskManager.EntityFramework/Migrations/20250617084345_z202506170002.cs
  60. 10261
      API/TaskManager.EntityFramework/Migrations/20250619005547_z202506190001.Designer.cs
  61. 1389
      API/TaskManager.EntityFramework/Migrations/20250619005547_z202506190001.cs
  62. 10260
      API/TaskManager.EntityFramework/Migrations/20250620033738_z202506200001.Designer.cs
  63. 38
      API/TaskManager.EntityFramework/Migrations/20250620033738_z202506200001.cs
  64. 10261
      API/TaskManager.EntityFramework/Migrations/20250620073219_z202506200002.Designer.cs
  65. 60
      API/TaskManager.EntityFramework/Migrations/20250620073219_z202506200002.cs
  66. 10261
      API/TaskManager.EntityFramework/Migrations/20250620074909_z202506200003.Designer.cs
  67. 22
      API/TaskManager.EntityFramework/Migrations/20250620074909_z202506200003.cs
  68. 10332
      API/TaskManager.EntityFramework/Migrations/20250624060542_z202506240001.Designer.cs
  69. 101
      API/TaskManager.EntityFramework/Migrations/20250624060542_z202506240001.cs
  70. 10317
      API/TaskManager.EntityFramework/Migrations/20250626085605_z20250620001.Designer.cs
  71. 279
      API/TaskManager.EntityFramework/Migrations/20250626085605_z20250620001.cs
  72. 10317
      API/TaskManager.EntityFramework/Migrations/20250627012246_z202506270001.Designer.cs
  73. 22
      API/TaskManager.EntityFramework/Migrations/20250627012246_z202506270001.cs
  74. 10311
      API/TaskManager.EntityFramework/Migrations/20250627014145_z202506270002.Designer.cs
  75. 267
      API/TaskManager.EntityFramework/Migrations/20250627014145_z202506270002.cs
  76. 10311
      API/TaskManager.EntityFramework/Migrations/20250627014433_z202506270003.Designer.cs
  77. 35
      API/TaskManager.EntityFramework/Migrations/20250627014433_z202506270003.cs
  78. 1010
      API/TaskManager.EntityFramework/Migrations/20250627034559_z202506270004.cs
  79. 4
      API/TaskManager.EntityFramework/Migrations/20250627233450_z1239912930001.Designer.cs
  80. 4060
      API/TaskManager.EntityFramework/Migrations/20250627233450_z1239912930001.cs
  81. 4
      API/Wood.Admin.WebApi/Properties/PublishProfiles/FolderProfile.pubxml.user
  82. 2
      API/Wood.Admin.WebApi/Wood.Admin.WebApi.csproj.user
  83. 2
      API/Wood.Admin.WebApi/appsettings.json
  84. 1
      API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs
  85. BIN
      API/WoodAdmin.db-shm
  86. 0
      API/WoodAdmin.db-wal
  87. BIN
      API/WoodAdmin.zip

188
API/TaskManager.EntityFramework/JobDbContext.cs

@ -74,10 +74,10 @@ namespace TaskManager.EntityFramework
//#endif
//optionsBuilder.UseSqlServer(GlobalContext.SystemConfig.CustomerDb);
optionsBuilder.UseSqlServer(GlobalContext.SystemConfig.CustomerDb);
optionsBuilder.UseSqlServer("Server = 192.168.1.228; Database = TaskManager2; User ID = sa; Password = ChangkeTec@2021; TrustServerCertificate = True");
//optionsBuilder.UseSqlServer("Server = 127.0.01; Database = TaskManager2; User ID = sa; Password = 1; TrustServerCertificate = True");
}
@ -517,8 +517,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DeadLine).HasColumnType("VARCHAR").HasMaxLength(30).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -568,8 +568,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.ActualEndTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(false);
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -617,8 +617,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -668,8 +668,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -715,8 +715,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DataUpdateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -824,8 +824,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DeviceName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -925,8 +925,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.ChildSoftwareRevision).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false);
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -982,8 +982,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -1111,8 +1111,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -1158,8 +1158,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CollectTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -1217,8 +1217,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -1266,8 +1266,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.EndTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -1319,8 +1319,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.ValidDays).HasColumnType("VARCHAR").HasMaxLength(12).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -1483,8 +1483,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.RhythmUnit).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired();
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
#endregion
@ -1538,8 +1538,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.QuantityMeet12).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -1632,8 +1632,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.QuantityMeet31).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -1662,8 +1662,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.Measures).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false);
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -1702,8 +1702,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.SupplieryxqDate).HasColumnType("CHAR").HasMaxLength(19).IsRequired(false);
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -1753,8 +1753,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.Ignore(e => e.TaskId);
});
@ -1803,8 +1803,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CheckOutTime).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.Ignore(e => e.TaskId);
});
@ -1849,8 +1849,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.VendorProductSn).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(false);
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.Ignore(e => e.TaskId);
});
@ -1921,8 +1921,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.UnitType).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.Ignore(e => e.TaskId);
});
@ -1998,8 +1998,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DeadLine).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -2049,8 +2049,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.ActualEndTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(false);
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -2098,8 +2098,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -2149,8 +2149,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -2196,8 +2196,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DataUpdateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -2305,8 +2305,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DeviceName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -2406,8 +2406,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.ChildSoftwareRevision).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false);
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -2463,8 +2463,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -2592,8 +2592,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -2639,8 +2639,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CollectTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -2698,8 +2698,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -2747,8 +2747,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.EndTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -2800,8 +2800,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.ValidDays).HasColumnType("CHAR").HasMaxLength(12).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -2847,8 +2847,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.VendorProductSn).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(false);
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -2920,8 +2920,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.UnitType).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -2971,8 +2971,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.RhythmUnit).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
#endregion
@ -3026,8 +3026,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.QuantityMeet12).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -3120,8 +3120,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.QuantityMeet31).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -3150,8 +3150,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.Measures).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false);
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -3190,8 +3190,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.SupplieryxqDate).HasColumnType("CHAR").HasMaxLength(19).IsRequired(false);
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
});
@ -3241,8 +3241,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.Ignore(e => e.TaskId);
});
@ -3291,8 +3291,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.Ignore(e => e.TaskId);
});
@ -3337,8 +3337,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.VendorProductSn).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(false);
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.Ignore(e => e.TaskId);
});
@ -3409,8 +3409,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.UnitType).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.Ignore(e => e.TaskId);
});

2479
API/TaskManager.EntityFramework/Migrations/20250528092555_init.Designer.cs

File diff suppressed because it is too large

1114
API/TaskManager.EntityFramework/Migrations/20250528092555_init.cs

File diff suppressed because it is too large

2411
API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.Designer.cs

File diff suppressed because it is too large

502
API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.cs

@ -1,502 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class _2025052901 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "SUPPLIER_PRO_ATTACHMENT_DATA");
migrationBuilder.DropTable(
name: "SUPPLIER_PRO_ENVIRONMENT");
migrationBuilder.DropTable(
name: "SUPPLIER_PRO_MATERIAL_DATA");
migrationBuilder.DropTable(
name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE");
migrationBuilder.DropTable(
name: "SUPPLIER_PRO_OEE_TIME_DETAILS");
migrationBuilder.DropTable(
name: "SUPPLIER_PRO_PROCESS");
migrationBuilder.DropTable(
name: "SUPPLIER_PRO_PROCESS_EQUIPMENT");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_FLAW",
type: "NVarchar(500)",
maxLength: 500,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AddColumn<string>(
name: "CheryProductName",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "CheryProductNo",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "CheryProductSn",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "ClassOfName",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "DefectsCode",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "DefectsDesc",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(255)",
maxLength: 255,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "DefectsLevel",
table: "SUPPLIER_PRO_FLAW",
type: "CHAR(1)",
maxLength: 1,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "DefectsName",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "ManufactureNo",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<decimal>(
name: "Numberofdefect",
table: "SUPPLIER_PRO_FLAW",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m);
migrationBuilder.AddColumn<string>(
name: "PlantId",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "PlantName",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "ProductBatchNo",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "ProductionLineId",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "ProductionLineName",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "StationId",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "StationName",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "StatisticalTime",
table: "SUPPLIER_PRO_FLAW",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "SupplierName",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "VendorProductBatch",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "VendorProductName",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(100)",
maxLength: 100,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "VendorProductNo",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "VendorProductSn",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "WorkShift",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(10)",
maxLength: 10,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "WorkshopId",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "WorkshopName",
table: "SUPPLIER_PRO_FLAW",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CheryProductName",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "CheryProductNo",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "CheryProductSn",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "ClassOfName",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "DefectsCode",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "DefectsDesc",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "DefectsLevel",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "DefectsName",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "ManufactureNo",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "Numberofdefect",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "PlantId",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "PlantName",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "ProductBatchNo",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "ProductionLineId",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "ProductionLineName",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "StationId",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "StationName",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "StatisticalTime",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "SupplierCode",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "SupplierName",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "VendorProductBatch",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "VendorProductName",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "VendorProductNo",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "VendorProductSn",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "WorkShift",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "WorkshopId",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.DropColumn(
name: "WorkshopName",
table: "SUPPLIER_PRO_FLAW");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_FLAW",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(string),
oldType: "NVarchar(500)",
oldMaxLength: 500);
migrationBuilder.CreateTable(
name: "SUPPLIER_PRO_ATTACHMENT_DATA",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SUPPLIER_PRO_ATTACHMENT_DATA", x => x.UId);
});
migrationBuilder.CreateTable(
name: "SUPPLIER_PRO_ENVIRONMENT",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SUPPLIER_PRO_ENVIRONMENT", x => x.UId);
});
migrationBuilder.CreateTable(
name: "SUPPLIER_PRO_MATERIAL_DATA",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_DATA", x => x.UId);
});
migrationBuilder.CreateTable(
name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", x => x.UId);
});
migrationBuilder.CreateTable(
name: "SUPPLIER_PRO_OEE_TIME_DETAILS",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SUPPLIER_PRO_OEE_TIME_DETAILS", x => x.UId);
});
migrationBuilder.CreateTable(
name: "SUPPLIER_PRO_PROCESS",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS", x => x.UId);
});
migrationBuilder.CreateTable(
name: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_EQUIPMENT", x => x.UId);
});
}
}
}

2389
API/TaskManager.EntityFramework/Migrations/20250529013720_2025052902.Designer.cs

File diff suppressed because it is too large

530
API/TaskManager.EntityFramework/Migrations/20250529013720_2025052902.cs

@ -1,530 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class _2025052902 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_SINV_DATA",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_RETURN",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD",
type: "NVarchar(500)",
maxLength: 500,
nullable: true,
oldClrType: typeof(string),
oldType: "NVarchar(500)",
oldMaxLength: 500);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_SCHEDULING",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<bool>(
name: "WriteState",
table: "SUPPLIER_PRO_FLAW",
type: "bit",
nullable: false,
defaultValue: false,
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_FLAW",
type: "NVarchar(500)",
maxLength: 500,
nullable: true,
oldClrType: typeof(string),
oldType: "NVarchar(500)",
oldMaxLength: 500);
migrationBuilder.AlterColumn<bool>(
name: "ReadState",
table: "SUPPLIER_PRO_FLAW",
type: "bit",
nullable: false,
defaultValue: false,
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_DATA",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_CPS",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PO",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_MRP_STATE",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_MRP_MONTH",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_MRP_DATE",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_INV_DATA",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_INFO",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_EMPLOYEE",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_DEL_STATE",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_CON_PO",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_CON_MMRP",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_CON_DATE",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_BOM",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_SINV_DATA",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_RETURN",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD",
type: "NVarchar(500)",
maxLength: 500,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "NVarchar(500)",
oldMaxLength: 500,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_SCHEDULING",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<bool>(
name: "WriteState",
table: "SUPPLIER_PRO_FLAW",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldDefaultValue: false);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_FLAW",
type: "NVarchar(500)",
maxLength: 500,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "NVarchar(500)",
oldMaxLength: 500,
oldNullable: true);
migrationBuilder.AlterColumn<bool>(
name: "ReadState",
table: "SUPPLIER_PRO_FLAW",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldDefaultValue: false);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_DATA",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PRO_CPS",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_PO",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_MRP_STATE",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_MRP_MONTH",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_MRP_DATE",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_INV_DATA",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_INFO",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_EMPLOYEE",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_DEL_STATE",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_CON_PO",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_CON_MMRP",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_CON_DATE",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Remark",
table: "SUPPLIER_BOM",
type: "nvarchar(max)",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
}
}
}

3312
API/TaskManager.EntityFramework/Migrations/20250529020443_2025052903.Designer.cs

File diff suppressed because it is too large

303
API/TaskManager.EntityFramework/Migrations/20250529020443_2025052903.cs

@ -1,303 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class _2025052903 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "SUPPLIER_PRO_ATTACHMENT_DATA",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
SupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
Type = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
FileName = table.Column<string>(type: "VARCHAR(300)", maxLength: 300, nullable: false),
FileUrl = table.Column<string>(type: "VARCHAR(1000)", maxLength: 1000, nullable: false),
DateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
ProductionLineName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
ProductionLineId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
StationName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
DeviceName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
DeviceId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
VendorProductSn = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: true),
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SUPPLIER_PRO_ATTACHMENT_DATA", x => x.UId);
});
migrationBuilder.CreateTable(
name: "SUPPLIER_PRO_ENVIRONMENT",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
SupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
PlantId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
PlantName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
WorkshopId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
WorkshopName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
ProductionLineId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
ProductionLineName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
EnvIndicatorName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
NumValue = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
UpperLimit = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
LowerLimit = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
ChineseUnit = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
EquipmentCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
EquipmentName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
DataCollectionPoint = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
CollectTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SUPPLIER_PRO_ENVIRONMENT", x => x.UId);
});
migrationBuilder.CreateTable(
name: "SUPPLIER_PRO_MATERIAL_DATA",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
SupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
Type = table.Column<decimal>(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false),
VendorHardwareRevision = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
OemHardwareRevision = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
OemSoftwareRevision = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
OemModel = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
OemProjectName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
Launched = table.Column<string>(type: "VARCHAR(6)", maxLength: 6, nullable: true),
DateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: true),
PlantId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
PlantName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
ProcurementType = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: true),
MpnCode = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: true),
MpnName = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: true),
ValidDays = table.Column<string>(type: "CHAR(12)", maxLength: 12, nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_DATA", x => x.UId);
});
migrationBuilder.CreateTable(
name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
SupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
PlantId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
PlantName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
WorkshopId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
WorkshopName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
ProductionLineId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
ProductionLineName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
StationName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
DeviceId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
DeviceName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
ProductBatchNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
ManufactureNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
Rate = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
RateTagValue = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
WorkShift = table.Column<string>(type: "VARCHAR(10)", maxLength: 10, nullable: false),
StatisticalTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
DateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", x => x.UId);
});
migrationBuilder.CreateTable(
name: "SUPPLIER_PRO_OEE_TIME_DETAILS",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
SupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SupplierName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
PlantId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
PlantName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
WorkshopId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
WorkshopName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
ProductionLineId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
ProductionLineName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
StationName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
DeviceId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
DeviceName = table.Column<string>(type: "VARCHAR(33)", maxLength: 33, nullable: false),
RecId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
Type = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SubType = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SubTypeName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
StartTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
EndTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SUPPLIER_PRO_OEE_TIME_DETAILS", x => x.UId);
});
migrationBuilder.CreateTable(
name: "SUPPLIER_PRO_PROCESS",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
CheryProductNo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
VendorProductNo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
SupplierCode = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
TechCode = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
TechName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
ValidPeriod = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
TechVersion = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
MoldCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
MoldName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
MaxProcessingCapacity = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
ProcessCode = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
ProcessName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
ProcessOrder = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
DeviceCode = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
Rhythm = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
RhythmUnit = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS", x => x.UId);
});
migrationBuilder.CreateTable(
name: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
SupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
DeviceType = table.Column<decimal>(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false),
DeviceCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
DeviceName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
Manufacturer = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
ModelNumber = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
SerialNumber = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
ProductionDate = table.Column<string>(type: "CHAR(16)", maxLength: 16, nullable: false),
Material = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
CurrentLocation = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
DeviceStatus = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
CavityCount = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
MoldSize = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
DesignLifeUnits = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
DesignLifeValue = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
CurrentUsageCount = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
OverhaulCount = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
CoolingChannelLayout = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
DetectionAccuracy = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
CalibrationDate = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
CalibrationDueDays = table.Column<string>(type: "CHAR(12)", maxLength: 12, nullable: false),
ToleranceRange = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
WearThreshold = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
DetectionRange = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
UnitType = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_EQUIPMENT", x => x.UId);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "SUPPLIER_PRO_ATTACHMENT_DATA");
migrationBuilder.DropTable(
name: "SUPPLIER_PRO_ENVIRONMENT");
migrationBuilder.DropTable(
name: "SUPPLIER_PRO_MATERIAL_DATA");
migrationBuilder.DropTable(
name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE");
migrationBuilder.DropTable(
name: "SUPPLIER_PRO_OEE_TIME_DETAILS");
migrationBuilder.DropTable(
name: "SUPPLIER_PRO_PROCESS");
migrationBuilder.DropTable(
name: "SUPPLIER_PRO_PROCESS_EQUIPMENT");
}
}
}

4650
API/TaskManager.EntityFramework/Migrations/20250529065559_z20250529.Designer.cs

File diff suppressed because it is too large

8729
API/TaskManager.EntityFramework/Migrations/20250529065559_z20250529.cs

File diff suppressed because it is too large

4487
API/TaskManager.EntityFramework/Migrations/20250529092933_z202505290001.Designer.cs

File diff suppressed because it is too large

3448
API/TaskManager.EntityFramework/Migrations/20250529092933_z202505290001.cs

File diff suppressed because it is too large

5091
API/TaskManager.EntityFramework/Migrations/20250530075115_z202505300001.Designer.cs

File diff suppressed because it is too large

222
API/TaskManager.EntityFramework/Migrations/20250530075115_z202505300001.cs

@ -1,222 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202505300001 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Client",
table: "TaskConifgure",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.CreateTable(
name: "SUPPLIER_EMPLOYEE_DT",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
SupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
PlantId = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
PlantName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
WorkshopId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
WorkshopName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
ProductionLineId = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
ProductionLineName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
StationId = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
StationName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
OperatorId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
OperatorName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
HaveQuantity = table.Column<string>(type: "CHAR(1)", maxLength: 1, nullable: false),
DataUpdateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
PositionId = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
PositionName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
QualificationLevel = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
CheckInTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
CheckOutTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_SUPPLIER_EMPLOYEE_DT", x => x.UId);
});
migrationBuilder.CreateTable(
name: "SUPPLIER_INFO_DT",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
SupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
PlantId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
PlantName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
WorkshopId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
WorkshopName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
ProductionLineId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
ProductionLineName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
StationName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
KeyStation = table.Column<string>(type: "CHAR(1)", maxLength: 1, nullable: false),
DataUpdateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
ProductionLineOrder = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
StationOrder = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
VendorProductNo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
CheryProductNo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_SUPPLIER_INFO_DT", x => x.UId);
});
migrationBuilder.CreateTable(
name: "SUPPLIER_PRO_ATTACHMENT_DATA_DT",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
SupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
Type = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
FileName = table.Column<string>(type: "VARCHAR(300)", maxLength: 300, nullable: false),
FileUrl = table.Column<string>(type: "VARCHAR(1000)", maxLength: 1000, nullable: false),
DateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
ProductionLineName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
ProductionLineId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
StationName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
DeviceName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
DeviceId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
VendorProductSn = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: true),
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_SUPPLIER_PRO_ATTACHMENT_DATA_DT", x => x.UId);
});
migrationBuilder.CreateTable(
name: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
SupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
DeviceType = table.Column<decimal>(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false),
DeviceCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
DeviceName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
Manufacturer = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
ModelNumber = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
SerialNumber = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
ProductionDate = table.Column<string>(type: "CHAR(16)", maxLength: 16, nullable: false),
Material = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
CurrentLocation = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
DeviceStatus = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
CavityCount = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
MoldSize = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
DesignLifeUnits = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
DesignLifeValue = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
CurrentUsageCount = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
OverhaulCount = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
CoolingChannelLayout = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
DetectionAccuracy = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
CalibrationDate = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
CalibrationDueDays = table.Column<string>(type: "CHAR(12)", maxLength: 12, nullable: false),
ToleranceRange = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
WearThreshold = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
DetectionRange = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
UnitType = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", x => x.UId);
});
migrationBuilder.CreateTable(
name: "TaskSub",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
TableName = table.Column<string>(type: "nvarchar(max)", nullable: true),
TaskName = table.Column<string>(type: "nvarchar(max)", nullable: true),
DataCount = table.Column<int>(type: "int", nullable: false),
Subscriber = table.Column<string>(type: "nvarchar(max)", nullable: true),
FailedCount = table.Column<int>(type: "int", nullable: false),
FailedInfo = table.Column<string>(type: "nvarchar(max)", nullable: true),
Domain = table.Column<string>(type: "nvarchar(max)", nullable: true),
Site = table.Column<string>(type: "nvarchar(max)", nullable: false),
CreateUser = table.Column<string>(type: "nvarchar(max)", nullable: true),
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
UpdateUser = table.Column<string>(type: "nvarchar(max)", nullable: true),
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
SyncedPageCount = table.Column<int>(type: "int", nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_TaskSub", x => x.UId);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "SUPPLIER_EMPLOYEE_DT");
migrationBuilder.DropTable(
name: "SUPPLIER_INFO_DT");
migrationBuilder.DropTable(
name: "SUPPLIER_PRO_ATTACHMENT_DATA_DT");
migrationBuilder.DropTable(
name: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT");
migrationBuilder.DropTable(
name: "TaskSub");
migrationBuilder.DropColumn(
name: "Client",
table: "TaskConifgure");
}
}
}

5175
API/TaskManager.EntityFramework/Migrations/20250603010854_z202506030001.Designer.cs

File diff suppressed because it is too large

34
API/TaskManager.EntityFramework/Migrations/20250603010854_z202506030001.cs

@ -1,34 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506030001 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand3",
table: "SUPPLIER_MRP_DATE",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(int),
oldType: "int");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "QuantityDemand3",
table: "SUPPLIER_MRP_DATE",
type: "int",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
}
}
}

5223
API/TaskManager.EntityFramework/Migrations/20250603014933_z202506030002.Designer.cs

File diff suppressed because it is too large

43
API/TaskManager.EntityFramework/Migrations/20250603014933_z202506030002.cs

@ -1,43 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506030002 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "TaskAllocation",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
TaskName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
TableName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
Creator = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
Subscriber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_TaskAllocation", x => x.UId);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "TaskAllocation");
}
}
}

5223
API/TaskManager.EntityFramework/Migrations/20250604031956_2025060402.Designer.cs

File diff suppressed because it is too large

22
API/TaskManager.EntityFramework/Migrations/20250604031956_2025060402.cs

@ -1,22 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class _2025060402 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}

5242
API/TaskManager.EntityFramework/Migrations/20250609023049_z202506090001.Designer.cs

File diff suppressed because it is too large

385
API/TaskManager.EntityFramework/Migrations/20250609023049_z202506090001.cs

@ -1,385 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090001 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "UpdateUser",
table: "TaskSub",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TaskName",
table: "TaskSub",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TableName",
table: "TaskSub",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Subscriber",
table: "TaskSub",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Site",
table: "TaskSub",
type: "nvarchar(30)",
maxLength: 30,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "FailedInfo",
table: "TaskSub",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Domain",
table: "TaskSub",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreateUser",
table: "TaskSub",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Type",
table: "TaskLogs",
type: "nvarchar(20)",
maxLength: 20,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TaskName",
table: "TaskLogs",
type: "nvarchar(20)",
maxLength: 20,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Info",
table: "TaskLogs",
type: "nvarchar(20)",
maxLength: 20,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "TaskLogs",
type: "datetime2",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AddColumn<string>(
name: "Path",
table: "TaskLogs",
type: "nvarchar(20)",
maxLength: 20,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Version",
table: "TaskLogs",
type: "nvarchar(20)",
maxLength: 20,
nullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDelivery",
table: "SUPPLIER_PO",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn<string>(
name: "Note",
table: "SUPPLIER_PO",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand2",
table: "SUPPLIER_MRP_DATE",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand1",
table: "SUPPLIER_MRP_DATE",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn<string>(
name: "IsDelete",
table: "SUPPLIER_INV_DATA",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDelivery",
table: "SUPPLIER_DEL_STATE",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Path",
table: "TaskLogs");
migrationBuilder.DropColumn(
name: "Version",
table: "TaskLogs");
migrationBuilder.AlterColumn<string>(
name: "UpdateUser",
table: "TaskSub",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TaskName",
table: "TaskSub",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TableName",
table: "TaskSub",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Subscriber",
table: "TaskSub",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Site",
table: "TaskSub",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30);
migrationBuilder.AlterColumn<string>(
name: "FailedInfo",
table: "TaskSub",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Domain",
table: "TaskSub",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreateUser",
table: "TaskSub",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Type",
table: "TaskLogs",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(20)",
oldMaxLength: 20,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TaskName",
table: "TaskLogs",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(20)",
oldMaxLength: 20,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Info",
table: "TaskLogs",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(20)",
oldMaxLength: 20,
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "TaskLogs",
type: "datetime2",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
oldClrType: typeof(DateTime),
oldType: "datetime2",
oldNullable: true);
migrationBuilder.AlterColumn<int>(
name: "QuantityDelivery",
table: "SUPPLIER_PO",
type: "int",
nullable: false,
defaultValue: 0,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Note",
table: "SUPPLIER_PO",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<int>(
name: "QuantityDemand2",
table: "SUPPLIER_MRP_DATE",
type: "int",
nullable: false,
defaultValue: 0,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<int>(
name: "QuantityDemand1",
table: "SUPPLIER_MRP_DATE",
type: "int",
nullable: false,
defaultValue: 0,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<int>(
name: "IsDelete",
table: "SUPPLIER_INV_DATA",
type: "int",
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<int>(
name: "QuantityDelivery",
table: "SUPPLIER_DEL_STATE",
type: "int",
nullable: false,
defaultValue: 0,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
}
}
}

5242
API/TaskManager.EntityFramework/Migrations/20250609031426_z202506090002.Designer.cs

File diff suppressed because it is too large

36
API/TaskManager.EntityFramework/Migrations/20250609031426_z202506090002.cs

@ -1,36 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090002 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand12",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "QuantityDemand12",
table: "SUPPLIER_MRP_MONTH",
type: "int",
nullable: false,
defaultValue: 0,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
}
}
}

5260
API/TaskManager.EntityFramework/Migrations/20250609033910_z202506090003.Designer.cs

File diff suppressed because it is too large

22
API/TaskManager.EntityFramework/Migrations/20250609033910_z202506090003.cs

@ -1,22 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090003 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}

5227
API/TaskManager.EntityFramework/Migrations/20250609034358_z202506090004.Designer.cs

File diff suppressed because it is too large

842
API/TaskManager.EntityFramework/Migrations/20250609034358_z202506090004.cs

@ -1,842 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090004 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32);
migrationBuilder.AlterColumn<string>(
name: "SerialNumber",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet",
table: "SUPPLIER_CON_PO",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<string>(
name: "PurchaseOrder",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32);
migrationBuilder.AlterColumn<string>(
name: "StartMonth",
table: "SUPPLIER_CON_MMRP",
type: "CHAR(7)",
maxLength: 7,
nullable: true,
oldClrType: typeof(string),
oldType: "CHAR(7)",
oldMaxLength: 7);
migrationBuilder.AlterColumn<string>(
name: "ReleaseEdition",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet6",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet5",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet4",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet3",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet2",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet1",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(64)",
maxLength: 64,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(64)",
oldMaxLength: 64);
migrationBuilder.AlterColumn<string>(
name: "MaterialCode",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32);
migrationBuilder.AlterColumn<string>(
name: "ReleaseEdition",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet9",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet8",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet7",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet6",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet5",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet4",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet3",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet2",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet12",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet11",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet10",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet1",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(64)",
maxLength: 64,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(64)",
oldMaxLength: 64);
migrationBuilder.AlterColumn<string>(
name: "MaterialCode",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SerialNumber",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(10)",
maxLength: 10,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet",
table: "SUPPLIER_CON_PO",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PurchaseOrder",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(50)",
maxLength: 50,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(10)",
maxLength: 10,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "StartMonth",
table: "SUPPLIER_CON_MMRP",
type: "CHAR(7)",
maxLength: 7,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "CHAR(7)",
oldMaxLength: 7,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ReleaseEdition",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet6",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet5",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet4",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet3",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet2",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet1",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(64)",
oldMaxLength: 64,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialCode",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(50)",
maxLength: 50,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(10)",
maxLength: 10,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ReleaseEdition",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet9",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet8",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet7",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet6",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet5",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet4",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet3",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet2",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet12",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet11",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet10",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet1",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(64)",
oldMaxLength: 64,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialCode",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(50)",
maxLength: 50,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(10)",
maxLength: 10,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
}
}
}

5227
API/TaskManager.EntityFramework/Migrations/20250609035549_z202506090005.Designer.cs

File diff suppressed because it is too large

566
API/TaskManager.EntityFramework/Migrations/20250609035549_z202506090005.cs

@ -1,566 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090005 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "VentureType",
table: "SUPPLIER_CON_PO",
type: "NVARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureSpecific",
table: "SUPPLIER_CON_PO",
type: "NVARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_PO",
type: "NVARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SerialNumber",
table: "SUPPLIER_CON_PO",
type: "NVARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PurchaseOrder",
table: "SUPPLIER_CON_PO",
type: "NVARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Measures",
table: "SUPPLIER_CON_PO",
type: "NVARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_PO",
type: "NVARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureType",
table: "SUPPLIER_CON_MMRP",
type: "NVARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureSpecific",
table: "SUPPLIER_CON_MMRP",
type: "NVARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_MMRP",
type: "NVARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "StartMonth",
table: "SUPPLIER_CON_MMRP",
type: "NVARCHAR(7)",
maxLength: 7,
nullable: true,
oldClrType: typeof(string),
oldType: "CHAR(7)",
oldMaxLength: 7,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ReleaseEdition",
table: "SUPPLIER_CON_MMRP",
type: "NVARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "SUPPLIER_CON_MMRP",
type: "NVARCHAR(64)",
maxLength: 64,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(64)",
oldMaxLength: 64,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Measures",
table: "SUPPLIER_CON_MMRP",
type: "NVARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialCode",
table: "SUPPLIER_CON_MMRP",
type: "NVARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_MMRP",
type: "NVARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureType",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureSpecific",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "StartDate",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(10)",
maxLength: 10,
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(10)",
oldMaxLength: 10);
migrationBuilder.AlterColumn<string>(
name: "ReleaseEdition",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(64)",
maxLength: 64,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(64)",
oldMaxLength: 64,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Measures",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialCode",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "VentureType",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureSpecific",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SerialNumber",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PurchaseOrder",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Measures",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureType",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureSpecific",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "StartMonth",
table: "SUPPLIER_CON_MMRP",
type: "CHAR(7)",
maxLength: 7,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(7)",
oldMaxLength: 7,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ReleaseEdition",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(64)",
maxLength: 64,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(64)",
oldMaxLength: 64,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Measures",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialCode",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureType",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureSpecific",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "StartDate",
table: "SUPPLIER_CON_DATE",
type: "CHAR(10)",
maxLength: 10,
nullable: false,
oldClrType: typeof(string),
oldType: "NVARCHAR(10)",
oldMaxLength: 10);
migrationBuilder.AlterColumn<string>(
name: "ReleaseEdition",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(64)",
maxLength: 64,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(64)",
oldMaxLength: 64,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Measures",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialCode",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
}
}
}

5227
API/TaskManager.EntityFramework/Migrations/20250609051230_z202506090006.Designer.cs

File diff suppressed because it is too large

37
API/TaskManager.EntityFramework/Migrations/20250609051230_z202506090006.cs

@ -1,37 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090006 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<DateTime>(
name: "StartDate",
table: "SUPPLIER_MRP_DATE",
type: "datetime2",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "datetime2");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<DateTime>(
name: "StartDate",
table: "SUPPLIER_MRP_DATE",
type: "datetime2",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
oldClrType: typeof(DateTime),
oldType: "datetime2",
oldNullable: true);
}
}
}

5227
API/TaskManager.EntityFramework/Migrations/20250609053405_z202506090007.Designer.cs

File diff suppressed because it is too large

22
API/TaskManager.EntityFramework/Migrations/20250609053405_z202506090007.cs

@ -1,22 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090007 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}

5252
API/TaskManager.EntityFramework/Migrations/20250609054243_z202506090008.Designer.cs

File diff suppressed because it is too large

579
API/TaskManager.EntityFramework/Migrations/20250609054243_z202506090008.cs

@ -1,579 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090008 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_SINV_DATA",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_SINV_DATA",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_RETURN",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PO",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PO",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_MRP_WARNING",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_MRP_WARNING",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_MRP_STATE",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_MRP_STATE",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_MRP_MONTH",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_MRP_MONTH",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_MRP_DATE",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_MRP_DATE",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_INV_DATA",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_INV_DATA",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_DEL_STATE",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_DEL_STATE",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "StartDate",
table: "SUPPLIER_CON_DATE",
type: "datetime2",
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(10)",
oldMaxLength: 10);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_SINV_DATA",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_SINV_DATA",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_RETURN",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_RETURN",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PO",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PO",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_MRP_WARNING",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_MRP_WARNING",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_MRP_STATE",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_MRP_STATE",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_MRP_MONTH",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_MRP_MONTH",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_MRP_DATE",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_MRP_DATE",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_INV_DATA",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_INV_DATA",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_DEL_STATE",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_DEL_STATE",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "StartDate",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(10)",
maxLength: 10,
nullable: false,
defaultValue: "",
oldClrType: typeof(DateTime),
oldType: "datetime2",
oldNullable: true);
}
}
}

5251
API/TaskManager.EntityFramework/Migrations/20250609064628_z202506090009.Designer.cs

File diff suppressed because it is too large

126
API/TaskManager.EntityFramework/Migrations/20250609064628_z202506090009.cs

@ -1,126 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090009 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Version",
table: "TaskLogs",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(20)",
oldMaxLength: 20,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Type",
table: "TaskLogs",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(20)",
oldMaxLength: 20,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TaskName",
table: "TaskLogs",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(20)",
oldMaxLength: 20,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Path",
table: "TaskLogs",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(20)",
oldMaxLength: 20,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Info",
table: "TaskLogs",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(20)",
oldMaxLength: 20,
oldNullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Version",
table: "TaskLogs",
type: "nvarchar(20)",
maxLength: 20,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Type",
table: "TaskLogs",
type: "nvarchar(20)",
maxLength: 20,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TaskName",
table: "TaskLogs",
type: "nvarchar(20)",
maxLength: 20,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Path",
table: "TaskLogs",
type: "nvarchar(20)",
maxLength: 20,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Info",
table: "TaskLogs",
type: "nvarchar(20)",
maxLength: 20,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
}
}
}

5252
API/TaskManager.EntityFramework/Migrations/20250609071043_z202506090010.Designer.cs

File diff suppressed because it is too large

34
API/TaskManager.EntityFramework/Migrations/20250609071043_z202506090010.cs

@ -1,34 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090010 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "IsDelete",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(int),
oldType: "int");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "IsDelete",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "int",
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
}
}
}

5253
API/TaskManager.EntityFramework/Migrations/20250609071148_z202506090011.Designer.cs

File diff suppressed because it is too large

36
API/TaskManager.EntityFramework/Migrations/20250609071148_z202506090011.cs

@ -1,36 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090011 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "IsDelete",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(5)",
maxLength: 5,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "IsDelete",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(5)",
oldMaxLength: 5);
}
}
}

5320
API/TaskManager.EntityFramework/Migrations/20250610023901_z202506100001.Designer.cs

File diff suppressed because it is too large

420
API/TaskManager.EntityFramework/Migrations/20250610023901_z202506100001.cs

@ -1,420 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506100001 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(450)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand9",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand8",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand7",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand6",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand5",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand4",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand3",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand2",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand11",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand10",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand1",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_CON_PO",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_CON_MMRP",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Id",
table: "SUPPLIER_CON_DATE",
type: "nvarchar(50)",
maxLength: 50,
nullable: true);
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_Id",
table: "SUPPLIER_SINV_DATA",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SA_WEEK_Id",
table: "SUPPLIER_SA_WEEK",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_RETURN_Id",
table: "SUPPLIER_RETURN",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_Id",
table: "SUPPLIER_PRO_TSCHEDUL",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_PLANING_Id",
table: "SUPPLIER_PRO_PLANING",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_Id",
table: "SUPPLIER_PRO_HSCHEDUL",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_Id",
table: "SUPPLIER_PRO_CSCHEDUL",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PO_Id",
table: "SUPPLIER_PO",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_WARNING_Id",
table: "SUPPLIER_MRP_WARNING",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_STATE_Id",
table: "SUPPLIER_MRP_STATE",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_MONTH_Id",
table: "SUPPLIER_MRP_MONTH",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_DATE_Id",
table: "SUPPLIER_MRP_DATE",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_INV_DATA_Id",
table: "SUPPLIER_INV_DATA",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_DEL_STATE_Id",
table: "SUPPLIER_DEL_STATE",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_Id",
table: "SUPPLIER_SINV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SA_WEEK_Id",
table: "SUPPLIER_SA_WEEK");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_RETURN_Id",
table: "SUPPLIER_RETURN");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_Id",
table: "SUPPLIER_PRO_TSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_PLANING_Id",
table: "SUPPLIER_PRO_PLANING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_Id",
table: "SUPPLIER_PRO_HSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_Id",
table: "SUPPLIER_PRO_CSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PO_Id",
table: "SUPPLIER_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_WARNING_Id",
table: "SUPPLIER_MRP_WARNING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_STATE_Id",
table: "SUPPLIER_MRP_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_MONTH_Id",
table: "SUPPLIER_MRP_MONTH");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_DATE_Id",
table: "SUPPLIER_MRP_DATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_INV_DATA_Id",
table: "SUPPLIER_INV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_DEL_STATE_Id",
table: "SUPPLIER_DEL_STATE");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_CON_PO");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_CON_MMRP");
migrationBuilder.DropColumn(
name: "Id",
table: "SUPPLIER_CON_DATE");
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(450)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand9",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand8",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand7",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand6",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand5",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand4",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand3",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand2",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand11",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand10",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand1",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
}
}
}

5323
API/TaskManager.EntityFramework/Migrations/20250610061746_z2025061000024.Designer.cs

File diff suppressed because it is too large

49
API/TaskManager.EntityFramework/Migrations/20250610061746_z2025061000024.cs

@ -1,49 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z2025061000024 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "PageSize",
table: "TaskConifgure",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(450)",
oldNullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "PageSize",
table: "TaskConifgure");
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(450)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
}
}
}

5330
API/TaskManager.EntityFramework/Migrations/20250610062047_z20250610000240002.Designer.cs

File diff suppressed because it is too large

158
API/TaskManager.EntityFramework/Migrations/20250610062047_z20250610000240002.cs

@ -1,158 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z20250610000240002 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Url",
table: "TaskConifgure",
type: "nvarchar(500)",
maxLength: 500,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TaskName",
table: "TaskConifgure",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TableName",
table: "TaskConifgure",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Module",
table: "TaskConifgure",
type: "nvarchar(400)",
maxLength: 400,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Corn",
table: "TaskConifgure",
type: "nvarchar(400)",
maxLength: 400,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Client",
table: "TaskConifgure",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Api",
table: "TaskConifgure",
type: "nvarchar(400)",
maxLength: 400,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Url",
table: "TaskConifgure",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(500)",
oldMaxLength: 500,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TaskName",
table: "TaskConifgure",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TableName",
table: "TaskConifgure",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Module",
table: "TaskConifgure",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(400)",
oldMaxLength: 400,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Corn",
table: "TaskConifgure",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(400)",
oldMaxLength: 400,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Client",
table: "TaskConifgure",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Api",
table: "TaskConifgure",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(400)",
oldMaxLength: 400,
oldNullable: true);
}
}
}

5342
API/TaskManager.EntityFramework/Migrations/20250610064324_z20250610000240003.Designer.cs

File diff suppressed because it is too large

69
API/TaskManager.EntityFramework/Migrations/20250610064324_z20250610000240003.cs

@ -1,69 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z20250610000240003 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_CON_MMRP",
type: "nvarchar(450)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_Id",
table: "SUPPLIER_CON_PO",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_Id",
table: "SUPPLIER_CON_MMRP",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_Id",
table: "SUPPLIER_CON_DATE",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_Id",
table: "SUPPLIER_CON_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_Id",
table: "SUPPLIER_CON_MMRP");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_Id",
table: "SUPPLIER_CON_DATE");
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_CON_MMRP",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(450)",
oldNullable: true);
}
}
}

5444
API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.Designer.cs

File diff suppressed because it is too large

741
API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.cs

@ -1,741 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z2025061100001 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_RETURN",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_PO",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_MRP_WARNING",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_MRP_STATE",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_MRP_MONTH",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_MRP_DATE",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_INV_DATA",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_DEL_STATE",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_ReadState",
table: "SUPPLIER_SINV_DATA",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_TaskId",
table: "SUPPLIER_SINV_DATA",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_WriteState",
table: "SUPPLIER_SINV_DATA",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SA_WEEK_ReadState",
table: "SUPPLIER_SA_WEEK",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SA_WEEK_TaskId",
table: "SUPPLIER_SA_WEEK",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SA_WEEK_WriteState",
table: "SUPPLIER_SA_WEEK",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_RETURN_ReadState",
table: "SUPPLIER_RETURN",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_RETURN_TaskId",
table: "SUPPLIER_RETURN",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_RETURN_WriteState",
table: "SUPPLIER_RETURN",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_ReadState",
table: "SUPPLIER_PRO_TSCHEDUL",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_TaskId",
table: "SUPPLIER_PRO_TSCHEDUL",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_WriteState",
table: "SUPPLIER_PRO_TSCHEDUL",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_PLANING_ReadState",
table: "SUPPLIER_PRO_PLANING",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_PLANING_TaskId",
table: "SUPPLIER_PRO_PLANING",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_PLANING_WriteState",
table: "SUPPLIER_PRO_PLANING",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_ReadState",
table: "SUPPLIER_PRO_HSCHEDUL",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_TaskId",
table: "SUPPLIER_PRO_HSCHEDUL",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_WriteState",
table: "SUPPLIER_PRO_HSCHEDUL",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_ReadState",
table: "SUPPLIER_PRO_CSCHEDUL",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_TaskId",
table: "SUPPLIER_PRO_CSCHEDUL",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_WriteState",
table: "SUPPLIER_PRO_CSCHEDUL",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PO_ReadState",
table: "SUPPLIER_PO",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PO_TaskId",
table: "SUPPLIER_PO",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PO_WriteState",
table: "SUPPLIER_PO",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_WARNING_ReadState",
table: "SUPPLIER_MRP_WARNING",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_WARNING_TaskId",
table: "SUPPLIER_MRP_WARNING",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_WARNING_WriteState",
table: "SUPPLIER_MRP_WARNING",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_STATE_ReadState",
table: "SUPPLIER_MRP_STATE",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_STATE_TaskId",
table: "SUPPLIER_MRP_STATE",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_STATE_WriteState",
table: "SUPPLIER_MRP_STATE",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_MONTH_ReadState",
table: "SUPPLIER_MRP_MONTH",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_MONTH_TaskId",
table: "SUPPLIER_MRP_MONTH",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_MONTH_WriteState",
table: "SUPPLIER_MRP_MONTH",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_DATE_ReadState",
table: "SUPPLIER_MRP_DATE",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_DATE_TaskId",
table: "SUPPLIER_MRP_DATE",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_DATE_WriteState",
table: "SUPPLIER_MRP_DATE",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_INV_DATA_ReadState",
table: "SUPPLIER_INV_DATA",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_INV_DATA_TaskId",
table: "SUPPLIER_INV_DATA",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_INV_DATA_WriteState",
table: "SUPPLIER_INV_DATA",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_DEL_STATE_ReadState",
table: "SUPPLIER_DEL_STATE",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_DEL_STATE_TaskId",
table: "SUPPLIER_DEL_STATE",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_DEL_STATE_WriteState",
table: "SUPPLIER_DEL_STATE",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_ReadState",
table: "SUPPLIER_CON_PO",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_TaskId",
table: "SUPPLIER_CON_PO",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_WriteState",
table: "SUPPLIER_CON_PO",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_ReadState",
table: "SUPPLIER_CON_MMRP",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_TaskId",
table: "SUPPLIER_CON_MMRP",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_WriteState",
table: "SUPPLIER_CON_MMRP",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_ReadState",
table: "SUPPLIER_CON_DATE",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_TaskId",
table: "SUPPLIER_CON_DATE",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_WriteState",
table: "SUPPLIER_CON_DATE",
column: "WriteState");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_ReadState",
table: "SUPPLIER_SINV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_TaskId",
table: "SUPPLIER_SINV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_WriteState",
table: "SUPPLIER_SINV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SA_WEEK_ReadState",
table: "SUPPLIER_SA_WEEK");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SA_WEEK_TaskId",
table: "SUPPLIER_SA_WEEK");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SA_WEEK_WriteState",
table: "SUPPLIER_SA_WEEK");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_RETURN_ReadState",
table: "SUPPLIER_RETURN");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_RETURN_TaskId",
table: "SUPPLIER_RETURN");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_RETURN_WriteState",
table: "SUPPLIER_RETURN");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_ReadState",
table: "SUPPLIER_PRO_TSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_TaskId",
table: "SUPPLIER_PRO_TSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_WriteState",
table: "SUPPLIER_PRO_TSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_PLANING_ReadState",
table: "SUPPLIER_PRO_PLANING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_PLANING_TaskId",
table: "SUPPLIER_PRO_PLANING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_PLANING_WriteState",
table: "SUPPLIER_PRO_PLANING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_ReadState",
table: "SUPPLIER_PRO_HSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_TaskId",
table: "SUPPLIER_PRO_HSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_WriteState",
table: "SUPPLIER_PRO_HSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_ReadState",
table: "SUPPLIER_PRO_CSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_TaskId",
table: "SUPPLIER_PRO_CSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_WriteState",
table: "SUPPLIER_PRO_CSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PO_ReadState",
table: "SUPPLIER_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PO_TaskId",
table: "SUPPLIER_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PO_WriteState",
table: "SUPPLIER_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_WARNING_ReadState",
table: "SUPPLIER_MRP_WARNING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_WARNING_TaskId",
table: "SUPPLIER_MRP_WARNING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_WARNING_WriteState",
table: "SUPPLIER_MRP_WARNING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_STATE_ReadState",
table: "SUPPLIER_MRP_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_STATE_TaskId",
table: "SUPPLIER_MRP_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_STATE_WriteState",
table: "SUPPLIER_MRP_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_MONTH_ReadState",
table: "SUPPLIER_MRP_MONTH");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_MONTH_TaskId",
table: "SUPPLIER_MRP_MONTH");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_MONTH_WriteState",
table: "SUPPLIER_MRP_MONTH");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_DATE_ReadState",
table: "SUPPLIER_MRP_DATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_DATE_TaskId",
table: "SUPPLIER_MRP_DATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_DATE_WriteState",
table: "SUPPLIER_MRP_DATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_INV_DATA_ReadState",
table: "SUPPLIER_INV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_INV_DATA_TaskId",
table: "SUPPLIER_INV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_INV_DATA_WriteState",
table: "SUPPLIER_INV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_DEL_STATE_ReadState",
table: "SUPPLIER_DEL_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_DEL_STATE_TaskId",
table: "SUPPLIER_DEL_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_DEL_STATE_WriteState",
table: "SUPPLIER_DEL_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_ReadState",
table: "SUPPLIER_CON_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_TaskId",
table: "SUPPLIER_CON_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_WriteState",
table: "SUPPLIER_CON_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_ReadState",
table: "SUPPLIER_CON_MMRP");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_TaskId",
table: "SUPPLIER_CON_MMRP");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_WriteState",
table: "SUPPLIER_CON_MMRP");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_ReadState",
table: "SUPPLIER_CON_DATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_TaskId",
table: "SUPPLIER_CON_DATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_WriteState",
table: "SUPPLIER_CON_DATE");
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_PO",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_MRP_WARNING",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_MRP_STATE",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_MRP_MONTH",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_MRP_DATE",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_INV_DATA",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_DEL_STATE",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
}
}
}

9997
API/TaskManager.EntityFramework/Migrations/20250616060016_z202506160003.Designer.cs

File diff suppressed because it is too large

1850
API/TaskManager.EntityFramework/Migrations/20250616060016_z202506160003.cs

File diff suppressed because it is too large

9985
API/TaskManager.EntityFramework/Migrations/20250617065901_z202506170001.Designer.cs

File diff suppressed because it is too large

921
API/TaskManager.EntityFramework/Migrations/20250617065901_z202506170001.cs

@ -1,921 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506170001 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_LOGS_Id",
table: "SUPPLIER_SINV_DATA_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_Id",
table: "SUPPLIER_SINV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SA_WEEK_LOGS_Id",
table: "SUPPLIER_SA_WEEK_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SA_WEEK_Id",
table: "SUPPLIER_SA_WEEK");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_RETURN_LOGS_Id",
table: "SUPPLIER_RETURN_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_RETURN_Id",
table: "SUPPLIER_RETURN");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_Id",
table: "SUPPLIER_PRO_TSCHEDUL_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_Id",
table: "SUPPLIER_PRO_TSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_PLANING_LOGS_Id",
table: "SUPPLIER_PRO_PLANING_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_PLANING_Id",
table: "SUPPLIER_PRO_PLANING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_Id",
table: "SUPPLIER_PRO_HSCHEDUL_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_Id",
table: "SUPPLIER_PRO_HSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_Id",
table: "SUPPLIER_PRO_CSCHEDUL_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_Id",
table: "SUPPLIER_PRO_CSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PO_LOGS_Id",
table: "SUPPLIER_PO_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PO_Id",
table: "SUPPLIER_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_WARNING_Id",
table: "SUPPLIER_MRP_WARNING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_STATE_LOGS_Id",
table: "SUPPLIER_MRP_STATE_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_STATE_Id",
table: "SUPPLIER_MRP_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_MONTH_LOGS_Id",
table: "SUPPLIER_MRP_MONTH_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_MONTH_Id",
table: "SUPPLIER_MRP_MONTH");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_DATE_LOGS_Id",
table: "SUPPLIER_MRP_DATE_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_DATE_Id",
table: "SUPPLIER_MRP_DATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_INV_DATA_LOGS_Id",
table: "SUPPLIER_INV_DATA_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_INV_DATA_Id",
table: "SUPPLIER_INV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_DEL_STATE_LOGS_Id",
table: "SUPPLIER_DEL_STATE_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_DEL_STATE_Id",
table: "SUPPLIER_DEL_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_LOGS_Id",
table: "SUPPLIER_CON_PO_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_Id",
table: "SUPPLIER_CON_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_LOGS_Id",
table: "SUPPLIER_CON_MMRP_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_Id",
table: "SUPPLIER_CON_MMRP");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_LOGS_Id",
table: "SUPPLIER_CON_DATE_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_Id",
table: "SUPPLIER_CON_DATE");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_LOGS_Id",
table: "SUPPLIER_SINV_DATA_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_LOGS_RequestDate",
table: "SUPPLIER_SINV_DATA_LOGS",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_Id",
table: "SUPPLIER_SINV_DATA",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_RequestDate",
table: "SUPPLIER_SINV_DATA",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SA_WEEK_LOGS_Id",
table: "SUPPLIER_SA_WEEK_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SA_WEEK_LOGS_RequestDate",
table: "SUPPLIER_SA_WEEK_LOGS",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SA_WEEK_Id",
table: "SUPPLIER_SA_WEEK",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SA_WEEK_RequestDate",
table: "SUPPLIER_SA_WEEK",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_RETURN_LOGS_Id",
table: "SUPPLIER_RETURN_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_RETURN_LOGS_RequestDate",
table: "SUPPLIER_RETURN_LOGS",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_RETURN_Id",
table: "SUPPLIER_RETURN",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_RETURN_RequestDate",
table: "SUPPLIER_RETURN",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_Id",
table: "SUPPLIER_PRO_TSCHEDUL_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_RequestDate",
table: "SUPPLIER_PRO_TSCHEDUL_LOGS",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_Id",
table: "SUPPLIER_PRO_TSCHEDUL",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_RequestDate",
table: "SUPPLIER_PRO_TSCHEDUL",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_PLANING_LOGS_Id",
table: "SUPPLIER_PRO_PLANING_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_PLANING_LOGS_RequestDate",
table: "SUPPLIER_PRO_PLANING_LOGS",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_PLANING_Id",
table: "SUPPLIER_PRO_PLANING",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_PLANING_RequestDate",
table: "SUPPLIER_PRO_PLANING",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_Id",
table: "SUPPLIER_PRO_HSCHEDUL_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_RequestDate",
table: "SUPPLIER_PRO_HSCHEDUL_LOGS",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_Id",
table: "SUPPLIER_PRO_HSCHEDUL",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_RequestDate",
table: "SUPPLIER_PRO_HSCHEDUL",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_Id",
table: "SUPPLIER_PRO_CSCHEDUL_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_RequestDate",
table: "SUPPLIER_PRO_CSCHEDUL_LOGS",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_Id",
table: "SUPPLIER_PRO_CSCHEDUL",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_RequestDate",
table: "SUPPLIER_PRO_CSCHEDUL",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PO_LOGS_Id",
table: "SUPPLIER_PO_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PO_LOGS_RequestDate",
table: "SUPPLIER_PO_LOGS",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PO_Id",
table: "SUPPLIER_PO",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PO_RequestDate",
table: "SUPPLIER_PO",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_WARNING_Id",
table: "SUPPLIER_MRP_WARNING",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_WARNING_RequestDate",
table: "SUPPLIER_MRP_WARNING",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_STATE_LOGS_Id",
table: "SUPPLIER_MRP_STATE_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_STATE_LOGS_RequestDate",
table: "SUPPLIER_MRP_STATE_LOGS",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_STATE_Id",
table: "SUPPLIER_MRP_STATE",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_STATE_RequestDate",
table: "SUPPLIER_MRP_STATE",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_MONTH_LOGS_Id",
table: "SUPPLIER_MRP_MONTH_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_MONTH_LOGS_RequestDate",
table: "SUPPLIER_MRP_MONTH_LOGS",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_MONTH_Id",
table: "SUPPLIER_MRP_MONTH",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_MONTH_RequestDate",
table: "SUPPLIER_MRP_MONTH",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_DATE_LOGS_Id",
table: "SUPPLIER_MRP_DATE_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_DATE_LOGS_RequestDate",
table: "SUPPLIER_MRP_DATE_LOGS",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_DATE_Id",
table: "SUPPLIER_MRP_DATE",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_DATE_RequestDate",
table: "SUPPLIER_MRP_DATE",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_INV_DATA_LOGS_Id",
table: "SUPPLIER_INV_DATA_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_INV_DATA_LOGS_RequestDate",
table: "SUPPLIER_INV_DATA_LOGS",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_INV_DATA_Id",
table: "SUPPLIER_INV_DATA",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_INV_DATA_RequestDate",
table: "SUPPLIER_INV_DATA",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_DEL_STATE_LOGS_Id",
table: "SUPPLIER_DEL_STATE_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_DEL_STATE_LOGS_RequestDate",
table: "SUPPLIER_DEL_STATE_LOGS",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_DEL_STATE_Id",
table: "SUPPLIER_DEL_STATE",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_DEL_STATE_RequestDate",
table: "SUPPLIER_DEL_STATE",
column: "RequestDate");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_LOGS_Id",
table: "SUPPLIER_CON_PO_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_Id",
table: "SUPPLIER_CON_PO",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_LOGS_Id",
table: "SUPPLIER_CON_MMRP_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_Id",
table: "SUPPLIER_CON_MMRP",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_LOGS_Id",
table: "SUPPLIER_CON_DATE_LOGS",
column: "Id");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_Id",
table: "SUPPLIER_CON_DATE",
column: "Id");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_LOGS_Id",
table: "SUPPLIER_SINV_DATA_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_LOGS_RequestDate",
table: "SUPPLIER_SINV_DATA_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_Id",
table: "SUPPLIER_SINV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_RequestDate",
table: "SUPPLIER_SINV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SA_WEEK_LOGS_Id",
table: "SUPPLIER_SA_WEEK_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SA_WEEK_LOGS_RequestDate",
table: "SUPPLIER_SA_WEEK_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SA_WEEK_Id",
table: "SUPPLIER_SA_WEEK");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SA_WEEK_RequestDate",
table: "SUPPLIER_SA_WEEK");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_RETURN_LOGS_Id",
table: "SUPPLIER_RETURN_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_RETURN_LOGS_RequestDate",
table: "SUPPLIER_RETURN_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_RETURN_Id",
table: "SUPPLIER_RETURN");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_RETURN_RequestDate",
table: "SUPPLIER_RETURN");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_Id",
table: "SUPPLIER_PRO_TSCHEDUL_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_RequestDate",
table: "SUPPLIER_PRO_TSCHEDUL_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_Id",
table: "SUPPLIER_PRO_TSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_RequestDate",
table: "SUPPLIER_PRO_TSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_PLANING_LOGS_Id",
table: "SUPPLIER_PRO_PLANING_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_PLANING_LOGS_RequestDate",
table: "SUPPLIER_PRO_PLANING_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_PLANING_Id",
table: "SUPPLIER_PRO_PLANING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_PLANING_RequestDate",
table: "SUPPLIER_PRO_PLANING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_Id",
table: "SUPPLIER_PRO_HSCHEDUL_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_RequestDate",
table: "SUPPLIER_PRO_HSCHEDUL_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_Id",
table: "SUPPLIER_PRO_HSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_RequestDate",
table: "SUPPLIER_PRO_HSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_Id",
table: "SUPPLIER_PRO_CSCHEDUL_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_RequestDate",
table: "SUPPLIER_PRO_CSCHEDUL_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_Id",
table: "SUPPLIER_PRO_CSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_RequestDate",
table: "SUPPLIER_PRO_CSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PO_LOGS_Id",
table: "SUPPLIER_PO_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PO_LOGS_RequestDate",
table: "SUPPLIER_PO_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PO_Id",
table: "SUPPLIER_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PO_RequestDate",
table: "SUPPLIER_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_WARNING_Id",
table: "SUPPLIER_MRP_WARNING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_WARNING_RequestDate",
table: "SUPPLIER_MRP_WARNING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_STATE_LOGS_Id",
table: "SUPPLIER_MRP_STATE_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_STATE_LOGS_RequestDate",
table: "SUPPLIER_MRP_STATE_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_STATE_Id",
table: "SUPPLIER_MRP_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_STATE_RequestDate",
table: "SUPPLIER_MRP_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_MONTH_LOGS_Id",
table: "SUPPLIER_MRP_MONTH_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_MONTH_LOGS_RequestDate",
table: "SUPPLIER_MRP_MONTH_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_MONTH_Id",
table: "SUPPLIER_MRP_MONTH");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_MONTH_RequestDate",
table: "SUPPLIER_MRP_MONTH");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_DATE_LOGS_Id",
table: "SUPPLIER_MRP_DATE_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_DATE_LOGS_RequestDate",
table: "SUPPLIER_MRP_DATE_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_DATE_Id",
table: "SUPPLIER_MRP_DATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_DATE_RequestDate",
table: "SUPPLIER_MRP_DATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_INV_DATA_LOGS_Id",
table: "SUPPLIER_INV_DATA_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_INV_DATA_LOGS_RequestDate",
table: "SUPPLIER_INV_DATA_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_INV_DATA_Id",
table: "SUPPLIER_INV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_INV_DATA_RequestDate",
table: "SUPPLIER_INV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_DEL_STATE_LOGS_Id",
table: "SUPPLIER_DEL_STATE_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_DEL_STATE_LOGS_RequestDate",
table: "SUPPLIER_DEL_STATE_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_DEL_STATE_Id",
table: "SUPPLIER_DEL_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_DEL_STATE_RequestDate",
table: "SUPPLIER_DEL_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_LOGS_Id",
table: "SUPPLIER_CON_PO_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_Id",
table: "SUPPLIER_CON_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_LOGS_Id",
table: "SUPPLIER_CON_MMRP_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_Id",
table: "SUPPLIER_CON_MMRP");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_LOGS_Id",
table: "SUPPLIER_CON_DATE_LOGS");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_Id",
table: "SUPPLIER_CON_DATE");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_LOGS_Id",
table: "SUPPLIER_SINV_DATA_LOGS",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_Id",
table: "SUPPLIER_SINV_DATA",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SA_WEEK_LOGS_Id",
table: "SUPPLIER_SA_WEEK_LOGS",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SA_WEEK_Id",
table: "SUPPLIER_SA_WEEK",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_RETURN_LOGS_Id",
table: "SUPPLIER_RETURN_LOGS",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_RETURN_Id",
table: "SUPPLIER_RETURN",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_Id",
table: "SUPPLIER_PRO_TSCHEDUL_LOGS",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_Id",
table: "SUPPLIER_PRO_TSCHEDUL",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_PLANING_LOGS_Id",
table: "SUPPLIER_PRO_PLANING_LOGS",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_PLANING_Id",
table: "SUPPLIER_PRO_PLANING",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_Id",
table: "SUPPLIER_PRO_HSCHEDUL_LOGS",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_Id",
table: "SUPPLIER_PRO_HSCHEDUL",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_Id",
table: "SUPPLIER_PRO_CSCHEDUL_LOGS",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_Id",
table: "SUPPLIER_PRO_CSCHEDUL",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PO_LOGS_Id",
table: "SUPPLIER_PO_LOGS",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PO_Id",
table: "SUPPLIER_PO",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_WARNING_Id",
table: "SUPPLIER_MRP_WARNING",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_STATE_LOGS_Id",
table: "SUPPLIER_MRP_STATE_LOGS",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_STATE_Id",
table: "SUPPLIER_MRP_STATE",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_MONTH_LOGS_Id",
table: "SUPPLIER_MRP_MONTH_LOGS",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_MONTH_Id",
table: "SUPPLIER_MRP_MONTH",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_DATE_LOGS_Id",
table: "SUPPLIER_MRP_DATE_LOGS",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_DATE_Id",
table: "SUPPLIER_MRP_DATE",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_INV_DATA_LOGS_Id",
table: "SUPPLIER_INV_DATA_LOGS",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_INV_DATA_Id",
table: "SUPPLIER_INV_DATA",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_DEL_STATE_LOGS_Id",
table: "SUPPLIER_DEL_STATE_LOGS",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_DEL_STATE_Id",
table: "SUPPLIER_DEL_STATE",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_LOGS_Id",
table: "SUPPLIER_CON_PO_LOGS",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_Id",
table: "SUPPLIER_CON_PO",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_LOGS_Id",
table: "SUPPLIER_CON_MMRP_LOGS",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_Id",
table: "SUPPLIER_CON_MMRP",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_LOGS_Id",
table: "SUPPLIER_CON_DATE_LOGS",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_Id",
table: "SUPPLIER_CON_DATE",
column: "Id",
unique: true,
filter: "[Id] IS NOT NULL");
}
}
}

9991
API/TaskManager.EntityFramework/Migrations/20250617084345_z202506170002.Designer.cs

File diff suppressed because it is too large

38
API/TaskManager.EntityFramework/Migrations/20250617084345_z202506170002.cs

@ -1,38 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506170002 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Module",
table: "TaskLogs",
type: "nvarchar(30)",
maxLength: 30,
nullable: true);
migrationBuilder.CreateIndex(
name: "IX_TaskLogs_Module",
table: "TaskLogs",
column: "Module");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_TaskLogs_Module",
table: "TaskLogs");
migrationBuilder.DropColumn(
name: "Module",
table: "TaskLogs");
}
}
}

10261
API/TaskManager.EntityFramework/Migrations/20250619005547_z202506190001.Designer.cs

File diff suppressed because it is too large

1389
API/TaskManager.EntityFramework/Migrations/20250619005547_z202506190001.cs

File diff suppressed because it is too large

10260
API/TaskManager.EntityFramework/Migrations/20250620033738_z202506200001.Designer.cs

File diff suppressed because it is too large

38
API/TaskManager.EntityFramework/Migrations/20250620033738_z202506200001.cs

@ -1,38 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506200001 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "FailedInfo",
table: "TaskSub",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "FailedInfo",
table: "TaskSub",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
}
}
}

10261
API/TaskManager.EntityFramework/Migrations/20250620073219_z202506200002.Designer.cs

File diff suppressed because it is too large

60
API/TaskManager.EntityFramework/Migrations/20250620073219_z202506200002.cs

@ -1,60 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506200002 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "TaskName",
table: "TaskSub",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Type",
table: "SUPPLIER_PRO_MATERIAL_DATA",
type: "VARCHAR(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(decimal),
oldType: "DECIMAL(1,0)",
oldPrecision: 1);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "TaskName",
table: "TaskSub",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "Type",
table: "SUPPLIER_PRO_MATERIAL_DATA",
type: "DECIMAL(1,0)",
precision: 1,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50);
}
}
}

10261
API/TaskManager.EntityFramework/Migrations/20250620074909_z202506200003.Designer.cs

File diff suppressed because it is too large

22
API/TaskManager.EntityFramework/Migrations/20250620074909_z202506200003.cs

@ -1,22 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506200003 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}

10332
API/TaskManager.EntityFramework/Migrations/20250624060542_z202506240001.Designer.cs

File diff suppressed because it is too large

101
API/TaskManager.EntityFramework/Migrations/20250624060542_z202506240001.cs

@ -1,101 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506240001 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "TaskLogs",
type: "datetime2",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
oldClrType: typeof(DateTime),
oldType: "datetime2",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "DeadLine",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(30)",
maxLength: 30,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10);
migrationBuilder.CreateTable(
name: "DynamicTableRecords",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
TableId = table.Column<long>(type: "bigint", nullable: false),
RecordJson = table.Column<string>(type: "nvarchar(max)", nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_DynamicTableRecords", x => x.UId);
});
migrationBuilder.CreateTable(
name: "DynamicTables",
columns: table => new
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
TableName = table.Column<string>(type: "nvarchar(max)", nullable: false),
SchemaJson = table.Column<string>(type: "nvarchar(max)", nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_DynamicTables", x => x.UId);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "DynamicTableRecords");
migrationBuilder.DropTable(
name: "DynamicTables");
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "TaskLogs",
type: "datetime2",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn<string>(
name: "DeadLine",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "VARCHAR(10)",
maxLength: 10,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(30)",
oldMaxLength: 30);
}
}
}

10317
API/TaskManager.EntityFramework/Migrations/20250626085605_z20250620001.Designer.cs

File diff suppressed because it is too large

279
API/TaskManager.EntityFramework/Migrations/20250626085605_z20250620001.cs

@ -1,279 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z20250620001 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "DataUpdateTime",
table: "SUPPLIER_SINV_DATA",
type: "VarChar(30)",
maxLength: 30,
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<string>(
name: "ValidDays",
table: "SUPPLIER_PRO_MATERIAL_DATA",
type: "VARCHAR(12)",
maxLength: 12,
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(12)",
oldMaxLength: 12);
migrationBuilder.AlterColumn<DateTime>(
name: "DataUpdateTime",
table: "SUPPLIER_INFO_LOGS",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<DateTime>(
name: "DataUpdateTime",
table: "SUPPLIER_INFO_DT",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<DateTime>(
name: "DataUpdateTime",
table: "SUPPLIER_INFO",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<DateTime>(
name: "DataUpdateTime",
table: "SUPPLIER_EMPLOYEE_LOGS",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<DateTime>(
name: "CheckOutTime",
table: "SUPPLIER_EMPLOYEE_LOGS",
type: "datetime2",
nullable: true,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<DateTime>(
name: "CheckInTime",
table: "SUPPLIER_EMPLOYEE_LOGS",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<DateTime>(
name: "DataUpdateTime",
table: "SUPPLIER_EMPLOYEE_DT",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<DateTime>(
name: "CheckOutTime",
table: "SUPPLIER_EMPLOYEE_DT",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<DateTime>(
name: "CheckInTime",
table: "SUPPLIER_EMPLOYEE_DT",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<DateTime>(
name: "DataUpdateTime",
table: "SUPPLIER_EMPLOYEE",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<DateTime>(
name: "CheckOutTime",
table: "SUPPLIER_EMPLOYEE",
type: "datetime2",
nullable: true,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<DateTime>(
name: "CheckInTime",
table: "SUPPLIER_EMPLOYEE",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "DataUpdateTime",
table: "SUPPLIER_SINV_DATA",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(string),
oldType: "VarChar(30)",
oldMaxLength: 30);
migrationBuilder.AlterColumn<string>(
name: "ValidDays",
table: "SUPPLIER_PRO_MATERIAL_DATA",
type: "CHAR(12)",
maxLength: 12,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(12)",
oldMaxLength: 12);
migrationBuilder.AlterColumn<string>(
name: "DataUpdateTime",
table: "SUPPLIER_INFO_LOGS",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn<string>(
name: "DataUpdateTime",
table: "SUPPLIER_INFO_DT",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn<string>(
name: "DataUpdateTime",
table: "SUPPLIER_INFO",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn<string>(
name: "DataUpdateTime",
table: "SUPPLIER_EMPLOYEE_LOGS",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn<string>(
name: "CheckOutTime",
table: "SUPPLIER_EMPLOYEE_LOGS",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
defaultValue: "",
oldClrType: typeof(DateTime),
oldType: "datetime2",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CheckInTime",
table: "SUPPLIER_EMPLOYEE_LOGS",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn<string>(
name: "DataUpdateTime",
table: "SUPPLIER_EMPLOYEE_DT",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn<string>(
name: "CheckOutTime",
table: "SUPPLIER_EMPLOYEE_DT",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn<string>(
name: "CheckInTime",
table: "SUPPLIER_EMPLOYEE_DT",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn<string>(
name: "DataUpdateTime",
table: "SUPPLIER_EMPLOYEE",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn<string>(
name: "CheckOutTime",
table: "SUPPLIER_EMPLOYEE",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
defaultValue: "",
oldClrType: typeof(DateTime),
oldType: "datetime2",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CheckInTime",
table: "SUPPLIER_EMPLOYEE",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
}
}
}

10317
API/TaskManager.EntityFramework/Migrations/20250627012246_z202506270001.Designer.cs

File diff suppressed because it is too large

22
API/TaskManager.EntityFramework/Migrations/20250627012246_z202506270001.cs

@ -1,22 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506270001 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}

10311
API/TaskManager.EntityFramework/Migrations/20250627014145_z202506270002.Designer.cs

File diff suppressed because it is too large

267
API/TaskManager.EntityFramework/Migrations/20250627014145_z202506270002.cs

@ -1,267 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506270002 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "ProductionDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(16)",
oldMaxLength: 16);
migrationBuilder.AlterColumn<string>(
name: "CalibrationDueDays",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
type: "VARCHAR(12)",
maxLength: 12,
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(12)",
oldMaxLength: 12);
migrationBuilder.AlterColumn<string>(
name: "CalibrationDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<DateTime>(
name: "ProductionDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(16)",
oldMaxLength: 16);
migrationBuilder.AlterColumn<string>(
name: "CalibrationDueDays",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT",
type: "VARCHAR(12)",
maxLength: 12,
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(12)",
oldMaxLength: 12);
migrationBuilder.AlterColumn<DateTime>(
name: "CalibrationDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<DateTime>(
name: "ProductionDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(16)",
oldMaxLength: 16);
migrationBuilder.AlterColumn<string>(
name: "DeviceStatus",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "VARCHAR(30)",
maxLength: 30,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(16)",
oldMaxLength: 16);
migrationBuilder.AlterColumn<string>(
name: "DesignLifeValue",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(16)",
oldMaxLength: 16);
migrationBuilder.AlterColumn<string>(
name: "DesignLifeUnits",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(16)",
oldMaxLength: 16);
migrationBuilder.AlterColumn<string>(
name: "CurrentUsageCount",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(16)",
oldMaxLength: 16);
migrationBuilder.AlterColumn<string>(
name: "CalibrationDueDays",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(12)",
oldMaxLength: 12);
migrationBuilder.AlterColumn<DateTime>(
name: "CalibrationDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "ProductionDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
type: "CHAR(16)",
maxLength: 16,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "CalibrationDueDays",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
type: "CHAR(12)",
maxLength: 12,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(12)",
oldMaxLength: 12);
migrationBuilder.AlterColumn<string>(
name: "CalibrationDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "ProductionDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT",
type: "CHAR(16)",
maxLength: 16,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn<string>(
name: "CalibrationDueDays",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT",
type: "CHAR(12)",
maxLength: 12,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(12)",
oldMaxLength: 12);
migrationBuilder.AlterColumn<string>(
name: "CalibrationDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn<string>(
name: "ProductionDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "CHAR(16)",
maxLength: 16,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn<string>(
name: "DeviceStatus",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "VARCHAR(16)",
maxLength: 16,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(30)",
oldMaxLength: 30);
migrationBuilder.AlterColumn<string>(
name: "DesignLifeValue",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "VARCHAR(16)",
maxLength: 16,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32);
migrationBuilder.AlterColumn<string>(
name: "DesignLifeUnits",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "VARCHAR(16)",
maxLength: 16,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32);
migrationBuilder.AlterColumn<string>(
name: "CurrentUsageCount",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "VARCHAR(16)",
maxLength: 16,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32);
migrationBuilder.AlterColumn<string>(
name: "CalibrationDueDays",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "CHAR(12)",
maxLength: 12,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32);
migrationBuilder.AlterColumn<string>(
name: "CalibrationDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
}
}
}

10311
API/TaskManager.EntityFramework/Migrations/20250627014433_z202506270003.Designer.cs

File diff suppressed because it is too large

35
API/TaskManager.EntityFramework/Migrations/20250627014433_z202506270003.cs

@ -1,35 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506270003 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<DateTime>(
name: "ProductionDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "ProductionDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
}
}
}

1010
API/TaskManager.EntityFramework/Migrations/20250627034559_z202506270004.cs

File diff suppressed because it is too large

4
API/TaskManager.EntityFramework/Migrations/20250627034559_z202506270004.Designer.cs → API/TaskManager.EntityFramework/Migrations/20250627233450_z1239912930001.Designer.cs

@ -12,8 +12,8 @@ using TaskManager.EntityFramework;
namespace TaskManager.EntityFramework.Migrations
{
[DbContext(typeof(JobDbContext))]
[Migration("20250627034559_z202506270004")]
partial class z202506270004
[Migration("20250627233450_z1239912930001")]
partial class z1239912930001
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)

4060
API/TaskManager.EntityFramework/Migrations/20250627233450_z1239912930001.cs

File diff suppressed because it is too large

4
API/Wood.Admin.WebApi/Properties/PublishProfiles/FolderProfile.pubxml.user

@ -2,8 +2,8 @@
<!-- https://go.microsoft.com/fwlink/?LinkID=208121. -->
<Project>
<PropertyGroup>
<_PublishTargetUrl>D:\QRAPI20250528\API\Wood.Admin.WebApi\bin\Release\net8.0\publish\</_PublishTargetUrl>
<History>True|2025-06-27T06:51:18.0006510Z||;True|2025-06-27T14:46:36.7189818+08:00||;True|2025-06-25T10:54:54.0406425+08:00||;True|2025-06-24T15:53:07.6141315+08:00||;True|2025-06-24T15:48:22.4116425+08:00||;True|2025-06-24T15:47:33.3794364+08:00||;True|2025-06-24T15:21:28.5600646+08:00||;True|2025-06-23T17:18:30.1990173+08:00||;True|2025-06-23T17:12:33.6485743+08:00||;True|2025-06-19T17:18:07.6086155+08:00||;</History>
<_PublishTargetUrl>C:\www\API\Wood.Admin.WebApi\bin\Release\net8.0\publish\</_PublishTargetUrl>
<History>True|2025-06-28T02:37:00.4525422Z||;True|2025-06-27T14:51:18.0006510+08:00||;True|2025-06-27T14:46:36.7189818+08:00||;True|2025-06-25T10:54:54.0406425+08:00||;True|2025-06-24T15:53:07.6141315+08:00||;True|2025-06-24T15:48:22.4116425+08:00||;True|2025-06-24T15:47:33.3794364+08:00||;True|2025-06-24T15:21:28.5600646+08:00||;True|2025-06-23T17:18:30.1990173+08:00||;True|2025-06-23T17:12:33.6485743+08:00||;True|2025-06-19T17:18:07.6086155+08:00||;</History>
<LastFailureDetails />
</PropertyGroup>
</Project>

2
API/Wood.Admin.WebApi/Wood.Admin.WebApi.csproj.user

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<NameOfLastUsedPublishProfile>D:\QRAPI20250528\API\Wood.Admin.WebApi\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
<NameOfLastUsedPublishProfile>C:\www\API\Wood.Admin.WebApi\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
</PropertyGroup>
</Project>

2
API/Wood.Admin.WebApi/appsettings.json

@ -20,7 +20,7 @@
"DBEnableDiffLog": true, //
"LogDays": 90, //
"RunAutoJob": true, //job
"CustomerDb": "Server=192.168.1.228; Database=TaskManager2; User ID = sa; Password=ChangkeTec@2021; TrustServerCertificate = True"
"CustomerDb": "Server=127.0.0.1; Database=TaskManager2; User ID = sa; Password=1; TrustServerCertificate = True"
},
"JwtConfig": {
"SecretKey": "3c1cac3f546eda35168c3aa3cn91780fbe703f0996c6d123ea96dc85c70bbc0a", // string 16

1
API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs

@ -182,6 +182,7 @@ namespace TaskManager.Controllers
entity.InjectFrom(itm);
entity.CreationTime = DateTime.Now;
entity.RequestDate = date;
entity.TaskId = taskId;
pageList.Add(entity);
allData.Add(itm);
}

BIN
API/WoodAdmin.db-shm

Binary file not shown.

0
API/WoodAdmin.db-wal

BIN
API/WoodAdmin.zip

Binary file not shown.
Loading…
Cancel
Save