2011-12-05 13:29:29 +00:00
|
|
|
use utf8;
|
2010-10-13 12:32:57 +00:00
|
|
|
package Hydra::Schema::BuildMachines;
|
|
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader
|
|
|
|
# DO NOT MODIFY THE FIRST PART OF THIS FILE
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
Hydra::Schema::BuildMachines
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2010-10-13 12:32:57 +00:00
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use base 'DBIx::Class::Core';
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
=head1 TABLE: C<BuildMachines>
|
2010-10-13 12:32:57 +00:00
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
__PACKAGE__->table("BuildMachines");
|
|
|
|
|
|
|
|
=head1 ACCESSORS
|
|
|
|
|
|
|
|
=head2 hostname
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'text'
|
2010-10-13 12:32:57 +00:00
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 username
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'text'
|
|
|
|
default_value: (empty string)
|
2010-10-13 12:32:57 +00:00
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 ssh_key
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'text'
|
|
|
|
default_value: (empty string)
|
2010-10-13 12:32:57 +00:00
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 options
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'text'
|
|
|
|
default_value: (empty string)
|
2010-10-13 12:32:57 +00:00
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 maxconcurrent
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'integer'
|
2010-10-13 12:32:57 +00:00
|
|
|
default_value: 2
|
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 speedfactor
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'integer'
|
2010-10-13 12:32:57 +00:00
|
|
|
default_value: 1
|
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 enabled
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'integer'
|
2010-11-11 11:03:50 +00:00
|
|
|
default_value: 0
|
2010-10-13 12:32:57 +00:00
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
__PACKAGE__->add_columns(
|
|
|
|
"hostname",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "text", is_nullable => 0 },
|
2010-10-13 12:32:57 +00:00
|
|
|
"username",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "text", default_value => "", is_nullable => 0 },
|
2010-10-13 12:32:57 +00:00
|
|
|
"ssh_key",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "text", default_value => "", is_nullable => 0 },
|
2010-10-13 12:32:57 +00:00
|
|
|
"options",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "text", default_value => "", is_nullable => 0 },
|
2010-10-13 12:32:57 +00:00
|
|
|
"maxconcurrent",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "integer", default_value => 2, is_nullable => 0 },
|
2010-10-13 12:32:57 +00:00
|
|
|
"speedfactor",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "integer", default_value => 1, is_nullable => 0 },
|
2010-10-13 12:32:57 +00:00
|
|
|
"enabled",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "integer", default_value => 0, is_nullable => 0 },
|
2010-10-13 12:32:57 +00:00
|
|
|
);
|
2011-12-05 13:29:29 +00:00
|
|
|
|
|
|
|
=head1 PRIMARY KEY
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item * L</hostname>
|
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2010-10-13 12:32:57 +00:00
|
|
|
__PACKAGE__->set_primary_key("hostname");
|
|
|
|
|
|
|
|
=head1 RELATIONS
|
|
|
|
|
|
|
|
=head2 buildmachinesystemtypes
|
|
|
|
|
|
|
|
Type: has_many
|
|
|
|
|
|
|
|
Related object: L<Hydra::Schema::BuildMachineSystemTypes>
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
__PACKAGE__->has_many(
|
|
|
|
"buildmachinesystemtypes",
|
|
|
|
"Hydra::Schema::BuildMachineSystemTypes",
|
|
|
|
{ "foreign.hostname" => "self.hostname" },
|
2011-12-05 13:29:29 +00:00
|
|
|
{},
|
2010-10-13 12:32:57 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
# Created by DBIx::Class::Schema::Loader v0.07014 @ 2011-12-05 14:15:43
|
|
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wboDtUIBUkvEiUHpe09kkg
|
2010-10-13 12:32:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
# You can replace this text with custom content, and it will be preserved on regeneration
|
|
|
|
1;
|