Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

NAME

Conch::DB::Result::Workspace

BASE CLASS: Conch::DB::Result

TABLE: workspace

ACCESSORS

id

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

name

data_type: 'text'
is_nullable: 0

description

data_type: 'text'
is_nullable: 1

parent_workspace_id

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

PRIMARY KEY

UNIQUE CONSTRAINTS

workspace_name_key

RELATIONS

parent_workspace

Type: belongs_to

Related object: Conch::DB::Result::Workspace

user_workspace_roles

Type: has_many

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

workspace_racks

Type: has_many

Related object: Conch::DB::Result::WorkspaceRack

workspaces

Type: has_many

Related object: Conch::DB::Result::Workspace

racks

Type: many_to_many

Composing rels: “workspace_racks” -> rack

user_accounts

Type: many_to_many

Composing rels: “user_workspace_roles” -> user_account

TO_JSON

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

user_id_for_role

Accessor for informational column, which is used by the serializer to signal we should fetch and include inherited role data.

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