Browse Source

update

集成Redis
wanggang 2 years ago
parent
commit
7e1ca52d90
  1. 2
      be/Hosts/Auth.Host/src/Win_in.Sfs.Auth.Web/Win_in.Sfs.Auth.Web.csproj
  2. 258
      be/Hosts/Basedata.Host/Win_in.Sfs.Basedata.HttpApi.Host/scripts/db.Microsoft.EntityFrameworkCore.SqlServer.BasedataDbContext.sql
  3. 24
      be/Hosts/Core.Host/Win_in.Sfs.Core.Host/scripts/db.Microsoft.EntityFrameworkCore.SqlServer.FileStorageDbContext.sql
  4. 42
      be/Hosts/Core.Host/Win_in.Sfs.Core.Host/scripts/db.Microsoft.EntityFrameworkCore.SqlServer.LabelDbContext.sql
  5. 36
      be/Hosts/Core.Host/Win_in.Sfs.Core.Host/scripts/db.Microsoft.EntityFrameworkCore.SqlServer.MessageDbContext.sql
  6. 63
      be/Hosts/Wms.Host/Win_in.Sfs.Wms.Store.HttpApi.Host/scripts/db.Microsoft.EntityFrameworkCore.SqlServer.InventoryDbContext.sql
  7. 1038
      be/Hosts/Wms.Host/Win_in.Sfs.Wms.Store.HttpApi.Host/scripts/db.Microsoft.EntityFrameworkCore.SqlServer.StoreDbContext.sql
  8. 5
      be/Modules/Shared/src/Win_in.Sfs.Shared.Host/HostBuilderExtensions.cs
  9. 2
      be/Modules/Shared/src/Win_in.Sfs.Shared.Host/ModuleBase.cs
  10. 2
      build/src/docker/publish/.env
  11. 5
      build/src/docker/publish/conf/gateway/Caddyfile
  12. 5
      build/src/docker/publish/conf/gateway/Caddyfile.dev
  13. 2
      build/src/docker/publish/conf/gateway/traefik-config.development.yml
  14. 72
      build/src/docker/publish/docker-compose.development.yml
  15. 50
      build/src/docker/publish/docker-compose.production.yml
  16. 94
      build/src/docker/publish/docker-compose.yml
  17. 60
      build/src/docker/publish/settings/appsettings.Development.json
  18. 233
      build/src/docker/publish/settings/appsettings.json

2
be/Hosts/Auth.Host/src/Win_in.Sfs.Auth.Web/Win_in.Sfs.Auth.Web.csproj

@ -14,7 +14,7 @@
<PreserveCompilationReferences>true</PreserveCompilationReferences>
<UserSecretsId>Win_in.Sfs.Auth-4681b4fd-151f-4221-84a4-929d86723e4c</UserSecretsId>
<IncrementVersionOnBuild>1.yyyy.Mdd.Hmm</IncrementVersionOnBuild>
<Version>1.2023.324.1632</Version>
<Version>1.2023.324.1723</Version>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>

258
be/Hosts/Basedata.Host/Win_in.Sfs.Basedata.HttpApi.Host/scripts/db.Microsoft.EntityFrameworkCore.SqlServer.BasedataDbContext.sql

