* add prompt role table.

This commit is contained in:
Chenjianyu
2023-08-01 11:04:30 +08:00
parent 488b6125d6
commit 97c11cb6f4
2 changed files with 13 additions and 0 deletions
+2
View File
@@ -378,6 +378,8 @@ define('TABLE_PRIVMANAGER', '`' . $config->db->prefix . 'privmanager`');
define('TABLE_PRIVRELATION', '`' . $config->db->prefix . 'privrelation`');
define('TABLE_PROMPT', '`' . $config->db->prefix . 'prompt`');
define('TABLE_PROMPTROLE', '`' . $config->db->prefix . 'promptrole`');
$config->objectTables['product'] = TABLE_PRODUCT;
$config->objectTables['productplan'] = TABLE_PRODUCTPLAN;
+11
View File
@@ -22,6 +22,17 @@ CREATE TABLE IF NOT EXISTS `zt_prompt` (
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE IF NOT EXISTS `zt_promptrole` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(30) DEFAULT NULL,
`desc` text DEFAULT NULL,
`model` mediumint(8) unsigned DEFAULT NULL,
`role` text DEFAULT NULL,
`characterization` text DEFAULT NULL,
`deleted` enum('0','1') NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-----------------------------------------------------------------------------
-- Privs of AI module, will need to be updated when merged with 18.x branch.
-- TODO: Update ids of items below.