SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DownLoad_Class](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_DownLoad_Class_proclass_name]  DEFAULT (''),
	[orderid] [int] NOT NULL CONSTRAINT [DF_DownLoad_Class_proclass_order]  DEFAULT ((0)),
	[naviid] [int] NOT NULL CONSTRAINT [DF_DownLoad_Class_proclass_menuid]  DEFAULT ((0)),
	[keyword] [nvarchar](300) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_DownLoad_Class_proclass_key]  DEFAULT (''),
	[description] [nvarchar](300) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_DownLoad_Class_proclass_description]  DEFAULT (''),
	[parent] [int] NOT NULL CONSTRAINT [DF_DownLoad_Class_parent]  DEFAULT ((0)),
	[intro] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_DownLoad_Class_intro]  DEFAULT (''),
 CONSTRAINT [PK_DownLoad_Class] 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'DownLoad_Class', @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'DownLoad_Class', @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'DownLoad_Class', @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'DownLoad_Class', @level2type=N'COLUMN', @level2name=N'naviid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'下载模型-分类表(SEO关键字)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'DownLoad_Class', @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'DownLoad_Class', @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'DownLoad_Class', @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'DownLoad_Class', @level2type=N'COLUMN', @level2name=N'intro'
