CREATE TABLE IF NOT EXISTS `ImmoProjectEvent` ( 
`Id` int(11) NOT NULL AUTO_INCREMENT, 
`Name` TEXT  NOT NULL,
`DateEvent` DATE  NOT NULL,
`HourEvent` TEXT  NULL,
`Description` TEXT  NOT NULL,
`Result` TEXT  NULL,
`ProjectId` INT  NOT NULL,
PRIMARY KEY (`Id`),
CONSTRAINT `ImmoProject_ImmoProjectEvent` FOREIGN KEY (`ProjectId`) REFERENCES `ImmoProject`(`Id`)
) ENGINE=InnoDB  DEFAULT CHARACTER SET `utf8`; 