File Coverage

blib/lib/Bio/Chado/Schema/Result/NaturalDiversity/NdReagent.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::NdReagent;
2             BEGIN {
3 6     6   2846 $Bio::Chado::Schema::Result::NaturalDiversity::NdReagent::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   104 $Bio::Chado::Schema::Result::NaturalDiversity::NdReagent::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   42 use strict;
  6         14  
  6         105  
13 6     6   31 use warnings;
  6         13  
  6         143  
14              
15 6     6   30 use base 'DBIx::Class::Core';
  6         12  
  6         1096  
16              
17              
18              
19             __PACKAGE__->table("nd_reagent");
20              
21              
22             __PACKAGE__->add_columns(
23             "nd_reagent_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "nd_reagent_nd_reagent_id_seq",
29             },
30             "name",
31             { data_type => "varchar", is_nullable => 0, size => 80 },
32             "type_id",
33             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
34             "feature_id",
35             { data_type => "integer", is_nullable => 1 },
36             );
37             __PACKAGE__->set_primary_key("nd_reagent_id");
38              
39              
40             __PACKAGE__->has_many(
41             "nd_protocol_reagents",
42             "Bio::Chado::Schema::Result::NaturalDiversity::NdProtocolReagent",
43             { "foreign.reagent_id" => "self.nd_reagent_id" },
44             { cascade_copy => 0, cascade_delete => 0 },
45             );
46              
47              
48             __PACKAGE__->belongs_to(
49             "type",
50             "Bio::Chado::Schema::Result::Cv::Cvterm",
51             { cvterm_id => "type_id" },
52             {
53             cascade_copy => 0,
54             cascade_delete => 0,
55             is_deferrable => 1,
56             on_delete => "CASCADE",
57             on_update => "CASCADE",
58             },
59             );
60              
61              
62             __PACKAGE__->has_many(
63             "nd_reagentprops",
64             "Bio::Chado::Schema::Result::NaturalDiversity::NdReagentprop",
65             { "foreign.nd_reagent_id" => "self.nd_reagent_id" },
66             { cascade_copy => 0, cascade_delete => 0 },
67             );
68              
69              
70             __PACKAGE__->has_many(
71             "nd_reagent_relationship_subject_reagents",
72             "Bio::Chado::Schema::Result::NaturalDiversity::NdReagentRelationship",
73             { "foreign.subject_reagent_id" => "self.nd_reagent_id" },
74             { cascade_copy => 0, cascade_delete => 0 },
75             );
76              
77              
78             __PACKAGE__->has_many(
79             "nd_reagent_relationship_object_reagents",
80             "Bio::Chado::Schema::Result::NaturalDiversity::NdReagentRelationship",
81             { "foreign.object_reagent_id" => "self.nd_reagent_id" },
82             { cascade_copy => 0, cascade_delete => 0 },
83             );
84              
85              
86             # Created by DBIx::Class::Schema::Loader v0.07001 @ 2010-08-16 23:01:56
87             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:s6rJIBfIx576tuVdO750xg
88              
89              
90             # You can replace this text with custom content, and it will be preserved on regeneration
91             1;
92              
93             __END__