@ -17,8 +17,7 @@ CREATE TABLE [Basedata_AQL] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_AQL] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_Area] (
@ -38,8 +37,7 @@ CREATE TABLE [Basedata_Area] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_Area] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_Bom] (
@ -65,8 +63,7 @@ CREATE TABLE [Basedata_Bom] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_Bom] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_Calendar] (
@ -84,8 +81,7 @@ CREATE TABLE [Basedata_Calendar] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_Calendar] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_Category] (
@ -102,8 +98,7 @@ CREATE TABLE [Basedata_Category] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_Category] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_Currency] (
@ -121,8 +116,7 @@ CREATE TABLE [Basedata_Currency] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_Currency] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_CurrencyExchange] (
@ -141,8 +135,7 @@ CREATE TABLE [Basedata_CurrencyExchange] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_CurrencyExchange] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_Customer] (
@ -169,8 +162,7 @@ CREATE TABLE [Basedata_Customer] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_Customer] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_CustomerAddress] (
@ -193,8 +185,7 @@ CREATE TABLE [Basedata_CustomerAddress] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(1024) NULL,
CONSTRAINT [PK_Basedata_CustomerAddress] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_CustomerItem] (
@ -216,8 +207,7 @@ CREATE TABLE [Basedata_CustomerItem] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_CustomerItem] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_Dict] (
@ -234,8 +224,7 @@ CREATE TABLE [Basedata_Dict] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_Dict] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_Dock] (
@ -254,8 +243,7 @@ CREATE TABLE [Basedata_Dock] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_Dock] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_DocumentSetting] (
@ -277,8 +265,7 @@ CREATE TABLE [Basedata_DocumentSetting] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_DocumentSetting] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_ErpLocation] (
@ -297,8 +284,7 @@ CREATE TABLE [Basedata_ErpLocation] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_ErpLocation] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_InterfaceCalendar] (
@ -320,8 +306,7 @@ CREATE TABLE [Basedata_InterfaceCalendar] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(max) NULL,
CONSTRAINT [PK_Basedata_InterfaceCalendar] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_ItemBasic] (
@ -360,8 +345,7 @@ CREATE TABLE [Basedata_ItemBasic] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_ItemBasic] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_ItemCategory] (
@ -378,8 +362,7 @@ CREATE TABLE [Basedata_ItemCategory] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_ItemCategory] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_ItemGuideBook] (
@ -399,8 +382,7 @@ CREATE TABLE [Basedata_ItemGuideBook] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_ItemGuideBook] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_ItemPack] (
@ -420,8 +402,7 @@ CREATE TABLE [Basedata_ItemPack] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_ItemPack] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_ItemQuality] (
@ -440,8 +421,7 @@ CREATE TABLE [Basedata_ItemQuality] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_ItemQuality] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_ItemSafetyStock] (
@ -465,8 +445,7 @@ CREATE TABLE [Basedata_ItemSafetyStock] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_ItemSafetyStock] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_ItemStoreRelation] (
@ -492,8 +471,7 @@ CREATE TABLE [Basedata_ItemStoreRelation] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_ItemStoreRelation] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_Location] (
@ -538,8 +516,7 @@ CREATE TABLE [Basedata_Location] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_Location] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_LocationGroup] (
@ -578,8 +555,7 @@ CREATE TABLE [Basedata_LocationGroup] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_LocationGroup] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_Machine] (
@ -599,8 +575,7 @@ CREATE TABLE [Basedata_Machine] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_Machine] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_ProductionLine] (
@ -622,8 +597,7 @@ CREATE TABLE [Basedata_ProductionLine] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_ProductionLine] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_ProductionLineItem] (
@ -639,8 +613,7 @@ CREATE TABLE [Basedata_ProductionLineItem] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_ProductionLineItem] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_Project] (
@ -660,8 +633,7 @@ CREATE TABLE [Basedata_Project] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_Project] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_PurchasePriceSheet] (
@ -680,8 +652,7 @@ CREATE TABLE [Basedata_PurchasePriceSheet] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_PurchasePriceSheet] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_SalePriceSheet] (
@ -700,8 +671,7 @@ CREATE TABLE [Basedata_SalePriceSheet] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_SalePriceSheet] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_Shift] (
@ -721,8 +691,7 @@ CREATE TABLE [Basedata_Shift] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_Shift] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_StdCostPriceSheet] (
@ -741,8 +710,7 @@ CREATE TABLE [Basedata_StdCostPriceSheet] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_StdCostPriceSheet] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_Supplier] (
@ -771,8 +739,7 @@ CREATE TABLE [Basedata_Supplier] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_Supplier] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_SupplierItem] (
@ -795,8 +762,7 @@ CREATE TABLE [Basedata_SupplierItem] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_SupplierItem] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_SupplierTimeWindow] (
@ -814,8 +780,7 @@ CREATE TABLE [Basedata_SupplierTimeWindow] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_SupplierTimeWindow] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_Team] (
@ -833,8 +798,7 @@ CREATE TABLE [Basedata_Team] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_Team] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_TransactionType] (
@ -865,8 +829,7 @@ CREATE TABLE [Basedata_TransactionType] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_TransactionType] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_Uom] (
@ -884,8 +847,7 @@ CREATE TABLE [Basedata_Uom] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_Uom] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_Warehouse] (
@ -902,8 +864,7 @@ CREATE TABLE [Basedata_Warehouse] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_Warehouse] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_WorkGroup] (
@ -921,8 +882,7 @@ CREATE TABLE [Basedata_WorkGroup] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_WorkGroup] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_WorkShop] (
@ -939,8 +899,7 @@ CREATE TABLE [Basedata_WorkShop] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_WorkShop] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_WorkStation] (
@ -961,8 +920,7 @@ CREATE TABLE [Basedata_WorkStation] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Basedata_WorkStation] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Basedata_DictItem] (
@ -981,179 +939,135 @@ CREATE TABLE [Basedata_DictItem] (
[LastModifierId] uniqueidentifier NULL,
CONSTRAINT [PK_Basedata_DictItem] PRIMARY KEY ([Id]),
CONSTRAINT [FK_Basedata_DictItem_Basedata_Dict_MasterId] FOREIGN KEY ([MasterId]) REFERENCES [Basedata_Dict] ([Id]) ON DELETE CASCADE
);
GO
)
CREATE UNIQUE INDEX [IX_Basedata_AQL_SupplierCode_ItemCode_FloorQty] ON [Basedata_AQL] ([SupplierCode], [ItemCode], [FloorQty]);
GO
CREATE UNIQUE INDEX [IX_Basedata_AQL_SupplierCode_ItemCode_FloorQty] ON [Basedata_AQL] ([SupplierCode], [ItemCode], [FloorQty])
CREATE UNIQUE INDEX [IX_Basedata_Area_Code] ON [Basedata_Area] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_Area_Code] ON [Basedata_Area] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_Bom_Product_Component] ON [Basedata_Bom] ([Product], [Component]);
GO
CREATE UNIQUE INDEX [IX_Basedata_Bom_Product_Component] ON [Basedata_Bom] ([Product], [Component])
CREATE UNIQUE INDEX [IX_Basedata_Calendar_Module] ON [Basedata_Calendar] ([Module]) WHERE [Module] IS NOT NULL;
GO
CREATE UNIQUE INDEX [IX_Basedata_Calendar_Module] ON [Basedata_Calendar] ([Module]) WHERE [Module] IS NOT NULL
CREATE UNIQUE INDEX [IX_Basedata_Category_Code] ON [Basedata_Category] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_Category_Code] ON [Basedata_Category] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_Currency_Code] ON [Basedata_Currency] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_Currency_Code] ON [Basedata_Currency] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_CurrencyExchange_CurrencyId_BasicCurrencyId] ON [Basedata_CurrencyExchange] ([CurrencyId], [BasicCurrencyId]);
GO
CREATE UNIQUE INDEX [IX_Basedata_CurrencyExchange_CurrencyId_BasicCurrencyId] ON [Basedata_CurrencyExchange] ([CurrencyId], [BasicCurrencyId])
CREATE UNIQUE INDEX [IX_Basedata_Customer_Code] ON [Basedata_Customer] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_Customer_Code] ON [Basedata_Customer] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_CustomerAddress_Code_CustomerCode] ON [Basedata_CustomerAddress] ([Code], [CustomerCode]);
GO
CREATE UNIQUE INDEX [IX_Basedata_CustomerAddress_Code_CustomerCode] ON [Basedata_CustomerAddress] ([Code], [CustomerCode])
CREATE UNIQUE INDEX [IX_Basedata_CustomerItem_CustomerCode_ItemCode] ON [Basedata_CustomerItem] ([CustomerCode], [ItemCode]);
GO
CREATE UNIQUE INDEX [IX_Basedata_CustomerItem_CustomerCode_ItemCode] ON [Basedata_CustomerItem] ([CustomerCode], [ItemCode])
CREATE UNIQUE INDEX [IX_Basedata_Dict_Code] ON [Basedata_Dict] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_Dict_Code] ON [Basedata_Dict] ([Code])
CREATE INDEX [IX_Basedata_DictItem_MasterId] ON [Basedata_DictItem] ([MasterId]);
GO
CREATE INDEX [IX_Basedata_DictItem_MasterId] ON [Basedata_DictItem] ([MasterId])
CREATE UNIQUE INDEX [IX_Basedata_Dock_Code] ON [Basedata_Dock] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_Dock_Code] ON [Basedata_Dock] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_DocumentSetting_Code] ON [Basedata_DocumentSetting] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_DocumentSetting_Code] ON [Basedata_DocumentSetting] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_ErpLocation_Code] ON [Basedata_ErpLocation] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_ErpLocation_Code] ON [Basedata_ErpLocation] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_InterfaceCalendar_Code] ON [Basedata_InterfaceCalendar] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_InterfaceCalendar_Code] ON [Basedata_InterfaceCalendar] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_ItemBasic_Code] ON [Basedata_ItemBasic] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_ItemBasic_Code] ON [Basedata_ItemBasic] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_ItemCategory_CategoryCode_ItemCode] ON [Basedata_ItemCategory] ([CategoryCode], [ItemCode]);
GO
CREATE UNIQUE INDEX [IX_Basedata_ItemCategory_CategoryCode_ItemCode] ON [Basedata_ItemCategory] ([CategoryCode], [ItemCode])
CREATE UNIQUE INDEX [IX_Basedata_ItemGuideBook_ItemCode] ON [Basedata_ItemGuideBook] ([ItemCode]);
GO
CREATE UNIQUE INDEX [IX_Basedata_ItemGuideBook_ItemCode] ON [Basedata_ItemGuideBook] ([ItemCode])
CREATE UNIQUE INDEX [IX_Basedata_ItemPack_ItemCode_PackCode] ON [Basedata_ItemPack] ([ItemCode], [PackCode]);
GO
CREATE UNIQUE INDEX [IX_Basedata_ItemPack_ItemCode_PackCode] ON [Basedata_ItemPack] ([ItemCode], [PackCode])
CREATE UNIQUE INDEX [IX_Basedata_ItemQuality_ItemCode_SupplierCode] ON [Basedata_ItemQuality] ([ItemCode], [SupplierCode]);
GO
CREATE UNIQUE INDEX [IX_Basedata_ItemQuality_ItemCode_SupplierCode] ON [Basedata_ItemQuality] ([ItemCode], [SupplierCode])
CREATE UNIQUE INDEX [IX_Basedata_ItemSafetyStock_ItemCode_WarehouseCode_StoreRelationType_StoreValue] ON [Basedata_ItemSafetyStock] ([ItemCode], [WarehouseCode], [StoreRelationType], [StoreValue]) WHERE [StoreValue] IS NOT NULL;
GO
CREATE UNIQUE INDEX [IX_Basedata_ItemSafetyStock_ItemCode_WarehouseCode_StoreRelationType_StoreValue] ON [Basedata_ItemSafetyStock] ([ItemCode], [WarehouseCode], [StoreRelationType], [StoreValue]) WHERE [StoreValue] IS NOT NULL
CREATE UNIQUE INDEX [IX_Basedata_ItemStoreRelation_ItemCode_StoreRelationType_StoreValue] ON [Basedata_ItemStoreRelation] ([ItemCode], [StoreRelationType], [StoreValue]) WHERE [StoreValue] IS NOT NULL;
GO
CREATE UNIQUE INDEX [IX_Basedata_ItemStoreRelation_ItemCode_StoreRelationType_StoreValue] ON [Basedata_ItemStoreRelation] ([ItemCode], [StoreRelationType], [StoreValue]) WHERE [StoreValue] IS NOT NULL
CREATE UNIQUE INDEX [IX_Basedata_Location_Code] ON [Basedata_Location] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_Location_Code] ON [Basedata_Location] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_LocationGroup_Code] ON [Basedata_LocationGroup] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_LocationGroup_Code] ON [Basedata_LocationGroup] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_Machine_Code] ON [Basedata_Machine] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_Machine_Code] ON [Basedata_Machine] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_ProductionLine_Code] ON [Basedata_ProductionLine] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_ProductionLine_Code] ON [Basedata_ProductionLine] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_ProductionLineItem_ProdLineCode_ItemCode] ON [Basedata_ProductionLineItem] ([ProdLineCode], [ItemCode]);
GO
CREATE UNIQUE INDEX [IX_Basedata_ProductionLineItem_ProdLineCode_ItemCode] ON [Basedata_ProductionLineItem] ([ProdLineCode], [ItemCode])
CREATE UNIQUE INDEX [IX_Basedata_Project_Code] ON [Basedata_Project] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_Project_Code] ON [Basedata_Project] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_PurchasePriceSheet_Code] ON [Basedata_PurchasePriceSheet] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_PurchasePriceSheet_Code] ON [Basedata_PurchasePriceSheet] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_SalePriceSheet_Code_CustomerId] ON [Basedata_SalePriceSheet] ([Code], [CustomerId]);
GO
CREATE UNIQUE INDEX [IX_Basedata_SalePriceSheet_Code_CustomerId] ON [Basedata_SalePriceSheet] ([Code], [CustomerId])
CREATE UNIQUE INDEX [IX_Basedata_Shift_Code] ON [Basedata_Shift] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_Shift_Code] ON [Basedata_Shift] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_StdCostPriceSheet_Code_SupplierId] ON [Basedata_StdCostPriceSheet] ([Code], [SupplierId]);
GO
CREATE UNIQUE INDEX [IX_Basedata_StdCostPriceSheet_Code_SupplierId] ON [Basedata_StdCostPriceSheet] ([Code], [SupplierId])
CREATE UNIQUE INDEX [IX_Basedata_Supplier_Code] ON [Basedata_Supplier] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_Supplier_Code] ON [Basedata_Supplier] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_SupplierItem_SupplierCode_ItemCode] ON [Basedata_SupplierItem] ([SupplierCode], [ItemCode]);
GO
CREATE UNIQUE INDEX [IX_Basedata_SupplierItem_SupplierCode_ItemCode] ON [Basedata_SupplierItem] ([SupplierCode], [ItemCode])
CREATE UNIQUE INDEX [IX_Basedata_SupplierTimeWindow_SupplierCode_TimeSlot_Week] ON [Basedata_SupplierTimeWindow] ([SupplierCode], [TimeSlot], [Week]);
GO
CREATE UNIQUE INDEX [IX_Basedata_SupplierTimeWindow_SupplierCode_TimeSlot_Week] ON [Basedata_SupplierTimeWindow] ([SupplierCode], [TimeSlot], [Week])
CREATE UNIQUE INDEX [IX_Basedata_Team_Code] ON [Basedata_Team] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_Team_Code] ON [Basedata_Team] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_TransactionType_TransType_TransSubType] ON [Basedata_TransactionType] ([TransType], [TransSubType]);
GO
CREATE UNIQUE INDEX [IX_Basedata_TransactionType_TransType_TransSubType] ON [Basedata_TransactionType] ([TransType], [TransSubType])
CREATE UNIQUE INDEX [IX_Basedata_Uom_Code] ON [Basedata_Uom] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_Uom_Code] ON [Basedata_Uom] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_Warehouse_Code] ON [Basedata_Warehouse] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_Warehouse_Code] ON [Basedata_Warehouse] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_WorkGroup_Code] ON [Basedata_WorkGroup] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_WorkGroup_Code] ON [Basedata_WorkGroup] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_WorkShop_Code] ON [Basedata_WorkShop] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_WorkShop_Code] ON [Basedata_WorkShop] ([Code])
CREATE UNIQUE INDEX [IX_Basedata_WorkStation_Code] ON [Basedata_WorkStation] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Basedata_WorkStation_Code] ON [Basedata_WorkStation] ([Code])

