Datacenter build and management service
https://github.com/joyent/conch-api/blob/master/lib/Conch/DB/Result/Device.pm
device
data_type: 'text'
is_nullable: 0
data_type: 'uuid'
is_nullable: 1
size: 16
data_type: 'uuid'
is_foreign_key: 1
is_nullable: 0
size: 16
data_type: 'enum'
extra: {custom_type_name => "device_health_enum",list => ["error","fail","unknown","pass"]}
is_nullable: 0
data_type: 'timestamp with time zone'
is_nullable: 1
data_type: 'timestamp with time zone'
default_value: current_timestamp
is_nullable: 0
original: {default_value => \"now()"}
data_type: 'timestamp with time zone'
default_value: current_timestamp
is_nullable: 0
original: {default_value => \"now()"}
data_type: 'timestamp with time zone'
is_nullable: 1
data_type: 'timestamp with time zone'
is_nullable: 1
data_type: 'text'
is_nullable: 1
data_type: 'text'
is_nullable: 1
data_type: 'enum'
default_value: 'integration'
extra: {custom_type_name => "device_phase_enum",list => ["integration","installation","production","diagnostics","decommissioned"]}
is_nullable: 0
data_type: 'uuid'
default_value: gen_random_uuid()
is_nullable: 0
size: 16
data_type: 'text[]'
default_value: '{}'::text[]
is_nullable: 0
data_type: 'uuid'
is_foreign_key: 1
is_nullable: 1
size: 16
device_serial_number_key
device_system_uuid_key
Type: belongs_to
Related object: Conch::DB::Result::Build
Type: has_many
Related object: Conch::DB::Result::DeviceDisk
Type: might_have
Related object: Conch::DB::Result::DeviceLocation
Type: has_many
Related object: Conch::DB::Result::DeviceNic
Type: has_many
Related object: Conch::DB::Result::DeviceRelayConnection
Type: has_many
Related object: Conch::DB::Result::DeviceReport
Type: has_many
Related object: Conch::DB::Result::DeviceSetting
Type: belongs_to
Related object: Conch::DB::Result::HardwareProduct
Type: has_many
Related object: Conch::DB::Result::LegacyValidationResult
Type: has_many
Related object: Conch::DB::Result::ValidationState
Type: many_to_many
Composing rels: “device_relay_connections” -> relay
Include information about the device’s rack location, when available and still relevant
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/.