26 lines
1.2 KiB
Go
26 lines
1.2 KiB
Go
package models
|
|
|
|
import "time"
|
|
|
|
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"`
|
|
URL string `orm:"column(url);size(255)" json:"url"`
|
|
Method string `orm:"column(method);size(10)" json:"method"`
|
|
Headers string `orm:"column(headers);type(text)" json:"headers"`
|
|
Params string `orm:"column(params);type(text)" json:"params"`
|
|
Body string `orm:"column(body);type(text)" json:"body"`
|
|
Enabled int8 `orm:"column(enabled);default(1)" json:"enabled"`
|
|
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"
|
|
}
|