File Coverage

blib/lib/Bio/Chado/Schema/Result/NaturalDiversity/NdReagentRelationship.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Bio::Chado::Schema::Result::NaturalDiversity::NdReagentRelationship;
2             BEGIN {
3 6     6   2737 $Bio::Chado::Schema::Result::NaturalDiversity::NdReagentRelationship::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   97 $Bio::Chado::Schema::Result::NaturalDiversity::NdReagentRelationship::VERSION = '0.08001'; # TRIAL
7             }
8              
9             # Created by DBIx::Class::Schema::Loader
10             # DO NOT MODIFY THE FIRST PART OF THIS FILE
11              
12 6     6   35 use strict;
  6         15  
  6         100  
13 6     6   29 use warnings;
  6         14  
  6         133  
14              
15 6     6   26 use base 'DBIx::Class::Core';
  6         14  
  6         982  
16              
17              
18              
19             __PACKAGE__->table("nd_reagent_relationship");
20              
21              
22             __PACKAGE__->add_columns(
23             "nd_reagent_relationship_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "nd_reagent_relationship_nd_reagent_relationship_id_seq",
29             },
30             "subject_reagent_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "object_reagent_id",
33             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
34             "type_id",
35             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
36             );
37             __PACKAGE__->set_primary_key("nd_reagent_relationship_id");
38              
39              
40             __PACKAGE__->belongs_to(
41             "type",
42             "Bio::Chado::Schema::Result::Cv::Cvterm",
43             { cvterm_id => "type_id" },
44             {
45             cascade_copy => 0,
46             cascade_delete => 0,
47             is_deferrable => 1,
48             on_delete => "CASCADE",
49             on_update => "CASCADE",
50             },
51             );
52              
53              
54             __PACKAGE__->belongs_to(
55             "subject_reagent",
56             "Bio::Chado::Schema::Result::NaturalDiversity::NdReagent",
57             { nd_reagent_id => "subject_reagent_id" },
58             {
59             cascade_copy => 0,
60             cascade_delete => 0,
61             is_deferrable => 1,
62             on_delete => "CASCADE",
63             on_update => "CASCADE",
64             },
65             );
66              
67              
68             __PACKAGE__->belongs_to(
69             "object_reagent",
70             "Bio::Chado::Schema::Result::NaturalDiversity::NdReagent",
71             { nd_reagent_id => "object_reagent_id" },
72             {
73             cascade_copy => 0,
74             cascade_delete => 0,
75             is_deferrable => 1,
76             on_delete => "CASCADE",
77             on_update => "CASCADE",
78             },
79             );
80              
81              
82             # Created by DBIx::Class::Schema::Loader v0.07001 @ 2010-08-16 23:01:56
83             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:h5HCvo+acjJxOJpcir6xOQ
84              
85              
86             # You can replace this text with custom content, and it will be preserved on regeneration
87             1;
88              
89             __END__