24
be/Hosts/Core.Host/Win_in.Sfs.Core.Host/scripts/db.Microsoft.EntityFrameworkCore.SqlServer.FileStorageDbContext.sql

@ -5,8 +5,7 @@ CREATE TABLE [AbpBlobContainers] (
[ExtraProperties] nvarchar(max) NULL,
[ConcurrencyStamp] nvarchar(40) NULL,
CONSTRAINT [PK_AbpBlobContainers] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [FileStorage_DataExportTask] (
@ -29,8 +28,7 @@ CREATE TABLE [FileStorage_DataExportTask] (
[EndTime] datetime2 NULL,
[Status] nvarchar(64) NOT NULL,
CONSTRAINT [PK_FileStorage_DataExportTask] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [FileStorage_DataImportTask] (
@ -55,8 +53,7 @@ CREATE TABLE [FileStorage_DataImportTask] (
[EndTime] datetime2 NULL,
[Status] nvarchar(64) NOT NULL,
CONSTRAINT [PK_FileStorage_DataImportTask] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [FileStorage_File] (
@ -73,8 +70,7 @@ CREATE TABLE [FileStorage_File] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(max) NULL,
CONSTRAINT [PK_FileStorage_File] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [AbpBlobs] (
@ -87,19 +83,15 @@ CREATE TABLE [AbpBlobs] (
[ConcurrencyStamp] nvarchar(40) NULL,
CONSTRAINT [PK_AbpBlobs] PRIMARY KEY ([Id]),
CONSTRAINT [FK_AbpBlobs_AbpBlobContainers_ContainerId] FOREIGN KEY ([ContainerId]) REFERENCES [AbpBlobContainers] ([Id]) ON DELETE CASCADE
);
GO
)
CREATE INDEX [IX_AbpBlobContainers_TenantId_Name] ON [AbpBlobContainers] ([TenantId], [Name]);
GO
CREATE INDEX [IX_AbpBlobContainers_TenantId_Name] ON [AbpBlobContainers] ([TenantId], [Name])
CREATE INDEX [IX_AbpBlobs_ContainerId] ON [AbpBlobs] ([ContainerId]);
GO
CREATE INDEX [IX_AbpBlobs_ContainerId] ON [AbpBlobs] ([ContainerId])
CREATE INDEX [IX_AbpBlobs_TenantId_ContainerId_Name] ON [AbpBlobs] ([TenantId], [ContainerId], [Name]);
GO
CREATE INDEX [IX_AbpBlobs_TenantId_ContainerId_Name] ON [AbpBlobs] ([TenantId], [ContainerId], [Name])

42
be/Hosts/Core.Host/Win_in.Sfs.Core.Host/scripts/db.Microsoft.EntityFrameworkCore.SqlServer.LabelDbContext.sql

@ -11,8 +11,7 @@ CREATE TABLE [Label_CountLabel] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Label_CountLabel] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Label_InventoryLabel] (
@ -59,8 +58,7 @@ CREATE TABLE [Label_InventoryLabel] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Label_InventoryLabel] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Label_LabelDefinition] (
@ -82,8 +80,7 @@ CREATE TABLE [Label_LabelDefinition] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Label_LabelDefinition] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Label_PalletCode] (
@ -99,8 +96,7 @@ CREATE TABLE [Label_PalletCode] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Label_PalletCode] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Label_PalletLabel] (
@ -122,8 +118,7 @@ CREATE TABLE [Label_PalletLabel] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Label_PalletLabel] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Label_SaleLabel] (
@ -158,8 +153,7 @@ CREATE TABLE [Label_SaleLabel] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Label_SaleLabel] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Label_SerialCode] (
@ -175,35 +169,27 @@ CREATE TABLE [Label_SerialCode] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Label_SerialCode] PRIMARY KEY ([Id])
);
GO
)
CREATE UNIQUE INDEX [IX_Label_CountLabel_RuleCode_CountNumber] ON [Label_CountLabel] ([RuleCode], [CountNumber]);
GO
CREATE UNIQUE INDEX [IX_Label_CountLabel_RuleCode_CountNumber] ON [Label_CountLabel] ([RuleCode], [CountNumber])
CREATE UNIQUE INDEX [IX_Label_InventoryLabel_Code] ON [Label_InventoryLabel] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Label_InventoryLabel_Code] ON [Label_InventoryLabel] ([Code])
CREATE UNIQUE INDEX [IX_Label_LabelDefinition_Code] ON [Label_LabelDefinition] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Label_LabelDefinition_Code] ON [Label_LabelDefinition] ([Code])
CREATE UNIQUE INDEX [IX_Label_PalletCode_RuleCode_PalletlNumber] ON [Label_PalletCode] ([RuleCode], [PalletlNumber]);
GO
CREATE UNIQUE INDEX [IX_Label_PalletCode_RuleCode_PalletlNumber] ON [Label_PalletCode] ([RuleCode], [PalletlNumber])
CREATE UNIQUE INDEX [IX_Label_PalletLabel_Code] ON [Label_PalletLabel] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Label_PalletLabel_Code] ON [Label_PalletLabel] ([Code])
CREATE UNIQUE INDEX [IX_Label_SaleLabel_Code] ON [Label_SaleLabel] ([Code]);
GO
CREATE UNIQUE INDEX [IX_Label_SaleLabel_Code] ON [Label_SaleLabel] ([Code])
CREATE UNIQUE INDEX [IX_Label_SerialCode_RuleCode_SerialNumber] ON [Label_SerialCode] ([RuleCode], [SerialNumber]);
GO
CREATE UNIQUE INDEX [IX_Label_SerialCode_RuleCode_SerialNumber] ON [Label_SerialCode] ([RuleCode], [SerialNumber])

