Weben_CMSרÓôúÂëÉú³ÉÆ÷/Weben_CMS_TemplateDemo/server/src/CMS.Plugin.HIAWms.Application/Implements/WmsMaterialAppService.cs
@@ -112,6 +112,8 @@ var insertObj = ObjectMapper.Map<WmsMaterialCreateDto, WmsMaterial>(input); insertObj.Sort = sort; input.MapExtraPropertiesTo(insertObj, MappingPropertyDefinitionChecks.None); await wmsmaterialsRepository.InsertAsync(insertObj); Weben_CMSרÓôúÂëÉú³ÉÆ÷/Weben_CMS_TemplateDemo/server/src/CMS.Plugin.HIAWms.Domain/Extension/AuditableEntity.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,26 @@ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CMS.Plugin.HIAWms.Domain.Extension { public class AuditableEntity { public string CreatorId { get; set; } public string CreatorName { get; set; } public DateTime CreationTime { get; set; } public string LastModifierName { get; set; } public string LastModifierId { get; set; } public DateTime? LastModificationTime { get; set; } public bool IsDeleted { get; set; } public string DeleterId { get; set; } public DateTime? DeletionTime { get; set; } public string ExtraProperties { get; set; } public string ConcurrencyStamp { get; set; } public int Sort { get; set; } public string Remark { get; set; } public bool IsDisabled { get; set; } } } Weben_CMSרÓôúÂëÉú³ÉÆ÷/Weben_CMS_TemplateDemo/server/src/CMS.Plugin.HIAWms.Domain/Extension/Class1.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,80 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CMS.Plugin.HIAWms.Domain.Extension { public static class EntityTypeBuilderExtensions { public static void xx<TEntity>(this EntityTypeBuilder<TEntity> b) where TEntity : MyFullAuditedAggregateRoot<Guid> { b.Property(x => x.CreatorId) .HasMaxLength(36) .IsRequired(false) .HasComment("å建人ID"); b.Property(x => x.CreatorName) .HasMaxLength(64) .IsRequired(false) .HasComment("å建人"); b.Property(x => x.CreationTime) .IsRequired() .HasComment("å建æ¶é´"); b.Property(x => x.LastModifierName) .HasMaxLength(64) .IsRequired(false) .HasComment("ä¿®æ¹äºº"); b.Property(x => x.LastModifierId) .HasMaxLength(36) .IsRequired(false) .HasComment("ä¿®æ¹äººID"); b.Property(x => x.LastModificationTime) .IsRequired(false) .HasComment("ä¿®æ¹æ¶é´"); b.Property(x => x.IsDeleted) .IsRequired() .HasComment("æ¯å¦å é¤"); b.Property(x => x.DeleterId) .HasMaxLength(36) .IsRequired(false) .HasComment("å é¤äººID"); b.Property(x => x.DeletionTime) .IsRequired(false) .HasComment("å 餿¶é´"); b.Property(x => x.ExtraProperties) .IsRequired(false) .HasComment("æ©å±å±æ§"); b.Property(x => x.ConcurrencyStamp) .IsRequired(false) .HasMaxLength(40) .HasComment("å¹¶åæ³"); b.Property(x => x.Sort) .HasDefaultValue(0) .HasComment("æåº"); b.Property(x => x.Remark) .HasMaxLength(500) .IsRequired(false) .HasComment("夿³¨"); b.Property(x => x.IsDisabled) .IsRequired(false) .HasDefaultValue(false) .HasComment("æ¯å¦ç¦ç¨"); } } } Weben_CMSרÓôúÂëÉú³ÉÆ÷/Weben_CMS_TemplateDemo/server/src/CMS.Plugin.HIAWms.Domain/Extension/MyFullAuditedAggregateRoot.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,84 @@ using System; using Volo.Abp.Auditing; using Volo.Abp.Domain.Entities.Auditing; namespace CMS.Plugin.HIAWms.Domain; /// <summary> /// Implements <see cref="IFullAuditedObject"/> to be a base class for full-audited aggregate roots. /// </summary> [Serializable] public abstract class MyFullAuditedAggregateRoot : FullAuditedAggregateRoot { /// <summary> /// å建人 /// </summary> public virtual string? CreatorName { get; set; } /// <summary> /// ä¿®æ¹äºº /// </summary> public virtual string? LastModifierName { get; set; } /// <summary> /// æåº /// </summary> public virtual int Sort { get; set; } /// <summary> /// 夿³¨ /// </summary> public virtual string Remark { get; set; } /// <summary> /// æ¯å¦ç¦ç¨ /// </summary> public virtual bool? IsDisabled { get; set; } } /// <summary> /// Implements <see cref="IFullAuditedObject"/> to be a base class for full-audited aggregate roots. /// </summary> /// <typeparam name="TKey">Type of the primary key of the entity</typeparam> [Serializable] public abstract class MyFullAuditedAggregateRoot<TKey> : FullAuditedAggregateRoot<TKey> { /// <summary> /// å建人 /// </summary> public virtual string? CreatorName { get; set; } /// <summary> /// ä¿®æ¹äºº /// </summary> public virtual string? LastModifierName { get; set; } /// <summary> /// æåº /// </summary> public virtual int Sort { get; set; } /// <summary> /// 夿³¨ /// </summary> public virtual string Remark { get; set; } /// <summary> /// æ¯å¦ç¦ç¨ /// </summary> public virtual bool? IsDisabled { get; set; } protected MyFullAuditedAggregateRoot() { } protected MyFullAuditedAggregateRoot(TKey id) : base(id) { } } Weben_CMSרÓôúÂëÉú³ÉÆ÷/Weben_CMS_TemplateDemo/server/src/CMS.Plugin.HIAWms.Domain/WmsMaterial/WmsMaterial.cs
@@ -9,7 +9,7 @@ /// <summary> /// WmsMaterial /// </summary> public class WmsMaterial : FullAuditedAggregateRoot<Guid> public class WmsMaterial : MyFullAuditedAggregateRoot<Guid> { /// <summary> /// ç©æç¼ç ï¼å¯ä¸æ è¯ï¼ @@ -91,21 +91,7 @@ /// </summary> public string RedundantField3 { get; set; } /// <summary> /// æåº /// </summary> public virtual int Sort { get; set; } /// <summary> /// 夿³¨ /// </summary> public virtual string Remark { get; set; } /// <summary> /// æ¯å¦ç¦ç¨ /// </summary> public virtual bool? IsDisabled { get; set; } /// <summary> /// Adjusts the sort. /// </summary> Weben_CMSרÓôúÂëÉú³ÉÆ÷/Weben_CMS_TemplateDemo/server/src/CMS.Plugin.HIAWms.EntityFrameworkCore/Extensions/CMSPluginEfCoreExtensions.WmsMaterial.cs
@@ -1,7 +1,9 @@ using CMS.Plugin.HIAWms.Domain; using CMS.Plugin.HIAWms.Domain.Extension; using CMS.Plugin.HIAWms.Domain.Shared.Enums; using CMS.Plugin.HIAWms.Domain.WmsMaterial; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Volo.Abp; using Volo.Abp.EntityFrameworkCore.Modeling; @@ -10,7 +12,7 @@ /// <summary> /// EfCoreæ©å± /// </summary> public static partial class CMSPluginEfCoreExtensions public static partial class CMSPluginEfCoreExtensions { /// <summary> /// Includes the details. @@ -138,6 +140,69 @@ b.HasIndex(x => x.PurchaseType); // éè´ç±»åç´¢å¼ï¼å¦éæ¥è¯¢è¿æ»¤ï¼ b.HasIndex(x => x.MaterialType); // ç©æç±»åç´¢å¼ï¼å¦éæ¥è¯¢è¿æ»¤ï¼ b.xx(); // b.Property(x => x.CreatorId) // .HasMaxLength(36) // .IsRequired(false) // .HasComment("å建人ID"); // b.Property(x => x.CreatorName) // .HasMaxLength(64) // .IsRequired(false) // .HasComment("å建人"); // b.Property(x => x.CreationTime) //.IsRequired() //.HasComment("å建æ¶é´"); // b.Property(x => x.LastModifierName) // .HasMaxLength(64) // .IsRequired(false) // .HasComment("ä¿®æ¹äºº"); // b.Property(x => x.LastModifierId) // .HasMaxLength(36) // .IsRequired(false) // .HasComment("ä¿®æ¹äººID"); // b.Property(x => x.LastModificationTime) // .IsRequired(false) // .HasComment("ä¿®æ¹æ¶é´"); // b.Property(x => x.IsDeleted) // .IsRequired() // .HasComment("æ¯å¦å é¤"); // b.Property(x => x.DeleterId) // .HasMaxLength(36) // .IsRequired(false) // .HasComment("å é¤äººID"); // b.Property(x => x.DeletionTime) // .IsRequired(false) // .HasComment("å 餿¶é´"); // b.Property(x => x.ExtraProperties) //.IsRequired(false) //.HasComment("æ©å±å±æ§"); // b.Property(x => x.ConcurrencyStamp) //.IsRequired(false) // .HasMaxLength(40) //.HasComment("å¹¶åæ³"); // // å ¶ä»éç¨å段 // b.Property(x => x.Sort) // .HasDefaultValue(0) // .HasComment("æåº"); // b.Property(x => x.Remark) // .HasMaxLength(500) // .IsRequired(false) // .HasComment("夿³¨"); // b.Property(x => x.IsDisabled) // .IsRequired(false) // .HasDefaultValue(false) // .HasComment("æ¯å¦ç¦ç¨"); b.ApplyObjectExtensionMappings(); }); } Weben_CMSרÓôúÂëÉú³ÉÆ÷/Weben_CMS_TemplateDemo/server/src/CMS.Plugin.HIAWms.MySQL/CMS.Plugin.HIAWms.MySQL.csproj
@@ -23,4 +23,8 @@ <ProjectReference Include="..\CMS.Plugin.HIAWms.EntityFrameworkCore\CMS.Plugin.HIAWms.EntityFrameworkCore.csproj" /> </ItemGroup> <ItemGroup> <Folder Include="Migrations\" /> </ItemGroup> </Project> Weben_CMSרÓôúÂëÉú³ÉÆ÷/Weben_CMS_TemplateDemo/server/src/CMS.Plugin.HIAWms.MySQL/Migrations/20250429025531_InitialCreate.Designer.cs
ÎļþÒÑɾ³ý Weben_CMSרÓôúÂëÉú³ÉÆ÷/Weben_CMS_TemplateDemo/server/src/CMS.Plugin.HIAWms.MySQL/Migrations/20250430035549_InitialCreate1.cs
ÎļþÒÑɾ³ý Weben_CMSרÓôúÂëÉú³ÉÆ÷/Weben_CMS_TemplateDemo/server/src/CMS.Plugin.HIAWms.MySQL/Migrations/20250508083921_InitialCreate4.Designer.cs
ÎļþÃû´Ó Weben_CMSרÓôúÂëÉú³ÉÆ÷/Weben_CMS_TemplateDemo/server/src/CMS.Plugin.HIAWms.MySQL/Migrations/20250430035549_InitialCreate1.Designer.cs ÐÞ¸Ä @@ -12,8 +12,8 @@ namespace CMS.Plugin.HIAWms.MySQL.Migrations { [DbContext(typeof(CMSPluginDbContext))] [Migration("20250430035549_InitialCreate1")] partial class InitialCreate1 [Migration("20250508083921_InitialCreate4")] partial class InitialCreate4 { protected override void BuildTargetModel(ModelBuilder modelBuilder) { @@ -286,22 +286,22 @@ b.HasComment("æçä¿¡æ¯è¡¨"); }); modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsMaterials.WmsMaterial", b => modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsInOutStockRecord.WmsInOutStockRecord", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property<string>("Certification") .HasMaxLength(128) .HasColumnType("varchar(128)") .HasComment("è¯ä¹¦ç¼å·"); b.Property<string>("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property<string>("ContainerNo") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("容å¨ç¼å·"); b.Property<DateTime>("CreationTime") .HasColumnType("datetime(6)") @@ -323,6 +323,156 @@ .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property<bool>("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property<bool?>("IsDisabled") .HasColumnType("tinyint(1)") .HasComment("æ¯å¦ç¦ç¨"); b.Property<DateTime?>("LastModificationTime") .HasColumnType("datetime(6)") .HasColumnName("LastModificationTime"); b.Property<Guid?>("LastModifierId") .HasColumnType("char(36)") .HasColumnName("LastModifierId"); b.Property<string>("MaterialId") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("ç©æID"); b.Property<string>("MaterialModel") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("æºå"); b.Property<string>("MaterialName") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("ç©æåç§°"); b.Property<string>("MaterialNo") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("ç©æä»¶å·"); b.Property<DateTime?>("OperateTime") .HasColumnType("datetime(6)") .HasComment("æä½æ¶é´"); b.Property<string>("OrderNo") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("åæ®ç¼å·"); b.Property<string>("Remark") .HasMaxLength(500) .HasColumnType("varchar(500)") .HasComment("夿³¨"); b.Property<int>("Sort") .HasColumnType("int") .HasComment("æåº"); b.Property<string>("SourcePlace") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("èµ·å§åºä½"); b.Property<int>("StockType") .HasColumnType("int") .HasComment("æä½ç±»å"); b.Property<string>("TaskNo") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("ä»»å¡å·"); b.Property<string>("ToPlace") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("ç®æ åºä½"); b.HasKey("Id"); b.HasIndex("ContainerNo"); b.HasIndex("MaterialId"); b.HasIndex("MaterialNo"); b.HasIndex("OperateTime"); b.HasIndex("OrderNo"); b.HasIndex("StockType"); b.HasIndex("TaskNo"); b.ToTable("scms_wmsinoutstockrecords", (string)null); b.HasComment("åºå ¥åºè®°å½è¡¨"); }); modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsMaterial.WmsMaterial", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property<string>("Certification") .HasMaxLength(128) .HasColumnType("varchar(128)") .HasComment("è¯ä¹¦ç¼å·"); b.Property<string>("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnName("ConcurrencyStamp") .HasComment("å¹¶åæ³"); b.Property<DateTime>("CreationTime") .HasColumnType("datetime(6)") .HasColumnName("CreationTime") .HasComment("å建æ¶é´"); b.Property<Guid?>("CreatorId") .HasMaxLength(36) .HasColumnType("char(36)") .HasColumnName("CreatorId") .HasComment("å建人ID"); b.Property<string>("CreatorName") .HasMaxLength(64) .HasColumnType("varchar(64)") .HasComment("å建人"); b.Property<Guid?>("DeleterId") .HasMaxLength(36) .HasColumnType("char(36)") .HasColumnName("DeleterId") .HasComment("å é¤äººID"); b.Property<DateTime?>("DeletionTime") .HasColumnType("datetime(6)") .HasColumnName("DeletionTime") .HasComment("å 餿¶é´"); b.Property<string>("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties") .HasComment("æ©å±å±æ§"); b.Property<string>("Factory") .HasMaxLength(64) .HasColumnType("varchar(64)") @@ -332,7 +482,8 @@ .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted"); .HasColumnName("IsDeleted") .HasComment("æ¯å¦å é¤"); b.Property<bool?>("IsDisabled") .ValueGeneratedOnAdd() @@ -348,11 +499,19 @@ b.Property<DateTime?>("LastModificationTime") .HasColumnType("datetime(6)") .HasColumnName("LastModificationTime"); .HasColumnName("LastModificationTime") .HasComment("ä¿®æ¹æ¶é´"); b.Property<Guid?>("LastModifierId") .HasMaxLength(36) .HasColumnType("char(36)") .HasColumnName("LastModifierId"); .HasColumnName("LastModifierId") .HasComment("ä¿®æ¹äººID"); b.Property<string>("LastModifierName") .HasMaxLength(64) .HasColumnType("varchar(64)") .HasComment("ä¿®æ¹äºº"); b.Property<decimal>("Length") .HasColumnType("decimal(18,2)") @@ -669,6 +828,169 @@ b.HasComment("ä»åºä¿¡æ¯è¡¨"); }); modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsTask.WmsTask", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property<int?>("Aisle") .HasColumnType("int") .HasComment("å··é"); b.Property<string>("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property<string>("ContainerNo") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("æçç¼å·"); b.Property<DateTime>("CreationTime") .HasColumnType("datetime(6)") .HasColumnName("CreationTime"); b.Property<Guid?>("CreatorId") .HasColumnType("char(36)") .HasColumnName("CreatorId"); b.Property<Guid?>("DeleterId") .HasColumnType("char(36)") .HasColumnName("DeleterId"); b.Property<DateTime?>("DeletionTime") .HasColumnType("datetime(6)") .HasColumnName("DeletionTime"); b.Property<int?>("DodeviceId") .HasColumnType("int") .HasComment("å åæºID"); b.Property<int>("Dodevicetype") .HasColumnType("int") .HasComment("设å¤ç±»å"); b.Property<string>("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property<bool>("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property<bool?>("IsDisabled") .HasColumnType("tinyint(1)") .HasComment("æ¯å¦ç¦ç¨"); b.Property<int?>("IsNextTask") .HasColumnType("int") .HasComment("ä¸ä¸ªä»»å¡æ¯å¦çææå"); b.Property<bool>("IsRead") .HasColumnType("tinyint(1)") .HasComment("WCSæ¯å¦å¯ä»¥è¯»å"); b.Property<DateTime?>("LastModificationTime") .HasColumnType("datetime(6)") .HasColumnName("LastModificationTime"); b.Property<Guid?>("LastModifierId") .HasColumnType("char(36)") .HasColumnName("LastModifierId"); b.Property<string>("MutableParam1") .HasMaxLength(200) .HasColumnType("varchar(200)") .HasComment("å¯ååé1"); b.Property<string>("MutableParam2") .HasMaxLength(200) .HasColumnType("varchar(200)") .HasComment("å¯ååé2"); b.Property<string>("MutableParam3") .HasMaxLength(200) .HasColumnType("varchar(200)") .HasComment("å¯ååé3"); b.Property<int?>("SonTaskType") .HasColumnType("int") .HasComment("åä»»å¡ç±»å"); b.Property<int>("Sort") .HasColumnType("int") .HasComment("æåº"); b.Property<string>("SourceOrderNo") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("æ¥æºåæ®å·"); b.Property<string>("SourcePlace") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("èµ·å§åºä½"); b.Property<int>("TaskDodeviceStatus") .HasColumnType("int") .HasComment("设å¤ä»»å¡ç¶æ"); b.Property<int>("TaskLevel") .HasColumnType("int") .HasComment("ä»»å¡ç级"); b.Property<string>("TaskNo") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("ä»»å¡å·"); b.Property<int>("TaskStatus") .HasColumnType("int") .HasComment("ä»»å¡ç¶æ"); b.Property<int>("TaskType") .HasColumnType("int") .HasComment("ä»»å¡ç±»å"); b.Property<string>("ToPlace") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("ç®æ åºä½"); b.HasKey("Id"); b.HasIndex("ContainerNo"); b.HasIndex("DodeviceId"); b.HasIndex("IsRead"); b.HasIndex("Sort"); b.HasIndex("SourceOrderNo"); b.HasIndex("SourcePlace"); b.HasIndex("TaskNo") .IsUnique(); b.HasIndex("TaskStatus"); b.HasIndex("TaskType"); b.HasIndex("ToPlace"); b.ToTable("scms_wmstasks", (string)null); b.HasComment("ä»»å¡è¡¨"); }); #pragma warning restore 612, 618 } } Weben_CMSרÓôúÂëÉú³ÉÆ÷/Weben_CMS_TemplateDemo/server/src/CMS.Plugin.HIAWms.MySQL/Migrations/20250508083921_InitialCreate4.cs
ÎļþÃû´Ó Weben_CMSרÓôúÂëÉú³ÉÆ÷/Weben_CMS_TemplateDemo/server/src/CMS.Plugin.HIAWms.MySQL/Migrations/20250429025531_InitialCreate.cs ÐÞ¸Ä @@ -5,7 +5,7 @@ namespace CMS.Plugin.HIAWms.MySQL.Migrations { public partial class InitialCreate : Migration public partial class InitialCreate4 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { @@ -106,6 +106,54 @@ .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "scms_wmsinoutstockrecords", columns: table => new { Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), OrderNo = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "åæ®ç¼å·") .Annotation("MySql:CharSet", "utf8mb4"), MaterialName = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: true, comment: "ç©æåç§°") .Annotation("MySql:CharSet", "utf8mb4"), MaterialNo = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "ç©æä»¶å·") .Annotation("MySql:CharSet", "utf8mb4"), StockType = table.Column<int>(type: "int", nullable: false, comment: "æä½ç±»å"), ContainerNo = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "容å¨ç¼å·") .Annotation("MySql:CharSet", "utf8mb4"), MaterialModel = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "æºå") .Annotation("MySql:CharSet", "utf8mb4"), OperateTime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "æä½æ¶é´"), Remark = table.Column<string>(type: "varchar(500)", maxLength: 500, nullable: true, comment: "夿³¨") .Annotation("MySql:CharSet", "utf8mb4"), MaterialId = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "ç©æID") .Annotation("MySql:CharSet", "utf8mb4"), TaskNo = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "ä»»å¡å·") .Annotation("MySql:CharSet", "utf8mb4"), SourcePlace = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "èµ·å§åºä½") .Annotation("MySql:CharSet", "utf8mb4"), ToPlace = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "ç®æ åºä½") .Annotation("MySql:CharSet", "utf8mb4"), Sort = table.Column<int>(type: "int", nullable: false, comment: "æåº"), IsDisabled = table.Column<bool>(type: "tinyint(1)", nullable: true, comment: "æ¯å¦ç¦ç¨"), ExtraProperties = table.Column<string>(type: "longtext", nullable: true) .Annotation("MySql:CharSet", "utf8mb4"), ConcurrencyStamp = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: true) .Annotation("MySql:CharSet", "utf8mb4"), CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false), CreatorId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), LastModificationTime = table.Column<DateTime>(type: "datetime(6)", nullable: true), LastModifierId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false), DeleterId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), DeletionTime = table.Column<DateTime>(type: "datetime(6)", nullable: true) }, constraints: table => { table.PrimaryKey("PK_scms_wmsinoutstockrecords", x => x.Id); }, comment: "åºå ¥åºè®°å½è¡¨") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "scms_wmsmaterials", columns: table => new { @@ -125,7 +173,7 @@ MaterialQuality = table.Column<string>(type: "varchar(64)", maxLength: 64, nullable: true, comment: "æè´¨ï¼å¦ï¼304ä¸éé¢ï¼") .Annotation("MySql:CharSet", "utf8mb4"), Length = table.Column<decimal>(type: "decimal(18,2)", nullable: false, comment: "é¿åº¦ï¼åä½ï¼mï¼"), IsMainBranch = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false, comment: "æ¯å¦ä¸ºä¸»æ¯ç®¡"), IsMainBranch = table.Column<int>(type: "int", nullable: false, defaultValue: 2, comment: "æ¯å¦ä¸ºä¸»æ¯ç®¡"), Factory = table.Column<string>(type: "varchar(64)", maxLength: 64, nullable: true, comment: "ç产工å") .Annotation("MySql:CharSet", "utf8mb4"), Certification = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: true, comment: "è¯ä¹¦ç¼å·") @@ -136,21 +184,25 @@ .Annotation("MySql:CharSet", "utf8mb4"), RedundantField3 = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: true, comment: "åä½å段3 - é¢çæ©å±ç¨é") .Annotation("MySql:CharSet", "utf8mb4"), ExtraProperties = table.Column<string>(type: "longtext", nullable: true, comment: "æ©å±å±æ§") .Annotation("MySql:CharSet", "utf8mb4"), ConcurrencyStamp = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: true, comment: "å¹¶åæ³") .Annotation("MySql:CharSet", "utf8mb4"), CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false, comment: "å建æ¶é´"), CreatorId = table.Column<Guid>(type: "char(36)", maxLength: 36, nullable: true, comment: "å建人ID", collation: "ascii_general_ci"), LastModificationTime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "ä¿®æ¹æ¶é´"), LastModifierId = table.Column<Guid>(type: "char(36)", maxLength: 36, nullable: true, comment: "ä¿®æ¹äººID", collation: "ascii_general_ci"), IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false, comment: "æ¯å¦å é¤"), DeleterId = table.Column<Guid>(type: "char(36)", maxLength: 36, nullable: true, comment: "å é¤äººID", collation: "ascii_general_ci"), DeletionTime = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "å 餿¶é´"), CreatorName = table.Column<string>(type: "varchar(64)", maxLength: 64, nullable: true, comment: "å建人") .Annotation("MySql:CharSet", "utf8mb4"), LastModifierName = table.Column<string>(type: "varchar(64)", maxLength: 64, nullable: true, comment: "ä¿®æ¹äºº") .Annotation("MySql:CharSet", "utf8mb4"), Sort = table.Column<int>(type: "int", nullable: false, defaultValue: 0, comment: "æåº"), Remark = table.Column<string>(type: "varchar(500)", maxLength: 500, nullable: true, comment: "夿³¨") .Annotation("MySql:CharSet", "utf8mb4"), IsDisabled = table.Column<bool>(type: "tinyint(1)", nullable: true, defaultValue: false, comment: "æ¯å¦ç¦ç¨"), ExtraProperties = table.Column<string>(type: "longtext", nullable: true) .Annotation("MySql:CharSet", "utf8mb4"), ConcurrencyStamp = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: true) .Annotation("MySql:CharSet", "utf8mb4"), CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false), CreatorId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), LastModificationTime = table.Column<DateTime>(type: "datetime(6)", nullable: true), LastModifierId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false), DeleterId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), DeletionTime = table.Column<DateTime>(type: "datetime(6)", nullable: true) IsDisabled = table.Column<bool>(type: "tinyint(1)", nullable: true, defaultValue: false, comment: "æ¯å¦ç¦ç¨") }, constraints: table => { @@ -243,6 +295,58 @@ comment: "ä»åºä¿¡æ¯è¡¨") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateTable( name: "scms_wmstasks", columns: table => new { Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), TaskNo = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "ä»»å¡å·") .Annotation("MySql:CharSet", "utf8mb4"), TaskType = table.Column<int>(type: "int", nullable: false, comment: "ä»»å¡ç±»å"), TaskLevel = table.Column<int>(type: "int", nullable: false, comment: "ä»»å¡ç级"), TaskStatus = table.Column<int>(type: "int", nullable: false, comment: "ä»»å¡ç¶æ"), ContainerNo = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "æçç¼å·") .Annotation("MySql:CharSet", "utf8mb4"), SourcePlace = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "èµ·å§åºä½") .Annotation("MySql:CharSet", "utf8mb4"), ToPlace = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "ç®æ åºä½") .Annotation("MySql:CharSet", "utf8mb4"), Aisle = table.Column<int>(type: "int", nullable: true, comment: "å··é"), DodeviceId = table.Column<int>(type: "int", nullable: true, comment: "å åæºID"), Dodevicetype = table.Column<int>(type: "int", nullable: false, comment: "设å¤ç±»å"), TaskDodeviceStatus = table.Column<int>(type: "int", nullable: false, comment: "设å¤ä»»å¡ç¶æ"), IsRead = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "WCSæ¯å¦å¯ä»¥è¯»å"), SonTaskType = table.Column<int>(type: "int", nullable: true, comment: "åä»»å¡ç±»å"), SourceOrderNo = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "æ¥æºåæ®å·") .Annotation("MySql:CharSet", "utf8mb4"), IsNextTask = table.Column<int>(type: "int", nullable: true, comment: "ä¸ä¸ªä»»å¡æ¯å¦çææå"), MutableParam1 = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true, comment: "å¯ååé1") .Annotation("MySql:CharSet", "utf8mb4"), MutableParam2 = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true, comment: "å¯ååé2") .Annotation("MySql:CharSet", "utf8mb4"), MutableParam3 = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true, comment: "å¯ååé3") .Annotation("MySql:CharSet", "utf8mb4"), Sort = table.Column<int>(type: "int", nullable: false, comment: "æåº"), IsDisabled = table.Column<bool>(type: "tinyint(1)", nullable: true, comment: "æ¯å¦ç¦ç¨"), ExtraProperties = table.Column<string>(type: "longtext", nullable: true) .Annotation("MySql:CharSet", "utf8mb4"), ConcurrencyStamp = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: true) .Annotation("MySql:CharSet", "utf8mb4"), CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false), CreatorId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), LastModificationTime = table.Column<DateTime>(type: "datetime(6)", nullable: true), LastModifierId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false), DeleterId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), DeletionTime = table.Column<DateTime>(type: "datetime(6)", nullable: true) }, constraints: table => { table.PrimaryKey("PK_scms_wmstasks", x => x.Id); }, comment: "ä»»å¡è¡¨") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateIndex( name: "IX_scms_wmsareas_AreaName", table: "scms_wmsareas", @@ -263,6 +367,41 @@ name: "IX_scms_wmscontainers_ContainerType", table: "scms_wmscontainers", column: "ContainerType"); migrationBuilder.CreateIndex( name: "IX_scms_wmsinoutstockrecords_ContainerNo", table: "scms_wmsinoutstockrecords", column: "ContainerNo"); migrationBuilder.CreateIndex( name: "IX_scms_wmsinoutstockrecords_MaterialId", table: "scms_wmsinoutstockrecords", column: "MaterialId"); migrationBuilder.CreateIndex( name: "IX_scms_wmsinoutstockrecords_MaterialNo", table: "scms_wmsinoutstockrecords", column: "MaterialNo"); migrationBuilder.CreateIndex( name: "IX_scms_wmsinoutstockrecords_OperateTime", table: "scms_wmsinoutstockrecords", column: "OperateTime"); migrationBuilder.CreateIndex( name: "IX_scms_wmsinoutstockrecords_OrderNo", table: "scms_wmsinoutstockrecords", column: "OrderNo"); migrationBuilder.CreateIndex( name: "IX_scms_wmsinoutstockrecords_StockType", table: "scms_wmsinoutstockrecords", column: "StockType"); migrationBuilder.CreateIndex( name: "IX_scms_wmsinoutstockrecords_TaskNo", table: "scms_wmsinoutstockrecords", column: "TaskNo"); migrationBuilder.CreateIndex( name: "IX_scms_wmsmaterials_MaterialCode", @@ -310,6 +449,57 @@ name: "IX_scms_wmsstores_StoreName", table: "scms_wmsstores", column: "StoreName"); migrationBuilder.CreateIndex( name: "IX_scms_wmstasks_ContainerNo", table: "scms_wmstasks", column: "ContainerNo"); migrationBuilder.CreateIndex( name: "IX_scms_wmstasks_DodeviceId", table: "scms_wmstasks", column: "DodeviceId"); migrationBuilder.CreateIndex( name: "IX_scms_wmstasks_IsRead", table: "scms_wmstasks", column: "IsRead"); migrationBuilder.CreateIndex( name: "IX_scms_wmstasks_Sort", table: "scms_wmstasks", column: "Sort"); migrationBuilder.CreateIndex( name: "IX_scms_wmstasks_SourceOrderNo", table: "scms_wmstasks", column: "SourceOrderNo"); migrationBuilder.CreateIndex( name: "IX_scms_wmstasks_SourcePlace", table: "scms_wmstasks", column: "SourcePlace"); migrationBuilder.CreateIndex( name: "IX_scms_wmstasks_TaskNo", table: "scms_wmstasks", column: "TaskNo", unique: true); migrationBuilder.CreateIndex( name: "IX_scms_wmstasks_TaskStatus", table: "scms_wmstasks", column: "TaskStatus"); migrationBuilder.CreateIndex( name: "IX_scms_wmstasks_TaskType", table: "scms_wmstasks", column: "TaskType"); migrationBuilder.CreateIndex( name: "IX_scms_wmstasks_ToPlace", table: "scms_wmstasks", column: "ToPlace"); } protected override void Down(MigrationBuilder migrationBuilder) @@ -321,6 +511,9 @@ name: "scms_wmscontainers"); migrationBuilder.DropTable( name: "scms_wmsinoutstockrecords"); migrationBuilder.DropTable( name: "scms_wmsmaterials"); migrationBuilder.DropTable( @@ -328,6 +521,9 @@ migrationBuilder.DropTable( name: "scms_wmsstores"); migrationBuilder.DropTable( name: "scms_wmstasks"); } } } Weben_CMSרÓôúÂëÉú³ÉÆ÷/Weben_CMS_TemplateDemo/server/src/CMS.Plugin.HIAWms.MySQL/Migrations/CMSPluginDbContextModelSnapshot.cs
@@ -284,22 +284,22 @@ b.HasComment("æçä¿¡æ¯è¡¨"); }); modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsMaterials.WmsMaterial", b => modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsInOutStockRecord.WmsInOutStockRecord", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property<string>("Certification") .HasMaxLength(128) .HasColumnType("varchar(128)") .HasComment("è¯ä¹¦ç¼å·"); b.Property<string>("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property<string>("ContainerNo") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("容å¨ç¼å·"); b.Property<DateTime>("CreationTime") .HasColumnType("datetime(6)") @@ -321,6 +321,156 @@ .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property<bool>("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property<bool?>("IsDisabled") .HasColumnType("tinyint(1)") .HasComment("æ¯å¦ç¦ç¨"); b.Property<DateTime?>("LastModificationTime") .HasColumnType("datetime(6)") .HasColumnName("LastModificationTime"); b.Property<Guid?>("LastModifierId") .HasColumnType("char(36)") .HasColumnName("LastModifierId"); b.Property<string>("MaterialId") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("ç©æID"); b.Property<string>("MaterialModel") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("æºå"); b.Property<string>("MaterialName") .HasMaxLength(100) .HasColumnType("varchar(100)") .HasComment("ç©æåç§°"); b.Property<string>("MaterialNo") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("ç©æä»¶å·"); b.Property<DateTime?>("OperateTime") .HasColumnType("datetime(6)") .HasComment("æä½æ¶é´"); b.Property<string>("OrderNo") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("åæ®ç¼å·"); b.Property<string>("Remark") .HasMaxLength(500) .HasColumnType("varchar(500)") .HasComment("夿³¨"); b.Property<int>("Sort") .HasColumnType("int") .HasComment("æåº"); b.Property<string>("SourcePlace") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("èµ·å§åºä½"); b.Property<int>("StockType") .HasColumnType("int") .HasComment("æä½ç±»å"); b.Property<string>("TaskNo") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("ä»»å¡å·"); b.Property<string>("ToPlace") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("ç®æ åºä½"); b.HasKey("Id"); b.HasIndex("ContainerNo"); b.HasIndex("MaterialId"); b.HasIndex("MaterialNo"); b.HasIndex("OperateTime"); b.HasIndex("OrderNo"); b.HasIndex("StockType"); b.HasIndex("TaskNo"); b.ToTable("scms_wmsinoutstockrecords", (string)null); b.HasComment("åºå ¥åºè®°å½è¡¨"); }); modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsMaterial.WmsMaterial", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property<string>("Certification") .HasMaxLength(128) .HasColumnType("varchar(128)") .HasComment("è¯ä¹¦ç¼å·"); b.Property<string>("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnName("ConcurrencyStamp") .HasComment("å¹¶åæ³"); b.Property<DateTime>("CreationTime") .HasColumnType("datetime(6)") .HasColumnName("CreationTime") .HasComment("å建æ¶é´"); b.Property<Guid?>("CreatorId") .HasMaxLength(36) .HasColumnType("char(36)") .HasColumnName("CreatorId") .HasComment("å建人ID"); b.Property<string>("CreatorName") .HasMaxLength(64) .HasColumnType("varchar(64)") .HasComment("å建人"); b.Property<Guid?>("DeleterId") .HasMaxLength(36) .HasColumnType("char(36)") .HasColumnName("DeleterId") .HasComment("å é¤äººID"); b.Property<DateTime?>("DeletionTime") .HasColumnType("datetime(6)") .HasColumnName("DeletionTime") .HasComment("å 餿¶é´"); b.Property<string>("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties") .HasComment("æ©å±å±æ§"); b.Property<string>("Factory") .HasMaxLength(64) .HasColumnType("varchar(64)") @@ -330,7 +480,8 @@ .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted"); .HasColumnName("IsDeleted") .HasComment("æ¯å¦å é¤"); b.Property<bool?>("IsDisabled") .ValueGeneratedOnAdd() @@ -346,11 +497,19 @@ b.Property<DateTime?>("LastModificationTime") .HasColumnType("datetime(6)") .HasColumnName("LastModificationTime"); .HasColumnName("LastModificationTime") .HasComment("ä¿®æ¹æ¶é´"); b.Property<Guid?>("LastModifierId") .HasMaxLength(36) .HasColumnType("char(36)") .HasColumnName("LastModifierId"); .HasColumnName("LastModifierId") .HasComment("ä¿®æ¹äººID"); b.Property<string>("LastModifierName") .HasMaxLength(64) .HasColumnType("varchar(64)") .HasComment("ä¿®æ¹äºº"); b.Property<decimal>("Length") .HasColumnType("decimal(18,2)") @@ -667,6 +826,169 @@ b.HasComment("ä»åºä¿¡æ¯è¡¨"); }); modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsTask.WmsTask", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property<int?>("Aisle") .HasColumnType("int") .HasComment("å··é"); b.Property<string>("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("varchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property<string>("ContainerNo") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("æçç¼å·"); b.Property<DateTime>("CreationTime") .HasColumnType("datetime(6)") .HasColumnName("CreationTime"); b.Property<Guid?>("CreatorId") .HasColumnType("char(36)") .HasColumnName("CreatorId"); b.Property<Guid?>("DeleterId") .HasColumnType("char(36)") .HasColumnName("DeleterId"); b.Property<DateTime?>("DeletionTime") .HasColumnType("datetime(6)") .HasColumnName("DeletionTime"); b.Property<int?>("DodeviceId") .HasColumnType("int") .HasComment("å åæºID"); b.Property<int>("Dodevicetype") .HasColumnType("int") .HasComment("设å¤ç±»å"); b.Property<string>("ExtraProperties") .HasColumnType("longtext") .HasColumnName("ExtraProperties"); b.Property<bool>("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property<bool?>("IsDisabled") .HasColumnType("tinyint(1)") .HasComment("æ¯å¦ç¦ç¨"); b.Property<int?>("IsNextTask") .HasColumnType("int") .HasComment("ä¸ä¸ªä»»å¡æ¯å¦çææå"); b.Property<bool>("IsRead") .HasColumnType("tinyint(1)") .HasComment("WCSæ¯å¦å¯ä»¥è¯»å"); b.Property<DateTime?>("LastModificationTime") .HasColumnType("datetime(6)") .HasColumnName("LastModificationTime"); b.Property<Guid?>("LastModifierId") .HasColumnType("char(36)") .HasColumnName("LastModifierId"); b.Property<string>("MutableParam1") .HasMaxLength(200) .HasColumnType("varchar(200)") .HasComment("å¯ååé1"); b.Property<string>("MutableParam2") .HasMaxLength(200) .HasColumnType("varchar(200)") .HasComment("å¯ååé2"); b.Property<string>("MutableParam3") .HasMaxLength(200) .HasColumnType("varchar(200)") .HasComment("å¯ååé3"); b.Property<int?>("SonTaskType") .HasColumnType("int") .HasComment("åä»»å¡ç±»å"); b.Property<int>("Sort") .HasColumnType("int") .HasComment("æåº"); b.Property<string>("SourceOrderNo") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("æ¥æºåæ®å·"); b.Property<string>("SourcePlace") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("èµ·å§åºä½"); b.Property<int>("TaskDodeviceStatus") .HasColumnType("int") .HasComment("设å¤ä»»å¡ç¶æ"); b.Property<int>("TaskLevel") .HasColumnType("int") .HasComment("ä»»å¡ç级"); b.Property<string>("TaskNo") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("ä»»å¡å·"); b.Property<int>("TaskStatus") .HasColumnType("int") .HasComment("ä»»å¡ç¶æ"); b.Property<int>("TaskType") .HasColumnType("int") .HasComment("ä»»å¡ç±»å"); b.Property<string>("ToPlace") .HasMaxLength(50) .HasColumnType("varchar(50)") .HasComment("ç®æ åºä½"); b.HasKey("Id"); b.HasIndex("ContainerNo"); b.HasIndex("DodeviceId"); b.HasIndex("IsRead"); b.HasIndex("Sort"); b.HasIndex("SourceOrderNo"); b.HasIndex("SourcePlace"); b.HasIndex("TaskNo") .IsUnique(); b.HasIndex("TaskStatus"); b.HasIndex("TaskType"); b.HasIndex("ToPlace"); b.ToTable("scms_wmstasks", (string)null); b.HasComment("ä»»å¡è¡¨"); }); #pragma warning restore 612, 618 } } Weben_CMSרÓôúÂëÉú³ÉÆ÷/Weben_CMS_TemplateDemo/server/src/CMS.Plugin.HIAWms.MySQL/Scripts/UpdateMigrations.bat
@@ -1,5 +1,5 @@ cd ../ dotnet ef migrations add InitialCreate1 -c CMSPluginDbContext -o Migrations dotnet ef migrations add InitialCreate4 -c CMSPluginDbContext -o Migrations ::dotnet ef migrations add Update1 -c CMSPluginDbContext -o Migrations ::dotnet ef migrations add Update2 -c CMSPluginDbContext -o Migrations ::dotnet ef migrations add Update3 -c CMSPluginDbContext -o Migrations