db

package
v0.0.0-...-7396d26 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	ID        string `sql:"id, primary_key"`
	UserID    string `sql:"user_id, foreign_key=user.id"`
	Sessions  []Sessions
	Providers []Provider
	Clients   []Clients
}

type Clients

type Clients struct {
	ID        string `sql:"id, primary_key"`
	AccountID string `sql:"account_id, foreign_key=account.id"`
	OS        string `sql:"os"`
	IP        string `sql:"ip"`
	Hostname  string `sql:"hostname"`
	Expires   string `sql:"expires"`
}

type Provider

type Provider struct {
	ID         string `sql:"id, primary_key"`
	AccountID  string `sql:"account_id, foreign_key=account.id"`
	Name       string `sql:"name"`
	Login      string `sql:"login"`
	AvatarURL  string `sql:"avatar_url"`
	ProfileURL string `sql:"profile_url"`
	Email      string `sql:"email"`
}

type Sessions

type Sessions struct {
	ID          string `sql:"id, primary_key"`
	AccountID   string `sql:"account_id, foreign_key=account.id"`
	BrowserInfo string `sql:"browser_info"`
	AccessToken string `sql:"access_token"`
	Expires     string `sql:"expires"`
	IsOnline    bool   `sql:"is_online"`
}

type User

type User struct {
	ID      string `sql:"id, primary_key"`
	Name    string `sql:"name"`
	Email   string `sql:"email"`
	Account Account
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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