序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ZoneID | int | 4 | 0 | 是 | 是 | 否 | 广告版位ID | ||
2 | ZoneName | nvarchar | 100 | 0 | 是 | 广告版位名称 | ||||
3 | ZoneJSName | nvarchar | 100 | 0 | 是 | JS文件名 | ||||
4 | ZoneIntro | nvarchar | 255 | 0 | 是 | 版位介绍 | ||||
5 | ZoneType | int | 4 | 0 | 是 | 0 | 版位类型 | |||
6 | DefaultSetting | bit | 1 | 0 | 否 | 1 | 是否默认设置 | |||
7 | ZoneSetting | nvarchar | 255 | 0 | 是 | 具体自定义设置信息 | ||||
8 | ZoneWidth | int | 4 | 0 | 是 | 0 | 版位宽度 | |||
9 | ZoneHeight | int | 4 | 0 | 是 | 0 | 版位高度 | |||
10 | Active | bit | 1 | 0 | 否 | 0 | 是否活动 | |||
11 | ShowType | int | 4 | 0 | 是 | 0 | 显示方式 | |||
12 | UpdateTime | datetime | 8 | 3 | 否 | getdate | 创建时间 | |||
13 | Sales | int | 4 | 0 | 否 | 是否开放用户申请 |
广告模型表
GO
CREATE TABLE [dbo].[ZL_AdZone](
[ZoneID] [int] IDENTITY(1,1) NOT NULL,
[ZoneName] [nvarchar](100) NULL,
[ZoneJSName] [nvarchar](100) NULL,
[ZoneIntro] [nvarchar](255) NULL,
[ZoneType] [int] NULL CONSTRAINT [DF_ZL_AdZone_ZoneType] DEFAULT (0),
[DefaultSetting] [bit] NOT NULL CONSTRAINT [DF_ZL_AdZone_DefaultSetting] DEFAULT (1),
[ZoneSetting] [nvarchar](255) NULL,
[ZoneWidth] [int] NULL CONSTRAINT [DF_ZL_AdZone_ZoneWidth] DEFAULT (0),
[ZoneHeight] [int] NULL CONSTRAINT [DF_ZL_AdZone_ZoneHeight] DEFAULT (0),
[Active] [bit] NOT NULL CONSTRAINT [DF_ZL_AdZone_Active] DEFAULT (0),
[ShowType] [int] NULL CONSTRAINT [DF_ZL_AdZone_ShowType] DEFAULT (0),
[UpdateTime] [datetime] NOT NULL CONSTRAINT [DF_ZL_AdZone_UpdateTime] DEFAULT (getdate()),
[Sales] [int] NOT NULL,
CONSTRAINT [PK_ZL_AdZone] PRIMARY KEY CLUSTERED
([ZoneID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'JS文件名' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_AdZone', @level2type=N'COLUMN', @level2name=N'ZoneJSName'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'版位介绍' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_AdZone', @level2type=N'COLUMN', @level2name=N'ZoneIntro'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'版位类型' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_AdZone', @level2type=N'COLUMN', @level2name=N'ZoneType'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否默认设置' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_AdZone', @level2type=N'COLUMN', @level2name=N'DefaultSetting'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'具体自定义设置信息' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_AdZone', @level2type=N'COLUMN', @level2name=N'ZoneSetting'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'版位宽度' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_AdZone', @level2type=N'COLUMN', @level2name=N'ZoneWidth'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'版位高度' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_AdZone', @level2type=N'COLUMN', @level2name=N'ZoneHeight'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否活动' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_AdZone', @level2type=N'COLUMN', @level2name=N'Active'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'显示方式' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_AdZone', @level2type=N'COLUMN', @level2name=N'ShowType'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'创建时间' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_AdZone', @level2type=N'COLUMN', @level2name=N'UpdateTime'
detele from ZL_AdZone
drop table ZL_AdZone
TRUNCATE table ZL_AdZone