| | |
| | | builder.Entity<WmsArea>(b => |
| | | { |
| | | // Configure table & schema name |
| | | b.ToTable((CMSPluginDbProperties.DbTablePrefix + "_WmsAreas").ToLower(), CMSPluginDbProperties.DbSchema).HasComment("Wms_Area"); |
| | | b.ToTable((CMSPluginDbProperties.DbTablePrefix + "_WmsAreas").ToLower(), CMSPluginDbProperties.DbSchema).HasComment("åºåºè¡¨"); |
| | | |
| | | b.ConfigureByConvention(); |
| | | |
| | |
| | | builder.Entity<WmsMaterial>(b => |
| | | { |
| | | // é
置表ååæ³¨é |
| | | b.ToTable((CMSPluginDbProperties.DbTablePrefix + "_Wms_Materials").ToLower(), |
| | | b.ToTable((CMSPluginDbProperties.DbTablePrefix + "_WmsMaterials").ToLower(), |
| | | CMSPluginDbProperties.DbSchema) |
| | | .HasComment("ç©æåºç¡ä¿¡æ¯è¡¨"); |
| | | |
| | |
| | | builder.Entity<WmsPlace>(b => |
| | | { |
| | | // Configure table & schema name |
| | | b.ToTable((CMSPluginDbProperties.DbTablePrefix + "_WmsPlaces").ToLower(), CMSPluginDbProperties.DbSchema).HasComment("Wms_Place"); |
| | | b.ToTable((CMSPluginDbProperties.DbTablePrefix + "_WmsPlaces").ToLower(), CMSPluginDbProperties.DbSchema).HasComment("åºä½è¡¨"); |
| | | |
| | | b.ConfigureByConvention(); |
| | | |
| | |
| | | builder.Entity<WmsStore>(b => |
| | | { |
| | | // Configure table & schema name |
| | | b.ToTable((CMSPluginDbProperties.DbTablePrefix + "_WmsStores").ToLower(), CMSPluginDbProperties.DbSchema).HasComment("Wms_Store"); |
| | | b.ToTable((CMSPluginDbProperties.DbTablePrefix + "_WmsStores").ToLower(), CMSPluginDbProperties.DbSchema).HasComment("ä»åºä¿¡æ¯è¡¨"); |
| | | |
| | | b.ConfigureByConvention(); |
| | | |
| | |
| | | } |
| | | |
| | | /// <inheritdoc /> |
| | | public virtual async Task<WmsContainer> FindByNameAsync(string name, CancellationToken cancellationToken = default) |
| | | public virtual async Task<WmsContainer> FindByNameAsync(string containerNo, CancellationToken cancellationToken = default) |
| | | { |
| | | return await (await GetDbSetAsync()) |
| | | .IncludeDetails() |
| | | .OrderBy(t => t.Sort) |
| | | .FirstOrDefaultAsync(t => t.Name == name, GetCancellationToken(cancellationToken)); |
| | | .FirstOrDefaultAsync(t => t.ContainerNo == containerNo, GetCancellationToken(cancellationToken)); |
| | | } |
| | | |
| | | /// <inheritdoc /> |
| | | public async Task<bool> NameExistAsync(string name, Guid? id = null) |
| | | public async Task<bool> NameExistAsync(string containerNo, Guid? id = null) |
| | | { |
| | | return await (await GetDbSetAsync()).WhereIf(id.HasValue, p => p.Id != id).AnyAsync(x => x.Name == name); |
| | | return await (await GetDbSetAsync()).WhereIf(id.HasValue, p => p.Id != id).AnyAsync(x => x.ContainerNo == containerNo); |
| | | } |
| | | |
| | | /// <inheritdoc /> |
| | |
| | | return await (await GetDbSetAsync()) |
| | | .IncludeDetails(includeDetails) |
| | | .Where(specification.ToExpression()) |
| | | .WhereIf(!filter.IsNullOrWhiteSpace(), u => u.Name.Contains(filter)) |
| | | .WhereIf(!filter.IsNullOrWhiteSpace(), u => u.ContainerNo.Contains(filter)) |
| | | .OrderBy(sorting.IsNullOrEmpty() ? nameof(WmsContainer.Sort) : sorting) |
| | | .PageBy(skipCount, maxResultCount) |
| | | .ToListAsync(GetCancellationToken(cancellationToken)); |
| | |
| | | specification ??= new WmsContainerSpecification(); |
| | | return await (await GetQueryableAsync()) |
| | | .Where(specification.ToExpression()) |
| | | .WhereIf(!filter.IsNullOrWhiteSpace(), u => u.Name.Contains(filter)) |
| | | .WhereIf(!filter.IsNullOrWhiteSpace(), u => u.ContainerNo.Contains(filter)) |
| | | .CountAsync(cancellationToken: GetCancellationToken(cancellationToken)); |
| | | } |
| | | |
| | |
| | | { |
| | | "ConnectionStrings": { |
| | | "Default": "Server=127.0.0.1;Database=CMS.Plugin.HIAWms;User ID=root;Password=123abc.com" |
| | | "Default": "Server=localhost;Database=CMS.Plugin.HIAWms;User ID=root;Password=123abc.com" |
| | | } |
| | | } |
| | |
| | | builder.ConfigureWmsStore(); |
| | | builder.ConfigureWmsArea(); |
| | | builder.ConfigureWmsPlace(); |
| | | builder.ConfigureWmsContainer(); |
| | | builder.ConfigureWmsMaterial(); |
| | | |
| | | /* Configure your own tables/entities inside here */ |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // <auto-generated /> |
| | | using System; |
| | | using CMS.Plugin.HIAWms.MySQL; |
| | | using Microsoft.EntityFrameworkCore; |
| | | using Microsoft.EntityFrameworkCore.Infrastructure; |
| | | using Microsoft.EntityFrameworkCore.Migrations; |
| | | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| | | using Volo.Abp.EntityFrameworkCore; |
| | | |
| | | #nullable disable |
| | | |
| | | namespace CMS.Plugin.HIAWms.MySQL.Migrations |
| | | { |
| | | [DbContext(typeof(CMSPluginDbContext))] |
| | | [Migration("20250429025531_InitialCreate")] |
| | | partial class InitialCreate |
| | | { |
| | | protected override void BuildTargetModel(ModelBuilder modelBuilder) |
| | | { |
| | | #pragma warning disable 612, 618 |
| | | modelBuilder |
| | | .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql) |
| | | .HasAnnotation("ProductVersion", "6.0.16") |
| | | .HasAnnotation("Relational:MaxIdentifierLength", 64); |
| | | |
| | | modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsAreas.WmsArea", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("char(36)"); |
| | | |
| | | b.Property<string>("AreaDesc") |
| | | .HasMaxLength(200) |
| | | .HasColumnType("varchar(200)") |
| | | .HasComment("æè¿°"); |
| | | |
| | | b.Property<string>("AreaName") |
| | | .IsRequired() |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åºåºåç§°"); |
| | | |
| | | b.Property<string>("AreaNo") |
| | | .IsRequired() |
| | | .HasMaxLength(64) |
| | | .HasColumnType("varchar(64)") |
| | | .HasComment("åºåºç¼å·"); |
| | | |
| | | b.Property<int>("AreaStatus") |
| | | .HasColumnType("int") |
| | | .HasComment("åºåºç¶æ"); |
| | | |
| | | b.Property<int>("AreaType") |
| | | .HasColumnType("int") |
| | | .HasComment("åºåºç±»å"); |
| | | |
| | | b.Property<string>("ConcurrencyStamp") |
| | | .IsConcurrencyToken() |
| | | .HasMaxLength(40) |
| | | .HasColumnType("varchar(40)") |
| | | .HasColumnName("ConcurrencyStamp"); |
| | | |
| | | 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<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<DateTime?>("LastModificationTime") |
| | | .HasColumnType("datetime(6)") |
| | | .HasColumnName("LastModificationTime"); |
| | | |
| | | b.Property<Guid?>("LastModifierId") |
| | | .HasColumnType("char(36)") |
| | | .HasColumnName("LastModifierId"); |
| | | |
| | | b.Property<string>("RedundantField1") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åä½å段1 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField2") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åä½å段2 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField3") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åä½å段3 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("Remark") |
| | | .HasMaxLength(256) |
| | | .HasColumnType("varchar(256)") |
| | | .HasComment("夿³¨"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int") |
| | | .HasComment("æåº"); |
| | | |
| | | b.Property<string>("StoreCode") |
| | | .HasMaxLength(50) |
| | | .HasColumnType("varchar(50)") |
| | | .HasComment("ä»åºä»£ç "); |
| | | |
| | | b.Property<string>("StoreName") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("ä»åºåç§°"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("AreaName"); |
| | | |
| | | b.ToTable("scms_wmsareas", (string)null); |
| | | |
| | | b.HasComment("åºåºè¡¨"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsContainers.WmsContainer", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("char(36)"); |
| | | |
| | | b.Property<string>("ConcurrencyStamp") |
| | | .IsConcurrencyToken() |
| | | .HasMaxLength(40) |
| | | .HasColumnType("varchar(40)") |
| | | .HasColumnName("ConcurrencyStamp"); |
| | | |
| | | b.Property<string>("ContainerNo") |
| | | .IsRequired() |
| | | .HasMaxLength(50) |
| | | .HasColumnType("varchar(50)") |
| | | .HasComment("æçç¼å·"); |
| | | |
| | | b.Property<int>("ContainerStatus") |
| | | .HasColumnType("int") |
| | | .HasComment("æçç¶æ"); |
| | | |
| | | b.Property<int>("ContainerType") |
| | | .HasColumnType("int") |
| | | .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?>("ExceptionNumber") |
| | | .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<DateTime?>("LastModificationTime") |
| | | .HasColumnType("datetime(6)") |
| | | .HasColumnName("LastModificationTime"); |
| | | |
| | | b.Property<Guid?>("LastModifierId") |
| | | .HasColumnType("char(36)") |
| | | .HasColumnName("LastModifierId"); |
| | | |
| | | b.Property<decimal?>("LimitHeight") |
| | | .HasPrecision(18, 2) |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("éé«"); |
| | | |
| | | b.Property<decimal?>("LimitLength") |
| | | .HasPrecision(18, 2) |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("éé¿"); |
| | | |
| | | b.Property<decimal?>("LimitWidth") |
| | | .HasPrecision(18, 2) |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("é宽"); |
| | | |
| | | b.Property<int?>("MaterialNumber") |
| | | .HasColumnType("int") |
| | | .HasComment("ç©ææ°é"); |
| | | |
| | | b.Property<decimal?>("MaxWeight") |
| | | .HasPrecision(18, 2) |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("è½½éä¸é"); |
| | | |
| | | b.Property<string>("RedundantField1") |
| | | .HasMaxLength(200) |
| | | .HasColumnType("varchar(200)") |
| | | .HasComment("åä½å段1 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField2") |
| | | .HasMaxLength(200) |
| | | .HasColumnType("varchar(200)") |
| | | .HasComment("åä½å段2 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField3") |
| | | .HasMaxLength(200) |
| | | .HasColumnType("varchar(200)") |
| | | .HasComment("åä½å段3 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("Remark") |
| | | .HasMaxLength(256) |
| | | .HasColumnType("varchar(256)") |
| | | .HasComment("夿³¨"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int") |
| | | .HasComment("æåº"); |
| | | |
| | | b.Property<decimal?>("SpecHeight") |
| | | .HasPrecision(18, 2) |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("é«åº¦"); |
| | | |
| | | b.Property<decimal?>("SpecLength") |
| | | .HasPrecision(18, 2) |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("é¿åº¦"); |
| | | |
| | | b.Property<decimal?>("SpecWidth") |
| | | .HasPrecision(18, 2) |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("宽度"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("ContainerNo") |
| | | .IsUnique(); |
| | | |
| | | b.HasIndex("ContainerStatus"); |
| | | |
| | | b.HasIndex("ContainerType"); |
| | | |
| | | b.ToTable("scms_wmscontainers", (string)null); |
| | | |
| | | b.HasComment("æçä¿¡æ¯è¡¨"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsMaterials.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"); |
| | | |
| | | 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<string>("ExtraProperties") |
| | | .HasColumnType("longtext") |
| | | .HasColumnName("ExtraProperties"); |
| | | |
| | | b.Property<string>("Factory") |
| | | .HasMaxLength(64) |
| | | .HasColumnType("varchar(64)") |
| | | .HasComment("ç产工å"); |
| | | |
| | | b.Property<bool>("IsDeleted") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("tinyint(1)") |
| | | .HasDefaultValue(false) |
| | | .HasColumnName("IsDeleted"); |
| | | |
| | | b.Property<bool?>("IsDisabled") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("tinyint(1)") |
| | | .HasDefaultValue(false) |
| | | .HasComment("æ¯å¦ç¦ç¨"); |
| | | |
| | | b.Property<bool>("IsMainBranch") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("tinyint(1)") |
| | | .HasDefaultValue(false) |
| | | .HasComment("æ¯å¦ä¸ºä¸»æ¯ç®¡"); |
| | | |
| | | b.Property<DateTime?>("LastModificationTime") |
| | | .HasColumnType("datetime(6)") |
| | | .HasColumnName("LastModificationTime"); |
| | | |
| | | b.Property<Guid?>("LastModifierId") |
| | | .HasColumnType("char(36)") |
| | | .HasColumnName("LastModifierId"); |
| | | |
| | | b.Property<decimal>("Length") |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("é¿åº¦ï¼åä½ï¼mï¼"); |
| | | |
| | | b.Property<string>("MaterialCode") |
| | | .IsRequired() |
| | | .HasMaxLength(64) |
| | | .HasColumnType("varchar(64)") |
| | | .HasComment("ç©æç¼ç ï¼å¯ä¸æ è¯ï¼"); |
| | | |
| | | b.Property<string>("MaterialName") |
| | | .IsRequired() |
| | | .HasMaxLength(128) |
| | | .HasColumnType("varchar(128)") |
| | | .HasComment("ç©æåç§°"); |
| | | |
| | | b.Property<string>("MaterialQuality") |
| | | .HasMaxLength(64) |
| | | .HasColumnType("varchar(64)") |
| | | .HasComment("æè´¨ï¼å¦ï¼304ä¸éé¢ï¼"); |
| | | |
| | | b.Property<int>("MaterialType") |
| | | .HasColumnType("int") |
| | | .HasComment("ç©æç±»åï¼æä¸¾å¼ï¼"); |
| | | |
| | | b.Property<decimal>("OuterDiameter") |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("å¤å¾ï¼åä½ï¼mmï¼"); |
| | | |
| | | b.Property<string>("PrimaryUnit") |
| | | .HasMaxLength(20) |
| | | .HasColumnType("varchar(20)") |
| | | .HasComment("主åä½ï¼å¦ï¼kgãmã个ï¼"); |
| | | |
| | | b.Property<int>("PurchaseType") |
| | | .HasColumnType("int") |
| | | .HasComment("éè´ç±»åï¼æä¸¾å¼ï¼"); |
| | | |
| | | b.Property<string>("RedundantField1") |
| | | .HasMaxLength(256) |
| | | .HasColumnType("varchar(256)") |
| | | .HasComment("åä½å段1 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField2") |
| | | .HasMaxLength(256) |
| | | .HasColumnType("varchar(256)") |
| | | .HasComment("åä½å段2 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField3") |
| | | .HasMaxLength(256) |
| | | .HasColumnType("varchar(256)") |
| | | .HasComment("åä½å段3 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("Remark") |
| | | .HasMaxLength(500) |
| | | .HasColumnType("varchar(500)") |
| | | .HasComment("夿³¨"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("int") |
| | | .HasDefaultValue(0) |
| | | .HasComment("æåº"); |
| | | |
| | | b.Property<string>("Standard") |
| | | .HasMaxLength(128) |
| | | .HasColumnType("varchar(128)") |
| | | .HasComment("è§æ ¼/æ åï¼å¦ï¼GB/T 8163-2018ï¼"); |
| | | |
| | | b.Property<decimal>("WallThickness") |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("å£åï¼åä½ï¼mmï¼"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("MaterialCode") |
| | | .IsUnique(); |
| | | |
| | | b.HasIndex("MaterialName"); |
| | | |
| | | b.HasIndex("MaterialType"); |
| | | |
| | | b.HasIndex("PurchaseType"); |
| | | |
| | | b.ToTable("scms_wmsmaterials", (string)null); |
| | | |
| | | b.HasComment("ç©æåºç¡ä¿¡æ¯è¡¨"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsPlaces.WmsPlace", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("char(36)"); |
| | | |
| | | b.Property<int>("Aisle") |
| | | .HasColumnType("int") |
| | | .HasComment("å··é"); |
| | | |
| | | b.Property<string>("AreaCode") |
| | | .IsRequired() |
| | | .HasMaxLength(50) |
| | | .HasColumnType("varchar(50)") |
| | | .HasComment("æå¨åºåº"); |
| | | |
| | | b.Property<int>("ColumnNo") |
| | | .HasColumnType("int") |
| | | .HasComment("å"); |
| | | |
| | | b.Property<string>("ConcurrencyStamp") |
| | | .IsConcurrencyToken() |
| | | .HasMaxLength(40) |
| | | .HasColumnType("varchar(40)") |
| | | .HasColumnName("ConcurrencyStamp"); |
| | | |
| | | 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>("EmptyContainer") |
| | | .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>("Islock") |
| | | .HasColumnType("int") |
| | | .HasComment("æ¯å¦éå®"); |
| | | |
| | | b.Property<DateTime?>("LastModificationTime") |
| | | .HasColumnType("datetime(6)") |
| | | .HasColumnName("LastModificationTime"); |
| | | |
| | | b.Property<Guid?>("LastModifierId") |
| | | .HasColumnType("char(36)") |
| | | .HasColumnName("LastModifierId"); |
| | | |
| | | b.Property<int>("LayerNo") |
| | | .HasColumnType("int") |
| | | .HasComment("å±"); |
| | | |
| | | b.Property<string>("PlaceNo") |
| | | .IsRequired() |
| | | .HasMaxLength(50) |
| | | .HasColumnType("varchar(50)") |
| | | .HasComment("ç¼å·"); |
| | | |
| | | b.Property<int>("PlaceStatus") |
| | | .HasColumnType("int") |
| | | .HasComment("è´§ä½ç¶æ"); |
| | | |
| | | b.Property<string>("RedundantField1") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åä½å段1 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField2") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åä½å段2 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField3") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åä½å段3 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("Remark") |
| | | .HasMaxLength(256) |
| | | .HasColumnType("varchar(256)") |
| | | .HasComment("夿³¨"); |
| | | |
| | | b.Property<int>("RowNo") |
| | | .HasColumnType("int") |
| | | .HasComment("æ"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int") |
| | | .HasComment("æåº"); |
| | | |
| | | b.Property<int>("StorageTypeNo") |
| | | .HasColumnType("int") |
| | | .HasComment("è´§ä½ç±»å"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("AreaCode"); |
| | | |
| | | b.HasIndex("PlaceNo") |
| | | .IsUnique(); |
| | | |
| | | b.HasIndex("PlaceStatus"); |
| | | |
| | | b.HasIndex("StorageTypeNo"); |
| | | |
| | | b.ToTable("scms_wmsplaces", (string)null); |
| | | |
| | | b.HasComment("åºä½è¡¨"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsStores.WmsStore", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("char(36)"); |
| | | |
| | | b.Property<string>("ConcurrencyStamp") |
| | | .IsConcurrencyToken() |
| | | .HasMaxLength(40) |
| | | .HasColumnType("varchar(40)") |
| | | .HasColumnName("ConcurrencyStamp"); |
| | | |
| | | 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<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<DateTime?>("LastModificationTime") |
| | | .HasColumnType("datetime(6)") |
| | | .HasColumnName("LastModificationTime"); |
| | | |
| | | b.Property<Guid?>("LastModifierId") |
| | | .HasColumnType("char(36)") |
| | | .HasColumnName("LastModifierId"); |
| | | |
| | | b.Property<string>("RedundantField1") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åä½å段1 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField2") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åä½å段2 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField3") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åä½å段3 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("Remark") |
| | | .HasMaxLength(256) |
| | | .HasColumnType("varchar(256)") |
| | | .HasComment("夿³¨"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int") |
| | | .HasComment("æåº"); |
| | | |
| | | b.Property<string>("StoreCode") |
| | | .HasMaxLength(50) |
| | | .HasColumnType("varchar(50)") |
| | | .HasComment("ä»åºä»£ç "); |
| | | |
| | | b.Property<string>("StoreName") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("ä»åºåç§°"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("StoreName"); |
| | | |
| | | b.ToTable("scms_wmsstores", (string)null); |
| | | |
| | | b.HasComment("ä»åºä¿¡æ¯è¡¨"); |
| | | }); |
| | | #pragma warning restore 612, 618 |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using Microsoft.EntityFrameworkCore.Migrations; |
| | | |
| | | #nullable disable |
| | | |
| | | namespace CMS.Plugin.HIAWms.MySQL.Migrations |
| | | { |
| | | public partial class InitialCreate : Migration |
| | | { |
| | | protected override void Up(MigrationBuilder migrationBuilder) |
| | | { |
| | | migrationBuilder.AlterDatabase() |
| | | .Annotation("MySql:CharSet", "utf8mb4"); |
| | | |
| | | migrationBuilder.CreateTable( |
| | | name: "scms_wmsareas", |
| | | columns: table => new |
| | | { |
| | | Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
| | | AreaNo = table.Column<string>(type: "varchar(64)", maxLength: 64, nullable: false, comment: "åºåºç¼å·") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | AreaName = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false, comment: "åºåºåç§°") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | AreaDesc = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true, comment: "æè¿°") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | AreaStatus = table.Column<int>(type: "int", nullable: false, comment: "åºåºç¶æ"), |
| | | AreaType = table.Column<int>(type: "int", nullable: false, comment: "åºåºç±»å"), |
| | | RedundantField1 = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: true, comment: "åä½å段1 - é¢çæ©å±ç¨é") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | RedundantField2 = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: true, comment: "åä½å段2 - é¢çæ©å±ç¨é") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | RedundantField3 = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: true, comment: "åä½å段3 - é¢çæ©å±ç¨é") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | StoreCode = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "ä»åºä»£ç ") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | StoreName = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: true, comment: "ä»åºåç§°") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | Sort = table.Column<int>(type: "int", nullable: false, comment: "æåº"), |
| | | Remark = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: true, comment: "夿³¨") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | 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_wmsareas", x => x.Id); |
| | | }, |
| | | comment: "åºåºè¡¨") |
| | | .Annotation("MySql:CharSet", "utf8mb4"); |
| | | |
| | | migrationBuilder.CreateTable( |
| | | name: "scms_wmscontainers", |
| | | columns: table => new |
| | | { |
| | | Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
| | | ContainerNo = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "æçç¼å·") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | ContainerType = table.Column<int>(type: "int", nullable: false, comment: "æçç±»å"), |
| | | ContainerStatus = table.Column<int>(type: "int", nullable: false, comment: "æçç¶æ"), |
| | | SpecLength = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true, comment: "é¿åº¦"), |
| | | SpecWidth = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true, comment: "宽度"), |
| | | SpecHeight = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true, comment: "é«åº¦"), |
| | | LimitLength = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true, comment: "éé¿"), |
| | | LimitWidth = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true, comment: "é宽"), |
| | | LimitHeight = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true, comment: "éé«"), |
| | | MaxWeight = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true, comment: "è½½éä¸é"), |
| | | ExceptionNumber = table.Column<int>(type: "int", nullable: true, comment: "å¼å¸¸æ°é"), |
| | | MaterialNumber = table.Column<int>(type: "int", nullable: true, comment: "ç©ææ°é"), |
| | | RedundantField1 = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true, comment: "åä½å段1 - é¢çæ©å±ç¨é") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | RedundantField2 = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true, comment: "åä½å段2 - é¢çæ©å±ç¨é") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | RedundantField3 = 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: "æåº"), |
| | | Remark = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: true, comment: "夿³¨") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | 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_wmscontainers", x => x.Id); |
| | | }, |
| | | comment: "æçä¿¡æ¯è¡¨") |
| | | .Annotation("MySql:CharSet", "utf8mb4"); |
| | | |
| | | migrationBuilder.CreateTable( |
| | | name: "scms_wmsmaterials", |
| | | columns: table => new |
| | | { |
| | | Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
| | | MaterialCode = table.Column<string>(type: "varchar(64)", maxLength: 64, nullable: false, comment: "ç©æç¼ç ï¼å¯ä¸æ è¯ï¼") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | MaterialName = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false, comment: "ç©æåç§°") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | PurchaseType = table.Column<int>(type: "int", nullable: false, comment: "éè´ç±»åï¼æä¸¾å¼ï¼"), |
| | | MaterialType = table.Column<int>(type: "int", nullable: false, comment: "ç©æç±»åï¼æä¸¾å¼ï¼"), |
| | | PrimaryUnit = table.Column<string>(type: "varchar(20)", maxLength: 20, nullable: true, comment: "主åä½ï¼å¦ï¼kgãmã个ï¼") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | Standard = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: true, comment: "è§æ ¼/æ åï¼å¦ï¼GB/T 8163-2018ï¼") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | OuterDiameter = table.Column<decimal>(type: "decimal(18,2)", nullable: false, comment: "å¤å¾ï¼åä½ï¼mmï¼"), |
| | | WallThickness = table.Column<decimal>(type: "decimal(18,2)", nullable: false, comment: "å£åï¼åä½ï¼mmï¼"), |
| | | 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: "æ¯å¦ä¸ºä¸»æ¯ç®¡"), |
| | | 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: "è¯ä¹¦ç¼å·") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | RedundantField1 = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: true, comment: "åä½å段1 - é¢çæ©å±ç¨é") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | RedundantField2 = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: true, comment: "åä½å段2 - é¢çæ©å±ç¨é") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | RedundantField3 = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: true, comment: "åä½å段3 - é¢çæ©å±ç¨é") |
| | | .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) |
| | | }, |
| | | constraints: table => |
| | | { |
| | | table.PrimaryKey("PK_scms_wmsmaterials", x => x.Id); |
| | | }, |
| | | comment: "ç©æåºç¡ä¿¡æ¯è¡¨") |
| | | .Annotation("MySql:CharSet", "utf8mb4"); |
| | | |
| | | migrationBuilder.CreateTable( |
| | | name: "scms_wmsplaces", |
| | | columns: table => new |
| | | { |
| | | Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
| | | PlaceNo = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "ç¼å·") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | StorageTypeNo = table.Column<int>(type: "int", nullable: false, comment: "è´§ä½ç±»å"), |
| | | PlaceStatus = table.Column<int>(type: "int", nullable: false, comment: "è´§ä½ç¶æ"), |
| | | AreaCode = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "æå¨åºåº") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | Aisle = table.Column<int>(type: "int", nullable: false, comment: "å··é"), |
| | | RowNo = table.Column<int>(type: "int", nullable: false, comment: "æ"), |
| | | ColumnNo = table.Column<int>(type: "int", nullable: false, comment: "å"), |
| | | LayerNo = table.Column<int>(type: "int", nullable: false, comment: "å±"), |
| | | Islock = table.Column<int>(type: "int", nullable: false, comment: "æ¯å¦éå®"), |
| | | EmptyContainer = table.Column<int>(type: "int", nullable: false, comment: "æ¯å¦ç©ºæ"), |
| | | RedundantField1 = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: true, comment: "åä½å段1 - é¢çæ©å±ç¨é") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | RedundantField2 = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: true, comment: "åä½å段2 - é¢çæ©å±ç¨é") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | RedundantField3 = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: true, comment: "åä½å段3 - é¢çæ©å±ç¨é") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | Sort = table.Column<int>(type: "int", nullable: false, comment: "æåº"), |
| | | Remark = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: true, comment: "夿³¨") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | 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_wmsplaces", x => x.Id); |
| | | }, |
| | | comment: "åºä½è¡¨") |
| | | .Annotation("MySql:CharSet", "utf8mb4"); |
| | | |
| | | migrationBuilder.CreateTable( |
| | | name: "scms_wmsstores", |
| | | columns: table => new |
| | | { |
| | | Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
| | | StoreCode = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true, comment: "ä»åºä»£ç ") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | StoreName = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: true, comment: "ä»åºåç§°") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | RedundantField1 = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: true, comment: "åä½å段1 - é¢çæ©å±ç¨é") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | RedundantField2 = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: true, comment: "åä½å段2 - é¢çæ©å±ç¨é") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | RedundantField3 = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: true, comment: "åä½å段3 - é¢çæ©å±ç¨é") |
| | | .Annotation("MySql:CharSet", "utf8mb4"), |
| | | Remark = table.Column<string>(type: "varchar(256)", maxLength: 256, 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_wmsstores", x => x.Id); |
| | | }, |
| | | comment: "ä»åºä¿¡æ¯è¡¨") |
| | | .Annotation("MySql:CharSet", "utf8mb4"); |
| | | |
| | | migrationBuilder.CreateIndex( |
| | | name: "IX_scms_wmsareas_AreaName", |
| | | table: "scms_wmsareas", |
| | | column: "AreaName"); |
| | | |
| | | migrationBuilder.CreateIndex( |
| | | name: "IX_scms_wmscontainers_ContainerNo", |
| | | table: "scms_wmscontainers", |
| | | column: "ContainerNo", |
| | | unique: true); |
| | | |
| | | migrationBuilder.CreateIndex( |
| | | name: "IX_scms_wmscontainers_ContainerStatus", |
| | | table: "scms_wmscontainers", |
| | | column: "ContainerStatus"); |
| | | |
| | | migrationBuilder.CreateIndex( |
| | | name: "IX_scms_wmscontainers_ContainerType", |
| | | table: "scms_wmscontainers", |
| | | column: "ContainerType"); |
| | | |
| | | migrationBuilder.CreateIndex( |
| | | name: "IX_scms_wmsmaterials_MaterialCode", |
| | | table: "scms_wmsmaterials", |
| | | column: "MaterialCode", |
| | | unique: true); |
| | | |
| | | migrationBuilder.CreateIndex( |
| | | name: "IX_scms_wmsmaterials_MaterialName", |
| | | table: "scms_wmsmaterials", |
| | | column: "MaterialName"); |
| | | |
| | | migrationBuilder.CreateIndex( |
| | | name: "IX_scms_wmsmaterials_MaterialType", |
| | | table: "scms_wmsmaterials", |
| | | column: "MaterialType"); |
| | | |
| | | migrationBuilder.CreateIndex( |
| | | name: "IX_scms_wmsmaterials_PurchaseType", |
| | | table: "scms_wmsmaterials", |
| | | column: "PurchaseType"); |
| | | |
| | | migrationBuilder.CreateIndex( |
| | | name: "IX_scms_wmsplaces_AreaCode", |
| | | table: "scms_wmsplaces", |
| | | column: "AreaCode"); |
| | | |
| | | migrationBuilder.CreateIndex( |
| | | name: "IX_scms_wmsplaces_PlaceNo", |
| | | table: "scms_wmsplaces", |
| | | column: "PlaceNo", |
| | | unique: true); |
| | | |
| | | migrationBuilder.CreateIndex( |
| | | name: "IX_scms_wmsplaces_PlaceStatus", |
| | | table: "scms_wmsplaces", |
| | | column: "PlaceStatus"); |
| | | |
| | | migrationBuilder.CreateIndex( |
| | | name: "IX_scms_wmsplaces_StorageTypeNo", |
| | | table: "scms_wmsplaces", |
| | | column: "StorageTypeNo"); |
| | | |
| | | migrationBuilder.CreateIndex( |
| | | name: "IX_scms_wmsstores_StoreName", |
| | | table: "scms_wmsstores", |
| | | column: "StoreName"); |
| | | } |
| | | |
| | | protected override void Down(MigrationBuilder migrationBuilder) |
| | | { |
| | | migrationBuilder.DropTable( |
| | | name: "scms_wmsareas"); |
| | | |
| | | migrationBuilder.DropTable( |
| | | name: "scms_wmscontainers"); |
| | | |
| | | migrationBuilder.DropTable( |
| | | name: "scms_wmsmaterials"); |
| | | |
| | | migrationBuilder.DropTable( |
| | | name: "scms_wmsplaces"); |
| | | |
| | | migrationBuilder.DropTable( |
| | | name: "scms_wmsstores"); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // <auto-generated /> |
| | | using System; |
| | | using CMS.Plugin.HIAWms.MySQL; |
| | | using Microsoft.EntityFrameworkCore; |
| | | using Microsoft.EntityFrameworkCore.Infrastructure; |
| | | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| | | using Volo.Abp.EntityFrameworkCore; |
| | | |
| | | #nullable disable |
| | | |
| | | namespace CMS.Plugin.HIAWms.MySQL.Migrations |
| | | { |
| | | [DbContext(typeof(CMSPluginDbContext))] |
| | | partial class CMSPluginDbContextModelSnapshot : ModelSnapshot |
| | | { |
| | | protected override void BuildModel(ModelBuilder modelBuilder) |
| | | { |
| | | #pragma warning disable 612, 618 |
| | | modelBuilder |
| | | .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql) |
| | | .HasAnnotation("ProductVersion", "6.0.16") |
| | | .HasAnnotation("Relational:MaxIdentifierLength", 64); |
| | | |
| | | modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsAreas.WmsArea", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("char(36)"); |
| | | |
| | | b.Property<string>("AreaDesc") |
| | | .HasMaxLength(200) |
| | | .HasColumnType("varchar(200)") |
| | | .HasComment("æè¿°"); |
| | | |
| | | b.Property<string>("AreaName") |
| | | .IsRequired() |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åºåºåç§°"); |
| | | |
| | | b.Property<string>("AreaNo") |
| | | .IsRequired() |
| | | .HasMaxLength(64) |
| | | .HasColumnType("varchar(64)") |
| | | .HasComment("åºåºç¼å·"); |
| | | |
| | | b.Property<int>("AreaStatus") |
| | | .HasColumnType("int") |
| | | .HasComment("åºåºç¶æ"); |
| | | |
| | | b.Property<int>("AreaType") |
| | | .HasColumnType("int") |
| | | .HasComment("åºåºç±»å"); |
| | | |
| | | b.Property<string>("ConcurrencyStamp") |
| | | .IsConcurrencyToken() |
| | | .HasMaxLength(40) |
| | | .HasColumnType("varchar(40)") |
| | | .HasColumnName("ConcurrencyStamp"); |
| | | |
| | | 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<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<DateTime?>("LastModificationTime") |
| | | .HasColumnType("datetime(6)") |
| | | .HasColumnName("LastModificationTime"); |
| | | |
| | | b.Property<Guid?>("LastModifierId") |
| | | .HasColumnType("char(36)") |
| | | .HasColumnName("LastModifierId"); |
| | | |
| | | b.Property<string>("RedundantField1") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åä½å段1 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField2") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åä½å段2 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField3") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åä½å段3 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("Remark") |
| | | .HasMaxLength(256) |
| | | .HasColumnType("varchar(256)") |
| | | .HasComment("夿³¨"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int") |
| | | .HasComment("æåº"); |
| | | |
| | | b.Property<string>("StoreCode") |
| | | .HasMaxLength(50) |
| | | .HasColumnType("varchar(50)") |
| | | .HasComment("ä»åºä»£ç "); |
| | | |
| | | b.Property<string>("StoreName") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("ä»åºåç§°"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("AreaName"); |
| | | |
| | | b.ToTable("scms_wmsareas", (string)null); |
| | | |
| | | b.HasComment("åºåºè¡¨"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsContainers.WmsContainer", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("char(36)"); |
| | | |
| | | b.Property<string>("ConcurrencyStamp") |
| | | .IsConcurrencyToken() |
| | | .HasMaxLength(40) |
| | | .HasColumnType("varchar(40)") |
| | | .HasColumnName("ConcurrencyStamp"); |
| | | |
| | | b.Property<string>("ContainerNo") |
| | | .IsRequired() |
| | | .HasMaxLength(50) |
| | | .HasColumnType("varchar(50)") |
| | | .HasComment("æçç¼å·"); |
| | | |
| | | b.Property<int>("ContainerStatus") |
| | | .HasColumnType("int") |
| | | .HasComment("æçç¶æ"); |
| | | |
| | | b.Property<int>("ContainerType") |
| | | .HasColumnType("int") |
| | | .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?>("ExceptionNumber") |
| | | .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<DateTime?>("LastModificationTime") |
| | | .HasColumnType("datetime(6)") |
| | | .HasColumnName("LastModificationTime"); |
| | | |
| | | b.Property<Guid?>("LastModifierId") |
| | | .HasColumnType("char(36)") |
| | | .HasColumnName("LastModifierId"); |
| | | |
| | | b.Property<decimal?>("LimitHeight") |
| | | .HasPrecision(18, 2) |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("éé«"); |
| | | |
| | | b.Property<decimal?>("LimitLength") |
| | | .HasPrecision(18, 2) |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("éé¿"); |
| | | |
| | | b.Property<decimal?>("LimitWidth") |
| | | .HasPrecision(18, 2) |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("é宽"); |
| | | |
| | | b.Property<int?>("MaterialNumber") |
| | | .HasColumnType("int") |
| | | .HasComment("ç©ææ°é"); |
| | | |
| | | b.Property<decimal?>("MaxWeight") |
| | | .HasPrecision(18, 2) |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("è½½éä¸é"); |
| | | |
| | | b.Property<string>("RedundantField1") |
| | | .HasMaxLength(200) |
| | | .HasColumnType("varchar(200)") |
| | | .HasComment("åä½å段1 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField2") |
| | | .HasMaxLength(200) |
| | | .HasColumnType("varchar(200)") |
| | | .HasComment("åä½å段2 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField3") |
| | | .HasMaxLength(200) |
| | | .HasColumnType("varchar(200)") |
| | | .HasComment("åä½å段3 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("Remark") |
| | | .HasMaxLength(256) |
| | | .HasColumnType("varchar(256)") |
| | | .HasComment("夿³¨"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int") |
| | | .HasComment("æåº"); |
| | | |
| | | b.Property<decimal?>("SpecHeight") |
| | | .HasPrecision(18, 2) |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("é«åº¦"); |
| | | |
| | | b.Property<decimal?>("SpecLength") |
| | | .HasPrecision(18, 2) |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("é¿åº¦"); |
| | | |
| | | b.Property<decimal?>("SpecWidth") |
| | | .HasPrecision(18, 2) |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("宽度"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("ContainerNo") |
| | | .IsUnique(); |
| | | |
| | | b.HasIndex("ContainerStatus"); |
| | | |
| | | b.HasIndex("ContainerType"); |
| | | |
| | | b.ToTable("scms_wmscontainers", (string)null); |
| | | |
| | | b.HasComment("æçä¿¡æ¯è¡¨"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsMaterials.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"); |
| | | |
| | | 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<string>("ExtraProperties") |
| | | .HasColumnType("longtext") |
| | | .HasColumnName("ExtraProperties"); |
| | | |
| | | b.Property<string>("Factory") |
| | | .HasMaxLength(64) |
| | | .HasColumnType("varchar(64)") |
| | | .HasComment("ç产工å"); |
| | | |
| | | b.Property<bool>("IsDeleted") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("tinyint(1)") |
| | | .HasDefaultValue(false) |
| | | .HasColumnName("IsDeleted"); |
| | | |
| | | b.Property<bool?>("IsDisabled") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("tinyint(1)") |
| | | .HasDefaultValue(false) |
| | | .HasComment("æ¯å¦ç¦ç¨"); |
| | | |
| | | b.Property<bool>("IsMainBranch") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("tinyint(1)") |
| | | .HasDefaultValue(false) |
| | | .HasComment("æ¯å¦ä¸ºä¸»æ¯ç®¡"); |
| | | |
| | | b.Property<DateTime?>("LastModificationTime") |
| | | .HasColumnType("datetime(6)") |
| | | .HasColumnName("LastModificationTime"); |
| | | |
| | | b.Property<Guid?>("LastModifierId") |
| | | .HasColumnType("char(36)") |
| | | .HasColumnName("LastModifierId"); |
| | | |
| | | b.Property<decimal>("Length") |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("é¿åº¦ï¼åä½ï¼mï¼"); |
| | | |
| | | b.Property<string>("MaterialCode") |
| | | .IsRequired() |
| | | .HasMaxLength(64) |
| | | .HasColumnType("varchar(64)") |
| | | .HasComment("ç©æç¼ç ï¼å¯ä¸æ è¯ï¼"); |
| | | |
| | | b.Property<string>("MaterialName") |
| | | .IsRequired() |
| | | .HasMaxLength(128) |
| | | .HasColumnType("varchar(128)") |
| | | .HasComment("ç©æåç§°"); |
| | | |
| | | b.Property<string>("MaterialQuality") |
| | | .HasMaxLength(64) |
| | | .HasColumnType("varchar(64)") |
| | | .HasComment("æè´¨ï¼å¦ï¼304ä¸éé¢ï¼"); |
| | | |
| | | b.Property<int>("MaterialType") |
| | | .HasColumnType("int") |
| | | .HasComment("ç©æç±»åï¼æä¸¾å¼ï¼"); |
| | | |
| | | b.Property<decimal>("OuterDiameter") |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("å¤å¾ï¼åä½ï¼mmï¼"); |
| | | |
| | | b.Property<string>("PrimaryUnit") |
| | | .HasMaxLength(20) |
| | | .HasColumnType("varchar(20)") |
| | | .HasComment("主åä½ï¼å¦ï¼kgãmã个ï¼"); |
| | | |
| | | b.Property<int>("PurchaseType") |
| | | .HasColumnType("int") |
| | | .HasComment("éè´ç±»åï¼æä¸¾å¼ï¼"); |
| | | |
| | | b.Property<string>("RedundantField1") |
| | | .HasMaxLength(256) |
| | | .HasColumnType("varchar(256)") |
| | | .HasComment("åä½å段1 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField2") |
| | | .HasMaxLength(256) |
| | | .HasColumnType("varchar(256)") |
| | | .HasComment("åä½å段2 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField3") |
| | | .HasMaxLength(256) |
| | | .HasColumnType("varchar(256)") |
| | | .HasComment("åä½å段3 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("Remark") |
| | | .HasMaxLength(500) |
| | | .HasColumnType("varchar(500)") |
| | | .HasComment("夿³¨"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("int") |
| | | .HasDefaultValue(0) |
| | | .HasComment("æåº"); |
| | | |
| | | b.Property<string>("Standard") |
| | | .HasMaxLength(128) |
| | | .HasColumnType("varchar(128)") |
| | | .HasComment("è§æ ¼/æ åï¼å¦ï¼GB/T 8163-2018ï¼"); |
| | | |
| | | b.Property<decimal>("WallThickness") |
| | | .HasColumnType("decimal(18,2)") |
| | | .HasComment("å£åï¼åä½ï¼mmï¼"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("MaterialCode") |
| | | .IsUnique(); |
| | | |
| | | b.HasIndex("MaterialName"); |
| | | |
| | | b.HasIndex("MaterialType"); |
| | | |
| | | b.HasIndex("PurchaseType"); |
| | | |
| | | b.ToTable("scms_wmsmaterials", (string)null); |
| | | |
| | | b.HasComment("ç©æåºç¡ä¿¡æ¯è¡¨"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsPlaces.WmsPlace", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("char(36)"); |
| | | |
| | | b.Property<int>("Aisle") |
| | | .HasColumnType("int") |
| | | .HasComment("å··é"); |
| | | |
| | | b.Property<string>("AreaCode") |
| | | .IsRequired() |
| | | .HasMaxLength(50) |
| | | .HasColumnType("varchar(50)") |
| | | .HasComment("æå¨åºåº"); |
| | | |
| | | b.Property<int>("ColumnNo") |
| | | .HasColumnType("int") |
| | | .HasComment("å"); |
| | | |
| | | b.Property<string>("ConcurrencyStamp") |
| | | .IsConcurrencyToken() |
| | | .HasMaxLength(40) |
| | | .HasColumnType("varchar(40)") |
| | | .HasColumnName("ConcurrencyStamp"); |
| | | |
| | | 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>("EmptyContainer") |
| | | .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>("Islock") |
| | | .HasColumnType("int") |
| | | .HasComment("æ¯å¦éå®"); |
| | | |
| | | b.Property<DateTime?>("LastModificationTime") |
| | | .HasColumnType("datetime(6)") |
| | | .HasColumnName("LastModificationTime"); |
| | | |
| | | b.Property<Guid?>("LastModifierId") |
| | | .HasColumnType("char(36)") |
| | | .HasColumnName("LastModifierId"); |
| | | |
| | | b.Property<int>("LayerNo") |
| | | .HasColumnType("int") |
| | | .HasComment("å±"); |
| | | |
| | | b.Property<string>("PlaceNo") |
| | | .IsRequired() |
| | | .HasMaxLength(50) |
| | | .HasColumnType("varchar(50)") |
| | | .HasComment("ç¼å·"); |
| | | |
| | | b.Property<int>("PlaceStatus") |
| | | .HasColumnType("int") |
| | | .HasComment("è´§ä½ç¶æ"); |
| | | |
| | | b.Property<string>("RedundantField1") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åä½å段1 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField2") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åä½å段2 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField3") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åä½å段3 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("Remark") |
| | | .HasMaxLength(256) |
| | | .HasColumnType("varchar(256)") |
| | | .HasComment("夿³¨"); |
| | | |
| | | b.Property<int>("RowNo") |
| | | .HasColumnType("int") |
| | | .HasComment("æ"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int") |
| | | .HasComment("æåº"); |
| | | |
| | | b.Property<int>("StorageTypeNo") |
| | | .HasColumnType("int") |
| | | .HasComment("è´§ä½ç±»å"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("AreaCode"); |
| | | |
| | | b.HasIndex("PlaceNo") |
| | | .IsUnique(); |
| | | |
| | | b.HasIndex("PlaceStatus"); |
| | | |
| | | b.HasIndex("StorageTypeNo"); |
| | | |
| | | b.ToTable("scms_wmsplaces", (string)null); |
| | | |
| | | b.HasComment("åºä½è¡¨"); |
| | | }); |
| | | |
| | | modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsStores.WmsStore", b => |
| | | { |
| | | b.Property<Guid>("Id") |
| | | .ValueGeneratedOnAdd() |
| | | .HasColumnType("char(36)"); |
| | | |
| | | b.Property<string>("ConcurrencyStamp") |
| | | .IsConcurrencyToken() |
| | | .HasMaxLength(40) |
| | | .HasColumnType("varchar(40)") |
| | | .HasColumnName("ConcurrencyStamp"); |
| | | |
| | | 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<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<DateTime?>("LastModificationTime") |
| | | .HasColumnType("datetime(6)") |
| | | .HasColumnName("LastModificationTime"); |
| | | |
| | | b.Property<Guid?>("LastModifierId") |
| | | .HasColumnType("char(36)") |
| | | .HasColumnName("LastModifierId"); |
| | | |
| | | b.Property<string>("RedundantField1") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åä½å段1 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField2") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åä½å段2 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("RedundantField3") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("åä½å段3 - é¢çæ©å±ç¨é"); |
| | | |
| | | b.Property<string>("Remark") |
| | | .HasMaxLength(256) |
| | | .HasColumnType("varchar(256)") |
| | | .HasComment("夿³¨"); |
| | | |
| | | b.Property<int>("Sort") |
| | | .HasColumnType("int") |
| | | .HasComment("æåº"); |
| | | |
| | | b.Property<string>("StoreCode") |
| | | .HasMaxLength(50) |
| | | .HasColumnType("varchar(50)") |
| | | .HasComment("ä»åºä»£ç "); |
| | | |
| | | b.Property<string>("StoreName") |
| | | .HasMaxLength(100) |
| | | .HasColumnType("varchar(100)") |
| | | .HasComment("ä»åºåç§°"); |
| | | |
| | | b.HasKey("Id"); |
| | | |
| | | b.HasIndex("StoreName"); |
| | | |
| | | b.ToTable("scms_wmsstores", (string)null); |
| | | |
| | | b.HasComment("ä»åºä¿¡æ¯è¡¨"); |
| | | }); |
| | | #pragma warning restore 612, 618 |
| | | } |
| | | } |
| | | } |
| | |
| | | builder.ConfigureWmsStore(); |
| | | builder.ConfigureWmsArea(); |
| | | builder.ConfigureWmsPlace(); |
| | | builder.ConfigureWmsContainer(); |
| | | builder.ConfigureWmsMaterial(); |
| | | /* Configure your own tables/entities inside here */ |
| | | |
| | | //builder.Entity<YourEntity>(b => |
| | |
| | | builder.ConfigureWmsStore(); |
| | | builder.ConfigureWmsArea(); |
| | | builder.ConfigureWmsPlace(); |
| | | builder.ConfigureWmsContainer(); |
| | | builder.ConfigureWmsMaterial(); |
| | | |
| | | /* Configure your own tables/entities inside here */ |
| | | |