46 lines
2.1 KiB
Transact-SQL
46 lines
2.1 KiB
Transact-SQL
|
||
CREATE TABLE [dbo].[Report_CQMS_MonthReportItem](
|
||
[Id] [nvarchar](50) NOT NULL,
|
||
[ReportId] [nvarchar](50) NULL,
|
||
[ReType] [nvarchar](20) NULL,
|
||
[ContentName] [nvarchar](50) NULL,
|
||
[MonthsCount] [int] NULL,
|
||
[ProjectCount] [int] NULL,
|
||
[RectificationRate] [nvarchar](50) NULL,
|
||
[MonthsBackCount] [int] NULL,
|
||
[TotalNoBackCount] [int] NULL,
|
||
[Remarks] [nvarchar](500) NULL,
|
||
CONSTRAINT [PK_Report_CQMS_MonthReportItem] 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]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'分类(1-15.质量巡检情况,2-16.质量专项检查情况,3-17.质量文件上报情况)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Report_CQMS_MonthReportItem', @level2type=N'COLUMN',@level2name=N'ReType'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'整改率' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Report_CQMS_MonthReportItem', @level2type=N'COLUMN',@level2name=N'RectificationRate'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'本月业主/监理返回数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Report_CQMS_MonthReportItem', @level2type=N'COLUMN',@level2name=N'MonthsBackCount'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'累计未返回数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Report_CQMS_MonthReportItem', @level2type=N'COLUMN',@level2name=N'TotalNoBackCount'
|
||
GO
|
||
|
||
|
||
ALTER TABLE [dbo].[Report_RowMaterialProblem] DROP CONSTRAINT [FK_Report_RowMaterialProblem_Report_WeekAndMonthReport]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Report_ConstructionProblems] DROP CONSTRAINT [FK_Report_ConstructionProblems_Report_WeekAndMonthReport]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Report_NextQualityControl] DROP CONSTRAINT [FK_Report_NextQualityControl_Report_WeekAndMonthReport]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Report_ConstructionProblems] DROP CONSTRAINT [FK_Report_ConstructionProblems_Base_Unit]
|
||
GO
|
||
|
||
|