models

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.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 User

type User struct {
	ID          string          `docstore:"id"`
	Name        string          `docstore:"name"`
	Age         uint            `docstore:"age"`
	DateJoiend  time.Time       `docstore:"date_joined"`
	IsAdmin     bool            `docstore:"is_admin"`
	Preferences json.RawMessage `docstore:"preferences"`
	Expenditure float64         `docstore:"expenditure"`
}

User is a model for the users table

func (User) TableName

func (User) TableName() string

TableName returns the table name for the model

Jump to

Keyboard shortcuts

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