CREATE TABLE `AIApplication` (
    `Id` int(11) NOT NULL,
    `IsDeleted` int(11),
    `DeveloperName` varchar(255),
    `Language` varchar(255),
    `MasterLabel` varchar(255),
    `NamespacePrefix` 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),
    `Status` varchar(255),
    `Type` varchar(255),
    PRIMARY KEY (`Id`) ,
    CONSTRAINT `FK_AIApplication_CreatedById` FOREIGN KEY (`CreatedById`) REFERENCES `User` (`Id`),
    CONSTRAINT `FK_AIApplication_LastModifiedById` FOREIGN KEY (`LastModifiedById`) REFERENCES `User` (`Id`)
);
CREATE TABLE `AIApplication` (
    `Id` int(11) NOT NULL,
    `IsDeleted` int(11),
    `DeveloperName` varchar(255),
    `Language` varchar(255),
    `MasterLabel` varchar(255),
    `NamespacePrefix` 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),
    `Status` varchar(255),
    `Type` varchar(255),
    PRIMARY KEY (`Id`) ,
    CONSTRAINT `FK_AIApplication_CreatedById` FOREIGN KEY (`CreatedById`) REFERENCES `User` (`Id`),
    CONSTRAINT `FK_AIApplication_LastModifiedById` FOREIGN KEY (`LastModifiedById`) REFERENCES `User` (`Id`)
);
CREATE TABLE `AIApplication` (
    `Id` int(11) NOT NULL,
    `IsDeleted` int(11),
    `DeveloperName` varchar(255),
    `Language` varchar(255),
    `MasterLabel` varchar(255),
    `NamespacePrefix` 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),
    `Status` varchar(255),
    `Type` varchar(255),
    PRIMARY KEY (`Id`) ,
    CONSTRAINT `FK_AIApplication_CreatedById` FOREIGN KEY (`CreatedById`) REFERENCES `User` (`Id`),
    CONSTRAINT `FK_AIApplication_LastModifiedById` FOREIGN KEY (`LastModifiedById`) REFERENCES `User` (`Id`)
);
CREATE TABLE `AIApplicationConfig` (
    `Id` int(11) NOT NULL,
    `IsDeleted` int(11),
    `DeveloperName` varchar(255),
    `Language` varchar(255),
    `MasterLabel` varchar(255),
    `NamespacePrefix` 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),
    PRIMARY KEY (`Id`) ,
    CONSTRAINT `FK_AIApplicationConfig_CreatedById` FOREIGN KEY (`CreatedById`) REFERENCES `User` (`Id`),
    CONSTRAINT `FK_AIApplicationConfig_LastModifiedById` FOREIGN KEY (`LastModifiedById`) REFERENCES `User` (`Id`)
);
