18 lines
598 B
Go
18 lines
598 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type ToolRun struct {
|
|
ID uint `gorm:"primaryKey" json:"id"`
|
|
ToolName string `gorm:"size:128;index;not null" json:"tool_name"`
|
|
Status string `gorm:"size:16;index;not null" json:"status"`
|
|
DurationMs int64 `gorm:"index" json:"duration_ms"`
|
|
ErrorMessage string `gorm:"type:text" json:"error_message,omitempty"`
|
|
ArgumentsRaw string `gorm:"type:longtext" json:"arguments_raw,omitempty"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime;index" json:"created_at"`
|
|
}
|
|
|
|
func (ToolRun) TableName() string {
|
|
return "mcp_tool_runs"
|
|
}
|