2023-01-12 12:42:16 +00:00
|
|
|
package models
|
2022-08-27 13:21:05 +00:00
|
|
|
|
2022-11-05 14:40:02 +00:00
|
|
|
type Options struct {
|
2022-08-27 13:21:05 +00:00
|
|
|
OptionId uint64 `gorm:"column:option_id" db:"option_id" json:"option_id" form:"option_id"`
|
|
|
|
OptionName string `gorm:"column:option_name" db:"option_name" json:"option_name" form:"option_name"`
|
|
|
|
OptionValue string `gorm:"column:option_value" db:"option_value" json:"option_value" form:"option_value"`
|
|
|
|
Autoload string `gorm:"column:autoload" db:"autoload" json:"autoload" form:"autoload"`
|
|
|
|
}
|
|
|
|
|
2022-11-05 14:40:02 +00:00
|
|
|
func (w Options) PrimaryKey() string {
|
2022-08-27 13:21:05 +00:00
|
|
|
return "option_id"
|
|
|
|
}
|
|
|
|
|
2022-11-05 14:40:02 +00:00
|
|
|
func (w Options) Table() string {
|
2022-08-27 13:21:05 +00:00
|
|
|
return "wp_options"
|
|
|
|
}
|