IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_T_ENTITIES_T_DELETED_OBJECT_INFO_ENTITIES]') AND parent_object_id = OBJECT_ID(N'[dbo].[T_DELETED_OBJECT_INFO]'))
ALTER TABLE [dbo].[T_DELETED_OBJECT_INFO] DROP CONSTRAINT [FK_T_ENTITIES_T_DELETED_OBJECT_INFO_ENTITIES]
GO
/****** Object:  Table [dbo].[T_DELETED_OBJECT_INFO]    Script Date: 04.08.2016 16:07:32 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[T_DELETED_OBJECT_INFO]') AND type in (N'U'))
DROP TABLE [dbo].[T_DELETED_OBJECT_INFO]
GO



-- Tables
/***** Object:  Table [dbo].[T_DELETED_OBJECT_INFO] *****/
CREATE TABLE [dbo].[T_DELETED_OBJECT_INFO]
(
  [Entities] int NOT NULL,
  [Lexem] text NOT NULL
) ON [PRIMARY]
GO

-- Alters
ALTER TABLE [dbo].[T_DELETED_OBJECT_INFO] WITH NOCHECK ADD CONSTRAINT [PK_T_DELETED_OBJECT_INFO]
PRIMARY KEY CLUSTERED ([Entities]) ON [PRIMARY]
GO