Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

Conch::DB::Result::UserAccount

SOURCE

https://github.com/joyent/conch-api/blob/master/lib/Conch/DB/Result/UserAccount.pm

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

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

last_seen

data_type: 'timestamp with time zone'
is_nullable: 1

PRIMARY KEY

RELATIONS

completed_builds

Type: has_many

Related object: Conch::DB::Result::Build

hardware_product_json_schemas

Type: has_many

Related object: Conch::DB::Result::HardwareProductJSONSchema

json_schemas

Type: has_many

Related object: Conch::DB::Result::JSONSchema

relays

Type: has_many

Related object: Conch::DB::Result::Relay

user_build_roles

Type: has_many

Related object: Conch::DB::Result::UserBuildRole

user_organization_roles

Type: has_many

Related object: Conch::DB::Result::UserOrganizationRole

user_session_tokens

Type: has_many

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

user_settings

Type: has_many

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

builds

Type: many_to_many

Composing rels: “user_build_roles” -> build

organizations

Type: many_to_many

Composing rels: “user_organization_roles” -> organization

METHODS

check_password

Checks the provided password against the value in the database, returning true/false. Because hard cryptography is used, this is not a fast call!

TO_JSON

Include information about the user’s organizations and builds, if available.

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 https://www.mozilla.org/en-US/MPL/2.0/.