- Created `qa-test-output-after-fix.txt` and `qa-test-output.txt` to log results of certificate page authentication tests. - Added `build.sh` for deterministic backend builds in CI, utilizing `go list` for efficiency. - Introduced `codeql_scan.sh` for CodeQL database creation and analysis for Go and JavaScript/TypeScript. - Implemented `dockerfile_check.sh` to validate Dockerfiles for base image and package manager mismatches. - Added `sourcery_precommit_wrapper.sh` to facilitate Sourcery CLI usage in pre-commit hooks.
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"`
|
|
}
|