File Coverage

blib/lib/Bio/Chado/Schema/Result/Expression/ExpressionCvtermprop.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::Expression::ExpressionCvtermprop;
2             BEGIN {
3 6     6   51718 $Bio::Chado::Schema::Result::Expression::ExpressionCvtermprop::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   109 $Bio::Chado::Schema::Result::Expression::ExpressionCvtermprop::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   36 use strict;
  6         14  
  6         103  
13 6     6   26 use warnings;
  6         13  
  6         137  
14              
15 6     6   41 use base 'DBIx::Class::Core';
  6         16  
  6         1208  
16              
17              
18              
19             __PACKAGE__->table("expression_cvtermprop");
20              
21              
22             __PACKAGE__->add_columns(
23             "expression_cvtermprop_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "expression_cvtermprop_expression_cvtermprop_id_seq",
29             },
30             "expression_cvterm_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("expression_cvtermprop_id");
40             __PACKAGE__->add_unique_constraint(
41             "expression_cvtermprop_c1",
42             ["expression_cvterm_id", "type_id", "rank"],
43             );
44              
45              
46             __PACKAGE__->belongs_to(
47             "expression_cvterm",
48             "Bio::Chado::Schema::Result::Expression::ExpressionCvterm",
49             { expression_cvterm_id => "expression_cvterm_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             # Created by DBIx::Class::Schema::Loader v0.06001 @ 2010-04-16 14:33:36
75             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bX1Fnm8Rp+E+pP2dhWtCVg
76              
77              
78             # You can replace this text with custom content, and it will be preserved on regeneration
79             1;
80              
81             __END__