You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
607 B
19 lines
607 B
|
7 years ago
|
package code
|
||
|
8 years ago
|
|
||
|
7 years ago
|
import "tank/code/config"
|
||
|
7 years ago
|
|
||
|
8 years ago
|
type Preference struct {
|
||
|
|
Base
|
||
|
7 years ago
|
Name string `json:"name" gorm:"type:varchar(45)"`
|
||
|
|
LogoUrl string `json:"logoUrl" gorm:"type:varchar(255)"`
|
||
|
|
FaviconUrl string `json:"faviconUrl" gorm:"type:varchar(255)"`
|
||
|
|
FooterLine1 string `json:"footerLine1" gorm:"type:varchar(1024)"`
|
||
|
|
FooterLine2 string `json:"footerLine2" gorm:"type:varchar(1024)"`
|
||
|
7 years ago
|
ShowAlien bool `json:"showAlien" gorm:"type:tinyint(1) not null;default:1"`
|
||
|
8 years ago
|
}
|
||
|
|
|
||
|
|
// set File's table name to be `profiles`
|
||
|
7 years ago
|
func (this *Preference) TableName() string {
|
||
|
7 years ago
|
return config.TABLE_PREFIX + "preference"
|
||
|
8 years ago
|
}
|