setting.go 598 B

12345678910111213
  1. package model
  2. import "time"
  3. type ManagedSetting struct {
  4. ID uint `gorm:"primaryKey;autoIncrement" json:"id"`
  5. KeyName string `gorm:"uniqueIndex;column:key_name;size:255;not null" json:"key_name"`
  6. Value string `gorm:"type:text;not null" json:"value"`
  7. ValueType string `gorm:"type:enum('int','float','bool','string','json');not null" json:"value_type"`
  8. EffectLevel string `gorm:"type:enum('runtime','new_task');default:'runtime'" json:"effect_level"`
  9. Description string `gorm:"size:500" json:"description"`
  10. UpdatedAt time.Time `json:"updated_at"`
  11. }