File Coverage

blib/lib/Bio/Chado/Schema/Result/Sequence/Featureprop.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::Featureprop;
2             BEGIN {
3 6     6   2709 $Bio::Chado::Schema::Result::Sequence::Featureprop::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   107 $Bio::Chado::Schema::Result::Sequence::Featureprop::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         16  
  6         102  
13 6     6   26 use warnings;
  6         14  
  6         145  
14              
15 6     6   27 use base 'DBIx::Class::Core';
  6         14  
  6         1133  
16              
17              
18              
19             __PACKAGE__->table("featureprop");
20              
21              
22             __PACKAGE__->add_columns(
23             "featureprop_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "featureprop_featureprop_id_seq",
29             },
30             "feature_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("featureprop_id");
40             __PACKAGE__->add_unique_constraint("featureprop_c1", ["feature_id", "type_id", "rank"]);
41              
42              
43             __PACKAGE__->belongs_to(
44             "feature",
45             "Bio::Chado::Schema::Result::Sequence::Feature",
46             { feature_id => "feature_id" },
47             {
48             cascade_copy => 0,
49             cascade_delete => 0,
50             is_deferrable => 1,
51             on_delete => "CASCADE",
52             on_update => "CASCADE",
53             },
54             );
55              
56              
57             __PACKAGE__->belongs_to(
58             "type",
59             "Bio::Chado::Schema::Result::Cv::Cvterm",
60             { cvterm_id => "type_id" },
61             {
62             cascade_copy => 0,
63             cascade_delete => 0,
64             is_deferrable => 1,
65             on_delete => "CASCADE",
66             on_update => "CASCADE",
67             },
68             );
69              
70              
71             __PACKAGE__->has_many(
72             "featureprop_pubs",
73             "Bio::Chado::Schema::Result::Sequence::FeaturepropPub",
74             { "foreign.featureprop_id" => "self.featureprop_id" },
75             { cascade_copy => 0, cascade_delete => 0 },
76             );
77              
78              
79             # Created by DBIx::Class::Schema::Loader v0.06001 @ 2010-04-16 14:33:36
80             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JRvuha97SZQzYCRp97gSqg
81              
82              
83             __PACKAGE__->belongs_to
84             (
85             'cvterm',
86             'Bio::Chado::Schema::Result::Cv::Cvterm',
87             { 'foreign.cvterm_id' => 'self.type_id' },
88             );
89              
90              
91              
92             # You can replace this text with custom content, and it will be preserved on regeneration
93             1;
94              
95             __END__