Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Host string
Username string
Password string
Port int
DBType string
Schema string
JwtSecret string
MailAPIKey string
MailDomain string
}
Config Structure of config.json File
type PlayBridge ¶
type PlayItem ¶
type PlayItem struct {
ID int `gorm:"AUTO_INCREMENT;unique_index;NOT NULL"`
Author int `gorm:"not null"`
Name string `gorm:"type:varchar(50);NOT NULL"`
Description string `gorm:"type:varchar(1000);NOT NULL"`
Link string `gorm:"type:varchar(500);NOT NULL"`
CreatedAt time.Time `gorm:"NOT NULL"`
UpdatedAt time.Time `gorm:"NOT NULL"`
}
type PlayList ¶
type PlayList struct {
ID int `gorm:"AUTO_INCREMENT;unique_index;NOT NULL"`
Author int `gorm:"not null"`
Name string `gorm:"type:varchar(50);NOT NULL"`
Description string `gorm:"type:varchar(1000);NOT NULL"`
Public bool `gorm:"NOT NULL;defualt:default:0"`
CreatedAt time.Time `gorm:"NOT NULL"`
UpdatedAt time.Time `gorm:"NOT NULL"`
}
type User ¶
type User struct {
ID int `gorm:"AUTO_INCREMENT;unique_index;NOT NULL"`
Name string `gorm:"type:varchar(50);unique_index;NOT NULL"`
Password string `gorm:"type:varchar(70);unique_index;NOT NULL"`
Email string `gorm:"type:varchar(60);unique_index;NOT NULL"`
Verified bool `gorm:"NOT NULL;defualt:default:0"`
VerifyCode string `gorm:"type:varchar(10);unique_index;NOT NULL"`
VerifyCodePassword string `gorm:"type:varchar(10);"`
LastPurchasedDate *time.Time
}
User Database structure
type UserSetting ¶
Click to show internal directories.
Click to hide internal directories.