SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Product_Item](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[naviid] [int] NOT NULL CONSTRAINT [DF_Product_Item_proitem_menuid]  DEFAULT ((0)),
	[productid] [int] NOT NULL CONSTRAINT [DF_Product_Item_proitem_pid]  DEFAULT ((0)),
	[name] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Item_proitem_name]  DEFAULT (''),
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Item_proitem_content]  DEFAULT (''),
	[orderid] [int] NOT NULL CONSTRAINT [DF_Product_Item_proitem_order]  DEFAULT ((0)),
 CONSTRAINT [PK_Product_Item] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-扩展项表(主键)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Item', @level2type=N'COLUMN', @level2name=N'id'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-扩展项表(所属导航ID)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Item', @level2type=N'COLUMN', @level2name=N'naviid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-扩展项表(所属产品ID)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Item', @level2type=N'COLUMN', @level2name=N'productid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-扩展项表(扩展项名称)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Item', @level2type=N'COLUMN', @level2name=N'name'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-扩展项表(扩展项内容)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Item', @level2type=N'COLUMN', @level2name=N'content'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-扩展项表(扩展项排序ID)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Item', @level2type=N'COLUMN', @level2name=N'orderid'
