File Coverage

blib/lib/Bio/Chado/Schema/Result/Sequence/FeatureRelationshipprop.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::FeatureRelationshipprop;
2             BEGIN {
3 6     6   2681 $Bio::Chado::Schema::Result::Sequence::FeatureRelationshipprop::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   100 $Bio::Chado::Schema::Result::Sequence::FeatureRelationshipprop::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   47 use strict;
  6         19  
  6         106  
13 6     6   28 use warnings;
  6         12  
  6         140  
14              
15 6     6   30 use base 'DBIx::Class::Core';
  6         15  
  6         1051  
16              
17              
18              
19             __PACKAGE__->table("feature_relationshipprop");
20              
21              
22             __PACKAGE__->add_columns(
23             "feature_relationshipprop_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "feature_relationshipprop_feature_relationshipprop_id_seq",
29             },
30             "feature_relationship_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "type_id",
33             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
34             "value",
35             { data_type => "text", is_nullable => 1 },
36             "rank",
37             { data_type => "integer", default_value => 0, is_nullable => 0 },
38             );
39             __PACKAGE__->set_primary_key("feature_relationshipprop_id");
40             __PACKAGE__->add_unique_constraint(
41             "feature_relationshipprop_c1",
42             ["feature_relationship_id", "type_id", "rank"],
43             );
44              
45              
46             __PACKAGE__->belongs_to(
47             "feature_relationship",
48             "Bio::Chado::Schema::Result::Sequence::FeatureRelationship",
49             { "feature_relationship_id" => "feature_relationship_id" },
50             {
51             cascade_copy => 0,
52             cascade_delete => 0,
53             is_deferrable => 1,
54             on_delete => "CASCADE",
55             on_update => "CASCADE",
56             },
57             );
58              
59              
60             __PACKAGE__->belongs_to(
61             "type",
62             "Bio::Chado::Schema::Result::Cv::Cvterm",
63             { cvterm_id => "type_id" },
64             {
65             cascade_copy => 0,
66             cascade_delete => 0,
67             is_deferrable => 1,
68             on_delete => "CASCADE",
69             on_update => "CASCADE",
70             },
71             );
72              
73              
74             __PACKAGE__->has_many(
75             "feature_relationshipprop_pubs",
76             "Bio::Chado::Schema::Result::Sequence::FeatureRelationshippropPub",
77             {
78             "foreign.feature_relationshipprop_id" => "self.feature_relationshipprop_id",
79             },
80             { cascade_copy => 0, cascade_delete => 0 },
81             );
82              
83              
84             # Created by DBIx::Class::Schema::Loader v0.06001 @ 2010-04-16 14:33:36
85             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2FN1B9bFYMKmQmV4sHWuaQ
86              
87              
88             # You can replace this text with custom content, and it will be preserved on regeneration
89             1;
90              
91             __END__