Files
ginimageApi/app/mcp/models/tool_run.go
Beyhan Oğur e04ba85564 first commit
2026-04-26 21:40:14 +03:00

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"
}