CREATE TABLE IF NOT EXISTS `DocumentEntity` ( 
`Id` int(11) NOT NULL AUTO_INCREMENT, 
`EntityName` Text NOT NULL, 
`EntityId` int(11) NULL, 
`Name` Text NULL,
`FileName` Text NULL,
`Url` Text NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB  DEFAULT CHARACTER SET `utf8`; 