Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

NAME

Conch::DB::Result::HardwareProduct

BASE CLASS: Conch::DB::Result

TABLE: hardware_product

ACCESSORS

id

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

name

data_type: 'text'
is_nullable: 0

alias

data_type: 'text'
is_nullable: 0

prefix

data_type: 'text'
is_nullable: 1

hardware_vendor_id

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

deactivated

data_type: 'timestamp with time zone'
is_nullable: 1

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()"}

specification

data_type: 'jsonb'
is_nullable: 1

sku

data_type: 'text'
is_nullable: 1

generation_name

data_type: 'text'
is_nullable: 1

legacy_product_name

data_type: 'text'
is_nullable: 1

PRIMARY KEY

RELATIONS

devices

Type: has_many

Related object: Conch::DB::Result::Device

hardware_product_profile

Type: might_have

Related object: Conch::DB::Result::HardwareProductProfile

hardware_vendor

Type: belongs_to

Related object: Conch::DB::Result::HardwareVendor

rack_layouts

Type: has_many

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

validation_results

Type: has_many

Related object: Conch::DB::Result::ValidationResult

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