mirror of https://github.com/chaitin/PandaWiki.git
Compare commits
2 Commits
06ab54e39b
...
7b8c148f3c
| Author | SHA1 | Date |
|---|---|---|
|
|
7b8c148f3c | |
|
|
6bb8cb08ca |
|
|
@ -0,0 +1,15 @@
|
|||
package domain
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type MCPCall struct {
|
||||
ID string `gorm:"primaryKey;column:id" json:"id,omitempty"`
|
||||
ClientName string `gorm:"column:client_name" json:"client_name"`
|
||||
ClientVersion string `gorm:"column:client_version" json:"client_version"`
|
||||
Question string `gorm:"column:question" json:"question"`
|
||||
Document string `gorm:"column:document" json:"document"`
|
||||
RemoteIP string `gorm:"column:remote_ip" json:"remoate_ip"`
|
||||
CreatedAt time.Time `gorm:"column:created_at;not null;default:now()" json:"created_at"`
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
DROP TABLE IF EXISTS mcp_calls;
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
CREATE TABLE IF NOT EXISTS mcp_calls (
|
||||
id SERIAL PRIMARY KEY,
|
||||
mcp_session_id TEXT NOT NULL,
|
||||
kb_id TEXT NOT NULL,
|
||||
remote_ip TEXT,
|
||||
initialize_req JSONB,
|
||||
initialize_resp JSONB,
|
||||
tool_call_req JSONB,
|
||||
tool_call_resp TEXT,
|
||||
created_at timestamptz NOT NULL DEFAULT NOW()
|
||||
);
|
||||
Loading…
Reference in New Issue