package models import "time" // BackendMcpTool MCP工具配置表 type BackendMcpTool struct { ID uint64 `orm:"column(id);pk;auto" json:"id"` TenantID string `orm:"column(tenant_id);size(64)" json:"tenant_id"` UserID uint64 `orm:"column(user_id);default(0)" json:"user_id"` Name string `orm:"column(name);size(100)" json:"name"` Type string `orm:"column(type);size(20)" json:"type"` // rest/http/other URL string `orm:"column(url);size(255)" json:"url"` Method string `orm:"column(method);size(10)" json:"method"` // GET/POST/PUT/DELETE Headers string `orm:"column(headers);type(text)" json:"headers"` // JSON Params string `orm:"column(params);type(text)" json:"params"` // JSON Body string `orm:"column(body);type(text)" json:"body"` // JSON Enabled int8 `orm:"column(enabled);default(1)" json:"enabled"` // 0-禁用 1-启用 Remark string `orm:"column(remark);size(255)" json:"remark"` CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"` UpdateTime time.Time `orm:"column(update_time);auto_now;type(datetime)" json:"update_time"` DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"` } func (m *BackendMcpTool) TableName() string { return "yz_backend_mcp_tool" }