models

package
v0.0.0-...-c6ca35e Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 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 City

type City struct {
	ID   uint
	City string
}

City init

func (City) TableName

func (City) TableName() string

TableName name

type User

type User struct {
	gorm.Model
	Email    string
	Password string
	Name     string
	City     uint
	Photo    string
}

User init

type UserCity

type UserCity struct {
	User
	CityMassage string `gorm:"index:city_massage"`
}

UserCity init

Jump to

Keyboard shortcuts

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