feat(captain): align custom tool limits

This commit is contained in:
2026-06-07 16:06:19 +08:00
parent 0d8de3be0b
commit dd7bcf4118
6 changed files with 166 additions and 13 deletions
+2 -2
View File
@@ -251,9 +251,9 @@ func (CaptainScenario) TableName() string { return "captain_scenarios" }
type CaptainCustomTool struct {
Base
AccountID uint `gorm:"index;not null" json:"account_id"`
AccountID uint `gorm:"index;uniqueIndex:idx_captain_custom_tools_account_slug,priority:1;not null" json:"account_id"`
Title string `gorm:"size:255;not null" json:"title"`
Slug string `gorm:"size:64;not null;uniqueIndex:idx_account_slug" json:"slug"`
Slug string `gorm:"size:64;not null;uniqueIndex:idx_captain_custom_tools_account_slug,priority:2" json:"slug"`
Description string `gorm:"type:text" json:"description,omitempty"`
EndpointURL string `gorm:"type:text;not null" json:"endpoint_url"`
HTTPMethod string `gorm:"size:10;default:GET;not null" json:"http_method"`