This commit captures the current state before implementing the composable monorepo template system. Key changes included: Infrastructure: - Add CockroachDB provisioner adapter for database provisioning - Add Redis provisioner adapter for cache provisioning - Add build events system with PostgreSQL storage - Add WebSocket endpoint for real-time build progress Code agent improvements: - Fix Claude Code adapter to use default allowed tools instead of dangerously-skip-permissions - Add context-aware stream closing for cancellation support - Improve parser tests for edge cases Build system: - Add build event constants and metrics - Remove deprecated git_operations.go (replaced by pod_git_operations.go) - Add rollback logic for multi-step provisioning operations Documentation: - Add composable-monorepo feature documentation - Add DNS/Cloudflare service documentation - Update deployment and troubleshooting guides Cookbooks: - Add fullstack-app cookbook - Refactor landing-test with shared library Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
31 lines
1.4 KiB
Go
31 lines
1.4 KiB
Go
package domain
|
|
|
|
import "time"
|
|
|
|
// DatabaseCredentials represents isolated database access for a project.
|
|
// Each project gets its own database and user in CockroachDB.
|
|
type DatabaseCredentials struct {
|
|
ProjectID string `json:"project_id" db:"project_id"`
|
|
DatabaseName string `json:"database_name" db:"database_name"` // project_{id}
|
|
Username string `json:"username" db:"username"` // project_{id}
|
|
Password string `json:"password" db:"password"` // generated (stored encrypted)
|
|
Host string `json:"host" db:"host"` // cockroachdb-public.databases.svc
|
|
Port int `json:"port" db:"port"` // 26257
|
|
SSLMode string `json:"ssl_mode" db:"ssl_mode"` // disable (insecure mode)
|
|
URL string `json:"url" db:"url"` // full connection string
|
|
URLStaging string `json:"url_staging" db:"url_staging"` // staging connection (same for now)
|
|
CreatedAt time.Time `json:"created_at" db:"created_at"`
|
|
}
|
|
|
|
// DatabaseConfig holds database provisioning configuration.
|
|
type DatabaseConfig struct {
|
|
// Host is the CockroachDB host for provisioning operations
|
|
Host string
|
|
// Port is the CockroachDB port
|
|
Port int
|
|
// User is the admin user for provisioning (typically "root" in insecure mode)
|
|
User string
|
|
// SSLMode is the SSL mode (typically "disable" for insecure mode)
|
|
SSLMode string
|
|
}
|