Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

Conch::DB::Result::Build

SOURCE

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

BASE CLASS: Conch::DB::Result

TABLE: build

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

created

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

started

data_type: 'timestamp with time zone'
is_nullable: 1

completed

data_type: 'timestamp with time zone'
is_nullable: 1

completed_user_id

data_type: 'uuid'
is_foreign_key: 1
is_nullable: 1
size: 16
data_type: 'text[]'
default_value: '{}'::text[]
is_nullable: 0

completed_status

data_type: 'enum'
extra: {custom_type_name => "completed_status_enum",list => ["failure","success"]}
is_nullable: 1

PRIMARY KEY

UNIQUE CONSTRAINTS

build_name_key

RELATIONS

completed_user

Type: belongs_to

Related object: Conch::DB::Result::UserAccount

devices

Type: has_many

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

organization_build_roles

Type: has_many

Related object: Conch::DB::Result::OrganizationBuildRole

racks

Type: has_many

Related object: Conch::DB::Result::Rack

user_build_roles

Type: has_many

Related object: Conch::DB::Result::UserBuildRole

organizations

Type: many_to_many

Composing rels: “organization_build_roles” -> organization

user_accounts

Type: many_to_many

Composing rels: “user_build_roles” -> user_account

METHODS

TO_JSON

Include information about the build’s admins and user who marked the build completed.

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