
2016-12-22 更新如下：

表[QC_SystemModel]改动：
QC_ModelDesk	int	Checked
QC_ModelDeskTitle	nvarchar(20)	Checked
QC_ModelDeskSql	nvarchar(MAX)	Checked
QC_ModelDeskAud	int	Checked
QC_ModelDeskAudTitle	nvarchar(20)	Checked
QC_ModelDeskAudSql	nvarchar(MAX)	Checked

执行语句：update [QC_SystemModel] set QC_ModelAudFiles=QC_ModelListFiles

执行语句：
USE [改成你的数据库名]
GO

/****** Object:  Table [dbo].[QC_OfficeMailCategory]    Script Date: 2016-12-19 21:58:36 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[QC_OfficeMailCategory](
	[CategoryID] [int] IDENTITY(1,1) NOT NULL,
	[QC_CategoryName] [nvarchar](50) NULL,
	[QC_CategorySort] [int] NULL,
	[QC_CategoryOwnerUser] [int] NULL,
	[QC_CategoryOwnerDept] [int] NULL,
	[QC_CategoryCreateUser] [int] NULL,
	[QC_CategoryCreateName] [nvarchar](50) NULL,
	[QC_CategoryCreateDept] [int] NULL,
	[QC_CategoryCreateTime] [datetime] NULL,
	[QC_CategoryEditorUser] [int] NULL,
	[QC_CategoryEditorName] [nvarchar](50) NULL,
	[QC_CategoryEditorDept] [int] NULL,
	[QC_CategoryEditorTime] [datetime] NULL,
	[QC_CategoryDelUser] [int] NULL,
	[QC_CategoryDelName] [nvarchar](50) NULL,
	[QC_CategoryDelDept] [int] NULL,
	[QC_CategoryDelTime] [datetime] NULL,
	[QC_CategoryDelStat] [int] NULL,
	[QC_CategoryClickNum] [int] NULL,
	[QC_CategoryPrintNum] [int] NULL,
	[QC_CategoryAud1User] [int] NULL,
	[QC_CategoryAud1Dept] [int] NULL,
	[QC_CategoryAud1Time] [datetime] NULL,
	[QC_CategoryAud1Stat] [int] NULL,
	[QC_CategoryAud1Sign] [nvarchar](max) NULL,
	[QC_CategoryAud1Cond] [nvarchar](max) NULL,
	[QC_CategoryAud2User] [int] NULL,
	[QC_CategoryAud2Dept] [int] NULL,
	[QC_CategoryAud2Time] [datetime] NULL,
	[QC_CategoryAud2Stat] [int] NULL,
	[QC_CategoryAud2Sign] [nvarchar](max) NULL,
	[QC_CategoryAud2Cond] [nvarchar](max) NULL,
	[QC_CategoryAud3User] [int] NULL,
	[QC_CategoryAud3Dept] [int] NULL,
	[QC_CategoryAud3Time] [datetime] NULL,
	[QC_CategoryAud3Stat] [int] NULL,
	[QC_CategoryAud3Sign] [nvarchar](max) NULL,
	[QC_CategoryAud3Cond] [nvarchar](max) NULL,
	[QC_CategoryAud4User] [int] NULL,
	[QC_CategoryAud4Dept] [int] NULL,
	[QC_CategoryAud4Time] [datetime] NULL,
	[QC_CategoryAud4Stat] [int] NULL,
	[QC_CategoryAud4Sign] [nvarchar](max) NULL,
	[QC_CategoryAud4Cond] [nvarchar](max) NULL,
 CONSTRAINT [PK_QC_OfficeMailCategory] PRIMARY KEY CLUSTERED 
(
	[CategoryID] 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

/****** Object:  Table [dbo].[QC_OfficeMsnCategory]    Script Date: 2016-12-19 21:58:36 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[QC_OfficeMsnCategory](
	[CategoryID] [int] IDENTITY(1,1) NOT NULL,
	[QC_CategoryName] [nvarchar](50) NULL,
	[QC_CategorySort] [int] NULL,
	[QC_CategoryOwnerUser] [int] NULL,
	[QC_CategoryOwnerDept] [int] NULL,
	[QC_CategoryCreateUser] [int] NULL,
	[QC_CategoryCreateName] [nvarchar](50) NULL,
	[QC_CategoryCreateDept] [int] NULL,
	[QC_CategoryCreateTime] [datetime] NULL,
	[QC_CategoryEditorUser] [int] NULL,
	[QC_CategoryEditorName] [nvarchar](50) NULL,
	[QC_CategoryEditorDept] [int] NULL,
	[QC_CategoryEditorTime] [datetime] NULL,
	[QC_CategoryDelUser] [int] NULL,
	[QC_CategoryDelName] [nvarchar](50) NULL,
	[QC_CategoryDelDept] [int] NULL,
	[QC_CategoryDelTime] [datetime] NULL,
	[QC_CategoryDelStat] [int] NULL,
	[QC_CategoryClickNum] [int] NULL,
	[QC_CategoryPrintNum] [int] NULL,
	[QC_CategoryAud1User] [int] NULL,
	[QC_CategoryAud1Dept] [int] NULL,
	[QC_CategoryAud1Time] [datetime] NULL,
	[QC_CategoryAud1Stat] [int] NULL,
	[QC_CategoryAud1Sign] [nvarchar](max) NULL,
	[QC_CategoryAud1Cond] [nvarchar](max) NULL,
	[QC_CategoryAud2User] [int] NULL,
	[QC_CategoryAud2Dept] [int] NULL,
	[QC_CategoryAud2Time] [datetime] NULL,
	[QC_CategoryAud2Stat] [int] NULL,
	[QC_CategoryAud2Sign] [nvarchar](max) NULL,
	[QC_CategoryAud2Cond] [nvarchar](max) NULL,
	[QC_CategoryAud3User] [int] NULL,
	[QC_CategoryAud3Dept] [int] NULL,
	[QC_CategoryAud3Time] [datetime] NULL,
	[QC_CategoryAud3Stat] [int] NULL,
	[QC_CategoryAud3Sign] [nvarchar](max) NULL,
	[QC_CategoryAud3Cond] [nvarchar](max) NULL,
	[QC_CategoryAud4User] [int] NULL,
	[QC_CategoryAud4Dept] [int] NULL,
	[QC_CategoryAud4Time] [datetime] NULL,
	[QC_CategoryAud4Stat] [int] NULL,
	[QC_CategoryAud4Sign] [nvarchar](max) NULL,
	[QC_CategoryAud4Cond] [nvarchar](max) NULL,
 CONSTRAINT [PK_QC_OfficeMsnCategory] PRIMARY KEY CLUSTERED 
(
	[CategoryID] 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

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategorySort]  DEFAULT ((0)) FOR [QC_CategorySort]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryOwnerUser]  DEFAULT ((0)) FOR [QC_CategoryOwnerUser]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryOwnerDept]  DEFAULT ((0)) FOR [QC_CategoryOwnerDept]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryCreateUser]  DEFAULT ((0)) FOR [QC_CategoryCreateUser]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryCreateDept]  DEFAULT ((0)) FOR [QC_CategoryCreateDept]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryEditorUser]  DEFAULT ((0)) FOR [QC_CategoryEditorUser]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryEditorDept]  DEFAULT ((0)) FOR [QC_CategoryEditorDept]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryDelUser]  DEFAULT ((0)) FOR [QC_CategoryDelUser]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryDelDept]  DEFAULT ((0)) FOR [QC_CategoryDelDept]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryDelStat]  DEFAULT ((0)) FOR [QC_CategoryDelStat]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryClickNum]  DEFAULT ((0)) FOR [QC_CategoryClickNum]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryPrintNum]  DEFAULT ((0)) FOR [QC_CategoryPrintNum]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryAud1User]  DEFAULT ((0)) FOR [QC_CategoryAud1User]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryAud1Dept]  DEFAULT ((0)) FOR [QC_CategoryAud1Dept]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryAud1Stat]  DEFAULT ((0)) FOR [QC_CategoryAud1Stat]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryAud2User]  DEFAULT ((0)) FOR [QC_CategoryAud2User]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryAud2Dept]  DEFAULT ((0)) FOR [QC_CategoryAud2Dept]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryAud2Stat]  DEFAULT ((0)) FOR [QC_CategoryAud2Stat]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryAud3User]  DEFAULT ((0)) FOR [QC_CategoryAud3User]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryAud3Dept]  DEFAULT ((0)) FOR [QC_CategoryAud3Dept]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryAud3Stat]  DEFAULT ((0)) FOR [QC_CategoryAud3Stat]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryAud4User]  DEFAULT ((0)) FOR [QC_CategoryAud4User]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryAud4Dept]  DEFAULT ((0)) FOR [QC_CategoryAud4Dept]
GO

ALTER TABLE [dbo].[QC_OfficeMailCategory] ADD  CONSTRAINT [DF_QC_OfficeMailCategory_QC_CategoryAud4Stat]  DEFAULT ((0)) FOR [QC_CategoryAud4Stat]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategorySort]  DEFAULT ((0)) FOR [QC_CategorySort]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryOwnerUser]  DEFAULT ((0)) FOR [QC_CategoryOwnerUser]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryOwnerDept]  DEFAULT ((0)) FOR [QC_CategoryOwnerDept]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryCreateUser]  DEFAULT ((0)) FOR [QC_CategoryCreateUser]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryCreateDept]  DEFAULT ((0)) FOR [QC_CategoryCreateDept]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryEditorUser]  DEFAULT ((0)) FOR [QC_CategoryEditorUser]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryEditorDept]  DEFAULT ((0)) FOR [QC_CategoryEditorDept]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryDelUser]  DEFAULT ((0)) FOR [QC_CategoryDelUser]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryDelDept]  DEFAULT ((0)) FOR [QC_CategoryDelDept]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryDelStat]  DEFAULT ((0)) FOR [QC_CategoryDelStat]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryClickNum]  DEFAULT ((0)) FOR [QC_CategoryClickNum]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryPrintNum]  DEFAULT ((0)) FOR [QC_CategoryPrintNum]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryAud1User]  DEFAULT ((0)) FOR [QC_CategoryAud1User]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryAud1Dept]  DEFAULT ((0)) FOR [QC_CategoryAud1Dept]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryAud1Stat]  DEFAULT ((0)) FOR [QC_CategoryAud1Stat]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryAud2User]  DEFAULT ((0)) FOR [QC_CategoryAud2User]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryAud2Dept]  DEFAULT ((0)) FOR [QC_CategoryAud2Dept]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryAud2Stat]  DEFAULT ((0)) FOR [QC_CategoryAud2Stat]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryAud3User]  DEFAULT ((0)) FOR [QC_CategoryAud3User]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryAud3Dept]  DEFAULT ((0)) FOR [QC_CategoryAud3Dept]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryAud3Stat]  DEFAULT ((0)) FOR [QC_CategoryAud3Stat]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryAud4User]  DEFAULT ((0)) FOR [QC_CategoryAud4User]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryAud4Dept]  DEFAULT ((0)) FOR [QC_CategoryAud4Dept]
GO

ALTER TABLE [dbo].[QC_OfficeMsnCategory] ADD  CONSTRAINT [DF_QC_OfficeMsnCategory_QC_CategoryAud4Stat]  DEFAULT ((0)) FOR [QC_CategoryAud4Stat]
GO


表QC_OfficeMsnInBox改动：
QC_MsnCategory	int	Checked

