feat: add user id field

This commit is contained in:
lijunwen.gigoo
2025-10-28 16:47:30 +08:00
parent 912e1653c5
commit 9802092107
3 changed files with 32 additions and 23 deletions

View File

@ -0,0 +1,2 @@
-- Modify "conversation" table
ALTER TABLE `opencoze`.`conversation` ADD COLUMN `usre_id` varchar(255) NOT NULL DEFAULT "" COMMENT "user id with runtime";

View File

@ -1,4 +1,4 @@
h1:fRmZ1DqaVJmbdXGbkWkJGCWbHy3gTQxkg6KRhpDBYeA=
h1:cpQEyHETFdPhC3MMZKepKf6M/roAfmvGEHXpG/iDaHA=
20250703095335_initial.sql h1:/joaeUTMhXqAEc0KwsSve5+bYM0qPOp+9OizJtsRc+U=
20250703115304_update.sql h1:cbYo6Q6Lh96hB4hu5KW2Nn/Mr0VDpg7a1WPgpIb1SOc=
20250704040445_update.sql h1:QWmoPY//oQ+GFZwET9w/oAWa8mM0KVaD5G8Yiu9bMqY=
@ -15,3 +15,4 @@ h1:fRmZ1DqaVJmbdXGbkWkJGCWbHy3gTQxkg6KRhpDBYeA=
20251015103940_update.sql h1:ivE+qtF4q3bMFroid1yMSO465s5Oiey/5VvQ7GWnBlY=
20251016034721_update.sql h1:BLXpKpa3LBVyiuMDGSwud6WwM+34jQQvn11ytYZCbrw=
20251024091145_update.sql h1:WH/24vD2bYK6udS7GRO1Enzw81SjCpRcbOSkzUhiMrk=
20251028084436_update.sql h1:cdv2HlaM0emkXbweV3UO+DAzJd4pI64SRHMaduPM/R8=

View File

@ -1016,12 +1016,6 @@ table "conversation" {
comment = "id"
auto_increment = true
}
column "name" {
null = true
type = varchar(255)
default = ""
comment = "conversation name"
}
column "connector_id" {
null = false
type = bigint
@ -1080,6 +1074,18 @@ table "conversation" {
unsigned = true
comment = "Update Time in Milliseconds"
}
column "name" {
null = true
type = varchar(255)
default = ""
comment = "conversation name"
}
column "usre_id" {
null = false
type = varchar(255)
default = ""
comment = "user id with runtime"
}
primary_key {
columns = [column.id]
}
@ -3256,6 +3262,11 @@ table "single_agent_draft" {
type = json
comment = "Agent Database Base Configuration"
}
column "shortcut_command" {
null = true
type = json
comment = "shortcut command"
}
column "bot_mode" {
null = false
type = tinyint
@ -3267,11 +3278,6 @@ table "single_agent_draft" {
type = text
comment = "chatflow layout info"
}
column "shortcut_command" {
null = true
type = json
comment = "shortcut command"
}
primary_key {
columns = [column.id]
}
@ -3428,17 +3434,6 @@ table "single_agent_version" {
unsigned = true
comment = "Create Time in Milliseconds"
}
column "bot_mode" {
null = false
type = tinyint
default = 0
comment = "bot mode,0:single mode 2:chatflow mode"
}
column "layout_info" {
null = true
type = text
comment = "chatflow layout info"
}
column "updated_at" {
null = false
type = bigint
@ -3523,6 +3518,17 @@ table "single_agent_version" {
type = json
comment = "shortcut command"
}
column "bot_mode" {
null = false
type = tinyint
default = 0
comment = "bot mode,0:single mode 2:chatflow mode"
}
column "layout_info" {
null = true
type = text
comment = "chatflow layout info"
}
primary_key {
columns = [column.id]
}