* add zt ai assistant table.

This commit is contained in:
Chenjianyu
2024-04-02 15:04:43 +08:00
parent 89295f3d6f
commit 57d754d747
2 changed files with 16 additions and 0 deletions
+1
View File
@@ -592,6 +592,7 @@ define('TABLE_AI_MINIPROGRAMFIELD', '`' . $config->db->prefix . 'ai_miniprogramf
define('TABLE_AI_MINIPROGRAMSTAR', '`' . $config->db->prefix . 'ai_miniprogramstar`');
define('TABLE_AI_MESSAGE', '`' . $config->db->prefix . 'ai_message`');
define('TABLE_AI_MODEL', '`' . $config->db->prefix . 'ai_model`');
define('TABLE_AI_ASSISTANT', '`' . $config->db->prefix . 'ai_assistant`');
define('TABLE_SQLITE_QUEUE', '`' . $config->db->prefix . 'sqlite_queue`');
+15
View File
@@ -16097,6 +16097,20 @@ CREATE TABLE IF NOT EXISTS `zt_ai_miniprogramstar` (
ALTER TABLE `zt_ticket` ADD `subStatus` varchar(30) NOT NULL DEFAULT '';
CREATE TABLE IF NOT EXISTS `zt_ai_assistant` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(30) NOT NULL,
`modelId` mediumint(8) unsigned NOT NULL,
`desc` text NOT NULL,
`systemMessage` text NOT NULL,
`greetings` text NOT NULL,
`enabled` enum('0', '1') NOT NULL DEFAULT '1',
`createdDate` datetime NOT NULL,
`publishedDate` datetime DEFAULT NULL,
UNIQUE (`modelId`, `name`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- DROP TABLE IF EXISTS `zt_market`;
CREATE TABLE IF NOT EXISTS `zt_market` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
@@ -16672,3 +16686,4 @@ INSERT INTO `zt_screen`(`id`, `dimension`, `name`, `desc`, `cover`, `scheme`, `s
INSERT INTO `zt_config` ( `vision`, `owner`, `module`, `section`, `key`, `value` ) VALUES ('', 'system', 'common', '', 'closedFeatures', 'otherOA');
INSERT INTO `zt_config`(`vision`, `owner`, `module`, `section`, `key`, `value`) VALUES ('', 'system', 'common', 'global', 'installedDate', CURDATE());