42 lines
1.5 KiB
Plaintext
42 lines
1.5 KiB
Plaintext
|
|
INSERT INTO `.executedscripts`
|
||
|
|
VALUES ('Changes_2026-04-17 AiPromptroutine', CURDATE());
|
||
|
|
|
||
|
|
CREATE TABLE `aipromptroutinestep` (
|
||
|
|
`Oid` bigint NOT NULL AUTO_INCREMENT,
|
||
|
|
`InsTs` datetime DEFAULT NULL,
|
||
|
|
`InsUser` varchar(256) DEFAULT NULL,
|
||
|
|
`Notice` varchar(1024) DEFAULT NULL,
|
||
|
|
`Tid` int DEFAULT NULL,
|
||
|
|
`UdpUser` varchar(256) DEFAULT NULL,
|
||
|
|
`Version` bigint DEFAULT NULL,
|
||
|
|
`IsActive` tinyint DEFAULT NULL,
|
||
|
|
`SystemEntryID` int DEFAULT NULL,
|
||
|
|
`Position` int,
|
||
|
|
`PromptReferenceOid` bigint DEFAULT NULL,
|
||
|
|
`PromptReferenceVersion` bigint,
|
||
|
|
PRIMARY KEY (`Oid`),
|
||
|
|
CONSTRAINT `FK_AIPROMPTROUTINESTEP_PROMPT` FOREIGN KEY (`PromptReferenceOid`) REFERENCES `aipromptbausteinprompt` (`Oid`) ON DELETE CASCADE ON UPDATE CASCADE
|
||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=latin1;
|
||
|
|
|
||
|
|
CREATE TABLE `aipromptroutine` (
|
||
|
|
`Oid` bigint NOT NULL AUTO_INCREMENT,
|
||
|
|
`InsTs` datetime DEFAULT NULL,
|
||
|
|
`InsUser` varchar(256) DEFAULT NULL,
|
||
|
|
`Notice` varchar(1024) DEFAULT NULL,
|
||
|
|
`Tid` int DEFAULT NULL,
|
||
|
|
`UdpUser` varchar(256) DEFAULT NULL,
|
||
|
|
`Version` bigint DEFAULT NULL,
|
||
|
|
`IsActive` tinyint DEFAULT NULL,
|
||
|
|
`SystemEntryID` int DEFAULT NULL,
|
||
|
|
`Title` varchar(255),
|
||
|
|
`Description` varchar(255),
|
||
|
|
`ParentFolderOid` bigint DEFAULT NULL,
|
||
|
|
`CreatorOid` bigint,
|
||
|
|
`IsPublic` tinyint,
|
||
|
|
`Position` int,
|
||
|
|
`IsFavorite` tinyint,
|
||
|
|
`ActionType` int,
|
||
|
|
PRIMARY KEY (`Oid`),
|
||
|
|
CONSTRAINT `FK_AIPROMPTROUTINE_EMPLOYEE` FOREIGN KEY (`CreatorOid`) REFERENCES `employee` (`Oid`),
|
||
|
|
CONSTRAINT `FK_AIPROMPTROUTINE_PARENT` FOREIGN KEY (`ParentFolderOid`) REFERENCES `aipromptbausteinfolder` (`Oid`)
|
||
|
|
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=latin1;
|