2008-12-16 16:26:33 +00:00
|
|
|
package Hydra::Schema::JobsetInputs;
|
2008-11-04 18:23:28 +00:00
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use base 'DBIx::Class';
|
|
|
|
|
|
|
|
__PACKAGE__->load_components("Core");
|
2008-11-11 12:54:37 +00:00
|
|
|
__PACKAGE__->table("JobsetInputs");
|
2008-11-04 18:23:28 +00:00
|
|
|
__PACKAGE__->add_columns(
|
|
|
|
"project",
|
|
|
|
{ data_type => "text", is_nullable => 0, size => undef },
|
2008-11-06 18:26:29 +00:00
|
|
|
"jobset",
|
2008-11-04 18:23:28 +00:00
|
|
|
{ data_type => "text", is_nullable => 0, size => undef },
|
|
|
|
"name",
|
|
|
|
{ data_type => "text", is_nullable => 0, size => undef },
|
|
|
|
"type",
|
|
|
|
{ data_type => "text", is_nullable => 0, size => undef },
|
|
|
|
);
|
2008-11-06 18:26:29 +00:00
|
|
|
__PACKAGE__->set_primary_key("project", "jobset", "name");
|
2008-11-04 18:23:28 +00:00
|
|
|
__PACKAGE__->has_many(
|
|
|
|
"jobsets",
|
2008-11-25 11:01:42 +00:00
|
|
|
"Hydra::Schema::Jobsets",
|
2008-11-04 18:23:28 +00:00
|
|
|
{
|
2009-03-12 23:46:17 +00:00
|
|
|
"foreign.name" => "self.jobset",
|
2008-11-04 18:23:28 +00:00
|
|
|
"foreign.nixexprinput" => "self.name",
|
|
|
|
"foreign.project" => "self.project",
|
|
|
|
},
|
|
|
|
);
|
|
|
|
__PACKAGE__->belongs_to(
|
|
|
|
"jobset",
|
2008-11-25 11:01:42 +00:00
|
|
|
"Hydra::Schema::Jobsets",
|
2008-11-06 18:26:29 +00:00
|
|
|
{ name => "jobset", project => "project" },
|
|
|
|
);
|
|
|
|
__PACKAGE__->has_many(
|
|
|
|
"jobsetinputalts",
|
2008-12-16 16:26:33 +00:00
|
|
|
"Hydra::Schema::JobsetInputAlts",
|
2008-11-06 18:26:29 +00:00
|
|
|
{
|
|
|
|
"foreign.input" => "self.name",
|
|
|
|
"foreign.jobset" => "self.jobset",
|
|
|
|
"foreign.project" => "self.project",
|
|
|
|
},
|
2008-11-04 18:23:28 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
2009-03-13 14:49:25 +00:00
|
|
|
# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-03-13 13:33:20
|
|
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1XdnQh4HnXU/iOyNvv8QWg
|
2008-11-04 18:23:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
# You can replace this text with custom content, and it will be preserved on regeneration
|
|
|
|
1;
|