36
be/Hosts/Core.Host/Win_in.Sfs.Core.Host/scripts/db.Microsoft.EntityFrameworkCore.SqlServer.MessageDbContext.sql

@ -15,8 +15,7 @@ CREATE TABLE [Message_Announcement] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Message_Announcement] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Message_MessageType] (
@ -36,8 +35,7 @@ CREATE TABLE [Message_MessageType] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Message_MessageType] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Message_MessageTypeSubscribe] (
@ -55,8 +53,7 @@ CREATE TABLE [Message_MessageTypeSubscribe] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Message_MessageTypeSubscribe] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Message_NotifyMessage] (
@ -75,8 +72,7 @@ CREATE TABLE [Message_NotifyMessage] (
[MessageLevel] nvarchar(64) NOT NULL,
[SendTime] datetime2 NOT NULL,
CONSTRAINT [PK_Message_NotifyMessage] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Message_PrivateMessage] (
@ -100,8 +96,7 @@ CREATE TABLE [Message_PrivateMessage] (
[MessageLevel] nvarchar(64) NOT NULL,
[SendTime] datetime2 NOT NULL,
CONSTRAINT [PK_Message_PrivateMessage] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Message_UserNotifyMessage] (
@ -127,31 +122,24 @@ CREATE TABLE [Message_UserNotifyMessage] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Message_UserNotifyMessage] PRIMARY KEY ([Id])
);
GO
)
CREATE INDEX [IX_Message_Announcement_Title] ON [Message_Announcement] ([Title]);
GO
CREATE INDEX [IX_Message_Announcement_Title] ON [Message_Announcement] ([Title])
CREATE INDEX [IX_Message_MessageType_MessageTypeCode] ON [Message_MessageType] ([MessageTypeCode]);
GO
CREATE INDEX [IX_Message_MessageType_MessageTypeCode] ON [Message_MessageType] ([MessageTypeCode])
CREATE INDEX [IX_Message_MessageTypeSubscribe_UserId_MessageTypeId] ON [Message_MessageTypeSubscribe] ([UserId], [MessageTypeId]);
GO
CREATE INDEX [IX_Message_MessageTypeSubscribe_UserId_MessageTypeId] ON [Message_MessageTypeSubscribe] ([UserId], [MessageTypeId])
CREATE INDEX [IX_Message_NotifyMessage_Title] ON [Message_NotifyMessage] ([Title]);
GO
CREATE INDEX [IX_Message_NotifyMessage_Title] ON [Message_NotifyMessage] ([Title])
CREATE INDEX [IX_Message_PrivateMessage_FromUserId_ToUserId_Title] ON [Message_PrivateMessage] ([FromUserId], [ToUserId], [Title]);
GO
CREATE INDEX [IX_Message_PrivateMessage_FromUserId_ToUserId_Title] ON [Message_PrivateMessage] ([FromUserId], [ToUserId], [Title])
CREATE INDEX [IX_Message_UserNotifyMessage_UserId_MessageId] ON [Message_UserNotifyMessage] ([UserId], [MessageId]);
GO
CREATE INDEX [IX_Message_UserNotifyMessage_UserId_MessageId] ON [Message_UserNotifyMessage] ([UserId], [MessageId])

63
be/Hosts/Wms.Host/Win_in.Sfs.Wms.Store.HttpApi.Host/scripts/db.Microsoft.EntityFrameworkCore.SqlServer.InventoryDbContext.sql

