Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

NAME

Conch::DB::Result::UserAccount

BASE CLASS: Conch::DB::Result

TABLE: user_account

ACCESSORS

id

data_type: 'uuid'
default_value: gen_random_uuid()
is_nullable: 0
size: 16

name

data_type: 'text'
is_nullable: 0

password_hash

data_type: 'text'
is_nullable: 0

created

data_type: 'timestamp with time zone'
default_value: current_timestamp
is_nullable: 0
original: {default_value => \"now()"}

last_login

data_type: 'timestamp with time zone'
is_nullable: 1

email

data_type: 'text'
is_nullable: 0

deactivated

data_type: 'timestamp with time zone'
is_nullable: 1

refuse_session_auth

data_type: 'boolean'
default_value: false
is_nullable: 0

force_password_change

data_type: 'boolean'
default_value: false
is_nullable: 0

is_admin

data_type: 'boolean'
default_value: false
is_nullable: 0

PRIMARY KEY

RELATIONS

user_relay_connections

Type: has_many

Related object: Conch::DB::Result::UserRelayConnection

user_session_tokens

Type: has_many

Related object: Conch::DB::Result::UserSessionToken

user_settings

Type: has_many

Related object: Conch::DB::Result::UserSetting

user_workspace_roles

Type: has_many

Related object: Conch::DB::Result::UserWorkspaceRole

relays

Type: many_to_many

Composing rels: “user_relay_connections” -> relay

workspaces

Type: many_to_many

Composing rels: “user_workspace_roles” -> workspace

METHODS

TO_JSON

Include information about the user’s workspaces, if available.

new

Overrides original to move ‘password’ to ‘password_hash’.

update

Overrides original to move ‘password’ to ‘password_hash’.

validate_password

Check whether the given password text has a hash matching the stored password hash.

LICENSING

Copyright Joyent, Inc.

This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.