2011-12-05 14:29:29 +01:00
|
|
|
use utf8;
|
2021-08-26 12:03:00 -04:00
|
|
|
package Hydra::Schema::Result::BuildInputs;
|
2008-11-05 06:23:41 +00:00
|
|
|
|
2009-10-23 15:05:16 +00:00
|
|
|
# Created by DBIx::Class::Schema::Loader
|
|
|
|
# DO NOT MODIFY THE FIRST PART OF THIS FILE
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
=head1 NAME
|
|
|
|
|
2021-08-26 12:03:00 -04:00
|
|
|
Hydra::Schema::Result::BuildInputs
|
2011-12-05 14:29:29 +01:00
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2008-11-05 06:23:41 +00:00
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
2010-02-25 09:50:04 +00:00
|
|
|
use base 'DBIx::Class::Core';
|
|
|
|
|
2013-06-17 12:34:21 -04:00
|
|
|
=head1 COMPONENTS LOADED
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item * L<Hydra::Component::ToJSON>
|
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
__PACKAGE__->load_components("+Hydra::Component::ToJSON");
|
|
|
|
|
2020-02-06 12:23:47 -05:00
|
|
|
=head1 TABLE: C<buildinputs>
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
=cut
|
2008-11-05 06:23:41 +00:00
|
|
|
|
2020-02-06 12:23:47 -05:00
|
|
|
__PACKAGE__->table("buildinputs");
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
=head1 ACCESSORS
|
|
|
|
|
|
|
|
=head2 id
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'integer'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_auto_increment: 1
|
|
|
|
is_nullable: 0
|
2020-02-06 12:23:47 -05:00
|
|
|
sequence: 'buildinputs_id_seq'
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
=head2 build
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'integer'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_foreign_key: 1
|
|
|
|
is_nullable: 1
|
|
|
|
|
|
|
|
=head2 name
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'text'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 type
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'text'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 uri
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'text'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_nullable: 1
|
|
|
|
|
|
|
|
=head2 revision
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'text'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_nullable: 1
|
|
|
|
|
|
|
|
=head2 value
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'text'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_nullable: 1
|
|
|
|
|
2013-10-08 14:47:24 -04:00
|
|
|
=head2 emailresponsible
|
2013-10-07 10:06:09 -04:00
|
|
|
|
|
|
|
data_type: 'integer'
|
|
|
|
default_value: 0
|
|
|
|
is_nullable: 0
|
|
|
|
|
2010-02-25 09:50:04 +00:00
|
|
|
=head2 dependency
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'integer'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_foreign_key: 1
|
|
|
|
is_nullable: 1
|
|
|
|
|
|
|
|
=head2 path
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'text'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_nullable: 1
|
|
|
|
|
|
|
|
=head2 sha256hash
|
|
|
|
|
2011-12-05 14:29:29 +01:00
|
|
|
data_type: 'text'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_nullable: 1
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2008-11-05 06:23:41 +00:00
|
|
|
__PACKAGE__->add_columns(
|
2008-11-09 00:48:36 +00:00
|
|
|
"id",
|
2020-02-06 12:23:47 -05:00
|
|
|
{
|
|
|
|
data_type => "integer",
|
|
|
|
is_auto_increment => 1,
|
|
|
|
is_nullable => 0,
|
|
|
|
sequence => "buildinputs_id_seq",
|
|
|
|
},
|
2008-11-09 00:48:36 +00:00
|
|
|
"build",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
|
2008-11-05 06:23:41 +00:00
|
|
|
"name",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "text", is_nullable => 0 },
|
2008-11-05 06:23:41 +00:00
|
|
|
"type",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "text", is_nullable => 0 },
|
2008-11-05 06:23:41 +00:00
|
|
|
"uri",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "text", is_nullable => 1 },
|
2008-11-05 06:23:41 +00:00
|
|
|
"revision",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "text", is_nullable => 1 },
|
2008-11-09 00:48:36 +00:00
|
|
|
"value",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "text", is_nullable => 1 },
|
2013-10-08 14:47:24 -04:00
|
|
|
"emailresponsible",
|
2013-10-07 10:06:09 -04:00
|
|
|
{ data_type => "integer", default_value => 0, is_nullable => 0 },
|
2008-11-09 00:48:36 +00:00
|
|
|
"dependency",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
|
2008-11-05 23:08:16 +00:00
|
|
|
"path",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "text", is_nullable => 1 },
|
2008-11-12 23:14:57 +00:00
|
|
|
"sha256hash",
|
2011-12-05 14:29:29 +01:00
|
|
|
{ data_type => "text", is_nullable => 1 },
|
2008-11-05 06:23:41 +00:00
|
|
|
);
|
2011-12-05 14:29:29 +01:00
|
|
|
|
|
|
|
=head1 PRIMARY KEY
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item * L</id>
|
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2008-11-09 00:48:36 +00:00
|
|
|
__PACKAGE__->set_primary_key("id");
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
=head1 RELATIONS
|
|
|
|
|
|
|
|
=head2 build
|
|
|
|
|
|
|
|
Type: belongs_to
|
|
|
|
|
2021-08-26 12:03:00 -04:00
|
|
|
Related object: L<Hydra::Schema::Result::Builds>
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2009-07-07 13:59:59 +00:00
|
|
|
__PACKAGE__->belongs_to(
|
|
|
|
"build",
|
2021-08-26 12:03:00 -04:00
|
|
|
"Hydra::Schema::Result::Builds",
|
2009-07-07 13:59:59 +00:00
|
|
|
{ id => "build" },
|
2013-01-22 22:48:02 +01:00
|
|
|
{
|
|
|
|
is_deferrable => 0,
|
|
|
|
join_type => "LEFT",
|
|
|
|
on_delete => "CASCADE",
|
|
|
|
on_update => "NO ACTION",
|
|
|
|
},
|
2009-07-07 13:59:59 +00:00
|
|
|
);
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
=head2 dependency
|
|
|
|
|
|
|
|
Type: belongs_to
|
|
|
|
|
2021-08-26 12:03:00 -04:00
|
|
|
Related object: L<Hydra::Schema::Result::Builds>
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2009-07-07 13:59:59 +00:00
|
|
|
__PACKAGE__->belongs_to(
|
|
|
|
"dependency",
|
2021-08-26 12:03:00 -04:00
|
|
|
"Hydra::Schema::Result::Builds",
|
2009-07-07 13:59:59 +00:00
|
|
|
{ id => "dependency" },
|
2013-01-22 22:48:02 +01:00
|
|
|
{
|
|
|
|
is_deferrable => 0,
|
|
|
|
join_type => "LEFT",
|
|
|
|
on_delete => "NO ACTION",
|
|
|
|
on_update => "NO ACTION",
|
|
|
|
},
|
2009-07-07 13:59:59 +00:00
|
|
|
);
|
2008-11-05 06:23:41 +00:00
|
|
|
|
2009-05-09 16:10:50 +00:00
|
|
|
|
2021-08-26 12:03:00 -04:00
|
|
|
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-08-26 12:02:36
|
|
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IBNdR4VPMGusDQex5omT+g
|
2008-11-05 06:23:41 +00:00
|
|
|
|
2013-11-05 09:42:05 -05:00
|
|
|
my %hint = (
|
|
|
|
columns => [
|
|
|
|
'type',
|
|
|
|
'uri',
|
|
|
|
'value',
|
|
|
|
'revision',
|
2014-05-08 16:36:15 +02:00
|
|
|
'dependency',
|
2013-11-05 09:42:05 -05:00
|
|
|
],
|
|
|
|
);
|
|
|
|
|
|
|
|
sub json_hint {
|
|
|
|
return \%hint;
|
|
|
|
}
|
|
|
|
|
2008-11-05 06:23:41 +00:00
|
|
|
1;
|