database

package
v0.0.0-...-a32947c Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Instance *gorm.DB
)

Functions

func Init

func Init(url string)

Types

type AuthorizationCode

type AuthorizationCode struct {
	Code      string `gorm:"primaryKey"`
	ExpiresIn int
	ClientId  string
	UserId    string
	CreatedAt time.Time
}

type Client

type Client struct {
	Id          string `gorm:"primaryKey"`
	Name        string
	RedirectUri string
	Secret      string
	CreatedAt   time.Time
}

type User

type User struct {
	Id        string `gorm:"primaryKey"`
	Email     string
	Password  string
	CreatedAt time.Time
}

Jump to

Keyboard shortcuts

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