models

package
v0.0.0-...-efccb87 Latest Latest
Warning

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

Go to latest
Published: May 20, 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 ContextKey

type ContextKey struct {
	Key string
}

ContextKey - key interface for context

type Movie

type Movie struct {
	ID          string     `json:"id"`
	CreatedAt   *time.Time `json:"created_at"`
	UpdatedAt   *time.Time `json:"updated_at"`
	DeletedAt   *time.Time `json:"deleted_at,omitempty"`
	UsersID     string     `json:"users_id"`
	Name        string     `json:"name"`
	ReleaseYear int64      `json:"release_year"`
	Description string     `json:"description,omitempty"`
	Rating      float64    `json:"rating"`
	ReviewCount int64      `json:"review_count"`
}

Movie - Basic information about a movie

type RatingSum

type RatingSum struct {
	Total float64 `json:"totalRating"`
}

RatingSum - Basic information about a movie

type User

type User struct {
	ID                string     `json:"id"`
	CreatedAt         *time.Time `json:"created_at"`
	UpdatedAt         *time.Time `json:"updated_at"`
	DeletedAt         *time.Time `json:"deleted_at,omitempty"`
	Email             string     `json:"email"`
	EncryptedPassword string     `json:"encrypted_password"`
}

User - Basic information about a user

Jump to

Keyboard shortcuts

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