chore: opt settings code
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
|||||||
type Setting struct {
|
type Setting struct {
|
||||||
ID uint `json:"id" gorm:"primaryKey"`
|
ID uint `json:"id" gorm:"primaryKey"`
|
||||||
Section string `json:"section" gorm:"size:50;not null;index:idx_section_key"`
|
Section string `json:"section" gorm:"size:50;not null;index:idx_section_key"`
|
||||||
Key string `json:"key" gorm:"size:100;not null;index:idx_section_key"`
|
Key string `json:"key" gorm:"column:setting_key;size:100;not null;index:idx_section_key"`
|
||||||
Value string `json:"value" gorm:"type:text"`
|
Value string `json:"value" gorm:"type:text"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user