db

package
v0.0.0-...-744e187 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Automigrate

func Automigrate(db *gorm.DB)

func Init

func Init(db *gorm.DB)

func NewDatabase

func NewDatabase() (*gorm.DB, error)

Types

type Client

type Client struct {
	gorm.Model
	UUID uuid.UUID
}

type Stats

type Stats struct {
	gorm.Model
	ClientUUID uuid.UUID
	Timeslot   *time.Time
	Year       int
	YearDay    int
	Hour       int
	Keys       int
	Clicks     int
}

Jump to

Keyboard shortcuts

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