SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Product_Brand](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Brand_probrand_name]  DEFAULT (''),
	[orderid] [int] NOT NULL CONSTRAINT [DF_Product_Brand_probrand_order]  DEFAULT ((0)),
	[naviid] [int] NOT NULL CONSTRAINT [DF_Product_Brand_probrand_menuid]  DEFAULT ((0)),
	[picpath] [nvarchar](80) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Brand_picpath]  DEFAULT (''),
	[keyword] [nvarchar](300) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Brand_probrand_key]  DEFAULT (''),
	[description] [nvarchar](300) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Brand_probrand_description]  DEFAULT (''),
	[parent] [int] NOT NULL CONSTRAINT [DF_Product_Brand_parent]  DEFAULT ((0)),
	[intro] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Brand_intro]  DEFAULT (''),
 CONSTRAINT [PK_Product_Brand] 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_Brand', @level2type=N'COLUMN', @level2name=N'id'

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

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

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

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型- 品牌表(品牌logo图片)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Brand', @level2type=N'COLUMN', @level2name=N'picpath'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型- 品牌表(SEO关键字)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Brand', @level2type=N'COLUMN', @level2name=N'keyword'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型- 品牌表(SEO说明)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Brand', @level2type=N'COLUMN', @level2name=N'description'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型- 品牌表(父级ID,0为父级)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Brand', @level2type=N'COLUMN', @level2name=N'parent'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型- 品牌表(产品品牌介绍)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Brand', @level2type=N'COLUMN', @level2name=N'intro'