CNCEC_SUBQHSE_WUHUAN/DataBase/版本日志/SUBQHSE_V2025-02-11-gf.sql

103 lines
5.0 KiB
Transact-SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

CREATE TABLE [dbo].[JDGL_WBS](
[Id] [nvarchar](50) NOT NULL,
[ProjectId] [nvarchar](50) NULL,
[ParentId] [nvarchar](50) NULL,
[ItemName] [nvarchar](50) NULL,
[ItemNum] [nvarchar](50) NULL,
[PlanStart] [datetime] NULL,
[PlanEnd] [datetime] NULL,
[RealityEnd] [datetime] NULL,
[PathCode] [nvarchar](50) NULL,
[PlanQuantities] [decimal](18, 2) NULL,
[RealityPrice] [decimal](18, 2) NULL,
[Total] [decimal](18, 2) NULL,
[Num] [decimal](18, 2) NULL,
[Cycle] [nvarchar](50) NULL,
[PlanPrice] [decimal](18, 2) NULL,
[Leave] [int] NULL,
CONSTRAINT [PK_JDGL_WBS] 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
ALTER TABLE [dbo].[JDGL_WBS] WITH CHECK ADD CONSTRAINT [FK_JDGL_WBS_JDGL_WBS] FOREIGN KEY([Id])
REFERENCES [dbo].[JDGL_WBS] ([Id])
GO
ALTER TABLE [dbo].[JDGL_WBS] CHECK CONSTRAINT [FK_JDGL_WBS_JDGL_WBS]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ö÷¼ü' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JDGL_WBS', @level2type=N'COLUMN',@level2name=N'Id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÏîÄ¿Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JDGL_WBS', @level2type=N'COLUMN',@level2name=N'ProjectId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Éϼ¶Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JDGL_WBS', @level2type=N'COLUMN',@level2name=N'ParentId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'WBSÃû³Æ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JDGL_WBS', @level2type=N'COLUMN',@level2name=N'ItemName'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'WBS±àÂë' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JDGL_WBS', @level2type=N'COLUMN',@level2name=N'ItemNum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¼Æ»®¿ªÊ¼Ê±¼ä' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JDGL_WBS', @level2type=N'COLUMN',@level2name=N'PlanStart'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¼Æ»®½áÊøÊ±¼ä' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JDGL_WBS', @level2type=N'COLUMN',@level2name=N'PlanEnd'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʵ¼ÊÍê³Éʱ¼ä' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JDGL_WBS', @level2type=N'COLUMN',@level2name=N'RealityEnd'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¹¤×÷°ü±àºÅ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JDGL_WBS', @level2type=N'COLUMN',@level2name=N'PathCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'½ø¶È¹ÜÀí×°Öù¤ÐòÖ÷Ïîרҵ·Ö²¿·ÖÏî±í±í' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JDGL_WBS'
GO
CREATE TABLE [dbo].[JDGL_WBSDetail](
[Id] [nvarchar](50) NOT NULL,
[ProjectId] [nvarchar](50) NULL,
[WorkPackageId] [nvarchar](50) NULL,
[CompletionTime] [datetime] NULL,
[Name] [nvarchar](100) NULL,
[RealityCompletePercent] [decimal](9, 2) NULL,
CONSTRAINT [PK_JDGL_WBSDetail] 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'Ö÷¼ü' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JDGL_WBSDetail', @level2type=N'COLUMN',@level2name=N'Id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÏîÄ¿Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JDGL_WBSDetail', @level2type=N'COLUMN',@level2name=N'ProjectId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¹¤×÷°üId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JDGL_WBSDetail', @level2type=N'COLUMN',@level2name=N'WorkPackageId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Íê³Éʱ¼ä' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JDGL_WBSDetail', @level2type=N'COLUMN',@level2name=N'CompletionTime'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¼ì²âµãÃû³Æ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JDGL_WBSDetail', @level2type=N'COLUMN',@level2name=N'Name'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʵ¼ÊÍê³É°Ù·Ö±È' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JDGL_WBSDetail', @level2type=N'COLUMN',@level2name=N'RealityCompletePercent'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¼ì²âµã±í' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JDGL_WBSDetail'
GO