序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | Proname | nvarchar | 500 | 0 | 是 | 企业名称 | ||||
3 | PageTitle | nvarchar | 500 | 0 | 是 | 黄页标题 | ||||
4 | KeyWords | nvarchar | 1000 | 0 | 是 | 关键字 | ||||
5 | Description | nvarchar | 2000 | 0 | 是 | 说明 | ||||
6 | LOGO | nvarchar | 255 | 0 | 是 | LOGO | ||||
7 | Domain | nvarchar | 500 | 0 | 是 | 访问域名 | ||||
8 | Style | int | 4 | 0 | 是 | 风格 | ||||
9 | HeadHeight | int | 4 | 0 | 是 | 导航条高度 | ||||
10 | HeadColor | nvarchar | 255 | 0 | 是 | 导航条颜色 | ||||
11 | CommonModelID | int | 4 | 0 | 否 | ZL_CommonModel中的ID | ||||
12 | TableName | nvarchar | 255 | 0 | 是 | 模型名称 | ||||
13 | Hits | int | 4 | 0 | 是 | 点击数 | ||||
14 | InfoID | int | 4 | 0 | 否 | 模型内容ID | ||||
15 | Best | int | 4 | 0 | 是 | 0 | 推荐级别 | |||
16 | Status | int | 4 | 0 | 是 | 审核状态 | ||||
17 | UserID | int | 4 | 0 | 是 | 用户ID | ||||
18 | UserName | nvarchar | 255 | 0 | 是 | 用户名 | ||||
19 | ParentPageID | int | 4 | 0 | 是 | 上级黄页ID(上级商铺) | ||||
20 | ParentUserID | int | 4 | 0 | 是 | 上级用户ID | ||||
21 | PageInfo | ntext | 16 | 0 | 是 | 黄页说明 | ||||
22 | TopWords | ntext | 16 | 0 | 是 | 头部自定义HTML内容 | ||||
23 | BottonWords | ntext | 16 | 0 | 是 | 底部HTML内容 | ||||
24 | CreateTime | datetime | 8 | 3 | 是 | 创建时间 | ||||
25 | NodeStyle | int | 4 | 0 | 是 | 0 | 节点样式 | |||
26 | HeadBackGround | nvarchar | 255 | 0 | 是 | 导航背景 |
黄页信息表
GO
CREATE TABLE [dbo].[ZL_Page](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Proname] [nvarchar](500) COLLATE Chinese_PRC_CI_AS NULL,
[PageTitle] [nvarchar](500) COLLATE Chinese_PRC_CI_AS NULL,
[KeyWords] [nvarchar](1000) COLLATE Chinese_PRC_CI_AS NULL,
[Description] [nvarchar](2000) COLLATE Chinese_PRC_CI_AS NULL,
[LOGO] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
[Domain] [nvarchar](500) COLLATE Chinese_PRC_CI_AS NULL,
[Style] [int] NULL,
[HeadHeight] [int] NULL,
[HeadColor] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
[CommonModelID] [int] NOT NULL,
[TableName] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
[Hits] [int] NULL,
[InfoID] [int] NOT NULL,
[Best] [int] NULL CONSTRAINT [DF_ZL_Page_Best] DEFAULT (0),
[Status] [int] NULL,
[UserID] [int] NULL,
[UserName] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
[ParentPageID] [int] NULL,
[ParentUserID] [int] NULL,
[PageInfo] [ntext] COLLATE Chinese_PRC_CI_AS NULL,
[TopWords] [ntext] COLLATE Chinese_PRC_CI_AS NULL,
[BottonWords] [ntext] COLLATE Chinese_PRC_CI_AS NULL,
[CreateTime] [datetime] NULL,
[NodeStyle] [int] NULL CONSTRAINT [DF_ZL_Page_NodeStyle] DEFAULT (0),
[HeadBackGround] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
CONSTRAINT [PK_ZL_Page] PRIMARY KEY CLUSTERED
(
[ID] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'企业名称' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'Proname'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'黄页标题' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'PageTitle'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'关键字' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'KeyWords'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'说明' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'Description'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'LOGO' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'LOGO'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'访问域名' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'Domain'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'风格' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'Style'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'导航条高度' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'HeadHeight'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'导航条颜色' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'HeadColor'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'ZL_CommonModel中的ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'CommonModelID'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'模型名称' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'TableName'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'点击数' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'Hits'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'模型内容ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'InfoID'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'推荐级别' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'Best'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'审核状态' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'Status'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'用户ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'UserID'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'用户名' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'UserName'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'上级黄页ID(上级商铺)' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'ParentPageID'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'上级用户ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'ParentUserID'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'黄页说明' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'PageInfo'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'头部自定义HTML内容' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'TopWords'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'底部HTML内容' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'BottonWords'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'创建时间' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'CreateTime'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'节点样式' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'NodeStyle'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'导航背景' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'HeadBackGround'
detele from ZL_Page
drop table ZL_Page
TRUNCATE table ZL_Page