entity

package
v0.0.0-...-0b7230a Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 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 User

type User struct {
	ID        uint       `gorm:"primary_key" json:"id"`
	Name      string     `json:"name" faker:"name"`
	Age       int64      `json:"age"`
	Email     string     `gorm:"type:varchar(100);unique_index" json:"email" faker:"email"`
	Address   string     `gorm:"index:addr" json:"address" faker:"word"`
	Password  string     `gorm:"type:varchar(255)" json:"password" faker:"password"`
	CreatedAt time.Time  `gorm:"default:CURRENT_TIMESTAMP" json:"created_at"`
	UpdatedAt time.Time  `gorm:"default:CURRENT_TIMESTAMP" json:"updated_at"`
	DeletedAt *time.Time `json:"deleted_at,omitempty"`
}

User -> user entity schema

Jump to

Keyboard shortcuts

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