models

package
v1.1.1 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: 0

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);"`
}

Credentials represents service credentials

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())"`
}

Event represents an event for cron jobs

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())"`
}

User represents a user in the service including username and password

Jump to

Keyboard shortcuts

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