add conversation
This commit is contained in:
parent
27f7d5ca0a
commit
4b5ea3a9bc
10
1770628731_create_s2_conversation.up.sql
Normal file
10
1770628731_create_s2_conversation.up.sql
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
CREATE TABLE `health`.`ufutx_s2_conversation` (
|
||||||
|
`id` BIGINT NOT NULL AUTO_INCREMENT,
|
||||||
|
`customer_id` BIGINT NOT NULL COMMENT '客户id',
|
||||||
|
`session_id` VARCHAR(20) NOT NULL COMMENT 'session_id',
|
||||||
|
`role` ENUM("user", "assistant") NOT NULL COMMENT "角色",
|
||||||
|
`message` TEXT NOT NULL COMMENT "内容",
|
||||||
|
`created_at` TIMESTAMP NULL DEFAULT NULL,
|
||||||
|
`updated_at` TIMESTAMP NULL DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE = InnoDB COMMENT = 'crm聊天记录';
|
||||||
Loading…
Reference in New Issue
Block a user