USE [CallCenter_XinXiangXLX]
GO

/****** Object:  Table [dbo].[T_Wo_QuestionManage]    Script Date: 06/14/2019 09:07:55 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[T_Wo_QuestionManage]') AND type in (N'U'))
DROP TABLE [dbo].[T_Wo_QuestionManage]
GO

USE [CallCenter_XinXiangXLX]
GO

/****** Object:  Table [dbo].[T_Wo_QuestionManage]    Script Date: 06/14/2019 09:07:55 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[T_Wo_QuestionManage](
	[F_Id] [int] IDENTITY(1,1) NOT NULL,
	[F_QuestionName] [nvarchar](500) NULL,--问题
	[F_QuestionContent] [ntext] NULL,--问题描述及概念
	[F_ParentId] [int] NULL,--父级
	[F_Label] [nvarchar](500) NULL,--级别
	[F_DealMethods] [nvarchar](500) NULL,--处理方式
	[F_Type] [nvarchar](500) NULL,--类型
	[F_Remark] [ntext] NULL,
	[F_CreateBy] [varchar](50) NULL,
	[F_CreateOn] [datetime] NULL,
	[F_UpdateCount] [int] NULL,
	[F_UpdateBy] [varchar](50) NULL,
	[F_UpdateOn] [datetime] NULL,
	[F_IsDelete] [int] NULL,
	[F_DeleteBy] [varchar](50) NULL,
	[F_DeleteOn] [datetime] NULL,
 CONSTRAINT [PK_T_Wo_QuestionManage] PRIMARY KEY CLUSTERED 
(
	[F_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]

GO

SET ANSI_PADDING OFF
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_QuestionManage', @level2type=N'COLUMN',@level2name=N'F_Id'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'问题名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_QuestionManage', @level2type=N'COLUMN',@level2name=N'F_QuestionName'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'问题描述及概念' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_QuestionManage', @level2type=N'COLUMN',@level2name=N'F_QuestionContent'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'父级ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_QuestionManage', @level2type=N'COLUMN',@level2name=N'F_ParentId'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'级别' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_QuestionManage', @level2type=N'COLUMN',@level2name=N'F_Label'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'处理方式' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_QuestionManage', @level2type=N'COLUMN',@level2name=N'F_DealMethods'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'类型：投诉/抽检/咨询及需求' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_QuestionManage', @level2type=N'COLUMN',@level2name=N'F_Type'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_QuestionManage', @level2type=N'COLUMN',@level2name=N'F_Remark'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'创建人工号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_QuestionManage', @level2type=N'COLUMN',@level2name=N'F_CreateBy'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'创建时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_QuestionManage', @level2type=N'COLUMN',@level2name=N'F_CreateOn'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'修改次数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_QuestionManage', @level2type=N'COLUMN',@level2name=N'F_UpdateCount'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'修改人工号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_QuestionManage', @level2type=N'COLUMN',@level2name=N'F_UpdateBy'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'修改时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_QuestionManage', @level2type=N'COLUMN',@level2name=N'F_UpdateOn'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否删除：0否，1是' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_QuestionManage', @level2type=N'COLUMN',@level2name=N'F_IsDelete'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'删除人工号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_QuestionManage', @level2type=N'COLUMN',@level2name=N'F_DeleteBy'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'删除时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_QuestionManage', @level2type=N'COLUMN',@level2name=N'F_DeleteOn'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'问题类别表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_QuestionManage'
GO