From a3321dd37416fb5f80b091ea7e1f4ac20b19b16d Mon Sep 17 00:00:00 2001 From: Reza Date: Wed, 1 Jan 2025 21:02:01 +0100 Subject: [PATCH] settings protected, order fields --- lib/settings/database.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/settings/database.go b/lib/settings/database.go index d75b045..5a2f25e 100644 --- a/lib/settings/database.go +++ b/lib/settings/database.go @@ -26,13 +26,14 @@ type Setting struct { SettingsID uint `gorm:"primaryKey" json:"-"` DomainID uint `gorm:"column:domain_id;fk:settings_domain" json:"domain"` Domain string `gorm:"-" json:"-"` + Name string `gorm:"column:name;size:128" json:"name"` + Title string `gorm:"column:title" json:"title"` + Description string `gorm:"column:description" json:"description"` Value string `gorm:"column:value" json:"value"` DefaultValue string `gorm:"column:default_value" json:"default_value"` - Description string `gorm:"column:description" json:"description"` - Name string `gorm:"column:name;size:128" json:"name"` ReadOnly bool `gorm:"column:read_only" json:"read_only"` - Title string `gorm:"column:title" json:"title"` Visible bool `gorm:"column:visible" json:"visible"` + Protected bool `gorm:"column:protected" json:"protected"` Type string `gorm:"column:type" json:"type"` Params string `gorm:"column:params" json:"params"` SettingsDomain SettingDomain `gorm:"-" json:"-"`