data

package
v0.0.0-...-9d96024 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect()

func Database

func Database() *gorm.DB

Types

type Package

type Package struct {
	AuthorID    uint   `json:"author_id"`
	Name        string `json:"name" gorm:"unique"`
	Description string `json:"description" gorm:"unique"`
	GitURL      string `json:"git_url" gorm:"unique"`
}

type PackageModel

type PackageModel struct {
	gorm.Model
	Package
}

type User

type User struct {
	Nick     string `json:"nick" gorm:"unique"`
	Email    string `json:"email" gorm:"unique"`
	Password string `json:"password"`
}

type UserModel

type UserModel struct {
	gorm.Model
	User
}

func (UserModel) DisplayName

func (u UserModel) DisplayName() string

Directories

Path Synopsis
actions

Jump to

Keyboard shortcuts

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