20 lines
799 B
Go
20 lines
799 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Site struct {
|
|
ID uint32 `gorm:"primaryKey;autoIncrement"`
|
|
Name string `gorm:"size:100;not null"`
|
|
Key string `gorm:"column:site_key;size:32;not null;uniqueIndex"`
|
|
BaseURL string `gorm:"size:255;not null"`
|
|
DefaultSocialImageID *uint32
|
|
DefaultRobots string `gorm:"size:16;not null"`
|
|
Locale *string `gorm:"size:35"`
|
|
IsDefault bool `gorm:"not null"`
|
|
SiteName string `gorm:"size:100;not null;default:''"`
|
|
TitleTemplate string `gorm:"size:200"`
|
|
DefaultDescription string `gorm:"size:320;not null;default:''"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
|
}
|