model

package
v0.0.0-...-d64f9d6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceToken

type DeviceToken struct {
	ID        uuid.UUID
	UserID    uuid.UUID
	Hash      string
	Token     string
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt *time.Time
}

type File

type File struct {
	ID          uuid.UUID
	UserID      uuid.UUID
	URL         *url.URL
	Filename    string
	Filesize    int64
	ContentType string
	Hash        string
	Extension   string
	CreatedAt   time.Time
	UpdatedAt   time.Time
	DeletedAt   *time.Time
}

type Model

type Model struct {
	ID        uuid.UUID `gorm:"type:uuid;primary_key;"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt *time.Time `sql:"index"`
}

Model is a non-type data struct that includes basic fields shared across most models, allowing it to be embedded as a starting point.

type User

type User struct {
	ID        uuid.UUID
	Login     string
	Password  []byte
	AvatarURL url.URL
	Name      string
	Company   string
	Location  string
	Bio       string
	Birthday  *time.Time
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt *time.Time
}

User represents the object of an individual account.

Jump to

Keyboard shortcuts

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