preferences

package
v0.0.0-...-bcfd2cf Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 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 Model

type Model struct {
	gorm.Model
	UserID  uuid.UUID `json:"user_id" gorm:"primarykey;index;unique;not null"`
	Theme   string    `json:"theme" gorm:"index;default:blue"`
	Gravity bool      `json:"gravity" gorm:"default:true"`

} //@name Preference

Model preferences struct with validation

func (*Model) TableName

func (m *Model) TableName() string

TableName defines default table name

Jump to

Keyboard shortcuts

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