models

package
v0.0.0-...-53711f0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 3 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 {
	gorm.Model
	Id        uint64 `gorm:"primaryKey;autoIncrement:true"`
	Name      string `gorm:"size:255;index:idx_name,unique"`
	Password  string `gorm:"size:64"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt *time.Time
	Walks     []Walk `gorm:"constraint:OnUpdate:CASCADE,OnDelete:SET NULL"`
}

type Walk

type Walk struct {
	gorm.Model
	Id        uint64 `gorm:"primaryKey;autoIncrement:true"`
	UserId    uint64
	Coords    types.Point
	Altitude  float64
	CreatedAt time.Time
}

Jump to

Keyboard shortcuts

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