structure

package
v0.0.0-...-c448931 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	ID int
	jwt.StandardClaims
}

Claims for jwt

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 MelonChart

type MelonChart struct {
	Count  int
	Title  string
	Artist string
	Album  string
}

type PlayBridge

type PlayBridge struct {
	Item     int `gorm:"NOT NULL"`
	PlayList int
	PlayTag  int
}

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 PlayTag

type PlayTag struct {
	ID        int       `gorm:"AUTO_INCREMENT;unique_index;NOT NULL"`
	Author    int       `gorm:"not null"`
	Name      string    `gorm:"type:varchar(50);NOT NULL"`
	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

type UserSetting struct {
	Author User   `gorm:"not null;foreignkey:ID"`
	Dark   bool   `gorm:"NOT NULL;defualt:default:0"`
	Lang   string `gorm:"NOT NULL;defualt:default:ko"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL