Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

Conch::DB::Result::UserSessionToken

SOURCE

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

BASE CLASS: Conch::DB::Result

TABLE: user_session_token

ACCESSORS

user_id

data_type: 'uuid'
is_foreign_key: 1
is_nullable: 0
size: 16

expires

data_type: 'timestamp with time zone'
is_nullable: 0

name

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_used

data_type: 'timestamp with time zone'
is_nullable: 1

id

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

last_ipaddr

data_type: 'inet'
is_nullable: 1

PRIMARY KEY

UNIQUE CONSTRAINTS

user_session_token_user_id_name_key

RELATIONS

user_account

Type: belongs_to

Related object: Conch::DB::Result::UserAccount

METHODS

is_login

Boolean indicating whether this token was created via the main /login flow.

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/.