18 lines
541 B
Go
18 lines
541 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type Setting struct {
|
|
ID int `gorm:"primaryKey;column:id" json:"id"`
|
|
Group *string `gorm:"column:group" json:"group"`
|
|
Type *string `gorm:"column:type" json:"type"`
|
|
Name string `gorm:"column:name;index" json:"name"`
|
|
Value string `gorm:"column:value" json:"value"`
|
|
CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"`
|
|
UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"`
|
|
}
|
|
|
|
func (Setting) TableName() string {
|
|
return "v2_settings"
|
|
}
|