File Coverage

blib/lib/Bio/Chado/Schema/Result/Mage/Treatment.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::Treatment;
2             BEGIN {
3 6     6   2682 $Bio::Chado::Schema::Result::Mage::Treatment::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   102 $Bio::Chado::Schema::Result::Mage::Treatment::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   38 use strict;
  6         15  
  6         108  
13 6     6   29 use warnings;
  6         14  
  6         138  
14              
15 6     6   28 use base 'DBIx::Class::Core';
  6         15  
  6         1124  
16              
17              
18              
19             __PACKAGE__->table("treatment");
20              
21              
22             __PACKAGE__->add_columns(
23             "treatment_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "treatment_treatment_id_seq",
29             },
30             "rank",
31             { data_type => "integer", default_value => 0, is_nullable => 0 },
32             "biomaterial_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             "protocol_id",
37             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
38             "name",
39             { data_type => "text", is_nullable => 1 },
40             );
41             __PACKAGE__->set_primary_key("treatment_id");
42              
43              
44             __PACKAGE__->has_many(
45             "biomaterial_treatments",
46             "Bio::Chado::Schema::Result::Mage::BiomaterialTreatment",
47             { "foreign.treatment_id" => "self.treatment_id" },
48             { cascade_copy => 0, cascade_delete => 0 },
49             );
50              
51              
52             __PACKAGE__->belongs_to(
53             "type",
54             "Bio::Chado::Schema::Result::Cv::Cvterm",
55             { cvterm_id => "type_id" },
56             {
57             cascade_copy => 0,
58             cascade_delete => 0,
59             is_deferrable => 1,
60             on_delete => "CASCADE",
61             on_update => "CASCADE",
62             },
63             );
64              
65              
66             __PACKAGE__->belongs_to(
67             "protocol",
68             "Bio::Chado::Schema::Result::Mage::Protocol",
69             { protocol_id => "protocol_id" },
70             {
71             cascade_copy => 0,
72             cascade_delete => 0,
73             is_deferrable => 1,
74             join_type => "LEFT",
75             on_delete => "CASCADE",
76             on_update => "CASCADE",
77             },
78             );
79              
80              
81             __PACKAGE__->belongs_to(
82             "biomaterial",
83             "Bio::Chado::Schema::Result::Mage::Biomaterial",
84             { biomaterial_id => "biomaterial_id" },
85             {
86             cascade_copy => 0,
87             cascade_delete => 0,
88             is_deferrable => 1,
89             on_delete => "CASCADE",
90             on_update => "CASCADE",
91             },
92             );
93              
94              
95             # Created by DBIx::Class::Schema::Loader v0.06001 @ 2010-04-16 14:33:36
96             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fVtFYcHN4eibAkjEcKDH3g
97              
98              
99             # You can replace this text with custom content, and it will be preserved on regeneration
100             1;
101              
102             __END__