CREATE TABLE `AcceptedEventRelation` (
    `Id` int(11) NOT NULL,
    `RelationId` int(11), -- foreign key: User.Id,
    `EventId` int(11), -- foreign key: Event.Id,
    `RespondedDate` varchar(255),
    `Response` varchar(255),
    `CreatedDate` varchar(255),
    `CreatedById` int(11), -- foreign key: User.Id,
    `LastModifiedDate` varchar(255),
    `LastModifiedById` int(11), -- foreign key: User.Id,
    `SystemModstamp` varchar(255),
    `IsDeleted` int(11),
    `Type` varchar(255),
    PRIMARY KEY (`Id`) ,
    CONSTRAINT `FK_AcceptedEventRelation_RelationId` FOREIGN KEY (`RelationId`) REFERENCES `User` (`Id`),
    CONSTRAINT `FK_AcceptedEventRelation_EventId` FOREIGN KEY (`EventId`) REFERENCES `Event` (`Id`),
    CONSTRAINT `FK_AcceptedEventRelation_CreatedById` FOREIGN KEY (`CreatedById`) REFERENCES `User` (`Id`),
    CONSTRAINT `FK_AcceptedEventRelation_LastModifiedById` FOREIGN KEY (`LastModifiedById`) REFERENCES `User` (`Id`)
);
