序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | QuestionId | int | 4 | 0 | 是 | 是 | 否 | 问题编号 | ||
2 | UserId | int | 4 | 0 | 否 | 发表问题用户编号 | ||||
3 | Title | nvarchar | 100 | 0 | 是 | 标题 | ||||
4 | Content | ntext | 16 | 0 | 是 | 内容 | ||||
5 | Priority | varchar | 50 | 0 | 是 | 优先级 | ||||
6 | Type | varchar | 50 | 0 | 是 | 类型 | ||||
7 | ReadCount | int | 4 | 0 | 是 | 0 | 已读次数 | |||
8 | SubTime | datetime | 8 | 3 | 是 | 提交时间 | ||||
9 | State | varchar | 50 | 0 | 是 | 状态 | ||||
10 | SolveTime | datetime | 8 | 3 | 是 | 解决时间 | ||||
11 | Path | varchar | 1000 | 0 | 是 | 附件路径 | ||||
12 | Root | varchar | 50 | 0 | 是 | 问题来源 | ||||
13 | RootInfo | varchar | 50 | 0 | 是 | 来源附件信息 | ||||
14 | RequestTime | datetime | 8 | 3 | 否 | 希望解决时间 | ||||
15 | OrderType | int | 4 | 0 | 是 | 0 | 订单ID(0-非订单) | |||
16 | Remind | nvarchar | 500 | 0 | 是 | |||||
17 | CCUser | nvarchar | 4000 | 0 | 是 | 抄送人 | ||||
18 | UserName | nvarchar | 100 | 0 | 是 | 用户名称 |
有问必答记录表
GO
CREATE TABLE [dbo].[ZL_IServer](
[QuestionId] [int] IDENTITY(1,1) NOT NULL,
[UserId] [int] NOT NULL,
[UserName] [nvarchar](100) NULL,
[Title] [nvarchar](100) NULL,
[Content] [ntext] NULL,
[Priority] [varchar](50) NULL,
[Type] [varchar](50) NULL,
[ReadCount] [int] NULL,
[SubTime] [datetime] NULL,
[State] [varchar](50) NULL,
[SolveTime] [datetime] NULL,
[Path] [varchar](1000) NULL,
[Root] [varchar](50) NULL,
[RootInfo] [varchar](50) NULL,
[RequestTime] [datetime] NOT NULL,
[OrderType] [int] NULL,
[Remind] [nvarchar](500) NOT NULL,
[CCUser] [nvarchar](4000) NULL,
CONSTRAINT [PK_ZL_IServer] PRIMARY KEY CLUSTERED
([QuestionId] 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]
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'问题编号' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'QuestionId'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'发表问题用户编号' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @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_IServer', @level2type=N'COLUMN', @level2name=N'Title'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'内容' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'Content'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'优先级' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'Priority'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'类型' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'Type'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'已读次数' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'ReadCount'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'提交时间' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'SubTime'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'状态' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'State'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'解决时间' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'SolveTime'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'附件路径' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'Path'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'问题来源' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'Root'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'来源附件信息' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'RootInfo'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'希望解决时间' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'RequestTime'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'订单ID(0-非订单)' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_IServer', @level2type=N'COLUMN',@level2name=N'OrderType'
detele from ZL_IServer
drop table ZL_IServer
TRUNCATE table ZL_IServer