Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

Conch::DB::Result::ValidationState

SOURCE

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

BASE CLASS: Conch::DB::Result

TABLE: validation_state

ACCESSORS

id

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

created

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

status

data_type: 'enum'
extra: {custom_type_name => "validation_status_enum",list => ["error","fail","pass"]}
is_nullable: 0

device_report_id

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

device_id

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

hardware_product_id

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

PRIMARY KEY

RELATIONS

device

Type: belongs_to

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

device_report

Type: belongs_to

Related object: Conch::DB::Result::DeviceReport

hardware_product

Type: belongs_to

Related object: Conch::DB::Result::HardwareProduct

legacy_validation_state_members

Type: has_many

Related object: Conch::DB::Result::LegacyValidationStateMember

validation_state_members

Type: has_many

Related object: Conch::DB::Result::ValidationStateMember

legacy_validation_results

Type: many_to_many

Composing rels: “legacy_validation_state_members” -> legacy_validation_result

validation_results

Type: many_to_many

Composing rels: “validation_state_members” -> validation_result

METHODS

TO_JSON

Include all the associated validation results, when available.

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