2011-12-05 13:29:29 +00:00
|
|
|
use utf8;
|
2010-03-05 15:41:10 +00:00
|
|
|
package Hydra::Schema::JobsetEvals;
|
|
|
|
|
|
|
|
# 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::JobsetEvals
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2010-03-05 15:41:10 +00:00
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use base 'DBIx::Class::Core';
|
|
|
|
|
2013-06-17 16:34:21 +00:00
|
|
|
=head1 COMPONENTS LOADED
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item * L<Hydra::Component::ToJSON>
|
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
__PACKAGE__->load_components("+Hydra::Component::ToJSON");
|
|
|
|
|
2020-02-06 17:23:47 +00:00
|
|
|
=head1 TABLE: C<jobsetevals>
|
2010-03-05 15:41:10 +00:00
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2020-02-06 17:23:47 +00:00
|
|
|
__PACKAGE__->table("jobsetevals");
|
2010-03-05 15:41:10 +00:00
|
|
|
|
|
|
|
=head1 ACCESSORS
|
|
|
|
|
|
|
|
=head2 id
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'integer'
|
2010-03-05 15:41:10 +00:00
|
|
|
is_auto_increment: 1
|
|
|
|
is_nullable: 0
|
2020-02-06 17:23:47 +00:00
|
|
|
sequence: 'jobsetevals_id_seq'
|
2010-03-05 15:41:10 +00:00
|
|
|
|
|
|
|
=head2 project
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'text'
|
2010-03-05 15:41:10 +00:00
|
|
|
is_foreign_key: 1
|
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 jobset
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'text'
|
2010-03-05 15:41:10 +00:00
|
|
|
is_foreign_key: 1
|
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 timestamp
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'integer'
|
2010-03-05 15:41:10 +00:00
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 checkouttime
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'integer'
|
2010-03-05 15:41:10 +00:00
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 evaltime
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'integer'
|
2010-03-05 15:41:10 +00:00
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 hasnewbuilds
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'integer'
|
2010-03-05 15:41:10 +00:00
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 hash
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'text'
|
2010-03-05 15:41:10 +00:00
|
|
|
is_nullable: 0
|
|
|
|
|
2012-04-15 22:57:10 +00:00
|
|
|
=head2 nrbuilds
|
|
|
|
|
|
|
|
data_type: 'integer'
|
|
|
|
is_nullable: 1
|
|
|
|
|
|
|
|
=head2 nrsucceeded
|
|
|
|
|
|
|
|
data_type: 'integer'
|
|
|
|
is_nullable: 1
|
|
|
|
|
2020-02-09 20:17:24 +00:00
|
|
|
=head2 flake
|
|
|
|
|
|
|
|
data_type: 'text'
|
|
|
|
is_nullable: 1
|
|
|
|
|
2010-03-05 15:41:10 +00:00
|
|
|
=cut
|
|
|
|
|
|
|
|
__PACKAGE__->add_columns(
|
|
|
|
"id",
|
2020-02-06 17:23:47 +00:00
|
|
|
{
|
|
|
|
data_type => "integer",
|
|
|
|
is_auto_increment => 1,
|
|
|
|
is_nullable => 0,
|
|
|
|
sequence => "jobsetevals_id_seq",
|
|
|
|
},
|
2010-03-05 15:41:10 +00:00
|
|
|
"project",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "text", is_foreign_key => 1, is_nullable => 0 },
|
2010-03-05 15:41:10 +00:00
|
|
|
"jobset",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "text", is_foreign_key => 1, is_nullable => 0 },
|
2010-03-05 15:41:10 +00:00
|
|
|
"timestamp",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "integer", is_nullable => 0 },
|
2010-03-05 15:41:10 +00:00
|
|
|
"checkouttime",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "integer", is_nullable => 0 },
|
2010-03-05 15:41:10 +00:00
|
|
|
"evaltime",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "integer", is_nullable => 0 },
|
2010-03-05 15:41:10 +00:00
|
|
|
"hasnewbuilds",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "integer", is_nullable => 0 },
|
2010-03-05 15:41:10 +00:00
|
|
|
"hash",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "text", is_nullable => 0 },
|
2012-04-15 22:57:10 +00:00
|
|
|
"nrbuilds",
|
|
|
|
{ data_type => "integer", is_nullable => 1 },
|
|
|
|
"nrsucceeded",
|
|
|
|
{ data_type => "integer", is_nullable => 1 },
|
2020-02-09 20:17:24 +00:00
|
|
|
"flake",
|
|
|
|
{ data_type => "text", is_nullable => 1 },
|
2010-03-05 15:41:10 +00:00
|
|
|
);
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
=head1 PRIMARY KEY
|
2010-03-05 15:41:10 +00:00
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
=over 4
|
2010-03-05 15:41:10 +00:00
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
=item * L</id>
|
2010-03-05 15:41:10 +00:00
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
=back
|
2010-03-05 15:41:10 +00:00
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
__PACKAGE__->set_primary_key("id");
|
|
|
|
|
|
|
|
=head1 RELATIONS
|
2010-03-05 15:41:10 +00:00
|
|
|
|
|
|
|
=head2 jobset
|
|
|
|
|
|
|
|
Type: belongs_to
|
|
|
|
|
|
|
|
Related object: L<Hydra::Schema::Jobsets>
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
__PACKAGE__->belongs_to(
|
|
|
|
"jobset",
|
|
|
|
"Hydra::Schema::Jobsets",
|
|
|
|
{ name => "jobset", project => "project" },
|
2013-01-22 21:48:02 +00:00
|
|
|
{ is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
|
2010-03-05 15:41:10 +00:00
|
|
|
);
|
|
|
|
|
2012-04-15 18:36:36 +00:00
|
|
|
=head2 jobsetevalinputs
|
|
|
|
|
|
|
|
Type: has_many
|
|
|
|
|
|
|
|
Related object: L<Hydra::Schema::JobsetEvalInputs>
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
__PACKAGE__->has_many(
|
|
|
|
"jobsetevalinputs",
|
|
|
|
"Hydra::Schema::JobsetEvalInputs",
|
|
|
|
{ "foreign.eval" => "self.id" },
|
2013-01-22 21:48:02 +00:00
|
|
|
undef,
|
2012-04-15 18:36:36 +00:00
|
|
|
);
|
|
|
|
|
2010-03-05 15:41:10 +00:00
|
|
|
=head2 jobsetevalmembers
|
|
|
|
|
|
|
|
Type: has_many
|
|
|
|
|
|
|
|
Related object: L<Hydra::Schema::JobsetEvalMembers>
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
__PACKAGE__->has_many(
|
|
|
|
"jobsetevalmembers",
|
|
|
|
"Hydra::Schema::JobsetEvalMembers",
|
|
|
|
{ "foreign.eval" => "self.id" },
|
2013-01-22 21:48:02 +00:00
|
|
|
undef,
|
2010-03-05 15:41:10 +00:00
|
|
|
);
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
=head2 project
|
|
|
|
|
|
|
|
Type: belongs_to
|
|
|
|
|
|
|
|
Related object: L<Hydra::Schema::Projects>
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2013-01-22 21:48:02 +00:00
|
|
|
__PACKAGE__->belongs_to(
|
|
|
|
"project",
|
|
|
|
"Hydra::Schema::Projects",
|
|
|
|
{ name => "project" },
|
|
|
|
{ is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
|
|
|
|
);
|
2011-12-05 13:29:29 +00:00
|
|
|
|
2010-03-05 15:41:10 +00:00
|
|
|
|
2020-02-09 20:17:24 +00:00
|
|
|
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-02-09 15:21:11
|
|
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ar6GRni8AcAQmuZyg6tFKw
|
2010-03-05 15:41:10 +00:00
|
|
|
|
2010-03-05 17:20:04 +00:00
|
|
|
__PACKAGE__->has_many(
|
|
|
|
"buildIds",
|
|
|
|
"Hydra::Schema::JobsetEvalMembers",
|
|
|
|
{ "foreign.eval" => "self.id" },
|
|
|
|
);
|
|
|
|
|
|
|
|
__PACKAGE__->many_to_many(builds => 'buildIds', 'build');
|
|
|
|
|
2013-10-24 19:38:20 +00:00
|
|
|
my %hint = (
|
|
|
|
columns => [
|
|
|
|
"hasnewbuilds",
|
|
|
|
"id"
|
|
|
|
],
|
|
|
|
relations => {
|
|
|
|
"builds" => "id"
|
|
|
|
},
|
|
|
|
eager_relations => {
|
|
|
|
# altnr? Does anyone care?
|
|
|
|
jobsetevalinputs => "name"
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
sub json_hint {
|
|
|
|
return \%hint;
|
|
|
|
}
|
|
|
|
|
2010-03-05 15:41:10 +00:00
|
|
|
1;
|