65 lines
2.8 KiB
Transact-SQL
65 lines
2.8 KiB
Transact-SQL
|
||
/****** Object: Table [dbo].[Manager_HseCostB] Script Date: 2021/8/10 19:58:15 ******/
|
||
SET ANSI_NULLS ON
|
||
GO
|
||
|
||
SET QUOTED_IDENTIFIER ON
|
||
GO
|
||
|
||
CREATE TABLE [dbo].[Manager_HseCostB](
|
||
[HseCostId] [nvarchar](50) NOT NULL,
|
||
[MonthReportId] [nvarchar](50) NULL,
|
||
[UnitId] [nvarchar](50) NULL,
|
||
[PlanCostA] [money] NULL,
|
||
[PlanCostB] [money] NULL,
|
||
[RealCostA] [money] NULL,
|
||
[ProjectRealCostA] [money] NULL,
|
||
[RealCostB] [money] NULL,
|
||
[ProjectRealCostB] [money] NULL,
|
||
[RealCostAB] [money] NULL,
|
||
[ProjectRealCostAB] [money] NULL,
|
||
CONSTRAINT [PK_Manager_HseCostB] PRIMARY KEY CLUSTERED
|
||
(
|
||
[HseCostId] 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].[Manager_HseCostB] WITH CHECK ADD CONSTRAINT [FK_Manager_HseCostB_Base_Unit] FOREIGN KEY([UnitId])
|
||
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Manager_HseCostB] CHECK CONSTRAINT [FK_Manager_HseCostB_Base_Unit]
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Manager_HseCostB] WITH CHECK ADD CONSTRAINT [FK_Manager_HseCostB_Manager_MonthReport] FOREIGN KEY([MonthReportId])
|
||
REFERENCES [dbo].[Manager_MonthReportB] ([MonthReportId])
|
||
GO
|
||
|
||
ALTER TABLE [dbo].[Manager_HseCostB] CHECK CONSTRAINT [FK_Manager_HseCostB_Manager_MonthReport]
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ö÷¼ü' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_HseCostB', @level2type=N'COLUMN',@level2name=N'HseCostId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ô±¨¸æ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_HseCostB', @level2type=N'COLUMN',@level2name=N'MonthReportId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'µ¥Î»' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_HseCostB', @level2type=N'COLUMN',@level2name=N'UnitId'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¼Æ»®¶î' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_HseCostB', @level2type=N'COLUMN',@level2name=N'PlanCostA'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʵ¼ÊÖ§³ö(µ±ÔÂ)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_HseCostB', @level2type=N'COLUMN',@level2name=N'RealCostA'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'×Üʵ¼ÊÖ§³ö' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_HseCostB', @level2type=N'COLUMN',@level2name=N'ProjectRealCostA'
|
||
GO
|
||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ô±¨¸æHSE¼¼Êõ´ëÊ©·ÑÓñí' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Manager_HseCostB'
|
||
GO
|
||
|
||
|