2020-11-30 14.18.sql 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. USE [befri_Goldhoo]
  2. GO
  3. /****** Object: Table [Discount].[DiscountAcc] Script Date: 2020/12/1 14:44:53 ******/
  4. SET ANSI_NULLS ON
  5. GO
  6. SET QUOTED_IDENTIFIER ON
  7. GO
  8. CREATE TABLE [Discount].[DiscountAcc](
  9. [WarehouseId] [int] NOT NULL,
  10. [InventoryId] [int] NOT NULL,
  11. [Quantity] [numeric](9, 0) NOT NULL,
  12. [DiscountCoef] [numeric](5, 2) NULL,
  13. CONSTRAINT [PK_DISCOUNTACC] PRIMARY KEY CLUSTERED
  14. (
  15. [WarehouseId] ASC,
  16. [InventoryId] ASC
  17. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  18. ) ON [PRIMARY]
  19. GO
  20. EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'仓库内码' , @level0type=N'SCHEMA',@level0name=N'Discount', @level1type=N'TABLE',@level1name=N'DiscountAcc', @level2type=N'COLUMN',@level2name=N'WarehouseId'
  21. GO
  22. EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'存货内码' , @level0type=N'SCHEMA',@level0name=N'Discount', @level1type=N'TABLE',@level1name=N'DiscountAcc', @level2type=N'COLUMN',@level2name=N'InventoryId'
  23. GO
  24. EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'数量' , @level0type=N'SCHEMA',@level0name=N'Discount', @level1type=N'TABLE',@level1name=N'DiscountAcc', @level2type=N'COLUMN',@level2name=N'Quantity'
  25. GO
  26. EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'折扣系数' , @level0type=N'SCHEMA',@level0name=N'Discount', @level1type=N'TABLE',@level1name=N'DiscountAcc', @level2type=N'COLUMN',@level2name=N'DiscountCoef'
  27. GO
  28. EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'折扣管理.折扣产品账务' , @level0type=N'SCHEMA',@level0name=N'Discount', @level1type=N'TABLE',@level1name=N'DiscountAcc'
  29. GO