Skip to content

Commit

Permalink
settings protected, order fields
Browse files Browse the repository at this point in the history
  • Loading branch information
iesreza committed Jan 1, 2025
1 parent 3c236cc commit a3321dd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/settings/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:"-"`
Expand Down

0 comments on commit a3321dd

Please sign in to comment.