mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
45 lines
1.2 KiB
Go
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
|
|
}
|