This repository has been archived on 2026-04-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
core/server/models/ext_connection.go
Jeffrey Smith 3d4228f868
All checks were successful
CI/CD / detect-changes (push) Successful in 4s
CI/CD / test-frontend (push) Successful in 6s
CI/CD / test-sqlite (push) Successful in 2m46s
CI/CD / test-go-pg (push) Successful in 2m47s
CI/CD / build-and-deploy (push) Successful in 26s
Feat v0.6.3 dead code sweep (#38)
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com>
Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
2026-03-31 12:37:47 +00:00

25 lines
918 B
Go

package models
// ── Extension Connections ──────────────────
// ExtConnection represents a scoped credential/endpoint configuration
// for extensions that integrate with external services. Same scope
// hierarchy as ProviderConfig: global → team → personal.
type ExtConnection struct {
BaseModel
Type string `json:"type" db:"type"`
PackageID string `json:"package_id" db:"package_id"`
Scope string `json:"scope" db:"scope"`
OwnerID string `json:"owner_id" db:"owner_id"`
Name string `json:"name" db:"name"`
Config JSONMap `json:"config" db:"config"`
IsActive bool `json:"is_active" db:"is_active"`
}
// ExtConnectionPatch carries partial updates. Nil fields are skipped.
type ExtConnectionPatch struct {
Name *string `json:"name,omitempty"`
Config JSONMap `json:"config,omitempty"`
IsActive *bool `json:"is_active,omitempty"`
}