- Implemented Settings page for changing user passwords with validation and feedback. - Created Setup page for initial admin account setup with form handling and navigation. - Added API service layer for handling requests related to proxy hosts, remote servers, and import functionality. - Introduced mock data for testing purposes and set up testing framework with vitest. - Configured Tailwind CSS for styling and Vite for development and build processes. - Added scripts for Dockerfile validation, Python syntax checking, and Sourcery integration. - Implemented release and coverage scripts for better CI/CD practices.
17 lines
562 B
Go
17 lines
562 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Setting stores global application configuration as key-value pairs.
|
|
// Used for system-wide preferences, feature flags, and runtime config.
|
|
type Setting struct {
|
|
ID uint `json:"id" gorm:"primaryKey"`
|
|
Key string `json:"key" gorm:"uniqueIndex"`
|
|
Value string `json:"value" gorm:"type:text"`
|
|
Type string `json:"type"` // "string", "int", "bool", "json"
|
|
Category string `json:"category"` // "general", "security", "caddy", "smtp", etc.
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|