first commit
This commit is contained in:
17
framework/configstore/tables/env.go
Normal file
17
framework/configstore/tables/env.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package tables
|
||||
|
||||
import "time"
|
||||
|
||||
// TableEnvKey represents environment variable tracking in the database
|
||||
type TableEnvKey struct {
|
||||
ID uint `gorm:"primaryKey;autoIncrement" json:"id"`
|
||||
EnvVar string `gorm:"type:varchar(255);index;not null" json:"env_var"`
|
||||
Provider string `gorm:"type:varchar(50);index" json:"provider"` // Empty for MCP/client configs
|
||||
KeyType string `gorm:"type:varchar(50);not null" json:"key_type"` // "api_key", "azure_config", "vertex_config", "bedrock_config", "connection_string"
|
||||
ConfigPath string `gorm:"type:varchar(500);not null" json:"config_path"` // Descriptive path of where this env var is used
|
||||
KeyID string `gorm:"type:varchar(255);index" json:"key_id"` // Key UUID (empty for non-key configs)
|
||||
CreatedAt time.Time `gorm:"index;not null" json:"created_at"`
|
||||
}
|
||||
|
||||
// TableName sets the table name for each model
|
||||
func (TableEnvKey) TableName() string { return "config_env_keys" }
|
||||
Reference in New Issue
Block a user