@ -38,8 +38,7 @@ CREATE TABLE [Inventory_Balance] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Inventory_Balance] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Inventory_Container] (
@ -64,8 +63,7 @@ CREATE TABLE [Inventory_Container] (
[Worker] nvarchar(max) NULL,
[Number] nvarchar(max) NULL,
CONSTRAINT [PK_Inventory_Container] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Inventory_ErpBalance] (
@ -85,8 +83,7 @@ CREATE TABLE [Inventory_ErpBalance] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Inventory_ErpBalance] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Inventory_ExpectIn] (
@ -121,8 +118,7 @@ CREATE TABLE [Inventory_ExpectIn] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Inventory_ExpectIn] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Inventory_ExpectOut] (
@ -157,8 +153,7 @@ CREATE TABLE [Inventory_ExpectOut] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Inventory_ExpectOut] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Inventory_LocationCapacity] (
@ -177,8 +172,7 @@ CREATE TABLE [Inventory_LocationCapacity] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Inventory_LocationCapacity] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Inventory_Snapshot] (
@ -215,8 +209,7 @@ CREATE TABLE [Inventory_Snapshot] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Inventory_Snapshot] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Inventory_Transaction] (
@ -260,8 +253,7 @@ CREATE TABLE [Inventory_Transaction] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Inventory_Transaction] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Inventory_TransferLog] (
@ -314,8 +306,7 @@ CREATE TABLE [Inventory_TransferLog] (
[TenantId] uniqueidentifier NULL,
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Inventory_TransferLog] PRIMARY KEY ([Id])
);
GO
)
CREATE TABLE [Inventory_ContainerDetail] (
@ -349,51 +340,39 @@ CREATE TABLE [Inventory_ContainerDetail] (
[Remark] nvarchar(3072) NULL,
CONSTRAINT [PK_Inventory_ContainerDetail] PRIMARY KEY ([Id]),
CONSTRAINT [FK_Inventory_ContainerDetail_Inventory_Container_MasterID] FOREIGN KEY ([MasterID]) REFERENCES [Inventory_Container] ([Id]) ON DELETE CASCADE
);
GO
)
CREATE UNIQUE INDEX [IX_Inventory_Balance_PackingCode_Status_LocationCode_ItemCode_Lot_ContainerCode] ON [Inventory_Balance] ([PackingCode], [Status], [LocationCode], [ItemCode], [Lot], [ContainerCode]) WHERE [ContainerCode] IS NOT NULL;
GO
CREATE UNIQUE INDEX [IX_Inventory_Balance_PackingCode_Status_LocationCode_ItemCode_Lot_ContainerCode] ON [Inventory_Balance] ([PackingCode], [Status], [LocationCode], [ItemCode], [Lot], [ContainerCode]) WHERE [ContainerCode] IS NOT NULL
CREATE UNIQUE INDEX [IX_Inventory_Container_ContainerCode] ON [Inventory_Container] ([ContainerCode]);
GO
CREATE UNIQUE INDEX [IX_Inventory_Container_ContainerCode] ON [Inventory_Container] ([ContainerCode])
CREATE INDEX [IX_Inventory_ContainerDetail_MasterID] ON [Inventory_ContainerDetail] ([MasterID]);
GO
CREATE INDEX [IX_Inventory_ContainerDetail_MasterID] ON [Inventory_ContainerDetail] ([MasterID])
CREATE UNIQUE INDEX [IX_Inventory_ContainerDetail_PackingCode_Lot_ItemCode] ON [Inventory_ContainerDetail] ([PackingCode], [Lot], [ItemCode]);
GO
CREATE UNIQUE INDEX [IX_Inventory_ContainerDetail_PackingCode_Lot_ItemCode] ON [Inventory_ContainerDetail] ([PackingCode], [Lot], [ItemCode])
CREATE UNIQUE INDEX [IX_Inventory_ErpBalance_ItemCode_Lot_LocationCode_Status] ON [Inventory_ErpBalance] ([ItemCode], [Lot], [LocationCode], [Status]) WHERE [Lot] IS NOT NULL;
GO
CREATE UNIQUE INDEX [IX_Inventory_ErpBalance_ItemCode_Lot_LocationCode_Status] ON [Inventory_ErpBalance] ([ItemCode], [Lot], [LocationCode], [Status]) WHERE [Lot] IS NOT NULL
CREATE UNIQUE INDEX [IX_Inventory_ExpectIn_PackingCode_LocationCode_ItemCode_JobNumber] ON [Inventory_ExpectIn] ([PackingCode], [LocationCode], [ItemCode], [JobNumber]);
GO
CREATE UNIQUE INDEX [IX_Inventory_ExpectIn_PackingCode_LocationCode_ItemCode_JobNumber] ON [Inventory_ExpectIn] ([PackingCode], [LocationCode], [ItemCode], [JobNumber])
CREATE UNIQUE INDEX [IX_Inventory_ExpectOut_PackingCode_Status_ItemCode_LocationCode_Lot_JobNumber] ON [Inventory_ExpectOut] ([PackingCode], [Status], [ItemCode], [LocationCode], [Lot], [JobNumber]) WHERE [Lot] IS NOT NULL;
GO
CREATE UNIQUE INDEX [IX_Inventory_ExpectOut_PackingCode_Status_ItemCode_LocationCode_Lot_JobNumber] ON [Inventory_ExpectOut] ([PackingCode], [Status], [ItemCode], [LocationCode], [Lot], [JobNumber]) WHERE [Lot] IS NOT NULL
CREATE UNIQUE INDEX [IX_Inventory_LocationCapacity_LocationCode] ON [Inventory_LocationCapacity] ([LocationCode]);
GO
CREATE UNIQUE INDEX [IX_Inventory_LocationCapacity_LocationCode] ON [Inventory_LocationCapacity] ([LocationCode])
CREATE UNIQUE INDEX [IX_Inventory_Snapshot_SnapshotDate_SnapshotTime_PackingCode] ON [Inventory_Snapshot] ([SnapshotDate], [SnapshotTime], [PackingCode]);
GO
CREATE UNIQUE INDEX [IX_Inventory_Snapshot_SnapshotDate_SnapshotTime_PackingCode] ON [Inventory_Snapshot] ([SnapshotDate], [SnapshotTime], [PackingCode])
CREATE UNIQUE INDEX [IX_Inventory_Transaction_TransNumber] ON [Inventory_Transaction] ([TransNumber]);
GO
CREATE UNIQUE INDEX [IX_Inventory_Transaction_TransNumber] ON [Inventory_Transaction] ([TransNumber])
CREATE UNIQUE INDEX [IX_Inventory_TransferLog_TransferNumber] ON [Inventory_TransferLog] ([TransferNumber]);
GO
CREATE UNIQUE INDEX [IX_Inventory_TransferLog_TransferNumber] ON [Inventory_TransferLog] ([TransferNumber])

1038
be/Hosts/Wms.Host/Win_in.Sfs.Wms.Store.HttpApi.Host/scripts/db.Microsoft.EntityFrameworkCore.SqlServer.StoreDbContext.sql

File diff suppressed because it is too large

5
be/Modules/Shared/src/Win_in.Sfs.Shared.Host/HostBuilderExtensions.cs

