mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-29 04:14:20 +08:00
(improvement) Move out the datasource and merge the datasource with the model, and adapt the chat module (#423)
Co-authored-by: jolunoluo <jolunoluo@tencent.com>
This commit is contained in:
@@ -96,4 +96,21 @@ alter table s2_chat_config add column `llm_examples` text COMMENT 'llm examples'
|
||||
alter table s2_datasource add column `filter_sql` varchar(1000) COMMENT 'filter_sql' after depends;
|
||||
|
||||
--20231120
|
||||
alter table s2_dimension add column `is_tag` int(10) DEFAULT NULL;
|
||||
alter table s2_dimension add column `is_tag` int(10) DEFAULT NULL;
|
||||
|
||||
--20231125
|
||||
alter table s2_model add column `database_id` INT NOT NULL;
|
||||
alter table s2_model add column `model_detail` text NOT NULL;
|
||||
alter table s2_model add column `depends` varchar(500) DEFAULT NULL;
|
||||
alter table s2_model add column `filter_sql` varchar(1000) DEFAULT NULL;
|
||||
|
||||
CREATE TABLE s2_model_rela
|
||||
(
|
||||
id BIGINT AUTO_INCREMENT,
|
||||
domain_id BIGINT,
|
||||
from_model_id BIGINT,
|
||||
to_model_id BIGINT,
|
||||
join_type VARCHAR(255),
|
||||
join_condition VARCHAR(255),
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
Reference in New Issue
Block a user