models

package
v0.0.0-...-9d52f33 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2019 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID        uint64     `gorm:"column:id; primary_key; AUTO_INCREMENT" json:"id" faker:"-"`
	Name      string     `gorm:"column:name; type:varchar(100)" json:"name" faker:"name"`
	Email     string     `gorm:"column:email; type:varchar(100); unique_index" json:"email" faker:"email"`
	CreatedAt time.Time  `gorm:"column:created_at" json:"created_at" faker:"timestamp"`
	UpdatedAt time.Time  `gorm:"column:updated_at" json:"updated_at" faker:"timestamp"`
	DeletedAt *time.Time `gorm:"column:deleted_at" json:"deleted_at" faker:"-"`
}

Jump to

Keyboard shortcuts

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