@ -3,12 +3,10 @@ using System.Globalization;
using System.Net.Http;
using System.Reflection;
using Microsoft.AspNetCore.Builder;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Serilog;
using Serilog.Extensions.Hosting;
using Volo.Abp.Modularity;
namespace Win_in.Sfs.Shared.Host;
@ -28,7 +26,8 @@ public static class HostBuilderExtensions
Log.Information($"Starting web host ${Assembly.GetEntryAssembly().GetName().Name}");
builder.Host.ConfigureAppConfiguration((hc, cb) =>
{
var configUrl = cb.Build().GetValue("", "http://localhost:21093/settings/").TrimEnd('/');
var defaultUrl = builder.Environment.IsDevelopment() ? "http://localhost:21093/settings/" : "http://gateway/settings/";
var configUrl = cb.Build().GetValue("", defaultUrl.TrimEnd('/'));
AddJsonByUrl(cb, $"{configUrl}/appsettings.json");
if (builder.Environment.IsDevelopment())
{

2
be/Modules/Shared/src/Win_in.Sfs.Shared.Host/ModuleBase.cs

@ -168,11 +168,11 @@ public abstract class ModuleBase<T> : AbpModule where T : AbpModule
{
//dbContext.Database.BeginTransaction();
dbContext.Database.ExecuteSqlRaw(sql);
dbContext.Database.ExecuteSqlRaw($"INSERT INTO EFDbContext VALUES ('{contextName}', '{md5}');");
context.ServiceProvider
.GetRequiredService<IDataSeeder>()
.SeedAsync()
.Wait();
dbContext.Database.ExecuteSqlRaw($"INSERT INTO EFDbContext VALUES ('{contextName}', '{md5}');");
//dbContext.Database.CommitTransaction();
Console.WriteLine($"{contextName} 初始化成功");
}

2
build/src/docker/publish/.env

@ -3,6 +3,7 @@ PORTAINER_CE_VERSION=linux-amd64
SQLSERVER_VERSION=2022-latest
SEQ_VERSION=2022.1
MYSQL_VERSION=8.0.31
POSTGRES_VERSION=15.2
REDIS_VERSION=7.0.7
TRAEFIK_VERSION=v2.9.6
CADDY_VERSION=2.6.4
@ -42,3 +43,4 @@ NGINX_PORT3=21382
# Config
MYSQL_ROOT_PASSWORD=aA123456!
MSSQL_SA_PASSWORD=aA123456!

5
build/src/docker/publish/conf/gateway/Caddyfile

@ -12,6 +12,11 @@
}
reverse_proxy @sfs-auth-web /api/* sfs-auth-web:59093
@sfs-auth-web-ids {
path_regexp ^/api/(connect)/*
}
reverse_proxy @sfs-auth-web-ids /* sfs-auth-web:59093
@sfs-basedata-host {
path_regexp ^/api/basedata/*
}

5
build/src/docker/publish/conf/gateway/Caddyfile.dev

@ -12,6 +12,11 @@
}
reverse_proxy @sfs-auth-web /api/* host.docker.internal:59093
@sfs-auth-web-ids {
path_regexp ^/api/(connect)/*
}
reverse_proxy @sfs-auth-web-ids /* host.docker.internal:59093
@sfs-basedata-host {
path_regexp ^/api/basedata/*
}

2
build/src/docker/publish/conf/gateway/traefik-config.development.yml

@ -4,7 +4,7 @@ http:
rule: "PathPrefix(`/api/{service:(label|filestore|reporting|message)}/`)"
service: sfs-core-host
sfs-auth-web:
rule: "PathPrefix(`/api/{service:(abp|identity|base|multi-tenancy|permission-management)}/`)"
rule: "PathPrefix(`/api/auth/{service:(abp|identity|base|multi-tenancy|permission-management)}/`)"
service: sfs-auth-web
sfs-basedata-host:
rule: "PathPrefix(`/api/basedata/`)"

72
build/src/docker/publish/docker-compose.development.yml

@ -1,34 +1,54 @@
version: "3.8"
services:
sqlserver:
image: mcr.microsoft.com/mssql/server:${SQLSERVER_VERSION}
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=aA123456!
ports:
- ${SQLSERVER_PORT}:1433
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./data/sqlserver:/var/opt/mssql/data
- ./logs/sqlserver:/var/opt/mssql/log
postgres:
image: postgres:15.2
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=aA123456!
ports:
- ${POSTGRES_PORT}:5432
volumes:
- ./data/postgres:/var/lib/postgresql/data
# database:
# container_name: mysql-101
# image: mysql:${MYSQL_VERSION}
# restart: always
# environment:
# - TZ=Asia/Shanghai
# - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
# ports:
# - ${MYSQL_PORT1}:3306
# volumes:
# - /etc/localtime:/etc/localtime:ro
# - ./data/mysql/mysql-101:/var/lib/mysql
# - ./conf/mysql/mysql-101/my.cnf:/etc/mysql/conf.d/my.cnf
# - ./conf/mysql/mysql-101/initdb.d:/docker-entrypoint-initdb.d
# command: bash -c "chmod 644 /etc/mysql/conf.d/my.cnf && docker-entrypoint.sh --default-authentication-plugin=mysql_native_password"
# healthcheck:
# test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
# interval: 10s
# timeout: 10s
# retries: 10
# phpmyadmin:
# image: phpmyadmin:${PHPMYADMIN_VERSION}
# restart: always
# environment:
# - PMA_ARBITRARY=1
# ports:
# - ${PHPMYADMIN_PORT}:80
# depends_on:
# - database
# postgres:
# image: postgres:${POSTGRES_VERSION}
# environment:
# - POSTGRES_USER=root
# - POSTGRES_PASSWORD=aA123456!
# ports:
# - ${POSTGRES_PORT}:5432
# volumes:
# - ./data/postgres:/var/lib/postgresql/data
# gateway:
# volumes:
# - ./conf/gateway/traefik-config.development.yml:/etc/traefik/config/traefik-config.yml
# #- ./conf/gateway/Caddyfile.dev:/etc/caddy/Caddyfile
# # nacos:
# # volumes:
# # - ./settings:/home/nacos/settings
gateway:
volumes:
- ./conf/gateway/traefik-config.development.yml:/etc/traefik/config/traefik-config.yml
#- ./conf/gateway/Caddyfile.dev:/etc/caddy/Caddyfile
# nacos:
# volumes:
# - ./settings:/home/nacos/settings
- ./conf/gateway/Caddyfile.dev:/etc/caddy/Caddyfile
fe-pc:
image: node:16.19.1
privileged: true

50
build/src/docker/publish/docker-compose.production.yml

@ -1,21 +1,6 @@
version: "3.8"
services:
sfs-core-host:
image: mcr.microsoft.com/dotnet/aspnet:${ASPNET_VERSION}
restart: always
environment:
- ASPNETCORE_URLS=http://0.0.0.0:59092
ports:
- ${SFS_CORE_PORT}:59092
volumes:
- /etc/localtime:/etc/localtime:ro
- ./apps/be/Sfs.Core.Host:/app
working_dir: /app
command: bash -c "dotnet Win_in.Sfs.Core.HttpApi.Host.dll"
depends_on:
- redis
- config
sfs-auth-web:
image: mcr.microsoft.com/dotnet/aspnet:${ASPNET_VERSION}
restart: always
@ -29,9 +14,9 @@ services:
working_dir: /app
command: bash -c "dotnet Win_in.Sfs.Auth.Web.dll"
depends_on:
- database
- redis
- config
- sfs-core-host
- gateway
sfs-basedata-host:
image: mcr.microsoft.com/dotnet/aspnet:${ASPNET_VERSION}
restart: always
@ -45,9 +30,27 @@ services:
working_dir: /app
command: bash -c "dotnet Win_in.Sfs.Basedata.HttpApi.Host.dll"
depends_on:
- database
- redis
- config
- gateway
- sfs-auth-web
sfs-core-host:
image: mcr.microsoft.com/dotnet/aspnet:${ASPNET_VERSION}
restart: always
environment:
- ASPNETCORE_URLS=http://0.0.0.0:59092
ports:
- ${SFS_CORE_PORT}:59092
volumes:
- /etc/localtime:/etc/localtime:ro
- ./apps/be/Sfs.Core.Host:/app
working_dir: /app
command: bash -c "dotnet Win_in.Sfs.Core.HttpApi.Host.dll"
depends_on:
- database
- redis
- gateway
- sfs-basedata-host
sfs-wms-host:
image: mcr.microsoft.com/dotnet/aspnet:${ASPNET_VERSION}
restart: always
@ -61,9 +64,10 @@ services:
working_dir: /app
command: bash -c "dotnet Win_in.Sfs.Wms.Store.HttpApi.Host.dll"
depends_on:
- database
- redis
- config
- sfs-basedata-host
- gateway
- sfs-core-host
sfs-pda-host:
image: mcr.microsoft.com/dotnet/aspnet:${ASPNET_VERSION}
restart: always
@ -77,8 +81,9 @@ services:
working_dir: /app
command: bash -c "dotnet Win_in.Sfs.Wms.Pda.Host.dll"
depends_on:
- database
- redis
- config
- gateway
- sfs-wms-host
sfs-dashboard-host:
image: mcr.microsoft.com/dotnet/aspnet:${ASPNET_VERSION}
@ -93,7 +98,8 @@ services:
working_dir: /app
command: bash -c "dotnet Win_in.Sfs.Wms.Dashboard.Host.dll"
depends_on:
- database
- redis
- config
- gateway
- sfs-wms-host

94
build/src/docker/publish/docker-compose.yml

@ -22,42 +22,40 @@ services:
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data/seq/data:/data
config:
image: kklldog/agile_config:mysqlconnector
restart: always
environment:
- urls=http://*:8848
- adminConsole=true
- db__provider=mysql
- db__conn=Server=mysql-101;Port=3306;Database=configcenter;Uid=root;Pwd=aA123456!
ports:
- ${CONFIG_PORT}:8848
volumes:
- /etc/localtime:/etc/localtime
- ./conf/agile/appsettings.Production.json:/app/appsetting.Production.json
- ./data/agile:/app/data
depends_on:
- mysql-101
# config:
# image: kklldog/agile_config:mysqlconnector
# restart: always
# environment:
# - urls=http://*:8848
# - adminConsole=true
# - db__provider=sqlite
# - db__conn="Server=Data Source=config.db"
# ports:
# - ${CONFIG_PORT}:8848
# volumes:
# - /etc/localtime:/etc/localtime
# - ./conf/agile/appsettings.Production.json:/app/appsetting.Production.json
# - ./data/agile:/app/data
# gateway:
# image: traefik:${TRAEFIK_VERSION}
# restart: always
# ports:
# - ${GATEWAY_PORT}:80
# - 8280:8080
# volumes:
# - /etc/localtime:/etc/localtime:ro
# - ./conf/gateway/traefik.yml:/etc/traefik/traefik.yml
# - ./conf/gateway/traefik-config.yml:/etc/traefik/config/traefik-config.yml
gateway:
image: traefik:${TRAEFIK_VERSION}
restart: always
image: caddy:${CADDY_VERSION}
ports:
- ${GATEWAY_PORT}:80
- 8280:8080
volumes:
- /etc/localtime:/etc/localtime:ro
- ./conf/gateway/traefik.yml:/etc/traefik/traefik.yml
- ./conf/gateway/traefik-config.yml:/etc/traefik/config/traefik-config.yml
# gateway:
# image: caddy:${CADDY_VERSION}
# ports:
# - 59099:80
# volumes:
# - /etc/localtime:/etc/localtime:ro
# - ./settings:/usr/share/caddy/settings
# - ./conf/gateway/Caddyfile:/etc/caddy/Caddyfile
# - ./data/caddy:/data
# restart: always
- ./settings:/usr/share/caddy/settings
- ./conf/gateway/Caddyfile:/etc/caddy/Caddyfile
- ./data/caddy:/data
restart: always
nginx:
image: nginx:${NGINX_VERSION}
restart: always
@ -78,32 +76,24 @@ services:
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data/redis:/data
mysql-101:
container_name: mysql-101
image: mysql:${MYSQL_VERSION}
restart: always
database:
image: mcr.microsoft.com/mssql/server:${SQLSERVER_VERSION}
environment:
- TZ=Asia/Shanghai
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=${MSSQL_SA_PASSWORD}
ports:
- ${MYSQL_PORT1}:3306
- ${SQLSERVER_PORT}:1433
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./data/mysql/mysql-101:/var/lib/mysql
- ./conf/mysql/mysql-101/my.cnf:/etc/mysql/conf.d/my.cnf
- ./conf/mysql/mysql-101/initdb.d:/docker-entrypoint-initdb.d
command: bash -c "chmod 644 /etc/mysql/conf.d/my.cnf && docker-entrypoint.sh --default-authentication-plugin=mysql_native_password"
- ./data/sqlserver:/var/opt/mssql/data
- ./logs/sqlserver:/var/opt/mssql/log
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
test:
[
"CMD",
"/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P ${MSSQL_SA_PASSWORD} -Q 'select 0'||exit 1"
]
interval: 10s
timeout: 10s
retries: 10
phpmyadmin:
image: phpmyadmin:${PHPMYADMIN_VERSION}
restart: always
environment:
- PMA_ARBITRARY=1
ports:
- ${PHPMYADMIN_PORT}:80
depends_on:
- mysql-101

60
build/src/docker/publish/settings/appsettings.Development.json

@ -54,50 +54,30 @@
"UseAuth": "true"
},
"ConnectionStrings": {
"AbpAuditLogging": "Server=localhost;Port=21196;Database=Wms;Uid=root;Pwd=aA123456!;",
"AbpBackgroundJobs": "Server=localhost;Port=21196;Database=Wms;Uid=root;Pwd=aA123456!;",
"AbpBlobStoring": "Server=localhost;Port=21196;Database=Wms;Uid=root;Pwd=aA123456!;",
"AbpFeatureManagement": "Server=localhost;Port=21196;Database=Wms;Uid=root;Pwd=aA123456!;",
"AbpIdentity": "Server=localhost;Port=21196;Database=Wms;Uid=root;Pwd=aA123456!;",
"AbpIdentityServer": "Server=localhost;Port=21196;Database=Wms;Uid=root;Pwd=aA123456!;",
"AbpPermissionManagement": "Server=localhost;Port=21196;Database=Wms;Uid=root;Pwd=aA123456!;",
"AbpSettingManagement": "Server=localhost;Port=21196;Database=Wms;Uid=root;Pwd=aA123456!;",
"AbpTenantManagement": "Server=localhost;Port=21196;Database=Wms;Uid=root;Pwd=aA123456!;",
"Auth": "Server=localhost;Port=21196;Database=Wms;Uid=root;Pwd=aA123456!;",
"Basedata": "Server=localhost;Port=21196;Database=Wms;Uid=root;Pwd=aA123456!;",
"DataExchange": "Server=localhost;Port=21196;Database=Wms;Uid=root;Pwd=aA123456!;",
"FileStorage": "Server=localhost;Port=21196;Database=Wms;Uid=root;Pwd=aA123456!;",
"Inventory": "Server=localhost;Port=21196;Database=Wms;Uid=root;Pwd=aA123456!;",
"Job": "Server=localhost;Port=21196;Database=Wms;Uid=root;Pwd=aA123456!;",
"Label": "Server=localhost;Port=21196;Database=Wms;Uid=root;Pwd=aA123456!;",
"Message": "Server=localhost;Port=21196;Database=Wms;Uid=root;Pwd=aA123456!;",
"Store": "Server=localhost;Port=21196;Database=Wms;Uid=root;Pwd=aA123456!;"
"AbpAuditLogging": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"AbpBackgroundJobs": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"AbpBlobStoring": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"AbpFeatureManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"AbpIdentity": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"AbpIdentityServer": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"AbpPermissionManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"AbpSettingManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"AbpTenantManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"Auth": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"Basedata": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"DataExchange": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"FileStorage": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"Inventory": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"Job": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"Label": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"Message": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"Store": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;"
},
// "ConnectionStrings": {
// "AbpAuditLogging": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=600;",
// "AbpBackgroundJobs": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=600;",
// "AbpBlobStoring": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=600;",
// "AbpFeatureManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=600;",
// "AbpIdentity": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=600;",
// "AbpIdentityServer": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=600;",
// "AbpPermissionManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=600;",
// "AbpSettingManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=600;",
// "AbpTenantManagement": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=600;",
// "Auth": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=600;",
// "Basedata": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=600;",
// "DataExchange": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=600;",
// "FileStorage": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=600;",
// "Inventory": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=600;",
// "Job": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=600;",
// "Label": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=600;",
// "Message": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=600;",
// "Store": "Server=localhost,21195;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=600;"
// },
"IdentityClients": {
"Default": {
"Authority": "http://dev.ccwin-in.com:59093",
"Authority": "http://localhost:59093",
"ClientId": "Auth_App",
"ClientSecret": "1q2w3e*",
"ClientSecret": "1q2w3E*",
"GrantType": "client_credentials",
"RequireHttps": "false",
"Scope": "Auth"

233
build/src/docker/publish/settings/appsettings.json

@ -1,155 +1,146 @@
{
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"System": "Warning"
}
},
"WriteTo": [
{
"Name": "Async",
"Args": {
"configure": [
{
"Name": "File",
"Args": {
"path": "logs/log.txt",
"rollingInterval": "Day",
"retainedFileCountLimit": "30"
}
}
]
}
},
{
"Name": "Seq",
"Args": {
"serverUrl": "http://seq:5341"
}
}
]
},
"AlwaysAllowAuthorization": "True",
"App": {
"CorsOrigins": [
//--------HTTP-------DEV
"http://localhost:59080", //PC-
"http://localhost:59081", //-
"http://localhost:59090", //PC-
"http://localhost:59091", //-
"http://localhost:59093", //
"http://localhost:59094", //-
"http://localhost:59095", //WMS-
"http://localhost:59096", //PDA-
"http://localhost:59097", //
"http://localhost:59098", //-
"http://localhost:59099", //
//--------HTTP-------
"http://localhost:59090", //PC-
"http://localhost:59091", //-
"http://localhost:59093", //
"http://localhost:59094", //-
"http://localhost:59095", //WMS-
"http://localhost:59096", //PDA-
"http://localhost:59097", //
"http://localhost:59098", //-
"http://localhost:59099", //
//--------HTTPS-------DEV
"https://localhost:59090", //PC-
"https://localhost:59091", //-
"https://localhost:59093", //
"https://localhost:59094", //-
"https://localhost:59095", //WMS-
"https://localhost:59096", //PDA-
"https://localhost:59097", //
"https://localhost:59098", //-
"https://localhost:59099", //
//--------HTTPS-------
"https://localhost:59090", //PC-
"https://localhost:59091", //-
"https://localhost:59093", //
"https://localhost:59094", //-
"https://localhost:59095", //WMS-
"https://localhost:59096", //PDA-
"https://localhost:59097", //
"https://localhost:59098", //-
"https://localhost:59099" //
"http://localhost:59080",
"http://localhost:59081",
"http://localhost:59090",
"http://localhost:59091",
"http://localhost:59093",
"http://localhost:59094",
"http://localhost:59095",
"http://localhost:59096",
"http://localhost:59097",
"http://localhost:59098",
"http://localhost:59099",
"http://localhost:59090",
"http://localhost:59091",
"http://localhost:59093",
"http://localhost:59094",
"http://localhost:59095",
"http://localhost:59096",
"http://localhost:59097",
"http://localhost:59098",
"http://localhost:59099",
"https://localhost:59090",
"https://localhost:59091",
"https://localhost:59093",
"https://localhost:59094",
"https://localhost:59095",
"https://localhost:59096",
"https://localhost:59097",
"https://localhost:59098",
"https://localhost:59099",
"https://localhost:59090",
"https://localhost:59091",
"https://localhost:59093",
"https://localhost:59094",
"https://localhost:59095",
"https://localhost:59096",
"https://localhost:59097",
"https://localhost:59098",
"https://localhost:59099",
"http://localhost:9527"
]
},
"ConnectionStrings": {
"Auth": "Server=mysql-101;Port=3306;Database=Wms;Uid=root;Pwd=aA123456!;",
"AbpIdentity": "Server=mysql-101;Port=3306;Database=Wms;Uid=root;Pwd=aA123456!;",
"AbpIdentityServer": "Server=mysql-101;Port=3306;Database=Wms;Uid=root;Pwd=aA123456!;",
"AbpPermissionManagement": "Server=mysql-101;Port=3306;Database=Wms;Uid=root;Pwd=aA123456!;",
"AbpSettingManagement": "Server=mysql-101;Port=3306;Database=Wms;Uid=root;Pwd=aA123456!;",
"AbpTenantManagement": "Server=mysql-101;Port=3306;Database=Wms;Uid=root;Pwd=aA123456!;",
"AbpFeatureManagement": "Server=mysql-101;Port=3306;Database=Wms;Uid=root;Pwd=aA123456!;",
"AbpBackgroundJobs": "Server=mysql-101;Port=3306;Database=Wms;Uid=root;Pwd=aA123456!;",
"AbpAuditLogging": "Server=mysql-101;Port=3306;Database=Wms;Uid=root;Pwd=aA123456!;",
"AbpBlobStoring": "Server=mysql-101;Port=3306;Database=Wms;Uid=root;Pwd=aA123456!;",
"Store": "Server=mysql-101;Port=3306;Database=Wms;Uid=root;Pwd=aA123456!;",
"Job": "Server=mysql-101;Port=3306;Database=Wms;Uid=root;Pwd=aA123456!;",
"Basedata": "Server=mysql-101;Port=3306;Database=Wms;Uid=root;Pwd=aA123456!;",
"Inventory": "Server=mysql-101;Port=3306;Database=Wms;Uid=root;Pwd=aA123456!;",
"Message": "Server=mysql-101;Port=3306;Database=Wms;Uid=root;Pwd=aA123456!;",
"Label": "Server=mysql-101;Port=3306;Database=Wms;Uid=root;Pwd=aA123456!;",
"FileStorage": "Server=mysql-101;Port=3306;Database=Wms;Uid=root;Pwd=aA123456!;",
"DataExchange": "Server=mysql-101;Port=3306;Database=Wms;Uid=root;Pwd=aA123456!;"
},
"Redis": {
"Configuration": "redis:6379",
"KeyPrefix": "Wms:"
},
"AuthServer": {
"UseAuth": "true",
"Authority": "http://dev.ccwin-in.com:59093/",
"Audience": "Auth",
"Authority": "http://localhost:21093/",
"ClientId": "Auth_App",
"ClientSecret": "1q2w3E*",
"RequireHttpsMetadata": "false",
"SwaggerClientId": "Auth_App",
"SwaggerClientSecret": "1q2w3e*",
"Audience": "Auth",
"ClientId": "Auth_App",
"ClientSecret": "1q2w3e*"
"UseAuth": "true"
},
"Database": "SQLServer",
"ConnectionStrings": {
"AbpAuditLogging": "Server=database,1433;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"AbpBackgroundJobs": "Server=database,1433;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"AbpBlobStoring": "Server=database,1433;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"AbpFeatureManagement": "Server=database,1433;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"AbpIdentity": "Server=database,1433;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"AbpIdentityServer": "Server=database,1433;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"AbpPermissionManagement": "Server=database,1433;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"AbpSettingManagement": "Server=database,1433;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"AbpTenantManagement": "Server=database,1433;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"Auth": "Server=database,1433;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"Basedata": "Server=database,1433;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"DataExchange": "Server=database,1433;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"FileStorage": "Server=database,1433;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"Inventory": "Server=database,1433;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"Job": "Server=database,1433;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"Label": "Server=database,1433;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"Message": "Server=database,1433;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;",
"Store": "Server=database,1433;Database=Wms;Uid=sa;Pwd=aA123456!;timeout=6000;"
},
"IdentityClients": {
"Default": {
"GrantType": "client_credentials",
"Authority": "http://localhost:59093",
"ClientId": "Auth_App",
"ClientSecret": "1q2w3e*",
"ClientSecret": "1q2w3E*",
"GrantType": "client_credentials",
"RequireHttps": "false",
"Authority": "http://dev.ccwin-in.com:59093",
"Scope": "Auth"
}
},
"IsMultiTenancy": "True",
"Redis": {
"Configuration": "redis:6379",
"KeyPrefix": "Wms:"
},
"RemoteServices": {
"Default": {
"BaseUrl": "http://dev.ccwin-in.com:59093"
"Auth": {
"BaseUrl": "http://dev.ccwin-in.com:59093/"
},
"BaseData": {
"BaseUrl": "http://dev.ccwin-in.com:59094/"
},
"Store": {
"BaseUrl": "http://dev.ccwin-in.com:59095/"
"Default": {
"BaseUrl": "http://dev.ccwin-in.com:59093"
},
"Job": {
"BaseUrl": "http://dev.ccwin-in.com:59095/"
"FileStorage": {
"BaseUrl": "http://dev.ccwin-in.com:59092/"
},
"Inventory": {
"BaseUrl": "http://dev.ccwin-in.com:59095/"
},
"FileStorage": {
"BaseUrl": "http://dev.ccwin-in.com:59092/"
"Job": {
"BaseUrl": "http://dev.ccwin-in.com:59095/"
},
"Message": {
"Label": {
"BaseUrl": "http://dev.ccwin-in.com:59092/"
},
"Label": {
"Message": {
"BaseUrl": "http://dev.ccwin-in.com:59092/"
},
"Auth": {
"BaseUrl": "http://dev.ccwin-in.com:59093/"
"Store": {
"BaseUrl": "http://dev.ccwin-in.com:59095/"
}
},
"AlwaysAllowAuthorization": true,
"IsMultiTenancy": true
}
"Serilog": {
"WriteTo": [
{
"Args": {
"configure": [
{
"Args": {
"path": "logs/log.txt",
"retainedFileCountLimit": "30",
"rollingInterval": "Day"
},
"Name": "File"
}
]
},
"Name": "Async"
},
{
"Args": {
"serverUrl": "http://seq:5341"
},
"Name": "Seq"
}
]
}
}
Loading…
Cancel
Save