model

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

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

Go to latest
Published: May 14, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	INTERNAL_SERVER_ERROR = errors.New("Internal Server Error")
	NOT_FOUND_ERROR       = errors.New("Your requested Item is not found")
	CONFLIT_ERROR         = errors.New("Your Item already exist")
)

Functions

This section is empty.

Types

type Base

type Base struct {
	ID        *resource.Identifier `gorm:"type:uuid;primary_key;"`
	CreatedAt time.Time            `json:"created_at"`
	UpdatedAt time.Time            `json:"update_at"`
	DeletedAt *time.Time           `sql:"index" json:"deleted_at"`
}

Base contains common columns for all tables.

type User

type User struct {
	protocol.UserORM
}

Jump to

Keyboard shortcuts

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