Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

NAME

Conch::DB::Result::Rack

BASE CLASS: Conch::DB::Result

TABLE: rack

ACCESSORS

id

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

datacenter_room_id

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

name

data_type: 'text'
is_nullable: 0

rack_role_id

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

created

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

updated

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

serial_number

data_type: 'text'
is_nullable: 1

asset_tag

data_type: 'text'
is_nullable: 1

phase

data_type: 'enum'
default_value: 'integration'
extra: {custom_type_name => "device_phase_enum",list => ["integration","installation","production","diagnostics","decommissioned"]}
is_nullable: 0

PRIMARY KEY

UNIQUE CONSTRAINTS

rack_datacenter_room_id_name_key

RELATIONS

datacenter_room

Type: belongs_to

Related object: Conch::DB::Result::DatacenterRoom

device_locations

Type: has_many

Related object: Conch::DB::Result::DeviceLocation

rack_layouts

Type: has_many

Related object: Conch::DB::Result::RackLayout

rack_role

Type: belongs_to

Related object: Conch::DB::Result::RackRole

workspace_racks

Type: has_many

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

workspaces

Type: many_to_many

Composing rels: “workspace_racks” -> workspace

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