Files
coder/coderd/database/legacy_chat_provider_compat.go
2026-05-22 09:50:01 +02:00

45 lines
1.2 KiB
Go

package database
import (
"database/sql"
"time"
"github.com/google/uuid"
)
// ChatProvider is the fixture shape accepted by dbgen.ChatProvider.
//
//nolint:revive
type ChatProvider struct {
ID uuid.UUID
Provider string
DisplayName string
APIKey string
BaseUrl string
ApiKeyKeyID sql.NullString
CreatedAt time.Time
UpdatedAt time.Time
CreatedBy uuid.NullUUID
Enabled bool
CentralApiKeyEnabled bool
AllowUserApiKey bool
AllowCentralApiKeyFallback bool
}
// InsertChatProviderParams is the callback parameter shape accepted by
// dbgen.ChatProvider.
//
//nolint:revive
type InsertChatProviderParams struct {
Provider string
DisplayName string
APIKey string
BaseUrl string
ApiKeyKeyID sql.NullString
CreatedBy uuid.NullUUID
Enabled bool
CentralApiKeyEnabled bool
AllowUserApiKey bool
AllowCentralApiKeyFallback bool
}