--栏目表 create table tb_product_class ( id int identity, --自增id channel_id int not null default 0, --频道阿弟 title nvarchar(100) null, --标题 guid nvarchar(50) null, --guid parent_id int null default 0, --父级id class_list nvarchar(500) null, --栏目集 attribute_list nvarchar(500) null, --属性集 class_layer int null default 0, --深度 paixu int null default 0, --排序 url nvarchar(255) null default '', --链接 path nvarchar(255) null default '', --图片路径 content ntext null, --内容 seo_title nvarchar(255) null default '', --seo标题 seo_keywords nvarchar(255) null default '', --seo关键字 seo_description nvarchar(255) null default '', --seo描述 state int null default 0, --状态(0显示/1隐藏) constraint PK_TB_PRODUCT_CLASS primary key (id) ) go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '自增ID', 'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'id' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '状态(0显示/1隐藏)', 'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'state' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '频道阿弟', 'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'channel_id' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '名称', 'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'title' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', 'guid', 'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'guid' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '父级', 'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'parent_id' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '栏目集', 'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'class_list' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '属性集', 'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'attribute_list' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '深度', 'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'class_layer' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '排序', 'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'paixu' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '链接地址', 'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'url' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '图片路径', 'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'path' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '内容', 'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'content' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '优化标题', 'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'seo_title' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '优化关键字', 'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'seo_keywords' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '优化描述', 'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'seo_description' go