File Coverage

blib/lib/Bio/Chado/Schema/Result/Sequence/FeatureRelationship.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::Sequence::FeatureRelationship;
2             BEGIN {
3 6     6   2856 $Bio::Chado::Schema::Result::Sequence::FeatureRelationship::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   111 $Bio::Chado::Schema::Result::Sequence::FeatureRelationship::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   43 use strict;
  6         16  
  6         110  
13 6     6   28 use warnings;
  6         17  
  6         136  
14              
15 6     6   28 use base 'DBIx::Class::Core';
  6         16  
  6         1209  
16              
17              
18              
19             __PACKAGE__->table("feature_relationship");
20              
21              
22             __PACKAGE__->add_columns(
23             "feature_relationship_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "feature_relationship_feature_relationship_id_seq",
29             },
30             "subject_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "object_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             "value",
37             { data_type => "text", is_nullable => 1 },
38             "rank",
39             { data_type => "integer", default_value => 0, is_nullable => 0 },
40             );
41             __PACKAGE__->set_primary_key("feature_relationship_id");
42             __PACKAGE__->add_unique_constraint(
43             "feature_relationship_c1",
44             ["subject_id", "object_id", "type_id", "rank"],
45             );
46              
47              
48             __PACKAGE__->belongs_to(
49             "subject",
50             "Bio::Chado::Schema::Result::Sequence::Feature",
51             { feature_id => "subject_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__->belongs_to(
63             "object",
64             "Bio::Chado::Schema::Result::Sequence::Feature",
65             { feature_id => "object_id" },
66             {
67             cascade_copy => 0,
68             cascade_delete => 0,
69             is_deferrable => 1,
70             on_delete => "CASCADE",
71             on_update => "CASCADE",
72             },
73             );
74              
75              
76             __PACKAGE__->belongs_to(
77             "type",
78             "Bio::Chado::Schema::Result::Cv::Cvterm",
79             { cvterm_id => "type_id" },
80             {
81             cascade_copy => 0,
82             cascade_delete => 0,
83             is_deferrable => 1,
84             on_delete => "CASCADE",
85             on_update => "CASCADE",
86             },
87             );
88              
89              
90             __PACKAGE__->has_many(
91             "feature_relationshipprops",
92             "Bio::Chado::Schema::Result::Sequence::FeatureRelationshipprop",
93             {
94             "foreign.feature_relationship_id" => "self.feature_relationship_id",
95             },
96             { cascade_copy => 0, cascade_delete => 0 },
97             );
98              
99              
100             __PACKAGE__->has_many(
101             "feature_relationship_pubs",
102             "Bio::Chado::Schema::Result::Sequence::FeatureRelationshipPub",
103             {
104             "foreign.feature_relationship_id" => "self.feature_relationship_id",
105             },
106             { cascade_copy => 0, cascade_delete => 0 },
107             );
108              
109              
110             # Created by DBIx::Class::Schema::Loader v0.06001 @ 2010-04-16 14:33:36
111             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ugt3dgZnJcE7tSQpFbDVoA
112              
113              
114             # You can replace this text with custom content, and it will be preserved on regeneration
115             1;
116              
117             __END__