model

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SafeUser added in v0.0.2

type SafeUser struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

type TrainingItem

type TrainingItem struct {
	Id     int    `json:"id"`
	UserId int    `json:"userId"`
	Name   string `json:"name"`
	Type   string `json:"type"`
	Unit   string `json:"unit"`
	Kcal   int    `json:"kcal"`
}

type TrainingRecord added in v0.0.3

type TrainingRecord struct {
	Id             int     `json:"id"`
	UserId         int     `json:"userId"`
	TrainingItemId int     `json:"trainingItemId"`
	Record         float64 `json:"record"`
	Date           int64   `json:"date"`
}

type User added in v0.0.2

type User struct {
	Id        int       `json:"id"`
	Name      string    `json:"name"`
	Email     string    `json:"email"`
	Password  string    `json:"password"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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