1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| CREATE TABLE [dbo].[PriceLimitation]( [CategoryID] [int] NOT NULL, [ProdcutGroupID] [smallint] NOT NULL, [UserID] [int] NOT NULL, [StakeAmount] [numeric](18, 4) NOT NULL, [ProductID] [smallint] NOT NULL, CONSTRAINT [PK_PriceLimitation] PRIMARY KEY CLUSTERED ( [UserID] ASC, [CategoryID] ASC, [ProductID] ASC, [ProdcutGroupID] 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
CREATE TYPE [dbo].[uftt_PriceLimit] AS TABLE( [CategoryID] [int] NOT NULL, [ProdcutGroupID] [smallint] NOT NULL, [UserID] [int] NOT NULL, [StakeAmount] [numeric](18, 4) NOT NULL, [ProductID] [smallint] NOT NULL, PRIMARY KEY CLUSTERED ( [UserID] ASC, [CategoryID] ASC, [ProductID] ASC, [ProdcutGroupID] ASC )WITH (IGNORE_DUP_KEY = OFF) )
|