USE [befri_Goldhoo]
GO

/****** Object:  Table [Discount].[DiscountAcc]    Script Date: 2020/12/1 14:44:53 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [Discount].[DiscountAcc](
	[WarehouseId] [int] NOT NULL,
	[InventoryId] [int] NOT NULL,
	[Quantity] [numeric](9, 0) NOT NULL,
	[DiscountCoef] [numeric](5, 2) NULL,
 CONSTRAINT [PK_DISCOUNTACC] PRIMARY KEY CLUSTERED 
(
	[WarehouseId] ASC,
	[InventoryId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

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'
GO

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'
GO

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'
GO

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'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'�ۿ۹���.�ۿ۲�Ʒ����' , @level0type=N'SCHEMA',@level0name=N'Discount', @level1type=N'TABLE',@level1name=N'DiscountAcc'
GO