models

package
v2.16.6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// UserStatus variables
	UserStatus = userStatus{Active: "active", Inactive: "inactive"}

	// UserRoles variables
	UserRoles = userRoles{
		UserAdmin:        "user_admin",
		HierarchyManager: "hierarchy_manager",
		DeviceManager:    "device_manager",
		Inspector:        "inspector",
	}
)

Functions

This section is empty.

Types

type User

type User struct {
	ID             uuid.UUID `json:"id"`
	Email          string    `json:"email"`
	UserRoles      []string  `json:"userRoles"`
	Username       string    `json:"username"`
	UserStatus     string    `json:"userStatus"`
	EulaAgreedDate string    `json:"eulaAgreedDate"`
	ValidEula      bool      `json:"validEula"`
}

User struct

type UserAgreement

type UserAgreement struct {
	Email      string
	EULAAgreed string
}

UserAgreement struct

type UserCredentials

type UserCredentials struct {
	Username string
	Email    string
	Password string
}

UserCredentials struct

type UserWithCompanies

type UserWithCompanies struct {
	ID         string
	Email      string
	UserRoles  []string
	Username   string
	UserStatus string
	Companies  []string
}

UserWithCompanies struct

Jump to

Keyboard shortcuts

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