diff --git a/Model/Changes_2026-01-22 AI Promptbausteinfolder 2.txt b/Model/Changes_2026-01-22 AI Promptbausteinfolder 2.txt new file mode 100644 index 000000000..ce508dfd9 --- /dev/null +++ b/Model/Changes_2026-01-22 AI Promptbausteinfolder 2.txt @@ -0,0 +1,39 @@ +CREATE TABLE `.executedscripts` ( + `Name` varchar(255) UNIQUE, + `Datum` DATE +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +INSERT INTO `.executedscripts` +VALUES ('Changes_2026-01-22 AI Promptbausteinfolder 2', '2026-01-22'); + +CREATE TABLE `aipromptbausteinprompt2userfavorite` ( + `AiPromptbausteinPromptOid` bigint NOT NULL, + `ApplicationUserOid` bigint NOT NULL, + PRIMARY KEY (`AiPromptbausteinPromptOid`,`ApplicationUserOid`), + CONSTRAINT `FK_AIPROMPTBAUSTEIN2USERFAV_AIPROMPT` FOREIGN KEY (`AiPromptbausteinPromptOid`) REFERENCES `aipromptbausteinprompt` (`Oid`), + CONSTRAINT `FK_AIPROMPTBAUSTEIN2USERFAV_APPUSER` FOREIGN KEY (`ApplicationUserOid`) REFERENCES `applicationuser` (`Oid`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +CREATE TABLE `aipromptbausteinprompt2userhide` ( + `AiPromptbausteinPromptOid` bigint NOT NULL, + `ApplicationUserOid` bigint NOT NULL, + PRIMARY KEY (`AiPromptbausteinPromptOid`,`ApplicationUserOid`), + CONSTRAINT `FK_AIPROMPTBAUSTEIN2USERHIDE_AIPROMPT` FOREIGN KEY (`AiPromptbausteinPromptOid`) REFERENCES `aipromptbausteinprompt` (`Oid`), + CONSTRAINT `FK_AIPROMPTBAUSTEIN2USERHIDE_APPUSER` FOREIGN KEY (`ApplicationUserOid`) REFERENCES `applicationuser` (`Oid`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +CREATE TABLE `aipromptbausteinfolder2userhide` ( + `AiPromptbausteinFolderOid` bigint NOT NULL, + `ApplicationUserOid` bigint NOT NULL, + PRIMARY KEY (`AiPromptbausteinFolderOid`,`ApplicationUserOid`), + CONSTRAINT `FK_AIPROMPTBAUSTEIN2USERHIDE_AIFOLDER` FOREIGN KEY (`AiPromptbausteinFolderOid`) REFERENCES `aipromptbausteinfolder` (`Oid`), + CONSTRAINT `FK_AIPROMPTBAUSTEIN2USERHIDE_APPUSER2` FOREIGN KEY (`ApplicationUserOid`) REFERENCES `applicationuser` (`Oid`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +CREATE TABLE `aipromptbausteinfolder2usershare` ( + `AiPromptbausteinFolderOid` bigint NOT NULL, + `ApplicationUserOid` bigint NOT NULL, + PRIMARY KEY (`AiPromptbausteinFolderOid`,`ApplicationUserOid`), + CONSTRAINT `FK_AIPROMPTBAUSTEIN2USERSHARE_AIFOLDER` FOREIGN KEY (`AiPromptbausteinFolderOid`) REFERENCES `aipromptbausteinfolder` (`Oid`), + CONSTRAINT `FK_AIPROMPTBAUSTEIN2USERSHARE_APPUSER` FOREIGN KEY (`ApplicationUserOid`) REFERENCES `applicationuser` (`Oid`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; \ No newline at end of file