15 lines
383 B
Go
15 lines
383 B
Go
package entities
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type AppSetting struct {
|
|
Key string `gorm:"primaryKey;size:100" json:"key"`
|
|
Value JSONB `gorm:"type:jsonb;default:'{}'" json:"value"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime" json:"created_at"`
|
|
UpdatedAt time.Time `gorm:"autoUpdateTime" json:"updated_at"`
|
|
}
|
|
|
|
func (AppSetting) TableName() string { return "app_settings" }
|