ALTER TABLE [dbo].[T_REQUEST_IN_PROTOCOL] ADD [IsCoincide] bit
GO
UPDATE [dbo].[T_REQUEST_IN_PROTOCOL] SET [IsCoincide]=0
GO
ALTER TABLE [dbo].[T_REQUEST_IN_PROTOCOL] ALTER COLUMN [IsCoincide] bit NOT NULL
GO



      -- Tables
      
          /***** Object:  Table [dbo].[T_PLAN_VALUE_PROPOSAL] *****/
          CREATE TABLE [dbo].[T_PLAN_VALUE_PROPOSAL]
          (
	  [PlanValueProposalID] uniqueidentifier NOT NULL,
                  [Value] decimal(31,10) NOT NULL,
                  [PlanParameter] uniqueidentifier NOT NULL,
                  [PlanItem] uniqueidentifier NOT NULL
          ) ON [PRIMARY]
          GO
        
      -- Alters
      
              ALTER TABLE [dbo].[T_PLAN_VALUE_PROPOSAL] WITH NOCHECK ADD CONSTRAINT [PK_T_PLAN_VALUE_PROPOSAL]
              PRIMARY KEY CLUSTERED ([PlanValueProposalID]) ON [PRIMARY]
              GO
          
              ALTER TABLE [dbo].[T_PLAN_VALUE_PROPOSAL] WITH NOCHECK ADD CONSTRAINT [FK_T_PLAN_PARAMETER_T_PLAN_VALUE_PROPOSAL_PLANPARAMETER] FOREIGN KEY([PlanParameter])
              REFERENCES [dbo].[T_PLAN_PARAMETER] ([PayParametrID])
              GO
              ALTER TABLE [dbo].[T_PLAN_VALUE_PROPOSAL] WITH NOCHECK ADD CONSTRAINT [FK_T_PLAN_ITEM_T_PLAN_VALUE_PROPOSAL_PLANITEM] FOREIGN KEY([PlanItem])
              REFERENCES [dbo].[T_PLAN_ITEM] ([PlanItemID])
              GO