File Coverage

blib/lib/Bio/Chado/Schema/Result/Mage/BiomaterialTreatment.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::Mage::BiomaterialTreatment;
2             BEGIN {
3 6     6   2606 $Bio::Chado::Schema::Result::Mage::BiomaterialTreatment::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   102 $Bio::Chado::Schema::Result::Mage::BiomaterialTreatment::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         22  
  6         154  
14              
15 6     6   26 use base 'DBIx::Class::Core';
  6         12  
  6         1071  
16              
17              
18              
19             __PACKAGE__->table("biomaterial_treatment");
20              
21              
22             __PACKAGE__->add_columns(
23             "biomaterial_treatment_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "biomaterial_treatment_biomaterial_treatment_id_seq",
29             },
30             "biomaterial_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "treatment_id",
33             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
34             "unittype_id",
35             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
36             "value",
37             { data_type => "real", is_nullable => 1 },
38             "rank",
39             { data_type => "integer", default_value => 0, is_nullable => 0 },
40             );
41             __PACKAGE__->set_primary_key("biomaterial_treatment_id");
42             __PACKAGE__->add_unique_constraint(
43             "biomaterial_treatment_c1",
44             ["biomaterial_id", "treatment_id"],
45             );
46              
47              
48             __PACKAGE__->belongs_to(
49             "biomaterial",
50             "Bio::Chado::Schema::Result::Mage::Biomaterial",
51             { biomaterial_id => "biomaterial_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             "unittype",
64             "Bio::Chado::Schema::Result::Cv::Cvterm",
65             { cvterm_id => "unittype_id" },
66             {
67             cascade_copy => 0,
68             cascade_delete => 0,
69             is_deferrable => 1,
70             join_type => "LEFT",
71             on_delete => "CASCADE",
72             on_update => "CASCADE",
73             },
74             );
75              
76              
77             __PACKAGE__->belongs_to(
78             "treatment",
79             "Bio::Chado::Schema::Result::Mage::Treatment",
80             { treatment_id => "treatment_id" },
81             {
82             cascade_copy => 0,
83             cascade_delete => 0,
84             is_deferrable => 1,
85             on_delete => "CASCADE",
86             on_update => "CASCADE",
87             },
88             );
89              
90              
91             # Created by DBIx::Class::Schema::Loader v0.06001 @ 2010-04-16 14:33:36
92             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eAjQIzsmVBy+ad5t9jiYoA
93              
94              
95             # You can replace this text with custom content, and it will be preserved on regeneration
96             1;
97              
98             __END__