序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | Title | nvarchar | 200 | 0 | 是 | 问卷标题 | ||||
3 | CUser | int | 4 | 0 | 是 | 创建人 | ||||
4 | Remind | nvarchar | 500 | 0 | 是 | 备注信息 | ||||
5 | ZType | int | 4 | 0 | 是 | 问卷类型 | ||||
6 | ZStatus | int | 4 | 0 | 是 | 问卷状态 | ||||
7 | CDate | datetime | 8 | 3 | 是 | 添加时间 | ||||
8 | PreViewImg | nvarchar | 1000 | 0 | 是 | 预览图,用于微信分享 | ||||
9 | EndDate | datetime | 8 | 3 | 是 | 终止日期 | ||||
10 | AdminID | int | 4 | 0 | 是 | |||||
11 | StartDate | datetime | 8 | 3 | 是 | 问卷开始时间 | ||||
12 | IsShowResult | int | 4 | 0 | 是 | 答完是否显示结果 | ||||
13 | IsIPLimit | int | 4 | 0 | 是 | 限制IP | ||||
14 | IsNeedLogin | int | 4 | 0 | 是 | 是否需要登录 | ||||
15 | IsEnableVCode | int | 4 | 0 | 是 | 是否需要验证码 |
问卷问题表
GO
CREATE TABLE [dbo].[ZL_Design_Ask](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Title] [nvarchar](200) NULL,
[CUser] [int] NULL,
[Remind] [ntext] NULL,
[ZType] [int] NULL,
[ZStatus] [int] NULL,
[CDate] [datetime] NULL,
[PreViewImg] [nvarchar](1000) NULL,
[EndDate] [datetime] NULL,
[AdminID] [int] NULL,
[StartDate] [datetime] NULL,
[IsShowResult] [int] NULL,
[IsIPLimit] [int] NULL,
[IsNeedLogin] [int] NULL,
[IsEnableVCode] [int] NULL,
CONSTRAINT [PK_ZL_Design_Ask] PRIMARY KEY CLUSTERED
([ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
detele from ZL_Design_Ask
drop table ZL_Design_Ask
TRUNCATE table ZL_Design_Ask