2e2c161770
- backed/: Go Fiber backend with cpdaily integration - frondend/: Vue 3 + Vite frontend - Dockerfile: multi-stage build (Node → Go → Alpine) - deploy/docker-compose.yml: production compose file - .woodpecker/build.yml: CI/CD with blue-green zero-downtime deploy - /health endpoint for deployment health checks - Port 8884/8885 blue-green swap via 1Panel OpenResty
16 lines
437 B
Go
16 lines
437 B
Go
package model
|
||
|
||
import "time"
|
||
|
||
// SystemConfig 系统配置(key-value)
|
||
type SystemConfig struct {
|
||
ID uint `gorm:"primaryKey;autoIncrement" json:"id"`
|
||
Key string `gorm:"type:varchar(64);uniqueIndex;not null" json:"key"`
|
||
Value string `gorm:"type:varchar(255);not null;default:''" json:"value"`
|
||
UpdatedAt time.Time `json:"updatedAt"`
|
||
}
|
||
|
||
func (SystemConfig) TableName() string {
|
||
return "system_configs"
|
||
}
|