models

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials added in v1.1.0

type Credentials struct {
	Username string `json:"username,omitempty" gorm:"type:varchar(256);"`
	Password string `json:"password,omitempty" gorm:"type:varchar(512);"`
}

type Event

type Event struct {
	EventID         uuid.UUID      `json:"event_id,omitempty" gorm:"primary_key;default:uuid_generate_v4();not null;"`
	Name            string         `json:"name,omitempty" gorm:"type:varchar(1024);"`
	Kvp             datatypes.JSON `json:"kvp" gorm:"default:'{}'"`
	CreatedDateTime time.Time      `json:"created_date_time,omitempty" gorm:"default:timezone('utc'::text, now())"`
	UpdatedDateTime time.Time      `json:"updated_date_time,omitempty" gorm:"default:timezone('utc'::text, now())"`
}

type User

type User struct {
	UserID          uuid.UUID      `json:"user_id,omitempty" gorm:"primary_key;default:uuid_generate_v4();not null;"`
	Username        string         `json:"username,omitempty" gorm:"type:varchar(256);"`
	Password        string         `json:"password,omitempty" gorm:"type:varchar(512);"`
	Kvp             datatypes.JSON `json:"kvp" gorm:"default:'{}'"`
	CreatedDateTime time.Time      `json:"created_date_time,omitempty" gorm:"default:timezone('utc'::text, now())"`
	UpdatedDateTime time.Time      `json:"updated_date_time,omitempty" gorm:"default:timezone('utc'::text, now())"`
}

Jump to

Keyboard shortcuts

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